/* ==========================================================================
   Souq theme — ivory / burgundy / gold, ported from the Lovable design and
   extended with Crate & Barrel-style interaction (header, mega menu, drawer,
   hover effects, reveals). Arabic, right-to-left only.

   To make a theme for another business, change the tokens in :root below
   (colours, font, radius). Nothing else needs to change.
   ========================================================================== */

@font-face { font-family: "Tajawal"; font-weight: 400; font-display: swap; src: url("../fonts/tajawal-arabic-400-normal.d595af28c13f.woff2") format("woff2"); }
@font-face { font-family: "Tajawal"; font-weight: 500; font-display: swap; src: url("../fonts/tajawal-arabic-500-normal.899cfbe65444.woff2") format("woff2"); }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url("../fonts/tajawal-arabic-700-normal.10367de774c9.woff2") format("woff2"); }
@font-face { font-family: "Tajawal"; font-weight: 800; font-display: swap; src: url("../fonts/tajawal-arabic-800-normal.93993923a466.woff2") format("woff2"); }

:root {
  /* colour tokens */
  --background: #fdfaf3;
  --foreground: #2e181a;
  --card: #fffffd;
  --primary: #862239;
  --primary-dark: #6d1b2e;
  --primary-foreground: #fdfaf3;
  --primary-soft: #fee4e5;
  --secondary: #f9eee5;
  --muted: #f5efe7;
  --muted-foreground: #7c6565;
  --gold: #dbb46d;
  --gold-foreground: #43260a;
  --success: #3b8d5d;
  --destructive: #cc2827;
  --border: #e6dcd5;
  --overlay: rgba(46, 24, 26, 0.45);

  /* shape and depth */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 1px 2px rgba(134, 34, 57, 0.06);
  --shadow-card: 0 10px 28px -12px rgba(134, 34, 57, 0.25);

  /* type */
  --font-sans: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  /* layout */
  --container: 1180px;
  --header-h: 120px;
  --bottom-nav-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(134, 34, 57, 0.45); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* cross-document page transition where the browser supports it */
@view-transition { navigation: auto; }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: background-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 6px 16px -8px rgba(134, 34, 57, 0.6); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--foreground); transition: background-color .2s; }
.icon-btn:hover { background: var(--secondary); }
.badge-count { position: absolute; top: 3px; inset-inline-end: 3px; min-width: 20px; height: 20px; padding-inline: 5px; display: grid; place-items: center; border-radius: 10px; background: var(--primary); color: var(--primary-foreground); font-size: 11px; font-weight: 800; line-height: 1; }
.badge-count[hidden] { display: none; }
.badge-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---- announcement + header ------------------------------------------------ */
.announcement { background: var(--primary); color: var(--primary-foreground); font-size: 13px; text-align: center; padding: 7px 16px; min-height: 34px; box-sizing: border-box; overflow: hidden; transition: margin-top .3s var(--ease), opacity .3s; }
.announcement p { font-weight: 500; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(253, 250, 243, 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -14px rgba(46, 24, 26, 0.5); }
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding-block: 12px; transition: padding .25s var(--ease); }

.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 16px; background: var(--primary); color: var(--primary-foreground); font-size: 20px; font-weight: 800; transition: width .25s, height .25s; }
.logo-text { min-width: 0; line-height: 1.25; }
.logo-name { display: block; color: var(--primary); font-size: 20px; font-weight: 800; }
.logo-tag { display: block; color: var(--muted-foreground); font-size: 11px; transition: opacity .2s, max-height .25s; max-height: 20px; overflow: hidden; }

.header-actions { display: flex; align-items: center; gap: 2px; }
.main-nav { display: none; }

.search { position: relative; grid-column: 1 / -1; }
.search-field { position: relative; }
.search-field .icon { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.search input[type="search"] { width: 100%; height: 46px; padding-inline: 44px 40px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.search input[type="search"]::placeholder { color: var(--muted-foreground); }
.search input[type="search"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(134, 34, 57, 0.15); }
.search-clear { position: absolute; top: 50%; inset-inline-end: 8px; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted-foreground); }
.search-clear:hover { background: var(--secondary); }
.suggest { position: absolute; z-index: 60; inset-inline: 0; top: calc(100% + 8px); overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; transition: background-color .15s; }
.suggest a:hover, .suggest a.is-active { background: var(--secondary); }
.suggest img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--muted); }
.suggest .s-name { display: block; font-size: 14px; font-weight: 700; }
.suggest .s-meta { display: block; font-size: 12px; color: var(--muted-foreground); }
.suggest-empty { padding: 16px; font-size: 14px; color: var(--muted-foreground); }

