/* Hosam Phone store, Dukkan demo. Light page in the shop's own gold and white.
   Motion values unchanged from the base. */
/* webfonts are self-hosted so a slow connection never waits on another server */
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/alexandria-arabic-4f8da9.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/alexandria-latin-275bbb.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/alexandria-arabic-4f8da9.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/alexandria-latin-275bbb.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/alexandria-arabic-4f8da9.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/alexandria-latin-275bbb.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/alexandria-arabic-4f8da9.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/alexandria-latin-275bbb.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-arabic-6fbb1d.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-latin-eda814.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-arabic-2bea59.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-latin-88a0f1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/ibm-arabic-dbd757.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/ibm-latin-a2f8e3.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/ibm-arabic-d381fd.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/ibm-latin-d6eeed.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ffffff;
  --bg-2: #faf7f0;
  --surface: #ffffff;
  --surface-2: #f8f5ee;
  --surface-3: #eee8da;
  --line: rgba(20, 10, 10, .08);
  --line-2: rgba(20, 10, 10, .14);
  --ink: #1f1a10;
  --ink-2: #5c5444;
  --ink-3: #8a816f;
  --orange: #9a7428;
  --pink: #9a7428;
  --pink-text: #80601f;
  --grad: linear-gradient(135deg, #b08a3a 0%, #9a7428 55%, #7d5d1c 100%);
  --green: #15803d;
  --green-bg: rgba(21, 128, 61, .09);
  --amber: #b45309;
  --amber-bg: rgba(180, 83, 9, .09);
  --grey-bg: rgba(20, 10, 10, .05);
  --wa: #25d366;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 60px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --font-display: "Alexandria", "IBM Plex Sans Arabic", -apple-system, "Geeza Pro", sans-serif;
  --font-body: "IBM Plex Sans Arabic", -apple-system, "Segoe UI", Tahoma, "Geeza Pro", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { background: var(--bg); }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 520px at 85% -120px, rgba(154, 116, 40, .06), transparent 60%),
    radial-gradient(900px 480px at 0% 0%, rgba(154, 116, 40, .03), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  direction: rtl; text-align: right;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 2px; border-radius: 8px; }

/* press feedback: the interface heard you (Emil, button press) */
.press { transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, opacity 160ms ease; }
.press:active { transform: scale(0.97); }

