/* Cure Me BD — storefront components */

/* --- Top utility bar + header ---
   Header and topbar BACKGROUNDS span the full viewport width, but their
   content sits in the same var(--container-max) column as the rest of the
   page (hero, product grids, footer) — so the logo, nav, and footer content
   all line up vertically as you scroll, instead of the header content
   sitting further out toward the edges on wide screens. */
.topbar {
  background: var(--color-announcement-bg);
  color: var(--color-announcement-text);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 11px var(--space-5); gap: var(--space-5); }
.topbar a { opacity: 0.85; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

/* --- Scrolling announcement/promo bar --- */
.announcement-bar { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.announcement-track { display: flex; width: max-content; animation: announcement-scroll 26s linear infinite; }
.announcement-item {
  white-space: nowrap;
  padding: 0 var(--space-7) 0 0;
  margin-right: var(--space-7);
  position: relative;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-announcement-text);
}
.announcement-item::after {
  content: '✦'; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  font-size: 10px; color: rgba(7,42,32,0.45);
}
.announcement-item a { color: var(--color-announcement-text); text-decoration: underline; }
.announcement-item a:hover { opacity: 0.75; }
@keyframes announcement-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-track { animation: none; }
}

.lang-switch { display: flex; gap: var(--space-1); flex-shrink: 0; }
.lang-switch a { padding: 3px var(--space-2); font-size: 13px; font-weight: 600; opacity: 0.75; color: var(--color-announcement-text); }
.lang-switch a.active { background: rgba(7,42,32,0.15); opacity: 1; }

/* One row: logo, nav, a real (always-visible) search box, then
   account/wishlist/cart — all within the same content column as the rest
   of the page, so it lines up with the footer below it. Nav has a
   scrollbar-hidden overflow-x as a safety net: at the narrower end of
   desktop widths the four category names can be a few pixels wider than
   the space left after search+account+cart, so it scrolls internally
   rather than wrapping or forcing everything else to shrink. */
.site-header {
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-row-single.container {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
}

.logo { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--color-text); flex-shrink: 0; white-space: nowrap; letter-spacing: -0.01em; }
.logo img { width: 30px; height: 30px; flex-shrink: 0; }

/* Hamburger toggle — hidden on desktop, shown only in the mobile layout
   below. Swaps its two icons via the drawer's [aria-expanded] state. */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  background: none; border: none; color: var(--color-text); cursor: pointer;
  padding: 0;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* On desktop the drawer is inert — display:contents flattens it out of the
   box model so its children (nav, search, account/wishlist) become direct
   flex items of the header row, exactly as if it weren't there. */
.mobile-drawer { display: contents; }

.main-nav {
  display: flex; align-items: center; gap: 14px;
  flex: 0 1 auto; min-width: 0;
  padding-left: var(--space-3); border-left: 1px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  padding: var(--space-2) 0;
  white-space: nowrap;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -1px;
  height: 2px; background: var(--color-accent);
  transition: right 0.2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a:hover, .main-nav a.active { color: var(--color-primary); }

/* Search: a real, always-visible compact box — no hover/tap trick. Its
   margin-left:auto absorbs the leftover row width, pushing itself and every
   sibling after it (account/wishlist, then the cart link) to the right edge
   — the same job .header-utility used to do as a wrapper, but the wrapper
   is gone now that .mobile-drawer flattens via display:contents. */
.search-widget { display: flex; align-items: center; flex-shrink: 0; margin-left: auto; }
.search-widget .search-widget-input {
  width: 130px;
  padding: 8px var(--space-3);
  border: 1px solid var(--color-border);
  border-right: none;
  background: var(--color-surface-alt);
  color: var(--color-text);
  outline: none;
  font-size: var(--text-sm);
  transition: border-color 0.15s ease, background 0.15s ease, width 0.15s ease;
}
.search-widget .search-widget-input:focus {
  width: 190px;
  border-color: var(--color-primary);
  background: var(--color-surface);
}
.search-icon-btn {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--color-primary); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.search-icon-btn:hover { background: var(--color-primary-light); }

.header-actions { display: flex; align-items: center; gap: 2px; padding-left: var(--space-3); border-left: 1px solid var(--color-border); flex-shrink: 0; }
.icon-link {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-text);
  padding: var(--space-2);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.icon-link:hover { color: var(--color-primary); background: var(--color-surface-alt); }
.cart-badge {
  position: absolute; top: 0; right: 2px;
  background: var(--color-accent); color: var(--color-primary-dark);
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-light); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--color-accent); color: var(--color-primary-dark); }
.btn-accent:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* --- Hero slider (full-bleed: breaks out of .container to the viewport edge) --- */
.hero-slider {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  height: clamp(320px, 46vw, 560px);
  overflow: hidden;
}