@media (min-width: 900px) {
  .header-inner { grid-template-columns: auto auto minmax(220px, 1fr) auto; gap: 24px; padding-block: 14px; }
  .search { grid-column: auto; order: 3; }
  .header-actions { order: 4; }
  .main-nav { display: flex; align-items: center; gap: 4px; order: 2; }
  .main-nav > a, .nav-trigger { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding-inline: 14px; border-radius: 12px; font-weight: 700; font-size: 15px; background: none; border: 0; transition: background-color .2s, color .2s; }
  .main-nav > a:hover, .nav-trigger:hover, .nav-item:focus-within > .nav-trigger { background: var(--secondary); color: var(--primary); }
  .main-nav .is-current { color: var(--primary); }
}

/* mega menu (desktop only) */
.nav-item { position: relative; }
.mega { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 50; width: min(720px, 90vw); display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: block; text-align: center; font-size: 14px; font-weight: 700; }
.mega .media { aspect-ratio: 1; border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.mega img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mega a:hover img { transform: scale(1.08); }
.mega a:hover span { color: var(--primary); }

/* ---- shared pieces ------------------------------------------------------- */
.media { position: relative; overflow: hidden; background: var(--muted); }
.js .media:not(.is-ready) { background: linear-gradient(90deg, var(--muted) 25%, #fbf6ee 50%, var(--muted) 75%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.js .media img { opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.js .media img.is-loaded { opacity: 1; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.section { padding-block: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; font-weight: 800; }
.section-link { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 14px; font-weight: 700; }
.section-link:hover .icon { transform: translateX(-3px); }
.section-link .icon { transition: transform .2s var(--ease); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.7; }
.badge-danger { background: var(--destructive); color: #fff; }
.badge-neutral { background: rgba(255, 255, 253, 0.92); color: var(--muted-foreground); border: 1px solid var(--border); }
.badge-gold { background: var(--gold); color: var(--gold-foreground); }

/* ---- hero ---------------------------------------------------------------- */
.hero { position: relative; margin-top: 16px; min-height: 300px; display: flex; align-items: center; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: var(--secondary); isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: left center; animation: slow-zoom 22s ease-in-out infinite alternate; }
@keyframes slow-zoom { to { transform: scale(1.07); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(253, 250, 243, 0.94) 0%, rgba(253, 250, 243, 0.8) 38%, rgba(253, 250, 243, 0) 72%); }
.hero-copy { max-width: 440px; padding: 28px 22px; }
.hero h1 { margin-top: 12px; font-size: 28px; font-weight: 800; line-height: 1.45; }
.hero p { margin-top: 8px; color: var(--muted-foreground); font-size: 15px; }
.hero .btn { margin-top: 18px; }
@media (min-width: 900px) {
  .hero { min-height: 440px; }
  .hero-copy { padding: 48px 56px; max-width: 560px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 18px; }
}

/* ---- category tiles ------------------------------------------------------ */
/* category cards: photo with the name, a short line and a button over it; always 3 per row (6 categories = 2 rows of 3) */
.cat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cat-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 16px; background: var(--secondary); box-shadow: var(--shadow-soft); isolation: isolate; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.cat-tile:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); z-index: -2; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile .bf-category-letter { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 800; color: var(--primary); z-index: -2; }
.cat-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(58, 35, 38, .74) 0%, rgba(58, 35, 38, .4) 34%, rgba(58, 35, 38, 0) 62%); }
.cat-body { position: absolute; inset-inline: 0; bottom: 0; display: grid; gap: 4px; padding: 12px 10px; color: #fff; }
.cat-name { font-size: 14px; font-weight: 800; line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.cat-tagline, .cat-cta { display: none; }
@media (min-width: 640px) {
  .cat-strip { gap: 18px; }
  .cat-tile { aspect-ratio: 6 / 5; border-radius: 20px; }
  .cat-body { gap: 6px; padding: 20px 22px; }
  .cat-name { font-size: 22px; }
  .cat-tagline { display: block; font-size: 14px; opacity: .92; }
  .cat-cta { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 6px; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 12px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 14px; font-weight: 700; transition: background-color .2s, color .2s; }
  .cat-cta .icon { width: 16px; height: 16px; }
  .cat-tile:hover .cat-cta { background: #fff; color: var(--primary); }
}

/* ---- product grid + card ------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-soft); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.card:hover, .card:focus-within { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.card .media { aspect-ratio: 1; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .media img { transform: scale(1.06); }
.card-flags { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; z-index: 2; }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 12px; flex: 1; }
.card-brand { font-size: 12px; color: var(--muted-foreground); }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; padding-top: 6px; }
.price { color: var(--primary); font-weight: 800; font-size: 15px; }
.price-old { color: var(--muted-foreground); font-size: 12px; text-decoration: line-through; }

.quick-add { position: absolute; z-index: 3; inset-inline-end: 10px; bottom: 10px; }
.quick-add button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); box-shadow: 0 8px 18px -8px rgba(134, 34, 57, 0.8); transition: transform .2s var(--ease), background-color .2s; }
.quick-add button:hover { background: var(--primary-dark); transform: scale(1.08); }
.quick-add button.is-loading { pointer-events: none; opacity: .7; }
.quick-add .label { display: none; }
@media (hover: hover) and (min-width: 900px) {
  .quick-add { inset-inline: 10px; }
  .quick-add button { width: 100%; height: 42px; border-radius: 12px; gap: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; opacity: 0; transform: translateY(10px); }
  .card:hover .quick-add button, .quick-add button:focus-visible { opacity: 1; transform: none; }
  .quick-add .label { display: inline; }
}

/* ---- catalog toolbar ------------------------------------------------------ */
.page-title { padding-top: 22px; }
.page-title h1 { font-size: 26px; font-weight: 800; }
.page-title p { margin-top: 4px; color: var(--muted-foreground); font-size: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; height: 40px; padding-inline: 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 700; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 14px; color: var(--muted-foreground); }
.toolbar select { height: 40px; padding-inline: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-size: 14px; }
.empty { padding: 56px 16px; text-align: center; color: var(--muted-foreground); }
.empty h2 { color: var(--foreground); font-size: 20px; margin-bottom: 6px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; }
.pager a, .pager span.disabled { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding-inline: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-weight: 700; }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager span.disabled { opacity: .45; }

/* ---- product page -------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 16px 8px; font-size: 13px; color: var(--muted-foreground); }
.crumbs a:hover { color: var(--primary); }
.pdp { display: grid; gap: 20px; padding-bottom: 24px; }
.pdp-gallery { position: relative; aspect-ratio: 1; border-radius: 22px; border: 1px solid var(--border); overflow: hidden; }
.pdp-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease); }
.pdp-gallery.is-zooming img { transform: scale(1.9); transition: transform .15s; }
.pdp-brand { color: var(--muted-foreground); font-size: 14px; }
.pdp h1 { margin-top: 2px; font-size: 24px; font-weight: 800; line-height: 1.5; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.pdp-price .price { font-size: 28px; }
.pdp-price .price-old { font-size: 15px; }
.stock { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 700; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--success); }
.stock-out { color: var(--muted-foreground); }
.pdp-desc { margin-top: 14px; color: #5a4547; }
.buy-row { display: flex; gap: 10px; margin-top: 18px; }
.buy-row .btn { flex: 1; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.stepper button { width: 44px; height: 46px; border: 0; background: none; border-radius: 14px; font-size: 20px; color: var(--primary); }
.stepper button:hover { background: var(--secondary); }
.stepper input { width: 40px; height: 46px; border: 0; background: none; text-align: center; font-weight: 800; font-size: 16px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.assurances { display: grid; gap: 8px; margin-top: 18px; }
.assurances li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--secondary); font-size: 14px; }
.assurances .icon { color: var(--primary); }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding-top: 8px; }
  .pdp-gallery { cursor: zoom-in; position: sticky; top: 140px; align-self: start; }
  .pdp h1 { font-size: 32px; }
}

@media (max-width: 899px) { .pdp { padding-bottom: 84px; } }
.sticky-buy { position: fixed; z-index: 35; inset-inline: 0; bottom: var(--bottom-nav-h); display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(253, 250, 243, 0.97); border-top: 1px solid var(--border); transform: translateY(120%); transition: transform .3s var(--ease); }
.sticky-buy.is-visible { transform: none; }
.sticky-buy .price { font-size: 17px; white-space: nowrap; }
.sticky-buy .btn { flex: 1; min-height: 44px; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---- cart drawer + cart page ---------------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 70; background: var(--overlay); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; z-index: 80; top: 0; bottom: 0; inset-inline-start: 0; width: min(420px, 92vw); display: flex; flex-direction: column; background: var(--background); box-shadow: 0 0 40px rgba(46, 24, 26, 0.3); transform: translateX(-105%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 18px; font-weight: 800; }
.drawer-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cart-lines { flex: 1; overflow-y: auto; padding: 8px 18px; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.line .media { width: 72px; height: 72px; border-radius: 12px; }
.line img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-size: 14px; font-weight: 700; line-height: 1.5; }
.line-brand { font-size: 12px; color: var(--muted-foreground); }
.line-note { margin-top: 2px; font-size: 12px; color: var(--destructive); }
.line-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.line .stepper button { width: 34px; height: 36px; font-size: 18px; }
.line .stepper input { width: 32px; height: 36px; font-size: 14px; }
.line-price { font-weight: 800; color: var(--primary); font-size: 15px; }
.line-remove { border: 0; background: none; padding: 0; color: var(--muted-foreground); font-size: 12px; text-decoration: underline; }
.line-remove:hover { color: var(--destructive); }
.cart-foot { padding: 16px 18px 20px; border-top: 1px solid var(--border); background: var(--card); }
.total-row { display: flex; align-items: baseline; justify-content: space-between; font-weight: 800; }
.total-row strong { color: var(--primary); font-size: 20px; }
.cart-note { margin: 4px 0 14px; font-size: 12px; color: var(--muted-foreground); }
.cart-foot .btn + .btn { margin-top: 8px; }
.cart-empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 20px; text-align: center; color: var(--muted-foreground); }
.cart-empty .icon { width: 44px; height: 44px; color: var(--primary); }
.cart-page { display: grid; gap: 20px; padding-block: 8px 28px; }
.cart-page .cart-lines { overflow: visible; padding: 0 16px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); }
.cart-page .cart-foot { border: 1px solid var(--border); border-radius: 20px; }
@media (min-width: 900px) { .cart-page { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } .cart-page .cart-foot { position: sticky; top: 140px; } }
.btn.is-disabled { background: var(--muted); color: var(--muted-foreground); box-shadow: none; pointer-events: none; }

/* ---- footer + bottom nav + toasts ---------------------------------------- */
.site-footer { margin-top: 24px; padding: 32px 0 24px; background: var(--secondary); border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 20px; }
.footer-brand { font-size: 22px; font-weight: 800; color: var(--primary); }
.site-footer p, .site-footer li { font-size: 14px; color: var(--muted-foreground); }
.site-footer h3 { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.site-footer li a:hover { color: var(--primary); }
.footer-small { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-foreground); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 32px; } }

.bottom-nav { position: sticky; bottom: 0; z-index: 40; background: rgba(253, 250, 243, 0.97); border-top: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bottom-nav ul { display: flex; max-width: 640px; margin-inline: auto; }
.bottom-nav li { flex: 1; }
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--bottom-nav-h); font-size: 11px; font-weight: 700; color: var(--muted-foreground); transition: color .2s; }
.bottom-nav a.is-current { color: var(--primary); }
.bottom-nav .badge-count { top: 7px; inset-inline-end: calc(50% - 22px); }
@media (min-width: 900px) { .bottom-nav { display: none; } }

.toasts { position: fixed; z-index: 90; inset-inline: 0; bottom: calc(var(--bottom-nav-h) + 14px); display: grid; justify-items: center; gap: 8px; padding-inline: 16px; pointer-events: none; }
.toast { max-width: 420px; padding: 12px 18px; border-radius: 14px; background: var(--foreground); color: var(--background); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-card); animation: toast-in .3s var(--ease); }
.toast.is-warning { background: var(--destructive); color: #fff; }
.toast.is-out { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 900px) { .toasts { bottom: 24px; } }

/* ---- motion preferences -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ---- forms, auth, checkout, confirmation, account --------------------------- */
.narrow { max-width: 480px; }
.narrow-lg { max-width: 820px; }
.muted { color: var(--muted-foreground); font-size: 14px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dot-online { position: absolute; top: 9px; inset-inline-end: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--success); border: 2px solid var(--background); }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .optional { font-weight: 400; color: var(--muted-foreground); }
.input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--foreground); font: inherit; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input-ltr { text-align: left; }
.input-code { text-align: center; font-size: 24px; letter-spacing: .4em; font-weight: 800; }
textarea.input { resize: vertical; }
.field .hint { margin-top: 5px; font-size: 13px; color: var(--muted-foreground); }
.field .error { margin-top: 5px; font-size: 13px; color: var(--destructive); font-weight: 600; }
.field.has-error .input { border-color: var(--destructive); }
.field-row { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.alert-danger { background: #fdeaea; color: #8f1d1c; border: 1px solid #f3c4c3; }
.dev-note { background: var(--secondary); border: 1px dashed var(--gold); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }

.auth-card, .form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.auth-card { margin: 28px auto; text-align: center; }
.auth-card form { text-align: start; }
.auth-card h1 { font-size: 24px; font-weight: 800; margin: 8px 0 6px; }
.auth-card .lead { color: var(--muted-foreground); margin-bottom: 18px; font-size: 15px; }
.auth-icon { width: 56px; height: 56px; margin-inline: auto; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.auth-icon .icon { width: 26px; height: 26px; }
.auth-note { margin-top: 16px; font-size: 13px; color: var(--muted-foreground); }
.auth-note a, .login-hint a { color: var(--primary); font-weight: 700; }
.resend { margin-top: 12px; text-align: center !important; }
.link-btn { background: none; border: 0; padding: 4px 6px; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.link-btn:disabled { color: var(--muted-foreground); cursor: default; }
.link-btn .icon { width: 16px; height: 16px; }

.form-card h2 { font-size: 17px; font-weight: 800; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.step-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); font-size: 13px; }

.checkout { display: grid; gap: 20px; padding-block: 18px 40px; }
.checkout-fields { display: grid; gap: 16px; align-content: start; }
.login-hint { display: flex; gap: 8px; align-items: center; font-size: 14px; background: var(--secondary); padding: 10px 14px; border-radius: var(--radius-sm); }
.login-hint .icon { width: 18px; height: 18px; color: var(--primary); }
.pay-option { display: flex; gap: 12px; align-items: center; padding: 14px; border: 2px solid var(--primary); border-radius: var(--radius-sm); background: var(--primary-soft); }
.pay-option .icon { width: 28px; height: 28px; color: var(--primary); flex: none; }
.pay-option p { font-size: 13px; color: var(--muted-foreground); }
.checkout-summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card); align-self: start; }
.checkout-summary h2 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
@media (min-width: 900px) {
  .checkout { grid-template-columns: minmax(0, 1fr) 380px; }
  .checkout-summary { position: sticky; top: calc(var(--header-h) + 12px); }
}
.mini-lines { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.mini-lines li { display: flex; gap: 10px; align-items: center; }
.mini-lines img { border-radius: 8px; object-fit: cover; flex: none; }
.mini-name { flex: 1; font-size: 14px; font-weight: 600; }
.mini-name small { display: block; color: var(--muted-foreground); font-weight: 400; }
.mini-price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.totals { margin: 0 0 16px; border-top: 1px solid var(--border); padding-top: 10px; }
.totals div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.totals dd { margin: 0; font-weight: 700; }
.totals .saving { color: var(--success); }
.totals .grand { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-size: 16px; font-weight: 800; color: var(--primary); }
.checkout-summary .cart-note { display: flex; gap: 6px; align-items: center; margin-top: 12px; }
.checkout-summary .cart-note .icon { width: 16px; height: 16px; flex: none; }
.btn:disabled { opacity: .6; cursor: default; }

.confirm-hero { text-align: center; padding: 30px 0 10px; }
.confirm-hero h1 { font-size: 26px; font-weight: 800; margin: 10px 0 6px; }
.confirm-hero .lead { color: var(--muted-foreground); }
.success-mark { width: 68px; height: 68px; margin-inline: auto; display: grid; place-items: center; border-radius: 50%; background: var(--success); color: #fff; animation: pop .5s var(--ease); }
.success-mark .icon { width: 36px; height: 36px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.order-no { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 14px; padding: 10px 16px; background: var(--card); border: 1px dashed var(--gold); border-radius: var(--radius-sm); }
.order-no strong { font-size: 18px; letter-spacing: .04em; }
.timeline { list-style: none; display: flex; padding: 22px 0; margin: 0; gap: 4px; }
.timeline li { flex: 1; text-align: center; font-size: 12px; color: var(--muted-foreground); position: relative; }
.timeline .dot { display: block; width: 14px; height: 14px; margin: 0 auto 6px; border-radius: 50%; background: var(--border); }
.timeline .step-done .dot { background: var(--success); }
.timeline .step-current .dot { background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.timeline .step-current { color: var(--foreground); font-weight: 700; }
.confirm-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .confirm-grid { grid-template-columns: 1.2fr 1fr; } }
.confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 24px 0 40px; }

.account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0 14px; flex-wrap: wrap; }
.account-head h1 { font-size: 24px; font-weight: 800; }
.account-grid { display: grid; gap: 20px; padding-bottom: 40px; align-items: start; }
@media (min-width: 900px) { .account-grid { grid-template-columns: 320px minmax(0, 1fr); } }
.section-title { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.order-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: box-shadow .2s, transform .2s var(--ease); }
.order-row:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.order-row-main { display: grid; gap: 2px; }
.order-row-total { font-weight: 800; color: var(--primary); }
.status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--muted); color: var(--muted-foreground); }
.status-awaiting_phone { background: #fff3d6; color: #7a5200; }
.status-confirmed, .status-preparing, .status-with_courier { background: #e1eefc; color: #1d4f8f; }
.status-delivered { background: #dff3e6; color: #1f6a3d; }
.status-cancelled, .status-returned, .status-delivery_failed { background: #fdeaea; color: #8f1d1c; }
.pager { display: flex; justify-content: center; gap: 16px; margin-top: 16px; font-size: 14px; }
.pager .disabled { color: var(--muted-foreground); }

/* ---- product images: transparent PNG/WebP cut-outs sit inside the card ---- */
:root { --media-bg: var(--secondary); --media-pad: 8%; --shadow-tint: 134, 34, 57; }
.card .media, .pdp-gallery, .line .media, .mini-lines img { background: var(--media-bg); }
.card .media img, .pdp-gallery img, .line img, .mini-lines img {
  object-fit: contain;
  padding: var(--media-pad);
  filter: drop-shadow(0 10px 14px rgba(var(--shadow-tint), 0.18));
}
.mini-lines img { padding: 4px; filter: none; }
.line img { padding: 4px; filter: none; }

/* ---- country and currency switcher (header) -------------------------------- */
.market-switch { position: relative; }
.market-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background-color .2s; }
.market-switch summary::-webkit-details-marker { display: none; }
.market-switch summary:hover, .market-switch[open] summary { background: var(--secondary); }
.market-switch .flag { font-size: 18px; line-height: 1; }
.icon-sm { width: 14px; height: 14px; }
.market-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 60; min-width: 190px; padding: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-card); display: grid; gap: 2px; }
.market-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: start; cursor: pointer; }
.market-menu button:hover { background: var(--secondary); }
.market-menu button[aria-current="true"] { background: var(--primary-soft); font-weight: 800; }
.market-menu small { margin-inline-start: auto; color: var(--muted-foreground); }
@media (max-width: 520px) { .market-switch .market-name { display: none; } }

/* ---- variants (shade, colour, size) ---------------------------------------- */
.variant-picker { border: 0; padding: 0; margin: 18px 0 4px; }
.variant-picker legend { font-size: 14px; margin-bottom: 8px; padding: 0; color: var(--muted-foreground); }
.variant-picker legend strong { color: var(--foreground); }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.variant-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.variant-chip:hover { border-color: var(--primary); }
.variant-chip:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(var(--shadow-tint), 0.12); }
.variant-chip:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.variant-chip.is-out { opacity: .5; text-decoration: line-through; cursor: not-allowed; }
.variant-chip.is-out input { cursor: not-allowed; }
.swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--swatch, #ccc); border: 1px solid rgba(0, 0, 0, .15); flex: none; }
.pdp-sku { margin-top: 6px; font-size: 13px; color: var(--muted-foreground); }
.price-from { font-size: 13px; color: var(--muted-foreground); }

