/* ==========================================================================
   RASH EXCELLENCE STORE — CUSTOM STYLESHEET
   --------------------------------------------------------------------------
   Bootstrap 5 loads FIRST; this file only ADDS design + overrides.
   ========================================================================== */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../vendor/fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../vendor/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../vendor/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../vendor/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../vendor/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../vendor/fonts/playfairdisplay-600.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../vendor/fonts/playfairdisplay-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("../vendor/fonts/playfairdisplay-800.woff2") format("woff2"); }

:root {
  --cream: #fcfaf6;
  --cream-2: #f5efe4;
  --ink: #211c15;
  --ink-soft: #5f574b;
  --line: #e7ddcc;
  --gold: #c29a2b;
  --gold-dark: #9a7a1f;
  --dark: #181410;
  --cream-text: #f5efe3;
  --danger: #b7462e;
  --radius: 14px;
  --shadow-sm: 0 4px 14px rgba(33, 28, 21, 0.07);
  --shadow-md: 0 12px 32px rgba(33, 28, 21, 0.12);
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html { overflow-x: clip; }
[id] { scroll-margin-top: 152px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
  margin: 0;
}

h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.2; }
img { max-width: 100%; }

.brand-gold { color: var(--gold); font-weight: 700; }

.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-lg { width: 30px; height: 30px; }
.icon-xl { width: 40px; height: 40px; }
.icon-huge { width: 84px; height: 84px; }