/* Slides sit in a flex strip; the strip itself translates to slide right-to-left
   between slides (instead of the slides individually cross-fading). */
.hero-track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); }
.hero-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,42,32,0.55) 0%, rgba(7,42,32,0.15) 55%, transparent 80%);
}
.hero-slide.theme-gold::after { background: linear-gradient(90deg, rgba(58,44,10,0.55) 0%, rgba(58,44,10,0.15) 55%, transparent 80%); }
.hero-slide.theme-rose::after { background: linear-gradient(90deg, rgba(60,30,34,0.55) 0%, rgba(60,30,34,0.15) 55%, transparent 80%); }

.hero-slide.theme-emerald { background-image: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light)); }
.hero-slide.theme-gold { background-image: linear-gradient(135deg, #3a2c0a, var(--color-accent-dark)); }
.hero-slide.theme-rose { background-image: linear-gradient(135deg, #3c1e22, var(--color-secondary-dark)); }

.hero-slide-inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  /* Wide enough to clear the prev/next arrows (44px, offset var(--space-6) from
     the edge) so slide copy never sits under them. */
  padding: 0 100px;
}
.hero-slide-content { max-width: 560px; }
.hero-slide-content h1, .hero-slide-content p { color: #fff; }
.hero-slide-content h1 { margin-bottom: var(--space-4); font-size: var(--text-4xl); }
.hero-slide-content p { color: rgba(255,255,255,0.85); font-size: var(--text-lg); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.15s ease;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: var(--space-6); }
.hero-arrow.next { right: var(--space-6); }

.hero-dots { position: absolute; bottom: var(--space-5); left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: var(--space-2); }
.hero-dot { width: 8px; height: 8px; background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0; transition: background 0.15s ease, width 0.15s ease; }
.hero-dot.is-active { background: #fff; width: 22px; }

/* --- Trust strip --- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin: var(--space-6) 0; }
.trust-item { display: flex; align-items: center; gap: var(--space-3); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); }
.trust-item .icon { color: var(--color-accent); flex-shrink: 0; }
.trust-item span { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }

/* --- Section heading --- */
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin: var(--space-7) 0 var(--space-5); }
.section-heading h2 { text-transform: uppercase; letter-spacing: 0.04em; }
.section-heading a { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); }

.coming-soon-section {
  background: var(--color-surface-alt);
  /* Full-bleed background (breaks out of the page's own .container padding)
     while its content still lines up with the container above/below it. */
  margin: var(--space-8) calc(-1 * var(--space-5)) 0;
  padding: var(--space-2) 0 var(--space-7);
}

/* --- Coming Soon: larger highlight cards, 2-up --- */
.coming-soon-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.coming-soon-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.coming-soon-card-media { position: relative; aspect-ratio: 16/10; background: var(--color-surface-alt); }
.coming-soon-card-media img { width: 100%; height: 100%; object-fit: cover; }
.coming-soon-ribbon { position: absolute; top: var(--space-4); left: var(--space-4); font-size: var(--text-sm); padding: 6px var(--space-3); background: var(--color-accent); color: var(--color-primary-dark); font-weight: 700; }
.coming-soon-card-body { padding: var(--space-5); }
.coming-soon-card-body .brand { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.coming-soon-card-body h3 { margin: var(--space-2) 0; }
.coming-soon-card-body .price { font-size: var(--text-xl); font-weight: 700; color: var(--color-primary); }

/* --- Category cards --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-5); }
.category-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--color-surface-alt); }
.category-card .label { padding: var(--space-3); font-weight: 600; text-align: center; }

/* --- Product carousel (4-up, with prev/next arrows to reveal more) --- */
.product-carousel { position: relative; }
.carousel-track {
  display: flex; gap: var(--space-5);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 4px 2px; margin: -4px -2px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex: 0 0 calc((100% - 3 * var(--space-5)) / 4); min-width: 0; }
.carousel-track.carousel-2up > * { flex-basis: calc((100% - var(--space-5)) / 2); }
.carousel-arrow {
  position: absolute; top: 40%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: var(--color-text);
  transition: background 0.15s ease, color 0.15s ease;
}
.carousel-arrow:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.carousel-arrow.prev { left: -20px; }
.carousel-arrow.next { right: -20px; }
.carousel-arrow[disabled] { opacity: 0; pointer-events: none; }

/* --- Product grid + card --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-5); }
.product-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card .thumb { aspect-ratio: 1/1; object-fit: cover; width: 100%; background: var(--color-surface-alt); }
.product-card .body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.product-card .brand { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.product-card .name { font-weight: 600; font-size: var(--text-sm); flex: 1; }

/* --- Wishlist heart button --- */
.wishlist-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.wishlist-btn:hover { color: var(--color-danger); border-color: var(--color-danger); }
.wishlist-btn:active { transform: scale(0.9); }
.wishlist-btn.is-active { color: var(--color-danger); border-color: var(--color-danger); }
.wishlist-btn-lg { position: static; width: 44px; height: 44px; flex-shrink: 0; background: var(--color-surface); }
.product-card .price-row { display: flex; align-items: baseline; gap: var(--space-2); }
.price { font-weight: 700; color: var(--color-primary); }
.price-compare { text-decoration: line-through; color: var(--color-text-muted); font-size: var(--text-sm); }

/* --- Badges --- */
.badge { display: inline-block; padding: 2px var(--space-2); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; }
.badge-success { background: rgba(46,125,79,0.12); color: var(--color-success); }
.badge-danger { background: rgba(179,66,58,0.12); color: var(--color-danger); }
.badge-muted { background: var(--color-surface-alt); color: var(--color-text-muted); }
.badge-coming-soon { background: rgba(201,162,39,0.15); color: var(--color-accent-dark); }
.badge-trending { background: rgba(200,19,74,0.1); color: var(--color-announcement-bg); }
.badge-new { background: rgba(11,61,46,0.1); color: var(--color-primary); }

.product-attribute-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.attribute-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-xs); font-weight: 600;
  padding: 4px var(--space-3);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}
.attribute-tag::before { content: '✓'; font-weight: 700; }

/* --- Breadcrumbs --- */
.breadcrumbs { font-size: var(--text-sm); color: var(--color-text-muted); margin: var(--space-5) 0; }
.breadcrumbs a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 var(--space-2); }

/* --- Filters sidebar --- */
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-6); align-items: start; }
.filters {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  padding: var(--space-4);
  position: sticky;
  top: 90px;
  scroll-margin-top: 96px;
  font-size: var(--text-sm);
}
.filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3); }
.filters-header h3 { display: flex; align-items: center; gap: 6px; font-size: var(--text-sm); margin: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.filters-header h3 svg { width: 14px; height: 14px; color: var(--color-accent); }
.filters-clear { font-size: 11px; font-weight: 600; color: var(--color-danger); text-transform: uppercase; letter-spacing: 0.03em; }
.filters-clear:hover { text-decoration: underline; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-4); }
.filter-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  padding: 3px var(--space-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.filter-chip:hover { background: rgba(179,66,58,0.08); border-color: var(--color-danger); color: var(--color-danger); }

.filter-section { border-top: 1px solid var(--color-border); padding-top: var(--space-3); margin-top: var(--space-3); }
.filter-section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.filter-section h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: var(--space-2); }