/* Country badge (flag emoji do not show on Windows, so we show the country code) */
.flag-code { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding-inline: 5px; border-radius: 6px; background: var(--primary); color: var(--primary-foreground); font-size: 11px; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; }

/* ---- brand logo (header and footer) --------------------------------------- */
.logo-img { display: block; height: 46px; width: auto; max-width: 210px; object-fit: contain; transition: height .25s var(--ease); }
.footer-logo { display: block; height: 84px; width: auto; max-width: 200px; object-fit: contain; margin-bottom: 8px; }

/* ---- banner slider, promo tiles, promo strip ------------------------------- */
.announcement { position: relative; }
.announcement-line { margin: 0; }
.announcement a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.announcement.is-rotating { display: grid; }
.announcement.is-rotating .announcement-line { grid-area: 1 / 1; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.announcement.is-rotating .announcement-line.is-current { opacity: 1; pointer-events: auto; }

.banner-slider { position: relative; margin-top: 16px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--secondary); }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.banner-slide picture, .banner-slide a { display: block; }
.banner-slide img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 700px) { .banner-slide img { aspect-ratio: 5 / 2; } }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: var(--foreground); display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); transition: background .2s, transform .2s var(--ease); }
.banner-arrow:hover { background: #fff; }
.banner-prev { right: 12px; transform: translateY(-50%) scaleX(-1); }
.banner-next { left: 12px; }
@media (hover: hover) and (min-width: 700px) { .banner-arrow { display: flex; } }
.banner-dots { position: absolute; inset-inline: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.banner-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); cursor: pointer; transition: width .25s var(--ease), background .25s; }
.banner-dots button[aria-current="true"] { width: 22px; background: var(--primary); }