.btn {
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gold { background: var(--gold); border: 1px solid var(--gold); color: #fff; }
.btn-gold:hover, .btn-gold:focus-visible {
  background: var(--gold-dark); border-color: var(--gold-dark); color: #fff;
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(194, 154, 43, 0.35);
}
.btn-dark-cta { background: var(--dark); border-color: var(--dark); color: var(--cream-text); }
.btn-dark-cta:hover { background: #000; color: #fff; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--cream-2); }

/* Fixed header: announcement bar + header/nav permanently pinned to the top of
   the screen, never scrolling with the page. The .sticky-spacer (sized by JS to
   match the real header height) keeps page content from hiding underneath. */
.site-sticky {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: var(--cream);
}
.sticky-spacer { height: var(--sticky-h, 150px); }

/* ---------- ANNOUNCEMENT ---------- */
.announcement {
  background: var(--dark); color: var(--cream-text); text-align: center;
  font-size: 0.82rem; letter-spacing: 0.02em; padding: 0.55rem 1rem;
}
.announcement p { margin: 0; line-height: 1.4; overflow-wrap: anywhere; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  background: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(8px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(33, 28, 21, 0.05);
}
.site-nav { padding-top: 0.4rem; }
.site-nav .container {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}

/* Two navigation lines share the SAME navbar background. */
.nav-row { display: flex; align-items: center; gap: 1rem; }
.nav-row-1 { min-height: 60px; flex-wrap: nowrap; }
.nav-row-2 {
  min-height: 50px; padding: 0.35rem 0;
}

/* Brand */
.brand-logo {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  letter-spacing: 0.02em; color: var(--ink); white-space: nowrap;
  text-decoration: none; flex: 0 0 auto; margin: 0;
  line-height: 1.15;
}
.brand-logo:hover { color: var(--ink); }
.brand-logo .brand-gold { color: var(--gold); }

/* Product search bar (native Bootstrap form-control in an input-group) */
.nav-right { flex: 0 0 auto; margin-left: auto; gap: 0.75rem; }
.nav-search { flex: 1 1 auto; min-width: 0; max-width: 600px; }
.nav-search-group { width: 100%; flex-wrap: nowrap; }
.nav-search-group .form-control {
  height: 44px; border: 1px solid var(--line); border-right: 0;
  border-radius: 999px 0 0 999px !important; background: #fff;
  padding: 0.45rem 1.1rem; font-size: 0.95rem;
}
.nav-search-group .form-control:focus {
  border-color: var(--gold); box-shadow: 0 0 0 0.2rem rgba(194, 154, 43, 0.18);
}
.nav-search-group .btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.btn-search-img {
  width: 46px; border: 1px solid var(--line); border-left: 0; border-right: 0;
  border-radius: 0; background: #fff; color: var(--ink-soft); padding: 0;
}
.btn-search-img:hover { color: var(--gold-dark); background: var(--cream-2); }
.btn-search-go {
  width: 50px; border-radius: 0 999px 999px 0; background: var(--gold);
  border: 1px solid var(--gold); color: #fff; padding: 0;
}
.btn-search-go:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }

/* EN/FR + Ship to + Currency control */
.prefs-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.95rem; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 0.9rem; font-weight: 600; color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.prefs-toggle:hover { border-color: var(--gold); color: var(--gold-dark); }
.prefs-toggle .caret { width: 15px; height: 15px; color: var(--ink-soft); }
.prefs-lang { color: var(--ink); }
.prefs-dropdown .dropdown-menu { left: auto; right: 0; }
.prefs-panel {
  width: 330px; max-width: 92vw; padding: 0.95rem;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
}
.prefs-section { padding: 0.1rem 0; }
.prefs-section + .prefs-section {
  margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line);
}
.prefs-label {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.35rem;
}
.prefs-note { font-size: 0.72rem; color: var(--ink-soft); display: block; margin-top: 0.4rem; line-height: 1.4; }
.prefs-lang-btn { font-size: 0.82rem; }
.prefs-lang-btn.active {
  background: var(--gold); border-color: var(--gold); color: #fff;
}

/* Cart control — icon + count, "Cart" label below */
.nav-cart {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; background: none; border: 0; color: var(--ink);
  padding: 0.35rem 0.7rem; border-radius: 10px; font-weight: 600;
  text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-cart:hover { color: var(--gold-dark); background: var(--cream-2); }
.nav-cart-icon { position: relative; display: inline-flex; width: 26px; height: 26px; }
.nav-cart-icon .icon { width: 26px; height: 26px; }
.nav-cart-label { font-size: 0.7rem; font-weight: 600; line-height: 1; text-transform: uppercase; letter-spacing: 0.04em; }
.nav-cart .bag-count { top: -6px; right: -11px; }

.bag-count {
  position: absolute; top: -2px; right: -6px;
  min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--gold); color: #fff;
  font-size: 0.68rem; line-height: 18px; text-align: center; padding: 0 4px;
}

/* LINE 2 — All Categories + Collection + links */
.all-category-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--gold); background: #fff; color: var(--gold-dark);
  font-weight: 600; font-size: 1rem; padding: 0.55rem 1.3rem; border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.all-category-btn:hover, .all-category-btn[aria-expanded="true"] {
  background: var(--gold); border-color: var(--gold); color: #fff;
}
.all-category .caret { width: 16px; height: 16px; }
.all-category .dropdown-menu { min-width: 250px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.all-category .dropdown-item { padding: 0.65rem 1.1rem; font-size: 0.97rem; font-weight: 500; }
.all-category .dropdown-item:hover, .all-category .dropdown-item:focus { background: var(--cream-2); color: var(--ink); }

.nav-line2-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav-line2-links .nav-item { flex: 1 1 0; text-align: center; min-width: 0; }
.nav-line2-links .nav-link {
  color: var(--ink-soft); font-weight: 500; font-size: 1rem;
  padding: 0.55rem 0.6rem; border-radius: 999px; transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap; width: 100%;
}
.nav-line2-links .nav-link:hover { color: var(--ink); background: var(--cream-2); }

/* Mobile: search lives in its own row; menu links in the collapse */
.nav-row-mobile-search { min-height: 0; padding-bottom: 0.6rem; }
.nav-row-mobile-search .nav-search { max-width: none; margin: 0; }
.navbar-toggler { border: 0; padding: 0.4rem 0.5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(194, 154, 43, 0.35); }
#mainNav .nav-link {
  color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line); border-radius: 0;
  transition: color 0.2s ease;
}
#mainNav .nav-link:hover { color: var(--ink); }
#mainNav .nav-mobile-links li:last-child .nav-link { border-bottom: 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(rgba(24, 20, 16, 0.22), rgba(24, 20, 16, 0.16)),
    url("../assets/images/hero/hero.jpg") center/cover no-repeat,
    linear-gradient(160deg, #3a2f1c, #181410);
  color: var(--cream-text); text-align: center; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  /* Light center-weighted scrim: just enough behind the hero text for
     legibility, with the photo staying clearly visible around it. */
  background:
    radial-gradient(ellipse 58% 46% at 50% 45%, rgba(15, 12, 9, 0.42) 0%, rgba(15, 12, 9, 0.20) 55%, rgba(15, 12, 9, 0.03) 100%),
    linear-gradient(180deg, rgba(24, 20, 16, 0.10) 0%, rgba(24, 20, 16, 0.20) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 4.5rem 1rem; max-width: 900px; }
.hero-eyebrow {
  display: inline-block; font-size: 0.85rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(245, 239, 227, 0.85); margin-bottom: 1.4rem;
  text-shadow: 0 1px 10px rgba(12, 9, 6, 0.60);
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5.6vw, 4rem); line-height: 1.08;
  margin-bottom: 1.1rem; letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(12, 9, 6, 0.70), 0 1px 3px rgba(12, 9, 6, 0.45);
}
.hero-title .brand-gold { color: var(--gold); }
.hero-sub {
  font-size: 1.05rem; color: rgba(245, 239, 227, 0.92);
  max-width: 560px; margin: 0 auto 2.1rem; font-weight: 300;
  text-shadow: 0 1px 12px rgba(12, 9, 6, 0.65), 0 1px 2px rgba(12, 9, 6, 0.40);
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(245, 239, 227, 0.85); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1;
}
.hero-scroll-line { width: 1px; height: 34px; background: linear-gradient(rgba(245,239,227,0.9), transparent); }