/* --- Dual-handle price range slider ---
   Two overlapping <input type="range"> elements on the same track; each
   input is fully transparent except its thumb (pointer-events re-enabled
   only on the thumb), so clicks/drags land on whichever handle they're
   nearest without the two inputs fighting each other. Thumbs are round —
   a deliberate, narrow exception to the site's sharp-corner rule, since a
   square drag handle on a slider reads as broken rather than on-brand. */
.price-slider { position: relative; height: 24px; margin: var(--space-2) 0 var(--space-3); }
.price-slider-track { position: absolute; top: 50%; left: 0; right: 0; height: 4px; background: var(--color-border); transform: translateY(-50%); }
.price-slider-range { position: absolute; top: 50%; height: 4px; background: var(--color-primary); transform: translateY(-50%); }
.price-range-input {
  position: absolute; top: 50%; left: 0; width: 100%; height: 4px;
  margin: 0; transform: translateY(-50%);
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.price-range-input::-webkit-slider-runnable-track { -webkit-appearance: none; background: transparent; height: 4px; }
.price-range-input::-moz-range-track { background: transparent; height: 4px; border: none; }
.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--color-border);
  cursor: pointer;
  margin-top: 0;
}
.price-range-input::-moz-range-thumb {
  pointer-events: auto;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--color-border);
  cursor: pointer;
}