.promo-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
@media (min-width: 700px) { .promo-tiles { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; } }
.promo-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--secondary); }
.promo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.promo-tile:hover img { transform: scale(1.05); }
.promo-tile-text { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent); display: grid; gap: 2px; }
.promo-tile-text strong { font-size: 15px; font-weight: 800; }
.promo-tile-text small { font-size: 12px; opacity: .9; }
@media (prefers-reduced-motion: reduce) { .promo-tile img, .banner-dots button { transition: none; } }

/* variant hint under the card title (was a button over the photo) */
.card-variants { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--primary); }
.card-variants:hover { text-decoration: underline; }
.variant-picker legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.variant-prompt { font-weight: 700; color: var(--foreground); }

/* shop by brand: round logos in a scrolling strip */
.brand-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 16px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.brand-strip::-webkit-scrollbar { display: none; }
.brand-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; scroll-snap-align: start; text-align: center; }
.brand-circle { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: #fff; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 6px 16px -10px rgba(var(--shadow-tint), .5); transition: transform .2s var(--ease), border-color .2s; }
.brand-circle img { width: 74%; height: 74%; object-fit: contain; }
.brand-tile:hover .brand-circle, .brand-tile:focus-visible .brand-circle { transform: translateY(-3px); border-color: var(--primary); }
.brand-letter { font-size: 30px; font-weight: 800; color: var(--primary); }
.brand-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
@media (min-width: 900px) { .brand-strip { grid-auto-columns: 128px; gap: 22px; } .brand-circle { width: 112px; height: 112px; } }
/* footer contact + social */
.footer-contact, .footer-social { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.footer-contact .icon { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--primary); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; background: var(--card); color: var(--primary); transition: background-color .2s, color .2s, transform .2s; }
.footer-social .icon { width: 18px; height: 18px; }
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* favourites heart */
.fav-form { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3; margin: 0; }
.fav-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--foreground); cursor: pointer; box-shadow: 0 4px 12px -6px rgba(var(--shadow-tint), .55); transition: transform .2s var(--ease), color .2s, background-color .2s; }
.fav-btn:hover { transform: scale(1.08); color: var(--primary); }
.fav-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.fav-btn .icon { width: 21px; height: 21px; }
.fav-btn.is-active { color: var(--primary); background: #fff; }
.fav-btn.is-active .icon { fill: currentColor; }
.fav-btn:disabled { opacity: .6; }
.fav-btn.pop { animation: favpop .35s var(--ease); }
@keyframes favpop { 0% { transform: scale(.8); } 55% { transform: scale(1.25); } 100% { transform: scale(1); } }
.pdp-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pdp-title-row .fav-form { position: static; flex: none; margin-top: 4px; }
.pdp-title-row .fav-btn { border: 1px solid var(--border); box-shadow: none; }
.fav-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--secondary); font-size: 14px; }
.empty-state { display: grid; justify-items: center; gap: 16px; padding: 48px 16px; text-align: center; color: var(--muted-foreground); }
@media (prefers-reduced-motion: reduce) { .fav-btn.pop { animation: none; } }
.fav-head { padding: 28px 0 16px; } .fav-head h1 { margin: 0 0 6px; }