/* ---------- header: a translucent material over the page ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  height: var(--header-h); max-width: 1180px; margin: 0 auto;
  padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 82px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25; white-space: nowrap; }
.brand-updated { font-size: 11px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-updated::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(21, 128, 61, .16); }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: grid; place-items: center; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
}
.cart-count {
  position: absolute; top: -5px; left: -5px;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg); font-variant-numeric: tabular-nums;
}

/* ---------- hero ---------- */
.hero-wrap { max-width: 1180px; margin: 0 auto; padding: 16px 0 0; }
.hero {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 0 16px; scroll-padding-inline: 16px;
}
.hero::-webkit-scrollbar { display: none; }
.hero-slide {
  flex: 0 0 88%; scroll-snap-align: start; position: relative; overflow: hidden; cursor: pointer;
  border-radius: 24px; min-height: 220px; padding: 18px;
  display: grid; grid-template-columns: 1fr 47%; align-items: center; gap: 12px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 70%);
  border: 1px solid var(--line);
  isolation: isolate;
}
.hero-slide::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 116, 40, .14), transparent 65%); z-index: -1; pointer-events: none;
}
.hero-slide.hero-2::before { background: radial-gradient(circle, rgba(154, 116, 40, .10), transparent 65%); }
.hero-slide.hero-3::before { background: radial-gradient(circle, rgba(21, 128, 61, .10), transparent 65%); }
@media (min-width: 700px) { .hero-slide { flex-basis: 62%; min-height: 260px; } }
@media (min-width: 1100px) { .hero-slide { flex-basis: calc(50% - 6px); } }
.hero-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-kicker {
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.hero-title { font-family: var(--font-display); font-size: clamp(21px, 5.6vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.hero-sub { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.hero-price { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-top: 2px; }
.hero-price small { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-right: 3px; }
.hero-cta {
  margin-top: 8px; width: max-content; padding: 9px 16px; border-radius: 999px;
  background: var(--pink); color: #fff; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-cta svg { transform: scaleX(-1); }
.hero-img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; object-fit: cover; box-shadow: 0 20px 40px -12px rgba(60, 20, 20, .18); }
.hero-dots { display: flex; justify-content: center; gap: 6px; padding: 12px 0 0; }
.hero-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--surface-3); display: block; transition: width 300ms var(--ease-out), background-color 300ms ease; }
.hero-dots i.on { background: var(--pink); width: 20px; }

/* ---------- facts strip ---------- */
.facts {
  list-style: none; margin: 16px auto 0; padding: 0 16px; max-width: 1180px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.facts li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.facts b { font-family: var(--font-display); font-size: 15px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content; max-width: 100%; }
.facts span { font-size: 11.5px; color: var(--ink-2); line-height: 1.45; }

/* ---------- controls ---------- */
.shop { max-width: 1180px; margin: 0 auto; }
.controls { padding: 22px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.branch-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.branch-label { font-size: 13px; font-weight: 600; color: var(--ink-2); flex: none; }
.segmented {
  position: relative; display: inline-flex; padding: 4px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); flex: 1 1 auto; max-width: 420px;
}
.seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 10px;
  background: var(--surface-3); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 4px 14px rgba(60, 20, 20, .10);
  transition: transform 280ms var(--ease-in-out), width 280ms var(--ease-in-out);
  pointer-events: none;
}
.seg-thumb.no-anim { transition: none; }
.seg {
  position: relative; z-index: 1; flex: 1 1 0; padding: 8px 10px; border-radius: 10px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: color 200ms ease;
}
.seg.on { color: var(--ink); }
.search {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 0 14px; height: 48px; color: var(--ink-3);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.search:focus-within { border-color: rgba(154, 116, 40, .45); background: var(--surface-2); }
/* 16px stops iOS from zooming the page on focus (mobile-native) */
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); min-width: 0; height: 100%; }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }

/* category bar sticks under the header */
.chips-bar {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top)); z-index: 20;
  margin-top: 12px; padding: 10px 0;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