.filter-price-row { display: flex; align-items: center; gap: 6px; }
.filter-price-row input { flex: 1; min-width: 0; padding: 6px var(--space-2); font-size: 13px; }
.filter-price-row span { color: var(--color-text-muted); font-size: 13px; }

.filter-checkbox { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; margin-bottom: var(--space-2); cursor: pointer; user-select: none; }
.filter-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.filter-checkbox-box {
  width: 15px; height: 15px; flex-shrink: 0;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.filter-checkbox-box::after {
  content: ''; width: 4px; height: 7px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform 0.1s ease;
  margin-bottom: 1px;
}
.filter-checkbox input:checked ~ .filter-checkbox-box { background: var(--color-primary); border-color: var(--color-primary); }
.filter-checkbox input:checked ~ .filter-checkbox-box::after { transform: rotate(45deg) scale(1); }
.filter-checkbox:hover .filter-checkbox-box { border-color: var(--color-primary); }

/* --- Category toolbar (result count + sort) --- */
.catalog-toolbar { gap: var(--space-3); }
.sort-form { display: flex; align-items: center; gap: var(--space-2); }
.sort-form-label { font-size: 13px; color: var(--color-text-muted); white-space: nowrap; }
.sort-select {
  width: auto;
  padding: 6px 28px 6px var(--space-2);
  font-size: 13px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23445' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
}

/* --- Forms --- */
.form-group { margin-bottom: var(--space-4); }
.form-group label { display: block; font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(201,162,39,0.15); }
.radio-card { display: flex; align-items: center; gap: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-3); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--color-primary); background: rgba(11,61,46,0.04); }

/* --- Alerts / flash messages --- */
.alert { padding: var(--space-4); border-radius: var(--radius-md); margin-bottom: var(--space-4); font-size: var(--text-sm); }
.alert-success { background: rgba(46,125,79,0.1); color: var(--color-success); }
.alert-danger { background: rgba(179,66,58,0.1); color: var(--color-danger); }
.alert-info { background: rgba(11,61,46,0.08); color: var(--color-primary-dark); }

/* --- Cart page --- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: var(--space-4) var(--space-2); border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.cart-line-product { display: flex; gap: var(--space-4); align-items: center; }
.cart-line-product img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.qty-input { width: 64px; text-align: center; }
.cart-summary { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: var(--space-3); font-size: var(--text-sm); }
.summary-row.total { font-weight: 700; font-size: var(--text-lg); border-top: 1px solid var(--color-border); padding-top: var(--space-3); }

/* Payment method sits right above the submit button — the last thing a
   customer sees before placing the order, so how they're paying is obvious. */
