/* ===== Fonts (self-hosted, latin subset, 2 families, 4 weights total) ===== */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-600-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/karla-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/karla-700.woff2') format('woff2');
}

/* Design tokens live in theme.css, loaded before this file - see that file
   to change the palette. */

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[x-cloak] { display: none !important; }
a { color: var(--color-accent-dark); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--color-accent); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-text);
}
p { margin: 0 0 1em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible { outline-offset: 3px; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  /* Full-bleed layout (container-w is a wide cap, only reached on very large
     monitors) - the gutter grows with the viewport instead, so content
     doesn't hug the edges on a wide screen. */
  padding: 0 clamp(1rem, 2.5vw, 3rem);
}

/* ===== Signature element: mountain ridge divider ===== */
.ridge {
  display: block;
  width: 100%;
  height: 10px;
  color: var(--color-accent);
}
.ridge--flip { transform: scaleY(-1); color: var(--color-secondary); }

/* ===== Header ===== */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.announcement {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* padding-top/bottom only, deliberately - a shorthand `padding: 0.9rem 0`
     here sets left/right to 0 too, which wins over .container's horizontal
     padding (same specificity, later in source) and pins the logo/menu/
     search flush against the viewport edges on narrow screens. */
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-text);
  text-decoration: none;
}
.brand:hover { color: var(--color-text); }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-logo { height: 38px; width: auto; max-width: 200px; object-fit: contain; flex-shrink: 0; }
.brand-mark svg { width: 22px; height: 22px; }

.header-search {
  position: relative;
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
}
.header-search input[type="search"] {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-size: 0.95rem;
  background: var(--color-bg);
  color: var(--color-text);
}
.header-search input[type="search"]:focus { background: var(--color-surface); }

.search-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  z-index: 60;
}
.search-dropdown[role="listbox"] { padding: 0.4rem; max-height: 70vh; overflow-y: auto; }
.search-dropdown li { list-style: none; }
.search-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-m);
  text-decoration: none;
  color: var(--color-text);
}
.search-dropdown a:hover, .search-dropdown a.highlighted { background: var(--color-accent-tint); }
.search-dropdown a img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-s);
  flex-shrink: 0;
}
.search-dropdown-placeholder {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  background: var(--color-accent-tint);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  flex-shrink: 0;
}
.search-dropdown-info { display: flex; flex-direction: column; min-width: 0; }
.search-dropdown-name { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-dropdown-price { font-size: 0.82rem; color: var(--color-accent-dark); font-weight: 700; }
.search-dropdown-empty { padding: 1rem; text-align: center; color: var(--color-text-muted); font-size: 0.88rem; }
.search-dropdown-empty p { margin: 0 0 0.6rem; }
.search-request-cta {
  display: block;
  width: 100%;
  background: var(--color-accent-tint);
  color: var(--color-accent-dark);
  border: none;
  border-radius: var(--radius-m);
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.search-request-cta:hover { background: var(--color-accent-tint); filter: brightness(0.97); }
.search-request-cta strong { color: var(--color-accent-dark); }

/* ===== WhatsApp floating button ===== */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 40;
  transition: transform 0.15s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); color: #fff; }
.whatsapp-fab svg { width: 28px; height: 28px; }
@media (max-width: 640px) {
  .whatsapp-fab { right: 1rem; bottom: 1rem; width: 46px; height: 46px; }
  .whatsapp-fab svg { width: 24px; height: 24px; }
}

.main-nav ul { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  display: inline-block;
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { color: var(--color-accent-dark); background: var(--color-accent-tint); }
.main-nav a.active {
  color: var(--color-accent-dark);
  background: var(--color-accent-tint);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text);
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    width: 100%;
  }
  .main-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin: 0.75rem 0 0.25rem; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 0.75rem; }
  .main-nav a { display: block; border-radius: 0; padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--color-border); }
  .main-nav a.active { background: none; padding-left: 0.75rem; border-left: 3px solid var(--color-accent); }
  .nav-toggle { display: inline-flex; }
}