/* ---------- SECTION BASICS ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--cream-2); }
.section-dark { background: var(--dark); color: var(--cream-text); }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 0.4rem;
}
.section-sub { color: var(--ink-soft); margin-bottom: 0; }
.section-dark .section-sub { color: rgba(245, 239, 227, 0.72); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.5rem;
}
.eyebrow-dark { color: var(--gold); }

/* ---------- TRUST / STATS ---------- */
.section-trust { padding: 4rem 0 3rem; }
.trust-card {
  --bs-card-border-radius: var(--radius);
  --bs-card-bg: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trust-card .card-title { color: var(--ink-strong); }
.trust-card .icon-lg { color: var(--gold-dark); margin-bottom: 0.25rem; }
.trust-desc { font-size: 0.85rem; line-height: 1.55; color: var(--ink-soft); }
.trust-desc ul { list-style: none; margin: 0.5rem 0 0; padding: 0; text-align: left; }
.trust-desc li { position: relative; padding-left: 1.05rem; margin-bottom: 0.25rem; }
.trust-desc li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-dark);
}
.trust-desc li.delivery-free { color: var(--gold-dark); font-weight: 600; }
.trust-desc li.delivery-free::before { background: var(--gold); }

.stats-bar {
  background: var(--dark); border-radius: var(--radius);
  padding: 1.6rem 1rem; color: var(--cream-text);
}
.stats-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--gold); margin-bottom: 0.1rem; }
.stats-label { font-weight: 600; margin-bottom: 0; font-size: 0.95rem; }
.stats-sub { font-size: 0.78rem; color: rgba(245, 239, 227, 0.65); margin-bottom: 0; }

/* ---------- DELIVERY STRIP ---------- */
.delivery-strip {
  background: var(--cream-2); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 1.4rem 0;
}
.delivery-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.88rem; color: var(--ink-soft);
}
.delivery-free { color: var(--gold-dark); font-weight: 600; }

/* ---------- CATEGORY CARDS ---------- */
.category-card {
  height: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0; cursor: pointer;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: left;
}
.category-card:hover, .category-card:focus-visible {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold);
}
.category-img {
  width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2);
}
.category-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.category-card:hover .category-img img { transform: scale(1.06); }
.category-name {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  margin: 1rem 1.2rem 0.3rem;
}
.category-text { font-size: 0.9rem; color: var(--ink-soft); margin: 0 1.2rem 0.6rem; }
.category-cta { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gold-dark); padding: 0 1.2rem 1.2rem; }

/* ---------- PRODUCT CARDS ---------- */
.product-card {
  height: 100%; background: #fff; border: 1px solid #efe8da;
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(33, 28, 21, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column; cursor: pointer;
}
/* Subtle hover lift only on devices that actually hover (desktop/mouse).
   Touch devices keep the plain card, so nothing "sticks" to a tap. */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(33, 28, 21, 0.10);
    border-color: var(--gold);
  }
  .product-card:hover .product-media img { transform: scale(1.03); }
}
.product-card:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

.product-media {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  background: var(--cream-2);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}

.badge-wrap { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 1; }
.product-badge {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff; padding: 0.28rem 0.6rem;
  border-radius: 999px; width: max-content;
}
.badge-sale, .badge-limited { background: var(--danger); }
.badge-featured { background: var(--gold); }

.product-body { padding: 0.85rem 0.9rem 0.5rem; flex: 1; }
.product-name { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.15rem; }
.product-cat { font-size: 0.76rem; color: var(--ink-soft); margin-bottom: 0.45rem; }

.product-rating {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 0.5rem;
}
.product-rating .stars { color: var(--gold); letter-spacing: 1px; }
.product-rating .rate-val { font-weight: 600; color: var(--ink); }
.product-rating .reviews-count { font-size: 0.72rem; }

.product-price { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; }
.price-now { font-size: 1rem; font-weight: 700; color: var(--ink); }
.price-was { font-size: 0.8rem; color: var(--ink-soft); text-decoration: line-through; }
.price-off {
  font-size: 0.68rem; font-weight: 600; color: var(--danger);
  background: rgba(183, 70, 46, 0.1); border-radius: 999px; padding: 0.12rem 0.45rem;
}