.checkout-payment-method { border-top: 1px solid var(--color-border); margin-top: var(--space-4); padding-top: var(--space-4); }
.checkout-payment-method h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); margin: 0 0 var(--space-2); }
.checkout-payment-single { margin: 0; font-weight: 600; }
.checkout-payment-method .radio-card { padding: var(--space-3); margin-bottom: var(--space-2); }
.checkout-payment-method .radio-card:last-child { margin-bottom: 0; }

/* --- Checkout layout --- */
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6); align-items: start; }

/* --- Footer --- */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.72); margin-top: var(--space-8); font-size: 13px; }
.site-footer h4 { color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-4); }
.site-footer ul li { margin-bottom: var(--space-3); font-size: 13px; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer .payment-icons { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.pay-badge {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 32px;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); font-size: 11px; text-align: left; padding: var(--space-4) 0; color: rgba(255,255,255,0.55); }
/* The global `p { color: var(--color-text) }` rule (dark) otherwise wins over
   inherited color here since it targets the <p> tag directly — every footer
   paragraph needs its color set explicitly or it renders dark-on-dark. */
.site-footer p { color: inherit; }

.footer-newsletter {
  background: linear-gradient(120deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-primary-light) 100%);
  border-bottom: 3px solid var(--color-accent);
  position: relative;
  overflow: hidden;
}
.footer-newsletter::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(201,162,39,0.25), transparent 60%);
}
.footer-newsletter-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding: var(--space-6) var(--space-5); flex-wrap: wrap; }
.footer-newsletter h3 { color: #fff; margin-bottom: var(--space-1); font-size: var(--text-2xl); display: flex; align-items: center; gap: var(--space-2); }
.footer-newsletter p { color: rgba(255,255,255,0.85); margin: 0; font-size: var(--text-base); }
.newsletter-form { display: flex; flex: 0 0 auto; min-width: 360px; box-shadow: var(--shadow-lg); }
.newsletter-form input {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  border: none;
  background: #fff;
  color: var(--color-text);
  font-size: var(--text-base);
}
.newsletter-form input::placeholder { color: var(--color-text-muted); }
.newsletter-form input:focus { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.newsletter-form .btn { flex-shrink: 0; padding: var(--space-4) var(--space-6); font-size: var(--text-base); font-weight: 700; }

.footer-grid { padding-top: var(--space-7); padding-bottom: var(--space-6); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: var(--space-5); }
.footer-col-brand p { font-size: 13px; line-height: 1.6; margin-bottom: var(--space-3); }
.footer-contact-line { font-size: 13px; margin-bottom: 6px !important; }
.footer-contact-line a { color: rgba(255,255,255,0.72); font-weight: 600; }
.footer-contact-line a:hover { color: var(--color-accent); }

.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.footer-social a {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { background: var(--color-accent); color: var(--color-primary-dark); }

.footer-payments { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; padding-bottom: var(--space-6); border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-5); }
.footer-payments-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); }

.whatsapp-float {
  /* Deliberately round — it's the universally recognized WhatsApp bubble
     icon, not a generic UI box, so it keeps its native circular shape even
     though the rest of the site uses sharp corners. */
  position: fixed; bottom: var(--space-5); right: var(--space-5); z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* --- Static content pages (About, Terms, Privacy, Policies) --- */
.content-page { max-width: 820px; margin: 0 auto; padding: var(--space-6) 0 var(--space-8); }
.content-page .page-intro { font-size: var(--text-lg); margin-bottom: var(--space-6); }
.content-page h2 { margin-top: var(--space-7); }
.content-page h3 { margin-top: var(--space-5); }
.content-page ul, .content-page ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
.content-page ul { list-style: disc; }
.content-page ol { list-style: decimal; }
.content-page li { margin-bottom: var(--space-2); color: var(--color-text); }
.content-page .updated-note { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.content-page .legal-note { background: var(--color-surface-alt); border-left: 3px solid var(--color-accent); padding: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-6); }

/* --- About page --- */
.about-hero {
  position: relative;
  left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw;
  background: linear-gradient(120deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  overflow: hidden;
}
.about-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201,162,39,0.3), transparent 55%);
}
.about-hero-inner {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  padding: var(--space-8) var(--space-5);
  text-align: center;
}
.about-hero-eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.about-hero-inner h1 { color: #fff; font-size: var(--text-4xl); margin-bottom: var(--space-4); }
.about-hero-inner p { color: rgba(255,255,255,0.85); font-size: var(--text-lg); margin: 0 auto; }

.about-kicker { display: block; color: var(--color-accent-dark); font-weight: 700; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-2); }