/* ===== Category bar + dropdown menus (auto-built from products) ===== */
.category-nav {
  background: var(--color-accent);
  color: #fff;
}
/* The dropdown's containing block - deliberately the bar, not the <li>, so
   a menu can span wider than its own tab and isn't clipped by the list's
   horizontal scroll on narrow screens. */
.category-nav-inner { position: relative; }
.category-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.category-nav-link {
  display: block;
  padding: 0.6rem 1.1rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.category-nav-link:hover,
.category-nav-link.active,
.category-nav-item:hover > .category-nav-link,
.category-nav-item:focus-within > .category-nav-link {
  background: var(--color-surface);
  color: var(--color-accent-dark);
}
.category-nav-link:focus-visible { outline-color: #fff; outline-offset: -3px; }

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: min(100%, calc(var(--mega-cols) * 240px + 3rem));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-top: 0;
  box-shadow: var(--shadow-modal);
  z-index: 60;
  visibility: hidden;
  opacity: 0;
  /* Hide immediately, but open after a short pause - sweeping the pointer
     across the bar shouldn't flash every menu it passes over. */
  transition: opacity 0.12s ease, visibility 0s linear 0.12s;
}
.category-nav-item:hover > .mega-menu,
.category-nav-item:focus-within > .mega-menu {
  visibility: visible;
  opacity: 1;
  transition-delay: 0.12s, 0.12s;
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(var(--mega-cols), minmax(0, 1fr));
  gap: 1.75rem 0;
  padding: 1.25rem 0;
}
.mega-col {
  padding: 0 1.5rem;
  border-left: 1px solid var(--color-border);
}
/* Every column draws its own left divider; this pulls the first one in each
   row just outside the panel so it gets clipped, whatever --mega-cols is. */
.mega-menu-grid { margin-left: -1px; }
.mega-heading {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
}
a.mega-heading:hover { color: var(--color-accent-dark); }
.mega-col li a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--color-text-muted);
  text-decoration: none;
}
.mega-col li a:hover { color: var(--color-accent-dark); }
.mega-col li a.mega-more { color: var(--color-accent-dark); font-weight: 700; }
.mega-footer {
  display: block;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

/* Touch screens and narrow viewports: no hover to open a menu, so the bar
   becomes a swipeable row of plain category links instead. */
@media (hover: none), (max-width: 720px) {
  .mega-menu { display: none; }
}
@media (max-width: 720px) {
  .category-nav-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(-1 * clamp(1rem, 2.5vw, 3rem));
  }
  .category-nav-list::-webkit-scrollbar { display: none; }
  .category-nav-link { padding: 0.55rem 0.9rem; font-size: 0.8rem; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-m);
  padding: 0.7rem 1.3rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--color-surface-sunk), var(--color-bg));
  padding: 3.5rem 0 3rem;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.hero .lede { font-size: 1.1rem; color: var(--color-text-muted); max-width: 46ch; }
.hero-actions { display: flex; gap: 0.85rem; margin-top: 1.5rem; flex-wrap: wrap; }

.hero-centered { text-align: center; }
.hero-centered .eyebrow { justify-content: center; }
.lede-centered { margin-left: auto; margin-right: auto; }
.hero-actions-centered { justify-content: center; }

/* ===== Promotions carousel ===== */
.carousel { position: relative; background: var(--color-surface-sunk); }
.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
}
/* The strip that actually slides - one flex row, all slides side by side,
   moved by translateX(). transition here (not per-slide) is what makes
   both auto-advance and manual (arrow/dot) navigation animate the same way. */
.carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
  color: inherit;
  position: relative;
}
/* cover, not fill - a banner that doesn't exactly match the 16:6 box
   (recommended ~1600x600) is cropped at the edges rather than stretched.
   The box keeps the same 16:6 ratio at every screen width (see the
   max-width: 720px block below - it used to switch to 4:3, which is why
   banners looked badly squished on mobile: object-fit: fill was stretching
   a ~2.67:1 image into a ~1.33:1 box), so a correctly-sized banner needs no
   cropping at all, on any screen size. */