.product-stock {
  font-size: 0.75rem; font-weight: 600; margin: 0.35rem 0 0;
}
.product-stock.colors { color: var(--gold-dark); }
.product-stock.soldout { color: var(--danger); }
.product-stock .coming-soon { color: #000; font-style: italic; font-weight: 700; }

.product-card-cta { padding: 0.5rem 0.9rem 0.9rem; }

.btn-add {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 0.45rem;
  border-radius: 999px; border: 1px solid var(--dark); background: transparent;
  color: var(--dark); font-weight: 600; font-size: 0.84rem;
  padding: 0.5rem 0.6rem; transition: all 0.2s ease;
}
.btn-add .icon { width: 15px; height: 15px; flex: 0 0 auto; }
.btn-add:hover, .btn-add:focus-visible { background: var(--dark); color: var(--cream-text); }
/* Fully sold-out products: the CTA stays clickable (opens details) but reads
   "Sold Out" in a muted style. */
.btn-add.is-soldout { border-color: var(--line); color: var(--ink-soft); }
.btn-add.is-soldout:hover { background: transparent; color: var(--ink-soft); }

/* ---------- DYNAMIC PRODUCT VIEW ---------- */
.dynamic-product-view { background: var(--cream); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; font-size: 0.85rem; padding: 0.4rem 1rem;
  transition: all 0.2s ease; cursor: pointer;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.active { background: var(--dark); color: var(--cream-text); border-color: var(--dark); }

/* Curated "See What's New" group separation */
.group-block { margin-bottom: 3rem; }
.group-block:last-child { margin-bottom: 0; }
.group-heading {
  display: flex; align-items: center; gap: 0.6rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem; margin-bottom: 1.4rem;
}
.group-heading h3 {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: 0;
}
.group-badge {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff; padding: 0.3rem 0.75rem;
  border-radius: 999px; width: max-content;
}

/* ---------- PRODUCT DETAIL OVERLAY ---------- */
.product-detail-overlay {
  position: fixed; inset: 0; z-index: 1060;
  background: rgba(24, 20, 16, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; transition: opacity 0.25s ease;
}
.product-detail-overlay.open { opacity: 1; }

.product-detail-panel {
  background: #fff; border-radius: var(--radius);
  width: 100%; max-width: 1200px; max-height: 92vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 20px 60px rgba(24, 20, 16, 0.3);
  transform: translateY(20px); transition: transform 0.25s ease;
}
.product-detail-overlay.open .product-detail-panel { transform: translateY(0); }

.product-detail-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}
.product-detail-close:hover { background: #fff; }

.product-detail-body { padding: 1.75rem; }

/* LEFT — product image gallery (vertical colour thumbnails + large image) */
.detail-gallery { display: flex; align-items: flex-start; gap: 0.75rem; }
.detail-thumbs {
  flex: 0 0 76px; display: flex; flex-direction: column; gap: 0.55rem;
}
.detail-thumb {
  position: relative; width: 68px; height: 68px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fff; cursor: pointer; transition: all 0.2s ease; display: block;
}
.detail-thumb:hover:not(:disabled) { border-color: var(--gold-dark); }
.detail-thumb.active { border-color: var(--gold-dark); box-shadow: 0 0 0 2px var(--gold) inset; }
.detail-thumb:disabled { opacity: 0.5; cursor: not-allowed; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumb .thumb-soldout {
  position: absolute; inset: auto 0 0 0; text-align: center;
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; color: #fff; background: rgba(183, 70, 46, 0.85);
  padding: 0.12rem 0; pointer-events: none;
}
.detail-main-image {
  position: relative; flex: 1; min-width: 0;
  aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden;
  background: var(--cream-2);
}
.detail-main-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* MIDDLE — product information */
.detail-info .detail-cat { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.detail-info .detail-name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.4rem;
}
.detail-info .detail-badge { display: inline-block; margin-bottom: 0.5rem; }
.detail-info .detail-rating {
  display: flex; align-items: center; gap: 0.45rem;
  color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 0.6rem;
}
.detail-info .detail-rating .stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.detail-info .detail-rating .rate-val { font-weight: 600; color: var(--ink); }

.detail-info .detail-short { font-size: 0.92rem; font-weight: 500; color: var(--ink); margin-bottom: 0.55rem; }
.detail-info .detail-price { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.detail-info .detail-price .price-now { font-size: 1.4rem; }
.detail-info .detail-price .price-was { font-size: 1rem; }

.detail-info .detail-desc { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.detail-info .detail-features { padding-left: 1.1rem; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.9rem; }
.detail-info .detail-features li { margin-bottom: 0.3rem; }

.detail-colors { margin-bottom: 1rem; }
.detail-colors-title {
  font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem;
}
.variant-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variant-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease;
}
.variant-pill:hover:not(:disabled) { border-color: var(--gold-dark); color: var(--ink); }
.variant-pill.active {
  border-color: var(--gold-dark); background: rgba(196, 153, 68, 0.08);
  box-shadow: 0 0 0 1px var(--gold-dark) inset; color: var(--ink);
}
.variant-pill:disabled {
  opacity: 0.5; cursor: not-allowed; text-decoration: line-through;
}
.variant-swatch {
  --vc: #b9b3a8;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--vc);
  border: 1px solid rgba(24, 20, 16, 0.15);
  display: inline-block; flex: 0 0 auto;
}
.variant-label { line-height: 1; }
.variant-soldout {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--danger); margin-left: 0.15rem;
}

.detail-add-btn:disabled,
.detail-checkout-btn:disabled,
.btn-whatsapp-detail:disabled {
  opacity: 0.55; cursor: not-allowed;
  pointer-events: none;
}

.bag-item-color {
  font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.2rem;
}
.bag-color-label { font-weight: 600; color: var(--ink); }

.detail-features-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; }

.detail-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
}
.detail-qty button {
  width: 38px; height: 38px; border: 0; background: transparent;
  font-size: 1.1rem; color: var(--ink); cursor: pointer;
}
.detail-qty button:hover { background: var(--cream-2); }
.detail-qty .qty-val { width: 42px; text-align: center; font-weight: 700; }

.detail-add-btn {
  width: 100%; border-radius: 999px; border: 1px solid var(--gold);
  background: var(--gold); color: #fff; font-weight: 600; font-size: 1rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}
.detail-add-btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.detail-checkout-btn {
  width: 100%; border-radius: 999px; border: 1px solid var(--dark);
  background: var(--dark); color: var(--cream-text); font-weight: 600;
  font-size: 0.95rem; padding: 0.7rem 1.5rem;
  transition: all 0.2s ease;
}
.detail-checkout-btn:hover { background: #000; }

.btn-whatsapp-detail {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #25d366; border: 1px solid #25d366; color: #fff;
  border-radius: 999px; font-weight: 600; padding: 0.6rem 1.2rem;
  width: 100%; transition: background 0.2s ease;
}
.btn-whatsapp-detail:hover { background: #1eb85a; border-color: #1eb85a; color: #fff; }
.whatsapp-hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* RIGHT — delivery/shipping info + repositioned checkout */
.detail-aside { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.detail-aside .detail-checkout { margin-top: auto; }

.delivery-panel {
  background: var(--cream-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.15rem 1rem;
}
.delivery-panel-title {
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 700;
  margin-bottom: 0.75rem;
}
.delivery-panel-list { margin: 0 0 0.65rem; padding-left: 1.15rem; }
.delivery-panel-list li { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.delivery-panel-list li.delivery-free { color: var(--gold-dark); font-weight: 600; }
.delivery-panel-note { font-size: 0.8rem; color: var(--ink-soft); margin: 0; font-style: italic; }

/* Accepted payment methods panel (below Delivery, above Checkout) */
.payment-panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.15rem 1rem;
}
.payment-panel-title {
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.payment-panel-sub { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.75rem; }
.payment-methods {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  align-items: center;
}
.payment-badge {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.4rem 0.7rem; line-height: 1.2;
  background: var(--cream-2) !important; border-color: var(--line) !important;
  color: var(--ink) !important;
}

.detail-checkout { display: flex; flex-direction: column; gap: 0.4rem; }
.detail-checkout .detail-checkout-btn { margin-bottom: 0; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.5rem;
  height: 100%; margin: 0; box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { font-size: 1rem; margin-bottom: 0.8rem; color: var(--gold); }
.testimonial-card blockquote { margin: 0 0 1rem; }
.testimonial-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.testimonial-card figcaption { font-weight: 600; font-size: 0.95rem; }

/* ---------- WHY CHOOSE US ---------- */
.why-card {
  height: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-icon {
  display: inline-flex; width: 52px; height: 52px; border-radius: 12px;
  background: var(--cream-2); color: var(--gold-dark);
  align-items: center; justify-content: center; margin-bottom: 0.9rem;
}
.why-card h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.why-card p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- ABOUT ---------- */
.about-line { border-left: 3px solid var(--gold); padding-left: 1.1rem; margin: 1.6rem 0; }
.about-slogan { font-family: var(--font-display); font-weight: 700; font-style: italic; }
.about-slogan2 { color: var(--ink-soft); margin: 0; }
.about-qual { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark); }
.about-phrase { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }

.about-visual {
  height: 100%; min-height: 320px;
background:
    linear-gradient(rgba(24, 20, 16, 0.35), rgba(24, 20, 16, 0.28)),
    url("../assets/images/hero/hero.jpg") center/cover no-repeat,
    linear-gradient(160deg, #3a2f1c, #181410);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  padding: 2rem; color: var(--cream-text);
}
.about-visual-inner { text-align: center; max-width: 300px; }
.about-visual-inner .icon-huge { color: var(--gold); opacity: 0.85; margin-bottom: 1rem; }

/* ---------- PROCESS ---------- */
.process-card {
  position: relative; height: 100%; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.5rem 1.5rem; box-shadow: var(--shadow-sm);
}
.process-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--gold); opacity: 0.85; }
.process-card h3 { font-size: 1.05rem; margin: 0.5rem 0 0.35rem; }
.process-card p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 0.7rem; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; text-align: left; background: transparent; border: 0;
  padding: 1.05rem 1.2rem; font-weight: 600; font-size: 0.98rem; color: var(--ink); cursor: pointer;
}
.faq-q:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--gold-dark);
  border-radius: 2px; transition: transform 0.25s ease;
}
.faq-icon::before { left: 2px; right: 2px; top: 50%; height: 2px; transform: translateY(-50%); }
.faq-icon::after { top: 2px; bottom: 2px; left: 50%; width: 2px; transform: translateX(-50%); }
.faq-item.open .faq-icon::after { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { margin: 0; padding: 0 1.2rem 1.15rem; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- FINAL CTA ---------- */
.final-cta {
  background:
    linear-gradient(rgba(24, 20, 16, 0.35), rgba(24, 20, 16, 0.28)),
    url("../assets/images/hero/hero.jpg") center/cover no-repeat,
    linear-gradient(160deg, #3a2f1c, #181410);
  color: var(--cream-text); padding: 5rem 0;
}
.final-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 0.8rem; }
.final-sub { color: rgba(245, 239, 227, 0.85); max-width: 540px; margin: 0 auto 2rem; }

/* ---------- CONTACT ---------- */
.contact-card {
  display: block; height: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.5rem; color: var(--ink);
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover, .contact-card:focus-visible {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  text-decoration: none; color: var(--ink);
}
.contact-icon {
  display: inline-flex; width: 56px; height: 56px; border-radius: 50%;
  background: var(--cream-2); color: var(--gold-dark);
  align-items: center; justify-content: center; margin-bottom: 0.9rem;
}
.contact-icon.wa { color: #25d366; background: rgba(37, 211, 102, 0.12); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.contact-card p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- SOCIAL CONTACT (Telegram · Instagram · TikTok · Snapchat · FB) ---------- */
.social-block { margin-top: 2.75rem; }
.social-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.75rem 1.25rem; max-width: 760px; margin: 0 auto;
}
.social-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  width: 96px; padding: 0.6rem 0.25rem 0.4rem; border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}
.social-card:hover, .social-card:focus-visible {
  transform: translateY(-3px); color: var(--ink); text-decoration: none;
}
.social-icon {
  display: inline-flex; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  align-items: center; justify-content: center; color: var(--ink);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.social-card:hover .social-icon, .social-card:focus-visible .social-icon { transform: scale(1.06); }
.social-card:hover .social-icon.telegram,  .social-card:focus-visible .social-icon.telegram  { color: #229ed9; border-color: #229ed9; }
.social-card:hover .social-icon.instagram, .social-card:focus-visible .social-icon.instagram { color: #e4405f; border-color: #e4405f; }
.social-card:hover .social-icon.tiktok,    .social-card:focus-visible .social-icon.tiktok    { color: #010101; border-color: #010101; }
.social-card:hover .social-icon.snapchat,  .social-card:focus-visible .social-icon.snapchat  { color: #d2a400; border-color: #ffd200; }
.social-card:hover .social-icon.facebook,  .social-card:focus-visible .social-icon.facebook  { color: #1877f2; border-color: #1877f2; }
.social-name { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.social-icon .social-img { width: 62%; height: 62%; object-fit: contain; display: block; border-radius: 50%; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--dark); color: rgba(245, 239, 227, 0.85); padding: 4rem 0 0; }
.site-footer .brand-logo { color: var(--cream-text); }
.site-footer .brand-gold { color: var(--gold); }
.footer-tagline { color: rgba(245, 239, 227, 0.7); font-size: 0.92rem; }
.footer-slogan { font-family: var(--font-display); font-style: italic; color: var(--gold); font-weight: 600; }
.footer-title {
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245, 239, 227, 0.6); margin-bottom: 1rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a, .footer-link-btn {
  color: rgba(245, 239, 227, 0.8); text-decoration: none; font-size: 0.92rem;
  background: none; border: 0; padding: 0; cursor: pointer; transition: color 0.2s ease;
}
.footer-links a:hover, .footer-link-btn:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(245, 239, 227, 0.14);
  margin-top: 3rem; padding: 1.2rem 0; font-size: 0.85rem;
  color: rgba(245, 239, 227, 0.6);
}

/* ---------- BAG DRAWER ---------- */
.bag-overlay {
  position: fixed; inset: 0; background: rgba(24, 20, 16, 0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; z-index: 1040;
}
.bag-overlay.show { opacity: 1; visibility: visible; }

.bag-drawer {
  position: fixed; top: 0; right: 0;
  width: min(420px, 92vw); height: 100%; background: #fff; z-index: 1050;
  transform: translateX(105%); transition: transform 0.3s ease;
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(24, 20, 16, 0.18);
}
.bag-drawer.open { transform: translateX(0); }

.bag-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line);
}
.bag-body { flex: 1; overflow-y: auto; padding: 1.1rem 1.25rem; }

.bag-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.bag-empty .icon { color: var(--gold-dark); opacity: 0.7; }

.bag-item {
  display: flex; gap: 0.85rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line);
}
.bag-item img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; background: var(--cream-2); flex-shrink: 0; }
.bag-item-info { flex: 1; min-width: 0; }
.bag-item-name { font-weight: 600; font-size: 0.92rem; margin: 0; }
.bag-item-cat { font-size: 0.76rem; color: var(--ink-soft); }
.bag-item-price { font-size: 0.88rem; font-weight: 600; margin-top: 0.3rem; }

.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-control button { width: 30px; height: 30px; border: 0; background: transparent; color: var(--ink); font-size: 1rem; line-height: 1; cursor: pointer; }
.qty-control button:hover { background: var(--cream-2); }
.qty-control .qty-val { width: 30px; text-align: center; font-size: 0.9rem; font-weight: 600; }

.bag-item-remove {
  align-self: flex-start; background: none; border: 0; color: var(--ink-soft);
  font-size: 0.78rem; text-decoration: underline; padding: 0; cursor: pointer;
}
.bag-item-remove:hover { color: var(--danger); }

.bag-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1rem 0; border-top: 1px solid var(--line); font-weight: 600;
}
.bag-subtotal .amount { font-size: 1.25rem; font-weight: 700; }

.delivery-progress { background: var(--cream-2); border-radius: 12px; padding: 0.8rem 1rem; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.delivery-progress .free { color: var(--gold-dark); font-weight: 600; }

.bag-actions { display: flex; flex-direction: column; gap: 0.6rem; }

.btn-whatsapp {
  background: #25d366; border: 1px solid #25d366; color: #fff;
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-whatsapp:hover, .btn-whatsapp:focus-visible { background: #1eb85a; border-color: #1eb85a; color: #fff; }

/* ---------- TOAST ---------- */
.toast-slot { position: fixed; top: calc(var(--sticky-h, 150px) + 12px); left: 50%; transform: translateX(-50%); z-index: 1060; }
.toast-custom {
  display: flex; align-items: center; gap: 0.6rem; background: var(--dark);
  color: var(--cream-text); border-radius: 999px; padding: 0.75rem 1.3rem;
  font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-md);
}
.toast-custom .icon { color: var(--gold); }

/* ---------- IMAGE SEARCH MODAL ---------- */
.imgsearch-sub { margin-bottom: 1rem; font-size: 0.95rem; }
.imgsearch-diagram {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  color: var(--gold-dark); margin: 0.4rem 0 1.1rem;
}
.imgsearch-diagram .diagram-step {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.25rem;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.55rem 0.85rem; color: var(--ink);
}
.imgsearch-diagram .diagram-label { font-size: 0.68rem; font-weight: 600; color: var(--ink-soft); }
.imgsearch-diagram .diagram-arrow { color: var(--gold); flex-shrink: 0; }

.imgsearch-dropzone {
  border: 2px dashed var(--gold); border-radius: 16px; background: var(--cream);
  text-align: center; padding: 1.5rem 1rem; cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.imgsearch-dropzone:hover, .imgsearch-dropzone:focus-visible { border-color: var(--gold-dark); background: #fff8e8; }
.imgsearch-dropzone.dragover { border-color: var(--gold-dark); background: #fff2d6; }
.imgsearch-drop-icon { width: 40px; height: 40px; color: var(--gold-dark); margin-bottom: 0.35rem; }
.imgsearch-drop-text { color: var(--ink-soft); font-size: 0.95rem; margin: 0.35rem 0 0.9rem; }
.imgsearch-upload {
  background: #c62828; border: 1px solid #c62828; color: #fff;
  font-weight: 600; padding: 0.6rem 1.8rem;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
}
.imgsearch-upload:hover, .imgsearch-upload:focus-visible { background: #a51f1f; border-color: #a51f1f; color: #fff; }
.imgsearch-tools { margin-top: 0.9rem; }
.imgsearch-camera-btn {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); padding: 0.45rem 1.2rem; font-size: 0.85rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.imgsearch-camera-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.imgsearch-paste-hint { text-align: center; font-size: 0.8rem; color: var(--ink-soft); margin: 0.8rem 0 0; }

.imgsearch-preview {
  margin-top: 1rem; display: flex; align-items: center; gap: 1rem;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem;
}
.imgsearch-preview img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: #fff; }

.imgsearch-status {
  margin-top: 1rem; background: #fff7e6; border: 1px solid var(--gold);
  border-radius: 14px; padding: 1rem; color: var(--ink); font-size: 0.92rem;
}
.imgsearch-status .imgsearch-info { color: var(--gold); margin-bottom: 0.3rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
  .hero { min-height: 76vh; }
  .section { padding: 3.2rem 0; }
  .nav-row-1 { gap: 0.6rem; min-height: 54px; }
  .nav-right { gap: 0.4rem; }
  .prefs-toggle { padding: 0.42rem 0.7rem; font-size: 0.82rem; }
  .nav-cart { padding: 0.28rem 0.5rem; }
  .nav-cart-label { font-size: 0.62rem; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .brand-logo { font-size: 1.05rem; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-row { gap: 0.6rem; }
  .nav-search { max-width: 380px; margin: 0 0.6rem 0 auto; }
  .nav-search-group .form-control { font-size: 0.88rem; }
  .prefs-panel { width: 300px; }
  .brand-logo { font-size: 1.2rem; }
  .all-category-btn { font-size: 0.92rem; padding: 0.5rem 1rem; }
  .nav-line2-links .nav-link { font-size: 0.92rem; padding: 0.5rem 0.6rem; }
}

@media (max-width: 575.98px) {
  .hero-content { padding: 3.2rem 0.75rem; }
  .hero-cta .btn { width: 100%; }
  .delivery-list { flex-direction: column; gap: 0.3rem; }
  .footer-bottom { text-align: center; }

  /* Announcement bar: tighter so it usually stays on one line on phones. */
  .announcement { font-size: 0.74rem; padding: 0.45rem 0.6rem; letter-spacing: 0.01em; }

  .product-detail-body { padding: 1.2rem; }
  .detail-main-image { aspect-ratio: 1/1; }
  .detail-thumbs { flex-basis: 64px; }
  .detail-thumb { width: 56px; height: 56px; }

  /* Row 1 must fit a 320–360px phone: tighter brand, flag-only prefs trigger. */
  .nav-row-1 { gap: 0.25rem; }
  .brand-logo { font-size: 0.82rem; letter-spacing: 0; }
  #prefsCountry, .prefs-lang { display: none !important; }
  .prefs-toggle { padding: 0.32rem 0.5rem; font-size: 0.75rem; gap: 0.3rem; }
  .prefs-toggle .caret { width: 11px; height: 11px; }
  .nav-cart { padding: 0.2rem 0.3rem; gap: 2px; }
  .nav-cart-icon, .nav-cart-icon .icon { width: 19px; height: 19px; }
  .nav-cart-label { font-size: 0.55rem; }
  .navbar-toggler { padding: 0.25rem 0.3rem; }

  .imgsearch-diagram { gap: 0.3rem; }
  .imgsearch-diagram .diagram-step { padding: 0.45rem 0.5rem; }

  /* Prefs dropdown: narrow and compact on phones. */
  .prefs-panel { width: 240px; padding: 0.6rem; border-radius: 10px; }
  .prefs-section { padding: 0.05rem 0; }
  .prefs-section + .prefs-section { margin-top: 0.5rem; padding-top: 0.5rem; }
  .prefs-label { font-size: 0.64rem; margin-bottom: 0.18rem; }
  .prefs-note { font-size: 0.6rem; margin-top: 0.25rem; }
  .prefs-lang-btn { font-size: 0.72rem; padding: 0.22rem 0.35rem; }
  .prefs-panel .form-select.form-select-sm { font-size: 0.76rem; padding: 0.22rem 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
