:root {
  --black: #080504;
  --brown-black: #110b07;
  --brown: #24170e;
  --surface: #15100c;
  --gold: #c69a4b;
  --gold-light: #ecd08b;
  --ivory: #f3ece0;
  --text: #ede2d1;
  --muted: #ad9474;
  --border: rgba(198, 154, 75, .34);
  --soft-border: rgba(198, 154, 75, .17);
  --shade: rgba(5, 3, 2, .68);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: Tajawal, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}
body.light {
  --black: #fffaf4;
  --brown-black: #fbf2e6;
  --brown: #eee2d0;
  --surface: #fffdf8;
  --text: #24180f;
  --muted: #735e43;
  --border: rgba(156, 110, 40, .35);
  --soft-border: rgba(156, 110, 40, .18);
  --shade: rgba(22, 13, 7, .63);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, var(--brown-black), var(--black) 42%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, video {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.protected-image { user-select: none; }

.store-header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(12px, 3vw, 38px);
  border-bottom: 1px solid var(--soft-border);
  background: rgba(8, 5, 4, .91);
  backdrop-filter: blur(16px);
  direction: ltr;
}
body.light .store-header { background: rgba(255, 250, 244, .92); }
.header-side { display: flex; align-items: center; gap: 7px; }
.account-side { justify-content: flex-end; }
.icon-button {
  position: relative;
  width: 43px;
  height: 43px;
  border: 1px solid var(--soft-border);
  color: var(--gold-light);
  display: inline-grid;
  place-items: center;
  background: transparent;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.icon-button:hover, .icon-button:focus-visible {
  border-color: var(--gold);
  background: rgba(198, 154, 75, .08);
  outline: none;
}
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.text-icon { font: 500 .72rem Cinzel, serif; }
.cart-count {
  position: absolute;
  inset-inline-end: -5px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #160d06;
  font-size: .65rem;
  font-weight: 700;
}
.store-signature {
  min-width: min(46vw, 230px);
  text-align: center;
  color: var(--gold-light);
  font: 700 1.28rem Amiri, serif;
  line-height: 1;
  direction: rtl;
}
.store-signature small {
  display: block;
  color: var(--muted);
  font: 400 .52rem Cinzel, serif;
  margin-top: 5px;
  letter-spacing: .22em;
}

#storeView { min-height: calc(100vh - var(--header-h)); }
.page { animation: pageIn .46s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.slider {
  width: 100%;
  height: clamp(420px, 68vh, 660px);
  position: relative;
  overflow: hidden;
  background: var(--brown-black);
  touch-action: pan-y;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.35s cubic-bezier(.18, .82, .18, 1);
  background: var(--brown-black);
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide img, .slide video {
  height: 100%;
  width: 100%;
  object-position: var(--focal, center center);
}
.slide img { object-fit: contain; padding: clamp(18px, 3vw, 30px); }
.slide video { object-fit: cover; }
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 5, 4, .52), transparent 35%), linear-gradient(90deg, rgba(8, 5, 4, .20), transparent 40%);
}
.ambient-gold {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.ambient-gold i {
  position: absolute;
  top: calc(50% + var(--curve));
  left: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(221, 183, 105, .76);
  box-shadow: 0 0 2px rgba(176, 118, 39, .38);
  opacity: 0;
  animation: ambientOrbit var(--duration) var(--delay) linear infinite;
}
@keyframes ambientOrbit {
  0% { transform: translate3d(calc(100vw + 25px), 16px, 0); opacity: 0; }
  9% { opacity: .62; }
  38% { transform: translate3d(60vw, var(--curve), 0); opacity: .82; }
  54% { transform: translate3d(51vw, -38px, 0); opacity: 1; }
  70% { transform: translate3d(41vw, var(--curve), 0); opacity: .82; }
  92% { opacity: .5; }
  100% { transform: translate3d(-25px, 12px, 0); opacity: 0; }
}
.slider-dots {
  position: absolute;
  z-index: 8;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 28px;
  height: 3px;
  border: 0;
  background: rgba(237, 226, 209, .34);
}
.slider-dot.active { background: var(--gold-light); }
.brand-intro {
  padding: clamp(31px, 5vw, 51px) 18px clamp(30px, 4vw, 45px);
  text-align: center;
  border-bottom: 1px solid var(--soft-border);
}
.brand-intro h1 {
  color: var(--gold-light);
  font: 700 clamp(2rem, 5vw, 3.2rem) Amiri, serif;
  line-height: 1.2;
}
.brand-intro h1::after {
  content: "";
  display: block;
  width: 74px;
  height: 1px;
  margin: 20px auto 0;
  background: var(--gold);
}
.collection-area { padding: clamp(33px, 5vw, 60px) clamp(14px, 4vw, 50px) clamp(48px, 7vw, 80px); }
.section-head {
  max-width: 1260px;
  margin: 0 auto 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
.eyebrow { color: var(--muted); font: 400 .68rem Cinzel, serif; letter-spacing: .2em; margin-bottom: 7px; }
.section-head h2, .page-heading h1 {
  font: 700 clamp(1.7rem, 3.4vw, 2.45rem) Amiri, serif;
  color: var(--gold-light);
}
.catalog-grid {
  max-width: 1260px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(15px, 2.4vw, 27px);
}
.product-card {
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  touch-action: pan-y;
}
body[data-reveal="fade"] .product-card { transform: none; }
body[data-reveal="scale"] .product-card { transform: scale(.975); }
body[data-reveal="rise"] .product-card { transform: translateY(18px); }
.product-card.visible { opacity: 1; transform: none; transition: opacity .9s ease, transform 1s var(--ease); }
.product-card:hover { border-color: rgba(236, 208, 139, .62); }
.product-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--brown-black);
  touch-action: pan-y;
}
.product-frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(198, 154, 75, .20);
  pointer-events: none;
  z-index: 3;
}
.card-image {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: 13px 13px 178px;
  opacity: 0;
  transition: opacity 1.9s cubic-bezier(.18, .82, .18, 1), transform 1.9s var(--ease);
}
.card-image.active { opacity: 1; }
.product-card:hover .card-image.active { transform: scale(1.018); }
.card-thumbs {
  position: absolute;
  top: 15px;
  inset-inline-start: 15px;
  z-index: 7;
  display: flex;
  gap: 5px;
}
.card-thumbs button {
  width: 34px;
  height: 48px;
  padding: 2px;
  background: rgba(8, 5, 4, .75);
  border: 1px solid var(--soft-border);
}
.card-thumbs button.active { border-color: var(--gold-light); }
.card-thumbs img { height: 100%; width: 100%; object-fit: contain; }
.card-overlay {
  position: absolute;
  z-index: 4;
  left: 9px;
  right: 9px;
  bottom: 9px;
  min-height: 154px;
  padding: 16px 12px 11px;
  border: 1px solid rgba(198, 154, 75, .18);
  background: rgba(11, 7, 5, .86);
  backdrop-filter: blur(9px);
}
body.light .product-frame { background: #f3e7d5; }
body.light .card-overlay {
  border-color: rgba(198, 154, 75, .38);
  background: rgba(70, 46, 27, .88);
}
.collection-label {
  display: block;
  color: var(--gold);
  font-size: .7rem;
  margin-bottom: 5px;
}
.card-overlay h3 {
  color: var(--ivory);
  font: 700 1.42rem Amiri, serif;
  line-height: 1.1;
}
.card-description {
  margin-top: 5px;
  color: #d4c5b0;
  font-size: .82rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-bottom {
  min-height: 37px;
  padding: 10px 0 0;
  margin-top: 8px;
  border-top: 1px solid rgba(198, 154, 75, .18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price {
  color: var(--gold-light);
  font: 500 1rem Cinzel, serif;
  direction: ltr;
}
.color-label { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); }
.color-dot { height: 12px; width: 12px; border-radius: 50%; border: 1px solid var(--gold); display: inline-block; background: var(--swatch); }
.card-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.page-wrap {
  width: min(1260px, calc(100% - clamp(28px, 7vw, 90px)));
  margin: 0 auto;
  padding: clamp(26px, 4vw, 48px) 0 clamp(55px, 8vw, 86px);
}
.breadcrumbs { display: flex; gap: 8px; color: var(--muted); font-size: .86rem; margin-bottom: clamp(20px, 3vw, 32px); }
.breadcrumbs a:hover { color: var(--gold-light); }
.product-page {
  display: grid;
  grid-template-columns: minmax(360px, 58%) minmax(280px, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.gallery-main {
  aspect-ratio: 2 / 3;
  max-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--border);
  background: var(--brown-black);
  overflow: hidden;
  touch-action: pan-y;
}
.gallery-main img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: clamp(13px, 2vw, 22px);
  transition: opacity 2s cubic-bezier(.18, .82, .18, 1), transform 2s var(--ease);
}
.gallery-main > img:not(.crossfade-ghost) { z-index: 1; }
.gallery-main img.crossfade-base { opacity: .08; }
.gallery-main img.crossfade-ghost {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.gallery-main img.crossfade-ghost.ready { opacity: 1; }
.zoom-trigger {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 8;
}
.gallery-thumbs {
  margin-top: 11px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.gallery-thumb {
  width: 68px;
  height: 96px;
  flex: 0 0 auto;
  border: 1px solid var(--soft-border);
  background: var(--brown-black);
  padding: 4px;
}
.gallery-thumb.active { border-color: var(--gold-light); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-panel { padding-top: clamp(2px, 3vw, 35px); }
.detail-panel h1 { color: var(--gold-light); font: 700 clamp(2rem, 4vw, 3rem) Amiri, serif; line-height: 1.15; margin: 9px 0 12px; }
.description-panel {
  border: 1px solid var(--soft-border);
  background: rgba(198, 154, 75, .035);
  margin: 20px 0 23px;
  padding: 15px 17px;
}
.description-panel h2 {
  color: var(--gold);
  font-size: .83rem;
  font-weight: 500;
  margin-bottom: 7px;
}
.detail-panel .detail-description { color: var(--muted); line-height: 1.85; margin: 0; }
.detail-price { margin: 14px 0 24px; font-size: 1.38rem; }
.choice-block { margin: 21px 0; }
.choice-block label { display: block; color: var(--muted); margin-bottom: 9px; font-size: .88rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  border: 1px solid var(--soft-border);
  background: transparent;
  min-height: 42px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.swatch.selected { border-color: var(--gold); color: var(--gold-light); }
.purchase-row { display: flex; gap: 9px; margin: 25px 0; }
.quantity {
  width: 78px;
  border: 1px solid var(--border);
  background: transparent;
  text-align: center;
  padding: 0 8px;
}
.gold-button, .outlined-button {
  min-height: 45px;
  padding: 12px 21px;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.gold-button {
  flex: 1;
  background: var(--gold);
  color: #1a1008;
  font-weight: 500;
}
.gold-button:hover { background: var(--gold-light); border-color: var(--gold-light); }
.outlined-button { color: var(--gold-light); background: transparent; }
.outlined-button:hover { background: rgba(198, 154, 75, .09); }
.detail-list {
  border-top: 1px solid var(--soft-border);
  margin-top: 28px;
  padding-top: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.6;
}

.cart-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  inset-inline-start: clamp(12px, 3vw, 38px);
  width: min(366px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 62px rgba(0, 0, 0, .42);
  padding: 14px;
  display: none;
}
.cart-dropdown.open { display: block; animation: dropIn .27s var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
.drop-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--soft-border); padding: 0 2px 11px; margin-bottom: 10px; }
.drop-title strong { font: 700 1.35rem Amiri, serif; color: var(--gold-light); }
.mini-cart-items { max-height: 282px; overflow: auto; display: grid; gap: 8px; }
.mini-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--soft-border); }
.mini-item img { width: 52px; height: 70px; object-fit: contain; background: var(--brown-black); }
.mini-item h4 { font-size: .9rem; font-weight: 500; margin-bottom: 2px; }
.mini-item span { color: var(--muted); font-size: .77rem; }
.drop-total { display: flex; justify-content: space-between; margin: 14px 0; color: var(--gold-light); }
.drop-empty { color: var(--muted); padding: 22px 8px; text-align: center; }
.drop-view { width: 100%; }

.cart-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(295px, 405px);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}
.cart-lines { display: grid; gap: 11px; }
.saved-title { font: 700 1.6rem Amiri, serif; color: var(--gold-light); padding-top: 22px; border-top: 1px solid var(--soft-border); margin-top: 9px; }
.saved-item { grid-template-columns: 78px 1fr; }
.saved-item img { width: 78px; height: 110px; }
.cart-item {
  border-bottom: 1px solid var(--soft-border);
  padding: 0 0 14px;
  display: grid;
  grid-template-columns: 98px 1fr auto;
  gap: 16px;
  align-items: center;
}
.cart-item img { width: 98px; height: 137px; object-fit: contain; background: var(--brown-black); border: 1px solid var(--soft-border); }
.cart-item h3 { font: 700 1.35rem Amiri, serif; color: var(--ivory); }
.item-note { font-size: .85rem; color: var(--muted); margin: 4px 0 13px; }
.cart-actions { display: flex; gap: 8px; align-items: center; }
.cart-actions input { width: 65px; height: 40px; border: 1px solid var(--border); background: transparent; text-align: center; }
.remove-button {
  color: var(--muted);
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-size: .85rem;
}
.remove-button:hover { color: var(--gold-light); border-color: var(--gold); }
.summary {
  position: sticky;
  top: calc(var(--header-h) + 19px);
  border: 1px solid var(--border);
  padding: clamp(18px, 3vw, 27px);
  background: var(--surface);
}
.summary h2 { font: 700 1.7rem Amiri, serif; color: var(--gold-light); margin-bottom: 15px; }
.summary-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--soft-border); padding: 10px 0; color: var(--muted); }
.summary-row.total { border: 0; color: var(--gold-light); font-size: 1.05rem; padding-top: 17px; }
.checkout-form { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .81rem; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--soft-border);
  background: transparent;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.checkout-submit { grid-column: 1 / -1; margin-top: 8px; width: 100%; }

.account-layout {
  display: grid;
  grid-template-columns: minmax(230px, 300px) 1fr;
  gap: clamp(22px, 5vw, 52px);
}
.account-gate {
  max-width: 950px;
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 66px);
  align-items: start;
}
.auth-intro h1 {
  color: var(--gold-light);
  font: 700 clamp(2.1rem, 4vw, 2.8rem) Amiri, serif;
  line-height: 1.2;
  margin: 9px 0 13px;
}
.auth-intro p { color: var(--muted); line-height: 1.8; }
.auth-panel {
  border: 1px solid var(--soft-border);
  background: var(--surface);
  padding: clamp(18px, 4vw, 28px);
}
.auth-form {
  max-width: 420px;
  display: grid;
  gap: 13px;
}
.auth-form .gold-button, .auth-register .gold-button { margin-top: 10px; }
.logout-button { margin-top: 24px; }
.profile-sidebar h1 { font: 700 2.6rem Amiri, serif; color: var(--gold-light); }
.profile-sidebar p { color: var(--muted); line-height: 1.8; margin-top: 12px; }
.profile-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.tab-button { min-height: 43px; border: 1px solid var(--soft-border); padding: 9px 18px; background: transparent; color: var(--muted); }
.tab-button.active { border-color: var(--gold); color: var(--gold-light); }
.profile-form { max-width: 660px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.orders-list { display: grid; gap: 13px; }
.order {
  border: 1px solid var(--soft-border);
  padding: 18px;
  display: grid;
  gap: 9px;
}
.order strong { color: var(--gold-light); font-family: Cinzel, serif; }
.timeline { border-top: 1px solid var(--soft-border); padding-top: 9px; display: grid; gap: 7px; color: var(--muted); }
.policy-page { max-width: 760px; }
.policy-copy { color: var(--muted); line-height: 2.1; white-space: pre-wrap; margin-top: 22px; }
.empty-page { color: var(--muted); text-align: center; padding: 68px 12px; }

.store-footer {
  min-height: 138px;
  border-top: 1px solid var(--soft-border);
  padding: 34px 16px;
  display: grid;
  justify-items: center;
  gap: 21px;
}
.footer-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.footer-name { font: 400 .73rem Cinzel, serif; color: var(--muted); display: flex; gap: 10px; direction: ltr; }

.toast {
  position: fixed;
  z-index: 100;
  bottom: 21px;
  left: 50%;
  transform: translate(-50%, 18px);
  background: var(--surface);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 12px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  background: var(--black);
  touch-action: pan-y;
}
.viewer.open { display: grid; }
.viewer-close { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 8; }
.viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 8; }
.viewer-arrow.prev { inset-inline-start: 17px; }
.viewer-arrow.next { inset-inline-end: 17px; }
.viewer-stage { height: 100vh; width: min(100%, 970px); display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 24px 78px 16px; }
.viewer-stage { position: relative; overflow: hidden; }
.viewer-stage > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 2s cubic-bezier(.18, .82, .18, 1), transform 2s var(--ease);
}
.viewer-stage > img:not(.crossfade-ghost) { position: relative; z-index: 1; }
.viewer-stage > img.crossfade-base { opacity: .08; }
.viewer-stage > img.crossfade-ghost {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.viewer-stage > img.crossfade-ghost.ready { opacity: 1; }
.viewer-thumbs { height: 98px; display: flex; justify-content: center; gap: 9px; padding-top: 10px; overflow: auto; }
.viewer-thumbs { position: relative; z-index: 8; }
.viewer-thumbs button {
  width: 62px;
  height: 86px;
  border: 1px solid var(--soft-border);
  background: var(--brown-black);
  padding: 3px;
  flex: 0 0 auto;
}
.viewer-thumbs button.active { border-color: var(--gold-light); }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.gold-dust {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
.product-frame > .gold-dust { bottom: 166px; }
.gold-dust.active { opacity: 1; }
.gold-dust .dust {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--x);
  top: var(--y);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 205, 145, .88), rgba(184, 126, 48, .62) 48%, transparent 76%);
  box-shadow: 0 0 2px rgba(176, 117, 38, .34);
  opacity: 0;
  animation: dustDrift var(--life) var(--delay) var(--ease) forwards;
}
@keyframes dustDrift {
  0% { opacity: 0; transform: translate3d(0, 16px, 0) scale(.28); }
  24% { opacity: var(--alpha); }
  100% { opacity: 0; transform: translate3d(var(--travel), -48px, 0) scale(.88); }
}