.about-mission { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-7); align-items: center; margin-top: var(--space-7); }
.about-mission-text h2 { margin-top: 0; }
.about-mission-visual { display: flex; justify-content: center; }
.about-mission-badge {
  width: 220px; height: 220px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  color: var(--color-primary);
  text-align: center;
}
.about-mission-badge strong { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-text); }
.about-mission-badge span { font-size: var(--text-sm); color: var(--color-text-muted); }

.value-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.value-card { background: var(--color-surface); border: 1px solid var(--color-border); border-top: 3px solid var(--color-primary); padding: var(--space-5); }
.value-card svg { color: var(--color-accent); margin-bottom: var(--space-3); }
.value-card h3 { margin-bottom: var(--space-2); }
.value-card p { margin: 0; font-size: var(--text-sm); }

.about-cta {
  position: relative;
  left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; width: 100vw;
  background: var(--color-primary-dark);
  margin-top: var(--space-8);
}
.about-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); padding: var(--space-7) var(--space-5); flex-wrap: wrap; }
.about-cta-inner h2 { color: #fff; margin-bottom: var(--space-1); }
.about-cta-inner p { color: rgba(255,255,255,0.75); margin: 0; }
.about-cta-actions { display: flex; gap: var(--space-3); flex-shrink: 0; }

/* --- FAQ accordion (plain <details>/<summary>, no JS needed) --- */
.faq-list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  cursor: pointer;
  padding: var(--space-4) 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: var(--space-4);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer { padding: 0 0 var(--space-4); color: var(--color-text-muted); }
.faq-category { margin-top: var(--space-7); }

/* --- Contact page --- */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-7); align-items: start; }
.contact-details dt { font-weight: 600; margin-top: var(--space-4); }
.contact-details dd { margin: 0; color: var(--color-text-muted); }
.contact-details dd a { color: var(--color-primary); font-weight: 600; }
.contact-details dd a:hover { text-decoration: underline; }

