/* برشتا — پوستهٔ عمومی فروشگاه (کاتالوگ، محصول، سبد، ورود)
   Derived from the supplied products / product-detail / auth-cart designs.
   Only the local Mikhak font is used; no external CDN, icon font or asset. */

@font-face {
  font-family: "Mikhak";
  src: url("/static/fonts/Mikhak-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #eee8dd;
  --muted: #948f87;
  --line: rgba(236, 228, 213, .12);
  --gold: #c5a66e;
  --gold-soft: rgba(197, 166, 110, .12);
  --bg: #171614;
  --panel: rgba(255, 255, 255, .035);
  --danger: #d9776b;
  --ok: #7fb79a;
  --radius: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  font-family: "Mikhak", Tahoma, sans-serif;
  line-height: 1.8;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; background: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(188, 151, 89, .085), transparent 38%),
    linear-gradient(180deg, #1b1917 0, #151412 100%);
}

/* --- shared header (same structure/classes as the storefront) ----------- */
.header-stage {
  position: relative; z-index: 30; width: 100%; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -55%, rgba(255,255,255,.12), transparent 58%),
    linear-gradient(180deg, #201f1c 0%, #181715 75%, #151412 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.site-header {
  position: relative; z-index: 1; width: 100%; min-height: 104px;
  padding-inline: clamp(20px, 4vw, 58px); display: flex; align-items: center;
}
.desktop-header {
  width: 100%; display: grid;
  grid-template-columns: minmax(205px, 1fr) auto minmax(205px, 1fr);
  align-items: center; gap: 24px;
}
.brand { width: max-content; display: inline-flex; align-items: center; gap: 10px; direction: rtl; white-space: nowrap; }
.brand-logo {
  display: block; width: 64px; height: 64px; object-fit: contain;
  filter: invert(82%) sepia(24%) saturate(500%) hue-rotate(3deg) brightness(93%);
}
.brand-name { color: var(--ink); font-size: 23px; font-weight: 700; line-height: 1.2; }
.desktop-nav {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(17px, 2.2vw, 34px); white-space: nowrap; direction: rtl;
}
.nav-link {
  position: relative; display: inline-block; padding-block: 12px;
  border: 0; background: none; color: #c4c0b8; font-size: 14px;
  line-height: 1.4; cursor: pointer; transition: color .2s ease;
}
.nav-link:hover, .nav-link.is-current { color: var(--ink); }
.nav-link.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
  transform: translateX(-50%);
}
.nav-link--button { font: inherit; font-size: 14px; color: #c4c0b8; }
.nav-logout { display: inline; margin: 0; }
.header-actions { display: flex; align-items: center; justify-self: start; gap: 11px; direction: ltr; }
.icon-button {
  width: 40px; height: 42px; display: grid; place-items: center; position: relative;
  padding: 0; border: 1px solid transparent; border-radius: 50%;
  background: transparent; color: #e1ddd4; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.icon-button:hover {
  color: var(--gold); border-color: rgba(216,189,128,.28);
  background: rgba(216,189,128,.045);
}
.icon-button svg { width: 21px; height: 21px; stroke-width: 1.65; }
.cart-button { position: relative; }
.cart-icon { width: 20px !important; height: 20px !important; stroke-width: 1.45 !important; }
.cart-count-badge {
  position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px;
  display: inline-grid; place-items: center; padding: 0 4px;
  border: 2px solid #1b1a18; border-radius: 999px; color: #fff;
  background: #d54b45; font: 700 9px/1 Mikhak, sans-serif;
  direction: ltr; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.cart-count-badge.is-empty { background: rgba(255,255,255,.09); color: #b6afa2; }
.mobile-actions .cart-count-badge { top: 1px; right: -1px; border-color: #201f1c; }
.bottom-link .cart-count-badge { top: 3px; right: calc(50% - 22px); border-color: #1b1a18; }
.mobile-header, .mobile-nav, .mobile-bottom-nav { display: none; }
.gold-rail { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.gold-rail svg { display: block; width: 100%; height: 100%; overflow: visible; }
.contour {
  fill: none; stroke: #aaa9a4; stroke-width: .65; opacity: .2;
  vector-effect: non-scaling-stroke;
  animation: contour-breathe 11s ease-in-out infinite alternate;
}
.contour:nth-of-type(2n) { animation-delay: -3.5s; animation-duration: 13s; }
.contour-glint { opacity: .2; stroke-width: .65; stroke-dasharray: 70 2200; animation: contour-flow 24s linear infinite; }
@keyframes contour-breathe { from { opacity: .12; } to { opacity: .23; } }
@keyframes contour-flow { to { stroke-dashoffset: -2200; } }

/* --- page breadcrumbs --------------------------------------------------- */
.breadcrumbs { margin-bottom: 26px; color: #8b857c; font-size: 10px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumbs li + li::before { content: "‹"; color: #5f5a53; }
.breadcrumbs a { color: #a79d8c; }
.breadcrumbs a:hover { color: #ead7ad; }
.breadcrumbs [aria-current="page"] { color: #ded4c0; }

.back { display: inline-flex; align-items: center; gap: 9px; color: #b9aa91; font-size: 11px; }
.back svg { width: 17px; height: 17px; stroke-width: 1.4; }
.back:hover { color: #e7d5b1; }
.back-row { margin: 0 0 22px; }

/* --- layout ------------------------------------------------------------- */
.main {
  width: min(1280px, calc(100% - 56px));
  margin: auto;
  padding: clamp(40px, 7vw, 96px) 0 110px;
}
.footer {
  width: min(1280px, calc(100% - 56px));
  margin: auto;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  color: #777169;
  font-size: 9px;
  text-align: center;
}

/* --- catalog hero ------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end; gap: 34px clamp(28px, 5vw, 56px); margin-bottom: 42px;
}
.hero > div:first-child { min-width: 0; }
.eyebrow {
  display: inline-block; margin-bottom: 12px; color: var(--gold);
  font-size: 9px; letter-spacing: .16em; direction: ltr;
}
h1 { margin: 0; font-size: clamp(29px, 4.6vw, 60px); font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }
.intro { max-width: 610px; margin: 14px 0 0; color: #969087; font-size: 12px; line-height: 2.1; }
.hero-note { max-width: 220px; padding-right: 19px; border-right: 1px solid rgba(197, 166, 110, .42); color: #777169; font-size: 10px; line-height: 2.1; }
.hero-note strong { display: block; margin-bottom: 5px; color: #cfb680; font-size: 23px; font-weight: 400; line-height: 1; }

/* --- filters ------------------------------------------------------------ */
.category-nav {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 1px 15px;
  margin-bottom: 14px; scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.category-nav::-webkit-scrollbar { display: none; }
.category-link {
  flex: 0 0 auto; padding: 9px 15px; border: 1px solid rgba(235, 226, 211, .1);
  border-radius: 99px; color: #989188; background: rgba(255, 255, 255, .018);
  font-size: 10px; transition: .3s;
}
.category-link:hover, .category-link.active {
  color: #ead8b5; border-color: rgba(197, 166, 110, .55); background: var(--gold-soft);
}
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin: 22px 0 16px; color: #777169; font-size: 10px;
}
.toolbar strong { color: #d2b57a; font-size: 12px; font-weight: 500; }
.sort { display: flex; align-items: center; gap: 8px; color: #898279; font-size: 10px; }
.sort select {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px;
  color: #bfb4a1; background: #201e1b; font-size: 10px;
}

/* --- product grid ------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card {
  position: relative; min-height: 370px; display: flex; flex-direction: column;
  padding: 15px; border: 1px solid rgba(235, 226, 211, .045); border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, .006) 62%, rgba(200, 166, 109, .014));
  box-shadow: 0 13px 30px rgba(0, 0, 0, .08), inset 0 1px rgba(255, 255, 255, .018);
  backdrop-filter: blur(14px);
  transition: transform .45s cubic-bezier(.2, .72, .2, 1), border-color .35s, background .35s;
}
.product-card::before {
  content: ""; position: absolute; inset: 0 20% auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(213, 180, 119, .32), transparent);
}
.product-card:hover {
  transform: translateY(-7px); border-color: rgba(215, 185, 129, .16);
  background: linear-gradient(145deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .009) 62%, rgba(200, 166, 109, .022));
}
.card-media {
  position: relative; height: 210px; display: grid; place-items: center;
  margin-bottom: 4px; isolation: isolate;
}
.card-media .art-glow {
  position: absolute; inset: 20% 16%; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(197, 161, 99, .18), rgba(197, 161, 99, .035) 47%, transparent 75%);
  filter: blur(17px);
}
.card-media img {
  width: auto; height: 100%; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 17px 16px rgba(0, 0, 0, .28));
  transition: transform .6s cubic-bezier(.2, .72, .2, 1);
}
.card-media img.is-placeholder { opacity: .7; height: 78%; }
.product-card:hover .card-media img { transform: translateY(-7px) scale(1.04); }
.card-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.card-category { margin-top: 13px; color: #b29a69; font-size: 8px; }
.product-card h3 { margin: 5px 0 3px; font-size: 15px; font-weight: 500; line-height: 1.7; }
.product-card .card-note { min-height: 30px; margin: 0; color: #878078; font-size: 9px; line-height: 1.8; }
.card-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(235, 226, 211, .07);
}
.card-bottom strong { color: #d2b57d; font: 500 12px/1 "Mikhak", Tahoma, sans-serif; }
.card-bottom small { color: #7c766d; font-size: 8px; }
.card-stock { color: #8b857c; font-size: 8px; }
.card-stock.is-out { color: #b87b6e; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span {
  min-width: 34px; padding: 7px 10px; text-align: center; border-radius: 8px;
  border: 1px solid var(--line); color: #a49d92; font-size: 10px;
}
.pagination .is-current { border-color: rgba(197, 166, 110, .5); color: #ead8b5; background: var(--gold-soft); }

/* --- empty / notice ----------------------------------------------------- */
.empty, .notice {
  padding: 32px 22px; text-align: center; border: 1px solid var(--line);
  border-radius: var(--radius); background: rgba(255, 255, 255, .018);
  color: #9b948a; font-size: 11px;
}
.empty strong, .notice strong { display: block; margin-bottom: 8px; color: #e2d6c0; font-size: 15px; font-weight: 500; }
.notice .primary { margin-top: 16px; }
.alert {
  margin: 0 0 18px; padding: 12px 15px; border-radius: 12px; font-size: 11px;
  border: 1px solid rgba(217, 119, 107, .35); background: rgba(217, 119, 107, .08); color: #e6b0a6;
}
.alert--ok { border-color: rgba(127, 183, 154, .35); background: rgba(127, 183, 154, .08); color: #a9d5bf; }
.muted { color: #8d867c; font-size: 10px; }

/* --- product detail ----------------------------------------------------- */
.product-hero {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.product-hero > * { min-width: 0; }
.info { min-width: 0; }
.visual {
  position: relative; display: grid; place-items: center; min-height: 430px;
  padding: 32px; border: 1px solid rgba(235, 226, 211, .06); border-radius: 24px;
  background: radial-gradient(ellipse at 50% 20%, rgba(197, 161, 99, .13), transparent 62%), rgba(255, 255, 255, .015);
  overflow: hidden;
}
.visual picture { display: block; width: 100%; max-width: 100%; }
.visual img {
  display: block; margin-inline: auto;
  width: auto; max-width: 100%; max-height: 440px; object-fit: contain;
  filter: drop-shadow(0 28px 26px rgba(0, 0, 0, .35));
}
.visual img.is-placeholder { max-height: 300px; opacity: .72; }
.visual-label {
  position: absolute; inset: auto 18px 15px; color: #8d8170; font-size: 9px;
  letter-spacing: .1em; direction: ltr; text-align: left;
}
.visual-label b { color: #c8ad78; font-weight: 500; }
.product-title { font-size: clamp(27px, 3.6vw, 44px); }
.product-lead { margin: 12px 0 18px; color: #ada69c; font-size: 11px; line-height: 2.1; }
.price-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.price { display: inline-flex; align-items: baseline; gap: 6px; color: #e6cf9f; font-size: 24px; font-weight: 500; }
.price small { font-size: 10px; color: #a2917a; }
.stock { display: inline-flex; align-items: center; gap: 6px; color: #8ea997; font-size: 10px; }
.stock i { width: 6px; height: 6px; border-radius: 50%; background: #7fb79a; box-shadow: 0 0 9px rgba(127, 183, 154, .7); }
.stock.is-out { color: #c98d81; }
.stock.is-out i { background: #c98d81; box-shadow: none; }

.option-section { margin-bottom: 22px; }
.option-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.option-head h2 { margin: 0; color: #d9cdb9; font-size: 12px; font-weight: 500; }
.option-head span { color: #9a8d79; font-size: 10px; }
.option-rail { display: flex; flex-wrap: wrap; gap: 9px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.option-rail::-webkit-scrollbar { display: none; }
.option-card {
  flex: 0 0 auto; min-width: 92px; display: flex; flex-direction: column;
  align-items: center; gap: 7px; padding: 12px 13px;
  border: 1px solid rgba(236, 228, 213, .1); border-radius: 13px;
  color: #a49c90; background: rgba(255, 255, 255, .02);
  transition: border-color .25s, background .25s, color .25s, transform .25s;
}
.option-card:hover { color: #e3d3b4; border-color: rgba(197, 166, 110, .35); transform: translateY(-2px); }
.option-card.is-selected {
  color: #f0ddb8; border-color: rgba(197, 166, 110, .62);
  background: var(--gold-soft); box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}
.option-card .roast-label, .option-card .brew-label { font-size: 10px; }
.brew-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.option-card:focus-visible, .slider-arrow:focus-visible { outline: 2px solid #d9bd85; outline-offset: 2px; }
.option-card.is-viewonly { cursor: default; opacity: .62; }
.option-card.is-viewonly:hover { transform: none; border-color: rgba(223, 207, 175, .14); }
.brew-viewonly { display: block; margin-top: 3px; font-size: 8px; color: #9d9488; }
.brew-extra { display: block; margin-top: 2px; font-size: 8px; color: #d0b27c; }
.brew-image { width: 22px; height: 22px; object-fit: contain; display: block; margin: 0 auto 4px; border-radius: 6px; }
.brew-slider { display: flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; }
.brew-slider .option-rail { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overscroll-behavior-x: contain; }
.brew-rail .option-card { flex: 0 0 auto; min-width: 96px; }
.slider-arrow { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(223, 207, 175, .2); border-radius: 50%; background: rgba(255, 255, 255, .03); color: #e8dcc6; font-size: 20px; line-height: 1; cursor: pointer; }
.slider-arrow:hover { border-color: rgba(208, 178, 124, .55); }
.slider-arrow[disabled] { opacity: .35; cursor: default; }
.slider-arrow[hidden] { display: none; }
.weight-card { min-width: 86px; }
.weight-number { font-size: 17px; line-height: 1; color: #e7d5b1; }
.weight-label { font-size: 9px; color: #8b8171; }

.summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 24px; padding: 15px 17px; border: 1px solid rgba(236, 228, 213, .1);
  border-radius: 15px; background: rgba(255, 255, 255, .026);
}
.summary-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.summary-copy strong { color: #e9dcc4; font-size: 11px; font-weight: 500; }
.summary-copy span { color: #8d8478; font-size: 9px; }
.add-button, .primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 99px; background: #c5a66e; color: #241c11;
  font-size: 11px; font-weight: 500; transition: filter .2s, transform .2s;
}
.add-button:hover, .primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.add-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.add-button svg { width: 16px; height: 16px; }
.qty-field { display: inline-flex; align-items: center; gap: 7px; color: #9a9084; font-size: 10px; }
.qty-field input {
  width: 58px; padding: 7px 9px; border: 1px solid var(--line);
  border-radius: 8px; background: #201e1b; text-align: center;
}

.details {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 70px); margin-top: clamp(38px, 6vw, 72px);
  padding-top: 30px; border-top: 1px solid var(--line);
}
.details h2 { margin: 0 0 14px; color: #d7cab4; font-size: 13px; font-weight: 500; }
.facts { width: 100%; border-collapse: collapse; font-size: 10px; }
.facts th, .facts td { padding: 9px 0; border-bottom: 1px solid rgba(236, 228, 213, .07); text-align: right; vertical-align: top; }
.facts th { width: 38%; color: #8d8478; font-weight: 400; }
.facts td { color: #c3b8a6; }
.long-copy { margin: 0 0 10px; color: #a39b90; font-size: 11px; line-height: 2.2; white-space: pre-line; }
.seo-note { color: #7f776d; font-size: 9px; line-height: 2; }

/* --- auth --------------------------------------------------------------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
  gap: clamp(32px, 7vw, 110px); align-items: start; direction: ltr;
}
.auth-panel, .cart-panel { direction: rtl; }
.auth-panel { max-width: 590px; }
.title { margin: 0; color: #f0e9dd; font-size: clamp(26px, 3.6vw, 44px); font-weight: 500; line-height: 1.5; }
.lead { max-width: 500px; margin: 12px 0 24px; color: #969087; font-size: 11px; line-height: 2; }
.mode-tabs {
  display: flex; gap: 5px; width: max-content; margin-bottom: 20px; padding: 4px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02);
}
.mode-tab { padding: 8px 18px; border-radius: 7px; color: #918a80; font-size: 10px; }
.mode-tab.active { color: #e9d5ab; background: var(--gold-soft); box-shadow: inset 0 1px rgba(255, 255, 255, .07); }
.auth-card {
  padding: 22px; border: 1px solid rgba(236, 228, 213, .075); border-radius: 18px;
  background: rgba(255, 255, 255, .018);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .08), inset 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(14px);
}
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: #938b80; font-size: 9px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid rgba(236, 228, 213, .12);
  border-radius: 9px; color: #e9e0d1; background: rgba(0, 0, 0, .22); font-size: 11px;
}
.field input::placeholder, .field textarea::placeholder { color: #6f6960; }
.field input:disabled, .field select:disabled { opacity: .6; }
.field textarea { resize: vertical; min-height: 64px; }
.phone-line { display: flex; gap: 7px; }
.phone-line select { width: 84px; flex: 0 0 auto; }
.helper { margin: 14px 0 0; color: #8a8378; font-size: 9px; line-height: 1.9; }
.auth-card .primary { width: 100%; margin-top: 16px; }
.switch-note { margin: 14px 0 0; color: #8b847a; font-size: 10px; }
.text-btn { color: #d3b57f; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.otp-title { margin: 0 0 8px; color: #e9dcc4; font-size: 15px; font-weight: 500; }
.otp-note { margin: 0 0 14px; color: #8f877c; font-size: 10px; }
.otp-note b { color: #d3b57f; font-weight: 500; }
.otp-boxes { display: flex; gap: 9px; justify-content: center; direction: ltr; }
.otp-box {
  width: 48px; height: 56px; text-align: center; font-size: 20px;
  border: 1px solid rgba(236, 228, 213, .14); border-radius: 11px;
  color: #eee3d0; background: rgba(0, 0, 0, .22);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.otp-box:focus { border-color: rgba(197, 166, 110, .6); box-shadow: 0 0 0 3px rgba(197, 166, 110, .12); }
.otp-box.is-filled { border-color: rgba(197, 166, 110, .45); }
.otp-box.is-ok { border-color: rgba(127, 183, 154, .8); color: #b9e3cc; animation: otp-pop .35s ease; }
.otp-box.is-error { border-color: rgba(217, 119, 107, .8); color: #f0b4a8; animation: otp-shake .38s ease; }
.otp-status { min-height: 22px; margin: 12px 0 0; color: #928a7e; font-size: 10px; text-align: center; }
.otp-status.is-ok { color: var(--ok); }
.otp-status.is-error { color: var(--danger); }
@keyframes otp-pop { 0% { transform: scale(.86); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.resend { display: block; margin: 12px auto 0; color: #a2968a; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }

/* --- cart --------------------------------------------------------------- */
.cart-panel { position: relative; }
.panel-kicker { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-kicker h2 { margin: 0; color: #ded2bd; font-size: 14px; font-weight: 500; }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #8c3a30; color: #ffe9d2; font-size: 10px;
}
.cart-card {
  padding: 18px; border: 1px solid rgba(236, 228, 213, .09); border-radius: 18px;
  background: rgba(255, 255, 255, .02); backdrop-filter: blur(12px);
}
.cart-item {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px;
  align-items: start; padding: 12px 0; border-bottom: 1px solid rgba(236, 228, 213, .07);
}
.cart-item:first-child { padding-top: 0; }
.cart-art { width: 62px; height: 68px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .03); overflow: hidden; }
.cart-art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-name { margin: 0 0 3px; color: #e6dbc8; font-size: 11px; font-weight: 500; }
.cart-meta { color: #8d857a; font-size: 8.5px; line-height: 1.9; }
.cart-price { color: #d8bd88; font-size: 11px; font-weight: 500; white-space: nowrap; }
.quantity { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; }
.quantity button, .quantity span {
  width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 7px; color: #bdb2a1; font-size: 11px;
}
.quantity span { border-color: transparent; color: #e5d9c5; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; color: #968e82; font-size: 10px; }
.cart-line strong { color: #d8c6a8; font-weight: 500; }
.cart-total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); color: #d9cdb9; font-size: 11px; }
.cart-total strong { color: #ecd7a8; font-size: 15px; }
.delivery { display: flex; gap: 9px; margin: 10px 0 14px; padding: 10px 11px; border-radius: 10px; background: rgba(255, 255, 255, .025); color: #8b8378; font-size: 9px; line-height: 1.9; }
.delivery svg { width: 18px; height: 18px; flex: 0 0 auto; stroke: #ad9a7c; fill: none; stroke-width: 1.2; }
.cart-card .primary { width: 100%; }
.remove-link { color: #a98f86; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { color: #8b8378; font-size: 9px; font-weight: 400; text-align: right; padding: 0 6px 10px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 14px 6px; border-bottom: 1px solid rgba(236, 228, 213, .07); vertical-align: top; font-size: 11px; }
.cart-table .cell-product { display: flex; gap: 12px; align-items: flex-start; }
.cart-table .cell-product img { width: 54px; height: 60px; object-fit: contain; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.qty-form { display: inline-flex; gap: 6px; align-items: center; }
.qty-form input {
  width: 56px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px;
  background: #201e1b; color: #e7dcc9; font-size: 10px; text-align: center;
}
.qty-form button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: #c4b8a6; font-size: 9px; }

/* --- shipping / checkout ------------------------------------------------ */
.shipping-card {
  margin-top: 22px; padding: 22px; border: 1px solid rgba(236, 228, 213, .09);
  border-radius: 18px; background: rgba(255, 255, 255, .02);
}
.shipping-title { margin: 0 0 14px; color: #ded2bd; font-size: 15px; font-weight: 500; }
.shipping-toggle { display: flex; gap: 6px; margin-bottom: 16px; }
.ship-choice { padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px; color: #928a7f; font-size: 10px; }
.ship-choice.active { color: #ead8b5; border-color: rgba(197, 166, 110, .5); background: var(--gold-soft); }
.shipping-card .primary { margin-top: 16px; }

/* --- collection extras / related / account ------------------------------ */
.collection-figure {
  margin: 0; justify-self: end; width: min(100%, 320px);
  border: 1px solid rgba(236, 228, 213, .07); border-radius: 18px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 15%, rgba(197,161,99,.14), transparent 65%), rgba(255,255,255,.015);
}
.collection-figure img, .collection-figure picture { display: block; width: 100%; }
.collection-figure img { height: 190px; object-fit: cover; }
.collection-cta { margin-top: 18px; }
.collection-cta .primary { display: inline-flex; }
.related { margin-top: 62px; padding-top: 34px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 19px; font-weight: 500; color: #e7ddcb; }
.back-link { color: #c0a97c; font-size: 11px; }
.back-link:hover { color: #ead7ad; }
.account-panel { max-width: 760px; }
.account-panel .title { font-size: clamp(24px, 3.4vw, 34px); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.account-card { padding: 20px; border: 1px solid rgba(236, 228, 213, .08); border-radius: 18px; background: rgba(255, 255, 255, .02); }
.account-card h2 { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: #ded2bd; }
.account-address { margin: 0; color: #b4ada2; font-size: 11px; line-height: 2; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.inline-form { display: inline; margin: 0; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px;
  border: 1px solid rgba(236, 228, 213, .14); border-radius: 999px;
  color: #c9c0b1; font-size: 11px; background: transparent;
}
.btn-ghost:hover { border-color: rgba(197, 166, 110, .5); color: #ead7ad; }
.footer-tagline { margin: 0 0 10px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.footer-links a { color: #8f887d; font-size: 10px; }
.footer-links a:hover { color: #cdb88f; }

/* --- back to top -------------------------------------------------------- */
.back-to-top {
  position: fixed; z-index: 20; right: 24px; bottom: 28px; width: 48px; height: 48px;
  display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(216,189,128,.32); border-radius: 50%; color: #e5d2a6;
  background: linear-gradient(145deg, rgba(54,46,33,.96), rgba(25,24,21,.96));
  box-shadow: 0 9px 26px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.08);
  opacity: 0; transform: translateY(9px) scale(.94); pointer-events: none;
  transition: transform .24s ease, opacity .24s ease, border-color .2s ease, background .2s ease;
}
.back-to-top[aria-hidden="false"] { opacity: .68; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { opacity: 1; border-color: rgba(230,201,145,.78); }
.back-to-top svg { width: 19px; height: 19px; stroke-width: 1.7; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 1150px) {
  .site-header { min-height: 76px; padding-inline: clamp(18px, 5vw, 30px); padding-block: 8px; }
  .desktop-header { display: none; }
  .mobile-header {
    width: 100%; display: grid; grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "nav nav"; align-items: center;
    column-gap: 8px; direction: rtl;
  }
  .mobile-header > .brand { grid-area: brand; gap: 4px; }
  .mobile-header .brand-logo { width: 49px; height: 49px; }
  .mobile-header .brand-name { font-size: 18px; }
  .mobile-actions { grid-area: actions; display: flex; align-items: center; gap: 2px; direction: ltr; }
  .mobile-actions .icon-button { width: 34px; height: 38px; }
  .mobile-actions .icon-button svg { width: 19px; height: 19px; }
  .mobile-nav {
    grid-area: nav; width: 100%; display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; column-gap: 8px; padding-block: 3px 5px; direction: rtl;
  }
  .mobile-nav .nav-link { padding-block: 6px 5px; font-size: 12px; }
  .mobile-nav .nav-link.is-current::after { bottom: 0; width: 3px; height: 3px; }
  .mobile-bottom-nav {
    position: fixed; z-index: 15; right: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: min(440px, calc(100% - 24px)); min-height: 62px;
    display: flex; align-items: center; justify-content: space-around;
    padding: 6px 9px; border: 1px solid rgba(216,189,128,.22); border-radius: 22px;
    background: rgba(27,26,23,.88);
    box-shadow: 0 12px 38px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.06);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    transform: translateX(50%);
  }
  .bottom-link {
    min-width: 60px; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; color: #b7b1a6; font-size: 10px; line-height: 1.25;
  }
  .bottom-link svg { width: 19px; height: 19px; stroke-width: 1.65; }
  .bottom-link.is-current { color: #ead7a7; }
  .back-to-top { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) 200px; gap: 36px; }
  .product-hero { grid-template-columns: minmax(0, 1fr); }
  .visual { min-height: 320px; max-width: 100%; }
  .visual img { max-height: 320px; }
}
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; direction: rtl; }
  .cart-panel { max-width: 620px; }
  .details { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .main, .footer { width: calc(100% - 28px); }
  .main { padding-top: 28px; padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .collection-figure { justify-self: stretch; width: 100%; }
  .account-grid { grid-template-columns: 1fr; }
  .hero { display: block; margin-bottom: 24px; }
  .hero-note { max-width: none; }
  .hero-note { display: none; }
  h1 { font-size: 27px; line-height: 1.5; }
  .intro { font-size: 10px; line-height: 2; }
  .category-nav { flex-wrap: wrap; overflow: visible; margin-inline: 0; row-gap: 6px; }
  .toolbar { margin-top: 16px; }
  .sort label span { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-card { min-height: 300px; padding: 10px; border-radius: 14px; }
  .card-media { height: 145px; }
  .product-card h3 { font-size: 12px; }
  .product-card .card-note { font-size: 8px; min-height: 26px; }
  .card-bottom strong { font-size: 10px; }
  .card-category { font-size: 7.5px; }
  .visual { min-height: 260px; padding: 18px; }
  .visual img { max-height: 260px; }
  .option-rail { flex-wrap: nowrap; }
  .option-card { min-width: 82px; padding: 10px; }
  .summary { flex-direction: column; align-items: stretch; }
  .add-button { width: 100%; }
  .field-grid { grid-template-columns: 1fr; }
  .auth-card, .shipping-card, .cart-card { padding: 16px; }
  .otp-box { width: 44px; height: 52px; font-size: 18px; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { padding: 12px 0; border-bottom: 1px solid rgba(236, 228, 213, .08); }
  .cart-table td { border: 0; padding: 3px 0; }
  .cart-table td:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