@media (max-width: 640px) { .logo-img { height: 32px; max-width: 150px; } }


/* privacy policy and terms pages */
.legal { max-width: 820px; margin: 28px auto 56px; line-height: 2; color: var(--foreground); }
.legal-head h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 6px; }
.legal-meta { color: var(--muted-foreground); font-size: 13px; margin-bottom: 14px; }
.legal h2 { font-size: 20px; font-weight: 800; margin: 30px 0 8px; scroll-margin-top: 90px; }
.legal p, .legal li { font-size: 15.5px; }
.legal ul { padding-inline-start: 22px; list-style: disc; display: grid; gap: 4px; margin: 8px 0; }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--secondary); }
.legal-toc a { padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 13px; font-weight: 700; text-decoration: none; }
.legal-links { margin-top: 28px; font-weight: 700; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.footer-legal a { font-size: 13px; color: var(--muted-foreground); }
.footer-legal a:hover { color: var(--primary); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 14px; font-size: 14px; line-height: 1.8; }
.consent input { margin-top: 7px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.consent a { color: var(--primary); text-decoration: underline; }

.consent-note { margin: 0 0 10px; font-size: 13px; color: var(--muted-foreground); text-align: center; }
.consent-note a { color: var(--primary); text-decoration: underline; }

/* ---- consent banner (analytics) ---- */
.consent { position: fixed; z-index: 95; inset-inline: 12px; bottom: calc(var(--bottom-nav-h, 0px) + 12px); max-width: 560px; margin-inline: auto; display: grid; gap: 12px; padding: 16px; background: var(--card); color: var(--foreground); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card); }
.consent[hidden] { display: none; }
.consent-title { margin: 0 0 4px; font-weight: 800; }
.consent-text { margin: 0; font-size: 0.92rem; line-height: 1.7; color: var(--muted-foreground); }
.consent-text a { color: var(--primary); text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; min-height: 44px; }

/* Announcement strip: endless loop, text travels from left to right */
.announcement { padding: 0; display: flex; align-items: center; }
.announcement-track { display: flex; width: max-content; animation: announce-ltr var(--marquee-s, 36s) linear infinite; will-change: transform; }
.announcement-group { display: flex; flex: 0 0 auto; }
.announcement-line { display: block; flex: 0 0 auto; padding: 7px 28px; white-space: nowrap; font-weight: 500; }
.announcement-line::after { content: "\00B7"; margin-inline-start: 56px; opacity: .6; }
.announcement:hover .announcement-track, .announcement:focus-within .announcement-track { animation-play-state: paused; }
@keyframes announce-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .announcement { justify-content: center; text-align: center; padding: 7px 16px; }
  .announcement-track { animation: none; width: auto; }
  .announcement-group:nth-child(2), .announcement-group .announcement-line:nth-child(n+2) { display: none; }
  .announcement-line { padding: 0; }
  .announcement-line::after { content: none; }
}

