/* HG Pharmacies storefront */
:root {
  --teal: #0796b0;
  --teal-600: #067f96;
  --teal-50: #e6f6f9;
  --pink: #d93f98;
  --pink-600: #bf2f83;
  --pink-50: #fdebf5;
  --violet: #6c4ce0;

  --bg: #f6f9fb;
  --surface: #ffffff;
  --surface-2: #f0f5f8;
  --text: #19152e;
  --muted: #5f6b7a;
  --border: #e2e8ee;
  --shadow: 0 6px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 48px rgba(16, 24, 40, .14);
  --header: rgba(255, 255, 255, .92);
  --promo-bg: linear-gradient(90deg, var(--teal), var(--pink));
  --hero: linear-gradient(120deg, #e8f8fb 0%, #fdeef7 100%);
  --ok: #138a4f;
  --danger: #d1354a;

  --nav-bg: #0a6f86;
  --nav-text: rgba(255, 255, 255, .86);
  --nav-active: #ffffff;
  --topbar-bg: linear-gradient(90deg, #0a7f97, #0796b0 45%, #d93f98);

  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1480px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --teal: #19b4cf;
  --teal-600: #12a0b9;
  --teal-50: #0f2a37;
  --pink: #ec5aae;
  --pink-600: #d9479b;
  --pink-50: #33142b;
  --violet: #7c5cf0;

  --bg: #0e0a1f;
  --surface: #16112b;
  --surface-2: #1d1738;
  --text: #ece9f8;
  --muted: #a39dbd;
  --border: #2b2450;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
  --header: rgba(14, 10, 31, .92);
  --hero: linear-gradient(120deg, #13203a 0%, #2a1236 100%);
  --ok: #3ccf86;
  --danger: #ff6b7d;
  --nav-bg: #1d1640;
  --nav-text: rgba(236, 233, 248, .78);
  --nav-active: #19b4cf;
  --topbar-bg: linear-gradient(90deg, #0b5466, #3a1d5c 55%, #8e2a68);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .25s, color .25s;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 60%, transparent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px); }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--teal); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- Promo bar ---------- */
.promo { background: var(--topbar-bg); color: #fff; font-size: 17px; font-weight: 700; }
.promo-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.promo-msg { flex: 1; text-align: center; }
.promo a { text-underline-offset: 4px; }
.promo a.hot { text-decoration: underline; white-space: nowrap; }
.promo .sep { opacity: .6; margin-inline: 12px; }
.promo-social { display: flex; gap: 8px; }
.promo-social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); transition: background .2s; }
.promo-social a:hover { background: rgba(255, 255, 255, .32); }
.promo-social svg { width: 19px; height: 19px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: var(--header); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-block: 12px; }
.header-row .search { order: 1; justify-self: start; width: 100%; }
.header-row .brand { order: 2; justify-self: center; }
.header-row .header-actions { order: 3; justify-self: end; }
.brand img { height: 80px; width: auto; }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .footer .f-logo, :root[data-theme="dark"] .drawer-head img { filter: brightness(1.3) saturate(1.15) drop-shadow(0 0 10px rgba(255, 255, 255, .08)); }
.account-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 12px; border-radius: 12px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.account-btn:hover { color: var(--teal); }
.search { position: relative; flex: 1; max-width: 520px; }
.search input {
  width: 100%; height: 46px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface-2);
  padding-inline: 46px 18px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.search input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 15%, transparent); background: var(--surface); }
.search-ic { position: absolute; inset-inline-start: 16px; top: 12px; color: var(--muted); pointer-events: none; }
.suggest {
  position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50;
}
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.active { background: var(--surface-2); }
.suggest .s-img { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; }
.suggest .s-name { font-weight: 600; font-size: 14px; line-height: 1.4; }
.suggest .s-price { color: var(--teal); font-weight: 700; font-size: 13px; }
.suggest .s-empty { padding: 14px; color: var(--muted); font-size: 14px; }
.suggest .s-all { justify-content: center; color: var(--pink); font-weight: 700; font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  display: inline-grid; place-items: center; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--teal); color: var(--teal); }
.pill-btn { height: 44px; padding-inline: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; }
.pill-btn:hover { border-color: var(--pink); color: var(--pink); }
:root[data-theme="dark"] .ic-moon, :root:not([data-theme="dark"]) .ic-sun { display: none; }
.badge {
  position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.badge.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }

.nav { background: var(--nav-bg); }
.nav-row { display: flex; justify-content: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav-row::-webkit-scrollbar { display: none; }
.nav a { padding: 14px 16px; font-weight: 700; font-size: 16px; white-space: nowrap; border-bottom: 3px solid transparent; color: var(--nav-text); transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--nav-active); }
.nav a.active { color: var(--nav-active); border-bottom-color: var(--pink); }

.only-mobile { display: none; }

/* ---------- Drawer ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 60; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 340px); background: var(--surface); z-index: 61;
  transform: translateX(110%); transition: transform .28s ease; overflow-y: auto; padding: 16px; box-shadow: var(--shadow-lg);
}
html[dir="rtl"] .drawer { transform: translateX(110%); }
html[dir="ltr"] .drawer { transform: translateX(-110%); }
.drawer.open { transform: translateX(0) !important; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-head img { height: 48px; }
.drawer a.d-link { display: block; padding: 12px 6px; border-bottom: 1px solid var(--border); font-weight: 600; }
.drawer h4 { margin: 18px 0 6px; color: var(--muted); font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding-inline: 22px; border-radius: 12px;
  border: 0; font-weight: 700; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--teal) 35%, transparent); }
.btn-primary:hover { background: var(--teal-600); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--pink) 35%, transparent); }
.btn-pink:hover { background: var(--pink-600); }
.btn-ghost { background: var(--surface); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding-inline: 14px; font-size: 14px; border-radius: 10px; }

/* ---------- Layout ---------- */
main { min-height: 60vh; outline: none; }
.section { padding-block: 32px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); }
.section-head h2 .accent { color: var(--pink); }
.section-head a { color: var(--teal); font-weight: 700; font-size: 15px; }
.page-title { font-size: clamp(22px, 3vw, 30px); margin: 0 0 6px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 18px 0 8px; }
.crumbs a:hover { color: var(--teal); }