@media (max-width: 940px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-page, .cart-layout, .account-layout, .account-gate { grid-template-columns: 1fr; }
  .gallery-main { max-height: none; width: min(100%, 570px); margin: auto; }
  .detail-panel { max-width: 570px; margin: auto; width: 100%; }
  .summary { position: static; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .store-header { padding: 0 9px; }
  .icon-button { width: 39px; height: 39px; }
  .home-button { display: none; }
  .store-signature { min-width: 110px; font-size: 1.05rem; }
  .store-signature small { font-size: .45rem; }
  .header-side { gap: 4px; }
  .slider { height: calc(100svh - var(--header-h)); min-height: 510px; max-height: none; }
  .slide img { object-fit: contain; padding: 14px 12px 40px; }
  .slide video { object-fit: cover; }
  .brand-intro { padding-top: 27px; padding-bottom: 29px; }
  .brand-intro h1 { font-size: 1.9rem; }
  .collection-area { padding: 30px 12px 48px; }
  .section-head { margin-bottom: 18px; }
  .catalog-grid { grid-template-columns: minmax(0, 390px); justify-content: center; gap: 16px; }
  .product-frame::after { inset: 5px; }
  .card-thumbs { top: 11px; inset-inline-start: 11px; }
  .card-thumbs button { width: 31px; height: 43px; }
  .card-image { padding: 7px 7px 142px; }
  .card-overlay { left: 5px; right: 5px; bottom: 5px; min-height: 120px; padding: 10px 9px 7px; }
  .product-frame > .gold-dust { bottom: 126px; }
  .collection-label { font-size: .61rem; }
  .card-overlay h3 { font-size: 1.04rem; }
  .card-description { font-size: .69rem; }
  .card-bottom { min-height: 33px; padding: 7px 0 0; margin-top: 5px; display: block; }
  .price { font-size: .86rem; display: block; margin-bottom: 4px; }
  .color-label { font-size: .7rem; }
  .page-wrap { width: calc(100% - 24px); padding-top: 21px; }
  .product-page { gap: 21px; }
  .detail-panel h1 { font-size: 2rem; }
  .purchase-row { flex-wrap: wrap; }
  .gold-button { min-width: calc(100% - 87px); }
  .cart-item { grid-template-columns: 78px 1fr; gap: 11px; }
  .cart-item img { width: 78px; height: 110px; }
  .cart-item > .price { grid-column: 2; }
  .checkout-form, .profile-form { grid-template-columns: 1fr; }
  .viewer-stage { width: 100%; height: 100svh; padding: 0; grid-template-rows: 1fr; }
  .viewer-stage > img { height: 100svh; width: 100vw; object-fit: contain; padding: 50px 0 92px; }
  .viewer-thumbs { position: absolute; left: 0; right: 0; bottom: 11px; height: 78px; justify-content: flex-start; padding: 0 12px; }
  .viewer-thumbs button { height: 76px; width: 54px; }
  .viewer-arrow { width: 37px; height: 45px; }
  .store-footer { min-height: 124px; padding: 28px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .gold-dust, .ambient-gold { display: none; }
  .slide, .card-image, .gallery-main img, .viewer-stage > img { transition-duration: .01ms; }
}