.carousel-slide picture, .carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide.no-link { cursor: default; }
.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(20, 15, 12, 0.65));
  color: #fff;
  padding: 2.5rem 1.5rem 1.25rem;
  font-weight: 700;
  font-size: 1.15rem;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover { background: #fff; }
.carousel-arrow-prev { left: 1rem; }
.carousel-arrow-next { right: 1rem; }
.carousel-dots {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.carousel-dot.active { background: #fff; width: 22px; border-radius: 5px; }
@media (max-width: 720px) {
  .carousel-arrow { width: 34px; height: 34px; font-size: 1.25rem; }
}

/* ===== Sections ===== */
.section { padding: 3rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { font-size: 1.6rem; }
.section-tight { padding-top: 0; }
.eyebrow {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

/* ===== Product grid & cards ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(43,36,32,0.12); color: var(--color-text); }
.product-card:focus-visible { transform: translateY(-3px); }

.product-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-image-bg);
  overflow: hidden;
}
.product-image-box img { width: 100%; height: 100%; object-fit: cover; }
.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--color-accent-dark);
  background: var(--color-accent-tint);
}
.badge-soldout {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--color-danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.badge-info {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-brand { font-size: 0.78rem; color: var(--color-text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.product-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0; }
.product-price { font-weight: 700; color: var(--color-accent-dark); font-size: 1.05rem; margin-top: auto; padding-top: 0.5rem; }
.product-stock { font-size: 0.82rem; }
.product-variant-hint { font-size: 0.78rem; color: var(--color-text-muted); font-style: italic; }
.product-stock.in-stock { color: var(--color-secondary); }
.product-stock.low-stock { color: var(--color-accent-dark); }
.product-stock.sold-out { color: var(--color-danger); }

/* The row itself carries the bottom-pinning auto margin (matching
   .product-price's standalone case) - it must NOT also live on .price-sale,
   or that span gets its own auto margin inside this flex row and drifts
   out of baseline alignment with .price-original next to it. */
.price-row { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.5rem; }
.price-sale { font-weight: 700; color: var(--color-danger); }
/* Card price-sale has no ancestor setting its font-size (unlike the detail
   page's, which inherits 1.6rem from .product-detail-price) - match the
   non-sale .product-price size here specifically. */
.price-row .price-sale { font-size: 1.05rem; }
.price-original { color: var(--color-text-muted); font-size: 0.88rem; text-decoration: line-through; }
.price-original-lg { font-size: 1.1rem; }
.badge-sale {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-l);
  color: var(--color-text-muted);
}
.empty-state h3 { color: var(--color-text); margin-bottom: 0.4rem; }

/* ===== Filter sidebar ===== */
.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filter-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 1.25rem;
}
.filter-sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.filter-sidebar-head h2 { font-size: 1.05rem; margin: 0; }
.filter-clear {
  background: none;
  border: none;
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.filter-group { padding: 1.1rem 0; border-top: 1px solid var(--color-border); }
.filter-sidebar-head + .filter-group { border-top: none; padding-top: 0.5rem; }
.filter-group h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-text-muted); margin: 0 0 0.6rem; }
.filter-list, .filter-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.filter-list-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--radius-s);
  padding: 0.4rem 0.5rem;
  margin: 0 -0.5rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
}
.filter-list-item:hover { background: var(--color-surface-sunk); }
.filter-list-item.active { background: var(--color-accent-tint); color: var(--color-accent-dark); font-weight: 700; }
.filter-radio, .filter-checkbox { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; cursor: pointer; }
.filter-checklist { max-height: 220px; overflow-y: auto; padding-right: 0.25rem; }
.filter-price-inputs { display: flex; align-items: center; gap: 0.5rem; }
.filter-price-inputs input {
  width: 0;
  flex: 1 1 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  padding: 0.5rem 0.6rem;
  font: inherit;
  background: var(--color-bg);
  color: var(--color-text);
}
.filter-price-inputs span { color: var(--color-text-muted); }
.filter-sidebar-actions { display: flex; flex-direction: column; gap: 0.6rem; align-items: stretch; padding-top: 1.1rem; border-top: 1px solid var(--color-border); }
.filter-sidebar-actions .filter-clear { text-align: center; }
.filter-sidebar select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  padding: 0.55rem 0.65rem;
  font: inherit;
  background: var(--color-bg);
  color: var(--color-text);
}