/* --- Auth pages (login / register) --- */
.auth-shell { display: flex; justify-content: center; padding: var(--space-7) 0; }
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 900px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
}
.auth-brand {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
  color: #fff;
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
  position: relative;
  overflow: hidden;
}
.auth-brand::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201,162,39,0.35), transparent 55%);
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .logo { color: #fff; font-size: var(--text-2xl); }
.auth-brand h2 { color: #fff; font-size: var(--text-2xl); margin-bottom: 0; }
.auth-brand p { color: rgba(255,255,255,0.8); }
.auth-trust { display: flex; flex-direction: column; gap: var(--space-3); }
.auth-trust li { display: flex; align-items: center; gap: var(--space-3); color: rgba(255,255,255,0.92); font-size: var(--text-sm); font-weight: 500; }
.auth-trust svg { color: var(--color-accent); flex-shrink: 0; }
.auth-form-panel { padding: var(--space-7); display: flex; flex-direction: column; justify-content: center; }
.auth-form-panel h1 { margin-bottom: var(--space-2); }
.auth-form-panel .auth-subtitle { margin-bottom: var(--space-5); }
.auth-switch { margin-top: var(--space-5); text-align: center; color: var(--color-text-muted); }
.auth-switch a { color: var(--color-primary); font-weight: 600; }

/* --- Account section sub-nav --- */
.account-nav { display: flex; gap: var(--space-6); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-6); overflow-x: auto; }
.account-nav a { padding: var(--space-3) 0; font-weight: 600; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.account-nav a:hover { color: var(--color-text); }
.account-nav a.active { color: var(--color-primary); border-color: var(--color-primary); }

/* --- Pagination --- */
.pagination { display: flex; gap: var(--space-2); justify-content: center; margin: var(--space-6) 0; }
.pagination a, .pagination span { padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); border: 1px solid var(--color-border); font-size: var(--text-sm); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* --- Responsive --- */
@media (max-width: 900px) {
  /* Below 900px the header collapses to ONE compact row — hamburger, logo,
     cart — instead of stacking nav/search/account into extra rows that used
     to eat most of a phone screen. Everything else (nav, search, account,
     wishlist) moves into a dropdown drawer that's hidden until tapped open,
     so it costs zero height when closed. */
  .header-row-single.container { padding: var(--space-2) var(--space-4); gap: var(--space-2); position: relative; }
  .nav-toggle { display: flex; }
  .logo { font-size: var(--text-lg); gap: 6px; }
  .logo img { width: 26px; height: 26px; }

  .mobile-drawer {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: var(--space-4);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    z-index: 60;
  }
  .mobile-drawer.is-open { display: flex; }

  .main-nav { flex-direction: column; align-items: stretch; gap: 0; overflow-x: visible; border-left: none; padding-left: 0; }
  .main-nav a { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
  .main-nav a::after { display: none; }

  .search-widget { margin: var(--space-4) 0 0; }
  .search-widget .search-widget-input { flex: 1; width: auto; }

  .header-actions {
    flex-direction: column; align-items: stretch;
    gap: 0; margin: var(--space-3) 0 0; padding: var(--space-3) 0 0;
    border-left: none; border-top: 1px solid var(--color-border);
  }
  .header-actions .icon-link {
    flex-direction: row; justify-content: flex-start; gap: var(--space-2);
    padding: var(--space-3) 0; font-size: var(--text-sm);
    text-transform: none; letter-spacing: normal; font-weight: 500;
  }

  /* The cart link stays outside the drawer, always visible, icon+badge only
     to keep the single header row as narrow as possible. */
  .cart-link { padding: var(--space-2); }
  .cart-link .icon-link-label { display: none; }

  .catalog-layout, .checkout-layout, .product-detail, .contact-layout { grid-template-columns: 1fr; }
  .auth-card { grid-template-columns: 1fr; max-width: 440px; }
  .auth-brand { padding: var(--space-6); }
  .auth-trust { display: none; }
  .filters { position: static; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .about-hero-inner h1 { font-size: var(--text-3xl); }
  .about-mission { grid-template-columns: 1fr; }
  .about-mission-visual { order: -1; }
  .about-mission-badge { width: 160px; height: 160px; }
  .value-cards { grid-template-columns: repeat(2, 1fr); }
  .about-cta-inner { text-align: center; justify-content: center; }
  .carousel-track > * { flex-basis: calc((100% - var(--space-4)) / 2); }
  .carousel-track.carousel-2up > * { flex-basis: 88%; }
  .carousel-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-5); }
  .footer-col-brand { grid-column: 1 / -1; }
  .footer-newsletter-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .newsletter-form { min-width: 0; }
  .whatsapp-float { width: 48px; height: 48px; bottom: var(--space-4); right: var(--space-4); }
  .hero-slider { height: clamp(280px, 90vw, 420px); }
  /* 12px arrow offset + 36px arrow + 12px breathing room */
  .hero-slide-inner { padding: 0 60px; }
  .hero-slide-content h1 { font-size: var(--text-2xl); }
  .hero-slide-content p { font-size: var(--text-base); }
  .hero-arrow { width: 36px; height: 36px; }
  .hero-arrow.prev { left: var(--space-3); }
  .hero-arrow.next { right: var(--space-3); }
  h1 { font-size: var(--text-2xl); }
}