/* ---------- Hero ---------- */
/* full-width slider */
.hero { position: relative; overflow: hidden; height: clamp(380px, 38vw, 560px); background: var(--surface-2); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide.s1 { background: linear-gradient(135deg, #075a6d, #0796b0); }
.slide.s2 { background: linear-gradient(135deg, #7a2159, #d93f98); }
.slide img { position: absolute; inset-block: 0; inset-inline-end: 0; width: 62%; height: 100%; object-fit: cover; }
html[dir="rtl"] .slide img { -webkit-mask-image: linear-gradient(to right, #000 72%, transparent); mask-image: linear-gradient(to right, #000 72%, transparent); }
html[dir="ltr"] .slide img { -webkit-mask-image: linear-gradient(to left, #000 72%, transparent); mask-image: linear-gradient(to left, #000 72%, transparent); }
.slide-txt { position: absolute; inset-block: 0; inset-inline-start: 0; z-index: 2; width: min(46%, 680px); display: flex; flex-direction: column; justify-content: center; padding-inline: clamp(20px, 6vw, 96px); color: #fff; }
.slide-txt .kicker { display: inline-block; align-self: flex-start; background: var(--pink); color: #fff; font-weight: 800; font-size: 14px; padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; }
.slide-txt h1, .slide-txt h2 { font-size: clamp(30px, 4.4vw, 58px); line-height: 1.15; margin: 0 0 14px; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.slide-txt h1 .t, .slide-txt h2 .t { color: #5fe0f5; }
.slide-txt h1 .p, .slide-txt h2 .p { color: #ff8fcf; }
.slide-txt ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: clamp(15px, 1.5vw, 19px); font-weight: 600; }
.slide-txt li { display: flex; align-items: center; gap: 10px; }
.slide-txt li svg { width: 22px; height: 22px; color: #5fe0f5; flex: none; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-nav { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-nav button { width: 12px; height: 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .55); padding: 0; transition: width .3s, background .3s; }
.hero-nav button.on { width: 34px; background: #fff; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: #19152e; display: grid; place-items: center; }
.hero-arrow.prev { inset-inline-start: 14px; }
.hero-arrow.next { inset-inline-end: 14px; }
html[dir="rtl"] .hero-arrow svg { transform: scaleX(-1); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; gap: 12px; align-items: center; }
.feature .f-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.feature:nth-child(odd) .f-ic { background: var(--teal-50); color: var(--teal); }
.feature:nth-child(even) .f-ic { background: var(--pink-50); color: var(--pink); }
.feature b { display: block; font-size: 15px; }
.feature span { font-size: 13px; color: var(--muted); }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 12px; text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
.cat-tile .c-ic { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; }
.cat-tile .c-ic svg { width: 28px; height: 28px; }
.cat-tile[data-group="pharmacy"] .c-ic { background: var(--teal-50); color: var(--teal); }
.cat-tile[data-group="beauty"] .c-ic { background: var(--pink-50); color: var(--pink); }
.cat-tile b { font-size: 15px; display: block; }
.cat-tile small { color: var(--muted); }

.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.brand-tile {
  height: 78px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 800; font-size: 17px; letter-spacing: .3px; transition: border-color .2s, transform .2s;
}
.brand-tile:hover { border-color: var(--pink); transform: translateY(-2px); }

.banner2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promo-card { border-radius: 20px; padding: 26px; color: #fff; position: relative; overflow: hidden; min-height: 170px; display: flex; flex-direction: column; justify-content: center; }
.promo-card h3 { margin: 0 0 6px; font-size: 22px; }
.promo-card p { margin: 0 0 14px; opacity: .92; }
.promo-card .btn { background: #fff; color: #19152e; align-self: flex-start; }
.promo-card.t { background: linear-gradient(135deg, #0796b0, #0a6f8f); }
.promo-card.p { background: linear-gradient(135deg, #d93f98, #9b3fc4); }
.promo-card::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); inset-inline-end: -60px; bottom: -80px; }

/* ---------- Product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 230px); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s; position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--teal) 40%, var(--border)); }
.card .thumb { aspect-ratio: 1; background: var(--surface-2); display: block; position: relative; }
.card .thumb img, .card .thumb svg.pimg { width: 100%; height: 100%; object-fit: contain; }
.tag { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; z-index: 1; }
.tag.feat { background: var(--teal); inset-inline-start: auto; inset-inline-end: 10px; }
.card .body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .brand-name { font-size: 12px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .3px; }
.card .name { font-weight: 600; font-size: 14.5px; line-height: 1.45; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price { font-weight: 800; color: var(--text); font-size: 17px; }
.old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.card .actions { padding: 0 12px 12px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; height: 40px; }
.qty button { width: 38px; height: 100%; border: 0; background: var(--surface-2); font-size: 18px; font-weight: 700; }
.qty button:hover { color: var(--teal); }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; height: 100%; -moz-appearance: textfield; font-weight: 700; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- Shop ---------- */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: sticky; top: 140px; }
.filters h3 { margin: 0 0 10px; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.filters h3 button { background: none; border: 0; color: var(--pink); font-size: 13px; font-weight: 700; }
.f-group { border-top: 1px solid var(--border); padding-block: 12px; }
.f-group h4 { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.check .cnt { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.price-inputs { display: flex; gap: 8px; }
.price-inputs input, .field input, .field select, .field textarea, .toolbar select {
  width: 100%; height: 42px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface-2); padding-inline: 12px; outline: none;
}
.price-inputs input:focus, .field input:focus, .field select:focus, .field textarea:focus, .toolbar select:focus { border-color: var(--teal); background: var(--surface); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.toolbar select { width: auto; min-width: 190px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--teal-50); color: var(--teal); border: 0; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.filter-toggle { display: none; }
.empty { text-align: center; padding: 50px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty svg { width: 54px; height: 54px; color: var(--pink); margin: 0 auto 10px; display: block; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(16px, 3vw, 32px); }
.pdp .gallery { background: var(--surface-2); border-radius: 16px; aspect-ratio: 1; overflow: hidden; position: relative; }
.pdp .gallery img, .pdp .gallery svg.pimg { width: 100%; height: 100%; object-fit: contain; }
.pdp h1 { font-size: clamp(22px, 2.8vw, 30px); margin: 4px 0 10px; line-height: 1.35; }
.pdp .price { font-size: 28px; color: var(--teal); }
.pdp .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.pdp .meta span { background: var(--surface-2); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.pdp .buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.pdp .buy .qty { height: 46px; }
.pdp .desc { color: var(--muted); }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--teal-50); color: var(--text); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.notice svg { color: var(--teal); flex: none; margin-top: 2px; }
.notice.pink { background: var(--pink-50); }
.notice.pink svg { color: var(--pink); }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.panel h3 { margin: 0 0 14px; font-size: 18px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--border); }
.line:last-child { border-bottom: 0; }
.line .l-img { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.line .l-name { font-weight: 600; line-height: 1.4; }
.line .l-unit { color: var(--muted); font-size: 13px; }
.line .l-side { display: flex; flex-direction: column; align-items: end; gap: 8px; }
.line .l-total { font-weight: 800; }
.remove { background: none; border: 0; color: var(--danger); font-size: 13px; font-weight: 700; padding: 0; }
.sum-row { display: flex; justify-content: space-between; padding-block: 6px; }
.sum-row.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font-size: 19px; font-weight: 800; }
.ship-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.ship-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--pink)); border-radius: inherit; transition: width .4s; }
.ship-msg { font-size: 13.5px; color: var(--muted); }
.ship-msg b { color: var(--pink); }
.ship-msg.ok { color: var(--ok); font-weight: 700; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; }
.field label .req { color: var(--pink); }
.field textarea { height: auto; min-height: 84px; padding-block: 10px; resize: vertical; }
.field .err { color: var(--danger); font-size: 13px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.pay-opt input { accent-color: var(--teal); width: 18px; height: 18px; }
.pay-opt:has(input:checked) { border-color: var(--teal); background: var(--teal-50); }
.pay-opt.disabled { opacity: .55; cursor: not-allowed; }
.pay-opt small { display: block; color: var(--muted); font-size: 12.5px; }
.soon { margin-inline-start: auto; background: var(--pink-50); color: var(--pink); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

.card-form { position: relative; }
.card-visual { aspect-ratio: 1.586; max-width: 380px; border-radius: 18px; padding: 22px; color: #fff; background: linear-gradient(135deg, var(--teal), var(--violet) 60%, var(--pink)); display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-lg); margin-bottom: 18px; }
.card-visual .chip-ic { width: 44px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #f6d77b, #c99a2e); }
.card-visual .num { font-size: 20px; letter-spacing: 2px; direction: ltr; text-align: left; }
.card-visual .row { display: flex; justify-content: space-between; font-size: 13px; opacity: .9; direction: ltr; }
.locked { pointer-events: none; opacity: .55; filter: grayscale(.3); }

.success { text-align: center; max-width: 620px; margin: 30px auto; }
.success .tick { width: 84px; height: 84px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.success .tick svg { width: 44px; height: 44px; }
.order-id { display: inline-block; background: var(--surface-2); border-radius: 10px; padding: 6px 14px; font-weight: 800; letter-spacing: 1px; direction: ltr; }

/* ---------- Branches ---------- */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.branch { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.branch h3 { margin: 0; font-size: 17px; display: flex; gap: 10px; align-items: flex-start; }
.branch h3 svg { color: var(--pink); flex: none; margin-top: 3px; }
.branch .b-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.branch .ltr { direction: ltr; unicode-bidi: embed; }
.hotline-box { background: var(--promo-bg); color: #fff; border-radius: 20px; padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hotline-box b { font-size: 28px; direction: ltr; display: inline-block; }
.hotline-box .btn { background: #fff; color: #19152e; }

/* ---------- Footer ---------- */
.footer { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--border); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 24px; padding-block: 36px; }
.footer h4 { margin: 0 0 12px; font-size: 16px; }
.footer p, .footer li { color: var(--muted); font-size: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--teal); }
.footer .f-logo { height: 64px; width: auto; margin-bottom: 10px; }
.social { display: flex; gap: 8px; margin-top: 12px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
.social a:hover { background: var(--teal); color: #fff; }
.social svg { width: 20px; height: 20px; }
.foot-bottom { border-top: 1px solid var(--border); padding-block: 14px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.ltr-num { direction: ltr; unicode-bidi: embed; }

/* ---------- Floating & toast ---------- */
.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(31, 168, 85, .4); z-index: 30; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; stroke: none; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 70; transition: transform .3s; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); display: flex; gap: 12px; align-items: center; }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--teal); text-decoration: underline; white-space: nowrap; }

/* product photos are packshots on white */
.card .thumb img, .pdp .gallery img, .line .l-img img, .suggest .s-img img { background: #fff; width: 100%; height: 100%; object-fit: contain; }
.card .thumb img { padding: 10px; }
:root[data-theme="dark"] .card .thumb img, :root[data-theme="dark"] .pdp .gallery img { border-radius: 10px; }

/* ---------- Product placeholder art ---------- */
svg.pimg { stroke: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .account-btn span { display: none; }
  .account-btn { width: 44px; padding: 0; justify-content: center; border: 1px solid var(--border); background: var(--surface); }
}
@media (max-width: 820px) {
  .only-mobile { display: inline-grid; }
  .nav { display: none; }
  .promo { font-size: 15px; }
  .promo-row { min-height: 48px; gap: 10px; }
  .promo-msg .opt, .promo-msg .sep { display: none; }
  .header-row { grid-template-columns: auto 1fr auto; gap: 10px; padding-block: 8px; }
  .header-row #menuBtn { order: 0; }
  .header-row .brand { order: 1; }
  .header-row .header-actions { order: 2; }
  .header-row .search { order: 3; grid-column: 1 / -1; max-width: none; }
  .brand img { height: 56px; }
  .hero { height: 560px; }
  .slide img { inset-inline: 0; width: 100%; height: 50%; }
  html[dir] .slide img { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
  .slide-txt { inset-block-start: auto; height: 54%; width: 100%; justify-content: flex-start; padding-block: 8px 44px; }
  .slide-txt ul { display: none; }
  .hero-arrow { display: none; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; top: auto; max-height: 85vh; overflow-y: auto; z-index: 62; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .28s; }
  .filters.open { transform: translateY(0); }
  .filter-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; }
  .banner2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .promo .opt { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rail { grid-auto-columns: 46%; }
  .card .name { font-size: 13.5px; }
  .price { font-size: 15.5px; }
  .foot-grid { grid-template-columns: 1fr; }
  .line { grid-template-columns: 60px 1fr; }
  .line .l-img { width: 60px; height: 60px; }
  .line .l-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .account-btn { display: none; }
  .promo-msg { display: none; }
  .promo-social a { width: 32px; height: 32px; }
  .icon-btn, .pill-btn { height: 40px; }
  .icon-btn { width: 40px; }
  .header-actions { gap: 6px; }
  .toolbar select { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