.products-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.products-toolbar select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  padding: 0.5rem 0.65rem;
  font: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}
.filter-results-count { font-size: 0.85rem; color: var(--color-text-muted); margin: 0 0 1rem; }

@media (max-width: 860px) {
  .products-layout { grid-template-columns: 1fr; }
  .filter-checklist { max-height: none; }
}

.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent-tint);
  color: var(--color-accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.search-chip button, .search-chip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination a, .pagination span {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--color-text);
}
.pagination .is-current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* ===== Product detail ===== */
/* Named grid areas (not just column order) so the mobile breakpoint below
   can put specs after the details column - a plain 2-column layout can't
   do that with a simple reflow, since specs and the gallery would need to
   separate from each other without reordering relative to the details
   column too. */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "gallery details" "specs details";
  gap: 2.5rem;
  align-items: start;
}
.product-gallery { grid-area: gallery; }
.product-detail-info { grid-area: details; }
.product-detail > .spec-section { grid-area: specs; }
.product-gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden; background: var(--color-image-bg); }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-main.clickable { cursor: zoom-in; }
.gallery-zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.product-gallery-main:hover .gallery-zoom-hint { opacity: 1; }
@media (hover: none) {
  .gallery-zoom-hint { opacity: 1; }
}

/* ===== Product image lightbox ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}
.lightbox-image { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-m); }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-arrow-prev { left: 1rem; }
.lightbox-arrow-next { right: 1rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
@media (max-width: 480px) {
  .lightbox-arrow { width: 38px; height: 38px; font-size: 1.3rem; }
  .lightbox-overlay { padding: 1rem; }
}
.product-gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.gallery-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--color-image-bg);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb.active { opacity: 1; border-color: var(--color-accent); }
.product-detail h1 { font-size: 1.9rem; margin-bottom: 0.25rem; }
.product-subtitle { color: var(--color-text-muted); font-size: 1rem; margin: 0 0 0.5rem; }
.product-detail-price { font-size: 1.6rem; font-weight: 700; color: var(--color-accent-dark); margin: 0.75rem 0; }
.product-description { white-space: pre-line; }
.discount-pill {
  display: inline-flex;
  align-items: center;
  background: var(--color-secondary-tint);
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  vertical-align: middle;
}

.stock-status-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.92rem;
}
.stock-status-card.in-stock { border-color: var(--color-secondary-tint); background: var(--color-secondary-tint); color: var(--color-secondary); }
.stock-status-card.low-stock { border-color: var(--color-accent-tint); background: var(--color-accent-tint); color: var(--color-accent-dark); }
.stock-status-card.sold-out { border-color: var(--color-danger-tint); background: var(--color-danger-tint); color: var(--color-danger); }
.stock-status-card svg { flex-shrink: 0; }

.variant-picker { margin: 0.25rem 0 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; }
.variant-group-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}
.variant-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-m);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.variant-btn:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.variant-btn.active { border-color: var(--color-accent); background: var(--color-accent); color: #fff; }
.variant-btn.active:hover { color: #fff; }
.variant-btn-disabled {
  border-color: var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface-sunk);
  cursor: not-allowed;
  text-decoration: line-through;
}
.variant-btn-disabled:hover { border-color: var(--color-border); color: var(--color-text-muted); }

.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}
.trust-badge svg { color: var(--color-accent); }
@media (max-width: 480px) {
  .trust-badges { grid-template-columns: 1fr; text-align: left; }
  .trust-badge { flex-direction: row; text-align: left; }
}
.spec-section { padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.spec-section h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
/* Lives in the (now narrower) image column, below the gallery - a single
   list reads better here than a multi-column split, and keeps this block's
   height tied only to the gallery above it, not to the description in the
   other column. */