.chips {
  display: flex; gap: 8px; padding: 0 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 15px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.chip.on { background: var(--pink); border-color: var(--pink); color: #fff; }

.result-line { padding: 6px 16px 0; font-size: 12.5px; color: var(--ink-3); display: flex; align-items: baseline; gap: 8px; }
.result-line b { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); }

/* ---------- grid ---------- */
.demo-note { margin: 4px 0 0; padding: 0 16px; font-size: 12px; color: var(--ink-2); }
.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  padding: 12px 16px 24px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
}
.card-hit { display: flex; flex-direction: column; flex: 1; text-align: right; cursor: pointer; transition: transform 160ms var(--ease-out); }
.card-hit:active { transform: scale(0.98); }
.card-img { aspect-ratio: 1 / 1; position: relative; overflow: hidden; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.card.is-out .card-img img { filter: saturate(.35) brightness(.7); }
.badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(29, 20, 21, .72); color: #fff; font-size: 10.5px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.badge::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); margin-left: 5px; vertical-align: 1px; }
.card-body { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.card-name {
  font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.card-spec {
  font-size: 11.5px; color: var(--ink-3); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 6px; }
.card-price { font-family: var(--font-display); font-size: 13px; color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.card-price.has { color: var(--ink); font-size: 17px; font-weight: 700; }
.card-price small { font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-right: 3px; }
.card-add {
  margin: 8px 10px 10px; height: 40px; border-radius: 12px; padding: 0 10px;
  background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-add .plus { font-size: 18px; line-height: 1; font-weight: 500; }
.card-add.in { background: var(--green-bg); color: var(--green); border-color: rgba(21, 128, 61, .22); }
.card-add.else { background: var(--amber-bg); color: var(--amber); border-color: rgba(180, 83, 9, .2); }
.card-add.off { background: transparent; color: var(--ink-3); cursor: default; }
.card-add.off:active { transform: none; }

@media (hover: hover) and (pointer: fine) {
  .card-hit:hover .card-img img { transform: scale(1.04); }
  .card-add:not(.off):hover { background: var(--surface-3); }
  .card-add.in:hover { background: rgba(21, 128, 61, .16); }
  .chip:not(.on):hover { color: var(--ink); border-color: var(--line-2); }
  .seg:not(.on):hover { color: var(--ink-2); }
  .cart-btn:hover, .icon-btn:hover { background: var(--surface-2); }
  .hero-slide:hover .hero-img { transform: translateY(-3px); }
  .hero-img { transition: transform 300ms var(--ease-out); }
}

/* availability pills */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; line-height: 1.5; width: max-content; max-width: 100%; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill-in { background: var(--green-bg); color: var(--green); }
.pill-else { background: var(--amber-bg); color: var(--amber); }
.pill-out { background: var(--grey-bg); color: var(--ink-3); }
.pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty { text-align: center; color: var(--ink-2); padding: 40px 16px; display: flex; flex-direction: column; gap: 4px; }
.empty b { font-family: var(--font-display); color: var(--ink); font-size: 16px; }

/* ---------- footer ---------- */
.foot { max-width: 1180px; margin: 12px auto 0; padding: 28px 16px 24px; color: var(--ink-2); font-size: 13px; border-top: 1px solid var(--line); }
.foot-logo { width: 132px; height: auto; margin-bottom: 14px; }
.foot-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 15px; }
.foot-branches { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
@media (min-width: 700px) { .foot-branches { grid-template-columns: repeat(3, 1fr); } }
.foot-branches li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.foot-branches b { color: var(--ink); font-weight: 600; }
.foot-branches span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.foot-phone { font-weight: 600; color: var(--ink); }
.foot-note { margin-top: 6px; font-size: 12px; color: var(--ink-3); }

/* ---------- floating cart pill ---------- */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; pointer-events: none;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom));
  display: flex; justify-content: center;
}
.cart-pill {
  pointer-events: auto; width: 100%; max-width: 520px; height: 56px; border-radius: 18px; padding: 0 8px 0 18px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 30px -8px rgba(154, 116, 40, .35), 0 2px 0 rgba(255, 255, 255, .18) inset;
  transform: translateY(0); opacity: 1;
  transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
.cart-bar[data-state="hidden"] .cart-pill { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
.cp-count {
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 11px; background: rgba(0, 0, 0, .22);
  display: grid; place-items: center; font-family: var(--font-display); font-variant-numeric: tabular-nums;
}
.cp-text { flex: 1; text-align: right; }
.cp-total { font-family: var(--font-display); font-variant-numeric: tabular-nums; padding-left: 10px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60;
  background: #1d1415; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(60, 20, 20, .25); white-space: nowrap; pointer-events: none;
  transform: translate(-50%, 0); opacity: 1;
  transition: transform 260ms var(--ease-out), opacity 200ms ease;
}
.toast[data-state="hidden"] { transform: translate(-50%, 12px); opacity: 0; }

/* ---------- sheets: a drawer on the phone, a dialog on desktop ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 40; background: rgba(30, 15, 15, .38);
  opacity: 1; transition: opacity 300ms ease;
}
.backdrop[data-state="closed"] { opacity: 0; pointer-events: none; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(60, 20, 20, .18);
  transform: translateY(0);
  transition: transform 460ms var(--ease-drawer), visibility 0s linear 0s;
  will-change: transform;
}
.sheet[data-state="closed"] { transform: translateY(105%); visibility: hidden; transition: transform 460ms var(--ease-drawer), visibility 0s linear 460ms; }
.sheet.dragging { transition: none; }
.sheet-tall { height: 92dvh; }
.sheet-grab { flex: none; height: 22px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-grab i { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); display: block; }
.sheet-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 16px; -webkit-overflow-scrolling: touch; }
.sheet-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0 12px; touch-action: none; }
.sheet-title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.icon-btn {
  height: 38px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600;
}
.icon-btn.icon-only { width: 38px; padding: 0; justify-content: center; }
@media (min-width: 760px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100vw - 48px)); max-height: min(86vh, 860px);
    border-radius: 24px; border-bottom: 1px solid var(--line-2);
    transform: translate(-50%, -50%) scale(1); opacity: 1;
    transition: transform 240ms var(--ease-out), opacity 200ms ease, visibility 0s linear 0s;
  }
  .sheet[data-state="closed"] { transform: translate(-50%, -50%) scale(0.96); opacity: 0; transition: transform 200ms var(--ease-out), opacity 160ms ease, visibility 0s linear 200ms; }
  .sheet-tall { height: min(86vh, 860px); }
  .sheet-grab { display: none; }
  .sheet-scroll { padding-top: 16px; }
}

/* product sheet */
.detail-img { border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); max-width: 420px; margin: 0 auto; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-head { margin-top: 16px; }
.detail-brand { font-size: 12px; font-weight: 600; color: var(--pink-text); text-transform: uppercase; letter-spacing: .06em; }
.detail-name { margin: 4px 0 0; font-family: var(--font-display); font-size: 23px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.detail-code { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.detail-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.detail-price { font-family: var(--font-display); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.detail-price small { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.detail-price.no { font-size: 18px; color: var(--ink-2); font-weight: 600; }
.stock { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stock-title { font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 10px 14px; }
.stock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; font-size: 14px; border-top: 1px solid var(--line); }
.stock-row.on { background: var(--grey-bg); font-weight: 600; }
.stock-row.on::after { content: none; }
.stock-here { font-size: 11px; color: var(--ink-3); margin-right: 6px; font-weight: 500; }
.detail-desc { margin-top: 16px; }
.desc-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.detail-desc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.detail-desc li { background: var(--surface); padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; overflow-wrap: anywhere; }
.sheet-actions {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--bg-2);
}
@media (min-width: 760px) { .sheet-actions { border-radius: 0 0 24px 24px; } }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; flex: none; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; font-size: 19px; color: var(--ink); display: grid; place-items: center; }
.stepper button:active { background: var(--surface-3); }
.stepper span { min-width: 26px; text-align: center; font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.btn {
  height: 50px; border-radius: 15px; padding: 0 18px; flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(154, 116, 40, .4); }
.btn-else { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(180, 83, 9, .22); }
.btn-off { background: var(--surface); color: var(--ink-3); cursor: default; }
.btn-off:active { transform: none; }
.btn-whatsapp { background: var(--wa); color: #06210f; width: 100%; margin-top: 4px; flex: none; }

/* cart sheet */
.cart-empty { text-align: center; color: var(--ink-2); padding: 48px 0; display: flex; flex-direction: column; gap: 4px; }
.cart-empty b { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.cart-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.ci-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ci-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.ci-price { font-family: var(--font-display); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ci-price.no { color: var(--ink-3); font-weight: 500; font-size: 12.5px; }
.ci-warn { font-size: 11.5px; color: var(--amber); font-weight: 600; }
.ci-remove { font-size: 12px; color: var(--ink-3); width: max-content; padding: 2px 0; text-decoration: underline; text-underline-offset: 3px; }
.cart-item .stepper { flex-direction: column-reverse; padding: 3px; }
.cart-item .stepper button { width: 32px; height: 30px; font-size: 17px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 14px 0 0; padding: 14px 4px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.cart-total b { font-family: var(--font-display); font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; text-align: left; }
.order-form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.form-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-top: 6px; }
.order-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.order-form input, .order-form select, .order-form textarea {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
  font-size: 16px; color: var(--ink); width: 100%; outline: 0; -webkit-appearance: none; appearance: none;
  transition: border-color 200ms ease;
}
.order-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23bdb6ca' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px;
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { border-color: rgba(154, 116, 40, .5); }
.order-form textarea { resize: vertical; min-height: 70px; }
.form-hint { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

/* reduced motion: keep opacity and colour, drop movement (Emil, accessibility) */
@media (prefers-reduced-motion: reduce) {
  .press:active, .card-hit:active { transform: none; }
  .sheet, .sheet[data-state="closed"] { transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .sheet[data-state="closed"] { transform: translateY(0); opacity: 0; }
  .cart-bar[data-state="hidden"] .cart-pill { transform: none; }
  .toast[data-state="hidden"] { transform: translate(-50%, 0); }
  .seg-thumb, .hero-dots i, .card-img img { transition: none; }
  @media (min-width: 760px) { .sheet[data-state="closed"] { transform: translate(-50%, -50%); } }
}

/* product names are mostly Latin: let each line resolve its own direction, keep it right aligned */
.card-name, .detail-name, .ci-name, .hero-title { unicode-bidi: plaintext; text-align: right; }

/* ---------- header buttons ---------- */
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
#themeToggle .i-sun { display: none; }
html[data-theme="dark"] #themeToggle .i-sun { display: block; }
html[data-theme="dark"] #themeToggle .i-moon { display: none; }
@media (max-width: 359px) { .logo { width: 62px; } .top-actions { gap: 4px; } }

/* ---------- dark mode: the same design, warm black under their gold. Product photos keep a white ground. ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0d09; --bg-2: #16130d; --surface: #1c1811; --surface-2: #231e15; --surface-3: #2e281c;
  --line: rgba(240, 228, 200, .11); --line-2: rgba(240, 228, 200, .22);
  --ink: #f4eedf; --ink-2: #c3baa6; --ink-3: #978f7c;
  --orange: #d9b45f; --pink: #d9b45f; --pink-text: #e0bf73;
  --grad: linear-gradient(135deg, #e4c478 0%, #d9b45f 55%, #bf9a48 100%);
  --green: #7fd69a; --green-bg: rgba(127, 214, 154, .13);
  --amber: #e8b866; --amber-bg: rgba(232, 184, 102, .13);
  --grey-bg: rgba(240, 228, 200, .07);
}
html[data-theme="dark"] .top { background: rgba(15, 13, 9, .88); }
html[data-theme="dark"] .chips-bar { background: rgba(15, 13, 9, .92); }
html[data-theme="dark"] .cart-count,
html[data-theme="dark"] .hero-cta,
html[data-theme="dark"] .chip.on,
html[data-theme="dark"] .cart-pill,
html[data-theme="dark"] .btn-primary { color: #17130b; }
html[data-theme="dark"] .toast { background: #f4eedf; color: #17130b; }
html[data-theme="dark"] .backdrop { background: rgba(0, 0, 0, .6); }
html[data-theme="dark"] .sheet { box-shadow: 0 -20px 60px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .hero-img,
html[data-theme="dark"] .detail-img,
html[data-theme="dark"] .cart-item img { background: #fff; }
html[data-theme="dark"] .search input::-webkit-search-cancel-button { filter: none; }
html[data-theme="dark"] .card-add.in:hover { background: rgba(127, 214, 154, .2); }

/* ---------- hold the space before the catalogue loads, so nothing jumps ---------- */
.hero { min-height: 300px; }
.hero-dots { min-height: 22px; }
.chips { min-height: 38px; }
.result-line { min-height: 28px; }
.grid:empty { min-height: 620px; }
@media (min-width: 700px) { .hero { min-height: 260px; } }