/* Floating WhatsApp button (shown only when a WhatsApp number is set in the admin) */
.wa-fab { position: fixed; z-index: 45; right: 16px; left: auto; bottom: calc(var(--bottom-nav-h) + 20px); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 24px -8px rgba(7, 94, 84, .55); transition: transform .2s var(--ease), box-shadow .2s; }
.wa-fab--left { right: auto; left: 16px; }
.wa-fab--lifted { bottom: calc(var(--bottom-nav-h) + 88px); }
.wa-fab:hover { transform: scale(1.06); box-shadow: 0 14px 28px -8px rgba(7, 94, 84, .65); }
.wa-fab:focus-visible { outline: 3px solid #095e54; outline-offset: 3px; }
.wa-fab-icon { width: 30px; height: 30px; fill: currentColor; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: wa-pulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
@media (min-width: 900px) { .wa-fab { bottom: 24px; } .wa-fab--lifted { bottom: 24px; } }
body:has(#consent-banner:not([hidden])) .wa-fab { bottom: calc(var(--bottom-nav-h) + 190px); }
@media (min-width: 900px) { body:has(#consent-banner:not([hidden])) .wa-fab { bottom: 150px; } }
@media (prefers-reduced-motion: reduce) { .wa-fab::before { animation: none; display: none; } .wa-fab { transition: none; } }