.spec-list { column-count: 1; }
.spec-row {
  display: grid;
  grid-template-columns: 45% 55%;
  border-bottom: 1px solid var(--color-border);
  break-inside: avoid;
}
.spec-row dt { color: var(--color-text-muted); font-weight: 700; padding: 0.6rem 0; margin: 0; }
.spec-row dd { padding: 0.6rem 0; margin: 0; }
.spec-group + .spec-group { margin-top: 1.25rem; }
.spec-group-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent-dark);
  margin: 0 0 0.25rem;
}
@media (max-width: 780px) {
  /* Image, then title/price/description/etc., then specs last - specs read
     as supplementary detail once you've already decided you're interested,
     not as the first thing after the photo. */
  .product-detail {
    grid-template-columns: 1fr;
    grid-template-areas: "gallery" "details" "specs";
  }
}

/* ===== Horizontal product scroller (similar products) ===== */
.scroller { position: relative; }
.scroller-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 0.25rem 0.1rem 1rem;
  scrollbar-width: none;
}
.scroller-track::-webkit-scrollbar { display: none; }
.scroller-item { flex: 0 0 auto; width: 240px; scroll-snap-align: start; }
.scroller-item .product-card { height: 100%; }
.scroller-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.scroller-arrow:hover:not(:disabled) { background: var(--color-surface-sunk); }
.scroller-arrow:disabled { opacity: 0.35; cursor: default; }
.scroller-arrow-prev { left: -0.5rem; }
.scroller-arrow-next { right: -0.5rem; }
@media (max-width: 640px) {
  .scroller-arrow { display: none; }
  .scroller-item { width: 200px; }
}

/* ===== About page ===== */
.hours-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); overflow: hidden; }
.hours-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--color-border); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table tr.is-today { background: var(--color-accent-tint); font-weight: 700; }
.contact-list { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.contact-list a { color: var(--color-text); font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
.contact-list a:hover { color: var(--color-accent-dark); }

/* ===== Visit-us block ===== */
.visit-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 2rem;
}
@media (max-width: 780px) { .visit-block { grid-template-columns: 1fr; } }

/* ===== Modal (reserve flow) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 36, 32, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}
.modal {
  background: var(--color-surface);
  border-radius: var(--radius-l);
  padding: 1.75rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-modal);
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 { font-size: 1.35rem; }
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  float: right;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-text-muted);
  padding: 0.25rem;
}
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; }
.form-field input, .form-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  padding: 0.6rem 0.7rem;
  font: inherit;
  background: var(--color-bg);
  color: var(--color-text);
}
.form-field textarea { resize: vertical; min-height: 4.5rem; }
.form-hint { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 0.25rem; }
.form-error { font-size: 0.85rem; color: var(--color-danger); margin-top: 0.5rem; }

.notify-stock { margin-top: 0.5rem; }
.notify-stock-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.notify-stock-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: var(--color-bg);
  color: var(--color-text);
}
.notify-stock-success { color: var(--color-secondary); }
.reserve-note {
  background: var(--color-secondary-tint);
  color: var(--color-secondary);
  border-radius: var(--radius-s);
  padding: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
}
.reserve-success { text-align: center; padding: 1rem 0; }
.reserve-success svg { width: 48px; height: 48px; color: var(--color-secondary); margin-bottom: 0.75rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3.5rem 0 0;
  margin-top: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.site-footer ul { display: grid; gap: 0.65rem; }
.site-footer a { color: var(--color-footer-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.footer-tagline { margin-top: 0.85rem; max-width: 32ch; color: var(--color-footer-text-muted); }
.footer-bottom {
  border-top: 1px solid var(--color-footer-border);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-note { font-size: 0.82rem; color: var(--color-footer-text-muted); margin: 0; }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== Error pages ===== */
.error-page { text-align: center; padding: 5rem 1.25rem; }
.error-page h1 { font-size: 4rem; }

/* ===== Admin login (server-rendered) ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-sunk);
  padding: 1.5rem;
}
.login-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 2.25rem;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow-card);
}
.login-card h1 { font-size: 1.4rem; text-align: center; }
.login-card .brand-mark { margin: 0 auto 1rem; }
