/* Modern, pastel, airy storefront theme (non‑breaking override) */
:root{
  --brand-text:#2c2c2c;
  --brand-muted:#6b6b6b;
  --brand-accent:#c7a97f; /* warm sand/gold */
  --tile-blue:#dfeffd;
  --tile-yellow:#fff2c7;
  --tile-pink:#ffe1ec;
  --tile-mint:#e4f7ef;
  --card-bg:#ffffff;
  --card-bdr:#ececec;

  /* Optional tokens for quick future tweaks */
  --hero-stacked-min: 476px;      /* 560 * .85 */
  --hero-stacked-vh: 59.5vh;      /* 70vh * .85 */
  --hero-stacked-max: 765px;      /* 900 * .85 */
}

body{ color:var(--brand-text); background:#fafafa; }

/* Header: slimmer spacing */
.modern-header .header-container{ padding-block:10px; }

/* Hero */
.hero-modern{
  background:#fff;
  border-bottom:1px solid #f1f1f1;
}
.hero-modern-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:28px;
  align-items:center;
  padding:38px 16px;
}
.hero-modern .eyebrow{
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--brand-accent);
  font-weight:700;
  font-size:.78rem;
  margin:0 0 8px 0;
}
.hero-modern .hero-title{
  font-family:"Roboto Slab", serif;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height:1.15;
  margin:0 0 10px 0;
}
.hero-modern .hero-subtitle{
  color:var(--brand-muted);
  font-size:1rem;
  margin:0 0 18px 0;
}
.hero-cta{ display:flex; gap:12px; }
.btn{ display:inline-block; border-radius:999px; padding:10px 18px; font-weight:700; }
.btn-primary{ background:var(--brand-accent); color:#fff; }
.btn-ghost{ border:1px solid var(--card-bdr); color:var(--brand-text); background:#fff; }
.btn-small{ padding:8px 14px; font-size:.92rem; }

.hero-image-wrap{
  aspect-ratio: 4/3;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg, #fff, #fafafa);
  border:1px solid #f2f2f2; border-radius:16px;
  overflow:hidden;
}
.hero-image{ width:100%; height:100%; object-fit:contain; }

@media (max-width:860px){
  .hero-modern-grid{ grid-template-columns:1fr; padding:24px 12px; }
}

/* Category tiles (legacy grid used elsewhere) */
.category-tiles{ background:#fff; border-bottom:1px solid #f2f2f2; }
.tiles-grid{
  display:grid; gap:14px; padding:18px 16px; grid-template-columns:repeat(4,1fr);
}
.tile{
  position:relative; background:#f7f7f7; border-radius:12px; overflow:hidden;
  display:flex; align-items:flex-end; padding:12px; min-height:160px;
  border:1px solid #eee; transition: transform .18s ease, box-shadow .18s ease;
}
.tile:hover{ transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.tile img{ position:absolute; right:8px; bottom:8px; width:45%; height:auto; object-fit:contain; pointer-events:none; opacity:.95; }
.tile .tile-title{ font-weight:800; font-family:"Roboto Slab",serif; z-index:1; }
.tile-blue{ background:var(--tile-blue); }
.tile-yellow{ background:var(--tile-yellow); }
.tile-pink{ background:var(--tile-pink); }
.tile-mint{ background:var(--tile-mint); }
@media (max-width:900px){ .tiles-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .tiles-grid{ grid-template-columns:1fr; } }

/* Promo strip */
.promo-strip{ background:#fff; }
.promo-inner{
  display:flex; gap:16px; justify-content:space-between; align-items:center;
  padding:12px 16px; border-top:1px solid #f2f2f2; border-bottom:1px solid #f2f2f2;
}
.promo-text{ color:#4a4a4a; }

/* Product cards */
.products-modern .products-grid{ gap:18px; }
.products-modern .product-card{
  background:var(--card-bg);
  border:1px solid var(--card-bdr);
  border-radius:14px;
  overflow:hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.03);
  transition: transform .18s ease, box-shadow .18s ease;
}
.products-modern .product-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.products-modern .product-gallery{ background:#fff; border-bottom:1px solid var(--card-bdr); }
.products-modern .gallery-image-box{ padding:14px; display:flex; align-items:center; justify-content:center; }
.products-modern .gallery-main-img{ max-height:220px; object-fit:contain; }
.products-modern .product-info{ padding:14px 14px 16px 14px; }
.products-modern .product-name{ margin:.25rem 0 .35rem 0; font-size:1rem; line-height:1.3; }
.products-modern .product-price{ font-weight:800; }
.products-modern .product-btn,
.products-modern .view-details-btn{ border-radius:999px; }

/* Section title spacing */
.section-title{ letter-spacing:.01em; }

/* Announcement Bar — hidden */
.announce-bar{ display:none !important; }

/* Header dropdown (desktop) */
.nav-dropdown{ position:relative; display:inline-flex; align-items:center; }
.nav-links a,
.nav-links .nav-dd-btn{
  text-decoration:none; display:inline-block; padding:0 10px; line-height:1; font:inherit; color:inherit;
}
.nav-links .nav-dd-btn{ all:unset; display:inline-block; padding:0 10px; cursor:pointer; color:inherit; }
.nav-dd-menu{
  position:absolute; top:100%; left:0; min-width:220px; background:#fff; border:1px solid #eee;
  border-radius:10px; box-shadow:0 10px 28px rgba(0,0,0,.08); padding:8px; display:none; z-index:1000;
}
.nav-dropdown:hover .nav-dd-menu{ display:block; }
.nav-dd-menu a{ display:block; padding:8px 10px; border-radius:8px; color:#222; text-decoration:none; }
.nav-dd-menu a:hover{ background:#f6f6f6; }

/* USP strip */
.usp-strip{ background:#fff; border-top:1px solid #f1f1f1; border-bottom:1px solid #f1f1f1; }
.usp-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; padding:14px 16px; }
.usp-item{
  display:flex; align-items:center; gap:12px; padding:8px 10px; border-radius:12px; background:#fafafa; border:1px solid #f2f2f2;
}
.usp-ico{ font-size:1.25rem; }
.usp-text strong{ display:block; font-weight:800; line-height:1.1; }
.usp-text span{
  display: block;
  color: var(--brand-muted);
  font-size: .9rem;
}
@media (max-width:900px){ .usp-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .usp-grid{ grid-template-columns:1fr; } }

/* Subtle hover on header links */
.nav-links a:hover, .nav-dd-btn:hover{ opacity:.8; }

/* === Hero Slider === */
.hero-slider{ position:relative; background:#fff; border-bottom:1px solid #f1f1f1; overflow:hidden; }
.hero-slider .hero-track{ display:flex; width:100%; transition: transform .5s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.hero-slider .hero-slide{ min-width:100%; }
.hero-slider .hero-slide.is-active{ pointer-events:auto; }
.hero-slider .hero-slide[aria-hidden="true"]{ pointer-events:none; }
.hero-slider .hero-modern-grid{ padding:38px 16px; }
@media (max-width:860px){ .hero-slider .hero-modern-grid{ padding:24px 12px; } }
.hero-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:36px; height:36px; border-radius:50%;
  border:1px solid #eee; background:#fff; color:#333; box-shadow:0 8px 22px rgba(0,0,0,.08);
  display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:5;
}
.hero-nav.prev{ left:12px; } .hero-nav.next{ right:12px; }
.hero-nav:hover{ background:#fafafa; }
.hero-dots{ position:absolute; left:50%; transform:translateX(-50%); bottom:12px; display:flex; gap:8px; z-index:4; }
.hero-dots .hero-dot{ width:9px; height:9px; border-radius:50%; background:#d6d6d6; border:1px solid #cfcfcf; }
.hero-dots .hero-dot[aria-selected="true"]{ background:var(--brand-accent); border-color:var(--brand-accent); transform:scale(1.08); }
@media (prefers-reduced-motion: reduce){ .hero-slider .hero-track{ transition:none !important; } }

/* === FUTURISTIC CATEGORY TILES PACK (generic legacy) === */
.tiles-grid{ perspective: 1000px; }

/* CATEGORY COLLAGE — fluid squares (rounded all corners, fillers supported) */

/* Section container uses wide width but keeps gutters */
.category-collage{ background:#fff; border-bottom:1px solid #f2f2f2; }
.category-collage .container{
  max-width: 1280px;     /* tune 1200–1400 */
  padding-inline: 20px;
}

.collage-board{
  --cols: 10;            /* base; JS may adjust to minimize height */
  --gap: 16px;
  width: 100%;
  margin: 16px auto 22px;
}

.collage-grid{
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: 10px;              /* fine unit; JS converts to spans */
  gap: var(--gap);
  grid-auto-flow: dense;
  perspective: 1000px;
}
@media (max-width: 1200px){ .collage-board{ --cols: 9; } }
@media (max-width: 1000px){ .collage-board{ --cols: 8; } }
@media (max-width: 820px){  .collage-board{ --cols: 6; } }
@media (max-width: 640px){  .collage-board{ --cols: 5; } }
@media (max-width: 480px){  .collage-board{ --cols: 4; --gap: 14px; } }

/* Neutralize legacy tile rules and round all corners (top+bottom) */
.category-collage .tile{
  position: relative;
  display: block;
  padding: 0;
  min-height: 0;
  background: none;
  border: 0; box-shadow: none;
  border-radius: 16px;       /* all four corners */
  isolation: isolate;
}

/* Column spans (row spans via JS for true squares) */
.collage-grid .tile{ grid-column: span 1; }
.collage-grid .tile[data-w="2"]{ grid-column: span 2; }
.collage-grid .tile[data-w="3"]{ grid-column: span 3; }

/* Square content fills the computed grid area and inherits rounding */
.tile .tile-inner{
  position: relative; width: 100%; height: 100%;
  border-radius: inherit; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--hue,200) 100% 96%) 0%, hsl(var(--hue,200) 90% 92%) 100%);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transform-style: preserve-3d; backface-visibility: hidden;
}

/* Image must fill the square; inherit rounding */
.category-collage .tile img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: inherit;
}
.tile-img{ transform: translateZ(26px); transition: transform .18s ease; }

/* Bottom-centered label with rounded overlay */
.tile-inner::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:40%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.55) 100%);
  z-index:1; pointer-events:none; border-radius: inherit;
}
.tile-label{
  position:absolute; left:50%; bottom:8px; transform:translateX(-50%);
  z-index:2; color:#fff; font-weight:800; letter-spacing:.02em;
  font-family:"Roboto Slab", serif; text-align:center; padding:4px 10px; font-size:.92rem;
  text-shadow: 0 2px 6px rgba(0,0,0,.45); border-radius:999px;
}

/* FX layers inherit rounding so all corners match */
.tile-shine{
  position:absolute; inset:-40% -60%;
  background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 45%, rgba(255,255,255,0) 60%);
  mix-blend-mode: screen; pointer-events:none; transform: translateX(-120%); filter: blur(1px); z-index:3; border-radius: inherit;
}
.tile-glow{
  position:absolute; inset:-10px; border-radius: inherit;
  background: radial-gradient(60% 50% at 50% 100%, hsl(var(--hue,200) 90% 70% / .10) 0%, transparent 70%);
  filter: blur(14px); pointer-events:none; z-index:0;
}
.tile-ripple{
  position:absolute; width:12px; height:12px; border-radius:50%;
  background: hsl(var(--hue,200) 90% 45% / .2);
  pointer-events:none; transform: translate(-50%,-50%) scale(0); backdrop-filter: blur(2px); z-index:4;
}

/* Invisible filler squares occupy gaps without being seen or clicked */
.category-collage .tile.filler{
  visibility: hidden;
  pointer-events: none;
  border: 0; box-shadow: none; background: transparent;
  border-radius: 16px;
}

/* Hover polish */
.collage-grid .tile:hover .tile-inner{ box-shadow: 0 16px 40px rgba(0,0,0,.12); }

/* === Hero compact sizing and gutters === */

/* Wider gutters and a max width only for the hero section */
.hero-slider .container{
  max-width: 1200px;
  padding-inline: clamp(20px, 5vw, 40px);
  margin-inline: auto;
}

/* Ensure grid is defined even outside .hero-modern */
.hero-slider .hero-modern-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 0; /* vertical trim (base) */
}

/* Base hero text sizes (explicit, so we can shrink reliably) */
.hero-slider .eyebrow{
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 700;
  font-size: .76rem;
  margin: 0 0 6px 0;
}
.hero-slider .hero-title{
  font-family: "Roboto Slab", serif;
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.18;
  margin: 0 0 8px 0;
}
.hero-slider .hero-subtitle{
  color: var(--brand-muted);
  font-size: clamp(14px, 2.2vw, 16px);
  margin: 0 0 14px 0;
}

/* Compact mode ~70% visual size */
.hero-slider.hero-compact .hero-modern-grid{
  gap: 18px;
  padding: 18px 0;            /* tighter vertical space */
}
.hero-slider.hero-compact .hero-title{
  font-size: clamp(20px, 2.8vw, 30px);
}
.hero-slider.hero-compact .hero-subtitle{
  font-size: clamp(13px, 1.9vw, 15px);
}
/* Limit image height so the overall hero shrinks */
.hero-slider.hero-compact .hero-image-wrap{
  aspect-ratio: 16/11;        /* slightly flatter than 4/3 */
  max-height: 420px;          /* hard cap for large screens */
}

/* Mobile keeps things readable */
@media (max-width: 860px){
  .hero-slider .hero-modern-grid{
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0;
  }
  .hero-slider.hero-compact .hero-image-wrap{
    max-height: 340px;
  }
}

/* === OVERRIDES: Hero 15% bigger, image fills, text bottom-center overlay === */

/* Scaleable hero height */
.hero-slider{
  --hero-h: clamp(420px, 60vh, 780px); /* ~15% taller than prior look */
}

/* Re-layout hero: make image a full-cover background and overlay text */
.hero-slider .hero-modern-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;  /* stop 2-column split; stack to allow overlay */
  align-items: stretch;
  min-height: var(--hero-h);
  padding: 0;                  /* let the image truly fill the area */
}

/* Full-bleed image */
.hero-slider .hero-image-wrap{
  position: absolute;
  inset: 0;
  border: 10px solid #fff; /* add style + color */
  border-radius: 10px;
  overflow: hidden;         /* clips the image to the rounded corners */
  background: #fff;
}
.hero-slider .hero-image{
  width: 100%;
  height: 100%;
  object-fit: cover;           /* fill the hero */
  object-position: center;
}

/* Subtle bottom gradient for text legibility */
.hero-slider .hero-modern-grid::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.45) 95%);
  pointer-events: none;
}

/* Bottom-center text overlay */
.hero-slider .hero-copy{
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 4.5vh, 40px);
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: min(94%, 900px);
  padding: 0 14px;
  display: grid;
  gap: 10px;
}

/* Typography ~15% larger for hero */
.hero-slider .eyebrow{
  color: var(--brand-accent);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .88rem; /* up from .76-.78 */
  margin: 0 0 6px 0;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.hero-slider .hero-title{
  font-family: "Roboto Slab", serif;
  font-size: clamp(32px, 4.8vw, 52px); /* ~+15% */
  line-height: 1.1;
  margin: 0 0 8px 0;
  text-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.hero-slider .hero-subtitle{
  color: #f2f2f2;
  font-size: clamp(15px, 2.4vw, 18px); /* slightly larger */
  margin: 0 0 14px 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* Buttons on image: keep contrast */
.hero-slider .btn-ghost{ background:#fff; border:1px solid #e8e8e8; color:#222; }
.hero-slider .btn-primary{ box-shadow: 0 6px 20px rgba(0,0,0,.18); }

/* Keep arrows on top */
.hero-nav{ z-index: 3; }

/* Mobile: comfortable height and spacing */
@media (max-width: 860px){
  .hero-slider{ --hero-h: clamp(360px, 56vh, 640px); }
  .hero-slider .hero-copy{ bottom: clamp(10px, 3.8vh, 28px); }
}

/* === OVERRIDES: Category collage ~15% bigger === */
/* Make the collage container wider so tiles grow (keeps squares intact) */
.category-collage .container{
  max-width: 1472px;           /* 1280 * 1.15 */
  padding-inline: 24px;        /* slightly larger gutters */
}

/* Slightly larger gap and label text */
.collage-board{ --gap: 18px; } /* was 16px */
.category-collage .tile-label{ font-size: 1.06rem; } /* was ~.92rem */

/* === HERO: +20% width, show full image (no crop), text bottom‑center overlay === */

/* Make the hero container 20% wider than the 1200px baseline */
.hero-slider .container{
  max-width: 1440px;                 /* 1200 * 1.2 */
  padding-inline: clamp(16px, 5vw, 40px);
  margin-inline: auto;
}

/* Taller, responsive hero height */
.hero-slider{
  --hero-h: clamp(420px, 60vh, 780px);
}

/* Turn hero into a single layer: image fills area, text overlays */
.hero-slider .hero-modern-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;        /* stop 2-column split */
  align-items: stretch;
  min-height: var(--hero-h);
  padding: 0;                        /* let image fill */
}

/* Full-area image container */
.hero-slider .hero-image-wrap{
  position: absolute;
  inset: 0;
  border: 10px solid #fff; /* add style + color */
  border-radius: 10px;
  overflow: hidden;         /* clips the image to the rounded corners */
  background: #fff;
}

/* Show the whole image (no crop) */
/* === OPTION A IMPLEMENTATION: Fixed aspect-ratio wrapper, show full image (no crop) ===
PSEUDOCODE (as comments):
- Goal: Keep entire image visible without zoom/crop and avoid "zoomed-out" letterboxing feel from fixed hero height.
- Steps:
  1) Stop forcing the hero image wrapper to absolutely fill the hero; let it size itself.
     - Override .hero-slider .hero-image-wrap: position: relative; inset: auto;
  2) Give the wrapper an explicit aspect ratio so it controls the hero height naturally.
     - Use aspect-ratio: 16 / 9; (adjust if your images differ)
  3) Ensure the grid container doesn’t force a fixed height.
     - Override .hero-slider .hero-modern-grid: min-height: auto; padding: 0;
  4) Keep the image fully visible without cropping.
     - Ensure object-fit: contain; object-position: center;
  5) Remove any max-height caps from compact variants so aspect-ratio governs height.
     - Override .hero-slider.hero-compact .hero-image-wrap: max-height: none;

- Notes:
  - Borders, rounding, and overflow from existing rules are preserved via cascade.
  - These overrides should live after previous hero rules so they take precedence.
====================================================================== */

/* Let hero height follow the image ratio instead of a fixed var(--hero-h) */
.hero-slider .hero-modern-grid{
  min-height: auto;
  padding: 0;
}

/* Wrapper sizes itself by aspect ratio; no absolute fill */
/* Plan (pseudocode):
1) Locate the .hero-slider .hero-image-wrap rule in modern-theme.css.
2) Update aspect-ratio to match the source image: 1920×680 → 48 / 17.
3) Keep position/inset/width/max-height unchanged.
4) Ensure .hero-image uses object-fit: contain elsewhere to avoid cropping.
5) No other selectors modified; this is a minimal, non-breaking change.
*/

.hero-slider .hero-image-wrap{
  position: relative;   /* was absolute */
  inset: auto;          /* cancel inset: 0 */
  width: 100%;
  aspect-ratio: 48 / 17; /* match 1920×680 (exact) */
  max-height: none;     /* avoid unintended caps */
}

/* Whole image, no crop */
.hero-slider .hero-image{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Ensure compact mode doesn't re-cap the height */
.hero-slider.hero-compact .hero-image-wrap{
  max-height: none;
}

/* Legibility gradient (very subtle) */
.hero-slider .hero-modern-grid::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.30) 100%);
  pointer-events: none;
}

/* Bottom-center text overlay */
.hero-slider .hero-copy{
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 4.5vh, 40px);
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: min(94%, 900px);
  padding: 0 14px;
  display: grid;
  gap: 10px;
}

/* === Glass Card styling for hero copy === */
.hero-slider .hero-copy{
  /* layout */
  position: relative; /* needed for the sheen element */
  width: min(92vw, 780px);
  padding: clamp(16px, 2.6vw, 22px);
  border-radius: 16px;

  /* glass look */
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.50);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);

  /* base elevation (animated stronger on entrance) */
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}

/* Fallback when backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .hero-slider .hero-copy{ background: rgba(255,255,255,0.92); }
}

.hero-slider .hero-nav{ z-index: 3; }

/* Mobile tweaks */
@media (max-width: 860px){
  .hero-slider{ --hero-h: clamp(360px, 56vh, 640px); }
  .hero-slider .hero-copy{ bottom: clamp(10px, 3.8vh, 28px); }
}

/* === HERO: wider + taller so full image is visible === */

/* Make the hero content area fluid and wider */
.hero-slider .container{
  max-width: min(96vw, 1680px);      /* wider than before */
  padding-inline: clamp(16px, 4.5vw, 48px);
  margin-inline: auto;
}

/* Increase hero height to reveal full image */
.hero-slider{
  --hero-h: clamp(940px, 102vh, 1080px);  /* taller than 60vh */
}

/* Ensure the hero uses the taller height */
.hero-slider .hero-modern-grid{
  min-height: var(--hero-h);
  padding: 0;
}

/* Keep image fully visible (no crop) */
.hero-slider .hero-image{
  width: 100%;
  height: 100%;
  object-fit: contain;                /* show entire image */
  object-position: center;
}

/* Optional: subtle legibility gradient */
.hero-slider .hero-modern-grid::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.28) 100%);
  pointer-events: none;
}

/* === HERO: remove top empty space, full-width, balanced height === */
.modern-header + .hero-slider{ margin-top: 0 !important; }

.hero-slider{
  /* shorter than your last values to avoid letterboxing */
  --hero-h: clamp(540px, 62vh, 860px);
}

.hero-slider .container{
  max-width: 100vw;
  width: 100%;
  padding-inline: 0;
  margin-inline: 0;
}

.hero-slider .hero-modern-grid{
  position: relative;
  min-height: var(--hero-h);
  padding: 0;
}

/* Fill area completely (no top gap); note: may crop edges */
.hero-slider .hero-image-wrap{
  position: absolute;
  inset: 0;
  border: 0; /* add style + color */
  border-radius: 0;
  overflow: hidden;         /* clips the image to the rounded corners */
  background: #fff;
}
.hero-slider .hero-image{
  width: 100%;
  height: 100%;
  object-fit: contain;        /* was contain */
  object-position: center;  /* adjust to 'top center' if you prefer top anchor */
}

/* === HERO: rounded corners on all four edges === */
.hero-modern,
.hero-slider{
  border-radius: 16px;          /* adjust to taste */
  overflow: hidden;             /* clip image/overlays to the rounding */
}

/* Ensure inner layers match the outer rounding */
.hero-modern .hero-image-wrap,
.hero-slider .hero-image-wrap,
.hero-slider .hero-modern-grid::after{
  border-radius: inherit;
}

/* === HERO (Stacked Cards variant) === */
.hero-slider.hero-stacked{
  /* neon premium green gradient */
  background:
    radial-gradient(100% 140% at 85% 20%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.0) 50%),
    radial-gradient(80% 100% at 20% 80%, rgba(156,255,210,0.45) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(160deg, #072916 0%, #0f5132 55%, #0b3d28 100%);
}
.hero-slider.hero-stacked .hero-modern-grid{
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: clamp(var(--hero-stacked-min), var(--hero-stacked-vh), var(--hero-stacked-max));
  padding: clamp(10px, 3vw, 24px) 0;
}
.hero-slider.hero-stacked .hero-copy{
  color: #eafff3; /* readable on deep green */
  text-align: left;
  justify-self: start;
  max-width: 640px;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.hero-slider.hero-stacked .btn-ghost{ background:#fff; color:#0f2c1e; border-color:#e8e8e8; }

/* Right column becomes the card stage */
.hero-slider.hero-stacked .hero-image-wrap{
  position: relative !important;
  inset: auto !important;
  border: 0 !important;
  border-radius: 16px;
  background: transparent !important;
  overflow: visible !important;
  display: grid; place-items: center;
  padding: clamp(10px, 2vw, 16px);
}

/* Card stack visuals */
.card-stack{
  position: relative;
  width: clamp(260px, 40vw, 520px);
  aspect-ratio: 4 / 5;
}
.card-stack .card{
  position: absolute; inset: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 10px 24px rgba(0,0,0,.12),
    0 18px 60px rgba(0,0,0,.18);
  overflow: hidden;
  transform-origin: 50% 60%;
  /* fallback static fan (JS anim will override) */
  transform: translate(var(--tx,0), var(--ty,0)) rotate(var(--rot,0deg)) scale(var(--sc,1));
}
.card-stack .card img{
  width: 100%; height: 100%; object-fit: contain;
  background: #111; /* subtle contrast behind PNGs if any */
  padding: clamp(8px, 1.6vw, 14px);
  border-radius: 12px;
}

/* Nice idle fan when JS disabled */
.card-stack .card:nth-child(1){ --rot:-10deg; --tx:-10px; --ty: 20px; z-index:1; }
.card-stack .card:nth-child(2){ --rot:-3deg;  --tx:  0px; --ty: 10px; z-index:2; }
.card-stack .card:nth-child(3){ --rot: 6deg;  --tx:  6px; --ty:  0px; z-index:3; }
.card-stack .card:nth-child(4){ --rot:12deg;  --tx: 12px; --ty:-6px; z-index:4; }

/* make room for bio in top right */
.hero-slider.hero-stacked .hero-copy{
  padding-right: 12px;
}

/* === Stacked Cards: faint glow behind the stack === */
.hero-slider.hero-stacked .card-stack{
  isolation: isolate; /* keep glow behind cards only */
}
.hero-slider.hero-stacked .stack-glow{
  position: absolute;
  inset: -12% -14% -16% -14%;
  border-radius: 28px;
  pointer-events: none;
  z-index: 0;
  /* mint/green neon with a soft magenta accent */
  background:
    radial-gradient(50% 40% at 60% 40%, hsl(156 100% 65% / .28) 0%, transparent 60%),
    radial-gradient(45% 40% at 30% 70%, hsl(290 100% 68% / .12) 0%, transparent 70%);
  filter: blur(24px);
}

/* === Stacked Cards: premium mint tint to match hero === */
.hero-slider.hero-stacked .card-stack .card{
  /* base mint gradient (very light) */
  --mint-1: hsl(156 72% 98%);
  --mint-2: hsl(156 62% 94%);
  background: linear-gradient(180deg, var(--mint-1), var(--mint-2));
  border: 1px solid hsl(156 30% 78% / .55);
  box-shadow:
    0 10px 24px hsl(156 45% 10% / .14),
    0 18px 48px hsl(156 50% 8% / .20);
}

/* slight hue shifts per card for a richer stack */
.hero-slider.hero-stacked .card-stack .card:nth-child(2){
  --mint-1: hsl(160 74% 98%); --mint-2: hsl(160 60% 94%);
}
.hero-slider.hero-stacked .card-stack .card:nth-child(3){
  --mint-1: hsl(154 70% 98%); --mint-2: hsl(154 58% 94%);
}
.hero-slider.hero-stacked .card-stack .card:nth-child(4){
  --mint-1: hsl(158 72% 98%); --mint-2: hsl(158 60% 94%);
}

/* gentle inner highlight on the card surface */
.hero-slider.hero-stacked .card-stack .card::after{
  content:"";
  position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 40%);
  mix-blend-mode: screen;
}

/* replace the dark image backdrop with a light mint canvas */
.hero-slider.hero-stacked .card-stack .card img{
  background:
    radial-gradient(85% 65% at 65% 25%, hsl(156 90% 92% / .55) 0%, transparent 60%),
    linear-gradient(180deg, hsl(156 42% 96%), hsl(156 40% 92%));
}

/* === Stacked Hero: final height reduction (~15%+ visible shrink) === */
.hero-slider.hero-stacked{
  --hero-h: auto; /* neutralize earlier global height clamps for this variant */
}

.hero-slider.hero-stacked .hero-modern-grid{
  /* Previously: clamp(476px, 59.5vh, 765px)
     Stronger visible cut: about 15–20% vs what you still saw */
  min-height: clamp(420px, 52vh, 680px) !important;
}

/* Shrink card stack so its intrinsic height doesn’t push the section */
.hero-slider.hero-stacked .card-stack{
  /* Was: clamp(260px, 40vw, 520px) (height ≈ width * 1.25 due to 4/5 ratio)
     New upper bound 440px → max height ≈ 550px */
  width: clamp(230px, 32vw, 440px);
}

/* (Optional) If you want an even tighter look on very large desktops */
@media (min-width: 1600px){
  .hero-slider.hero-stacked .hero-modern-grid{
    min-height: clamp(400px, 48vh, 640px) !important;
  }
  .hero-slider.hero-stacked .card-stack{
    width: clamp(230px, 28vw, 420px);
  }
}
/* === Brand & Hero Palette (2025 refresh) ================================== */
:root {
    /* Core evergreen scale */
    --brand-green-950: #021f13;
    --brand-green-900: #032e1c;
    --brand-green-800: #06442a;
    --brand-green-700: #0b5a2f;
    --brand-green-600: #0d7d3d;
    --brand-green-500: #16824a;
    --brand-green-400: #2d8f62;
    --brand-green-300: #58b487;
    --brand-green-200: #bfe8d5;
    --brand-green-100: #e6f6ef;
    --brand-green-50: #f3fbf7;
    /* Hero gradient stops (vertical: dark → soft) */
    --hero-bg-start: var(--brand-green-900);
    --hero-bg-mid: #0d6034;
    --hero-bg-end: #6ec19b; /* softened mint / eucalyptus */
    /* Accent (choose one) */
    --hero-accent: #ed7f5f; /* CORAL (current) */
    /* --hero-accent: #d7a556;   AMBER alternative – uncomment to use */

    --hero-accent-hover: color-mix(in srgb, var(--hero-accent) 90%, black);
    --hero-accent-active: color-mix(in srgb, var(--hero-accent) 85%, black);
    /* Glass panel */
    --hero-panel-bg: rgba(255,255,255,0.07);
    --hero-panel-border: rgba(255,255,255,0.22);
    /* Button neutrals */
    --hero-btn-ghost-border: rgba(255,255,255,0.55);
    --hero-btn-ghost-hover-bg: rgba(255,255,255,0.12);
}

/* === Hero Gradient + Drift Animation ====================================== */
.hero-slider {
    position: relative;
    background: linear-gradient( to bottom, var(--hero-bg-start) 0%, var(--hero-bg-mid) 42%, var(--hero-bg-end) 100% );
    background-size: 100% 200%;
    animation: heroGradientDrift 18s linear infinite;
    overflow: hidden;
    isolation: isolate;
}

@keyframes heroGradientDrift {
    0% {
        background-position: 50% 0%;
    }

    50% {
        background-position: 50% 60%;
    }

    100% {
        background-position: 50% 0%;
    }
}

/* Ultra‑light noise grain overlay */
.hero-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .06;
    mix-blend-mode: overlay;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAIUlEQVQoU2NkYGD4z0AEMDEwMDCqgQkwGoBhqgGmA0YBAGG4BzYb2g4HAAAAAElFTkSuQmCC") repeat;
    image-rendering: pixelated;
    z-index: 1;
}

/* Strengthen contrast for text inside hero */
.hero-slider .hero-title,
.hero-slider .hero-subtitle,
.hero-slider .eyebrow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

/* Glass panel look for copy container if it has .hero-copy */
.hero-slider .hero-copy {
    backdrop-filter: blur(12px) saturate(125%);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    background: var(--hero-panel-bg);
    border: 1px solid var(--hero-panel-border);
    border-radius: 18px;
    padding: clamp(1.4rem, 2vw + 0.6rem, 3rem) clamp(1.4rem, 2vw + 0.4rem, 2.6rem);
    box-shadow: 0 12px 34px -14px rgba(0,0,0,0.55);
    position: relative;
    z-index: 2;
}

/* Primary (accent) button refresh */
.hero-slider .btn.btn-primary {
    background: var(--hero-accent);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--hero-accent) 65%, black);
    transition: background .25s, transform .25s, box-shadow .25s;
}

    .hero-slider .btn.btn-primary:hover {
        background: var(--hero-accent-hover);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--hero-accent) 70%, black);
    }

    .hero-slider .btn.btn-primary:active {
        background: var(--hero-accent-active);
        transform: translateY(0);
        box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--hero-accent) 65%, black);
    }

/* Ghost button refinement */
.hero-slider .btn.btn-ghost {
    border: 1px solid var(--hero-btn-ghost-border);
    color: #ffffff;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .25s, color .25s, border-color .25s;
}

    .hero-slider .btn.btn-ghost:hover {
        background: var(--hero-btn-ghost-hover-bg);
        border-color: rgba(255,255,255,0.75);
    }

/* Eyebrow (category) subtle accent underline */
.hero-slider .eyebrow {
    letter-spacing: .15em;
    font-weight: 600;
    font-size: .7rem;
    position: relative;
    color: #e9fdf4;
}

    .hero-slider .eyebrow::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 42px;
        height: 2px;
        background: linear-gradient(90deg,var(--hero-accent),transparent);
        border-radius: 2px;
    }

/* Dot indicators recolor */
.hero-slider .hero-dots button.hero-dot[aria-selected="true"] {
    background: var(--hero-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb,var(--hero-accent) 35%, transparent);
}

.hero-slider .hero-dots button.hero-dot {
    background: rgba(255,255,255,0.35);
    transition: background .25s, transform .25s;
}

    .hero-slider .hero-dots button.hero-dot:hover {
        background: rgba(255,255,255,0.6);
        transform: scale(1.12);
    }

/* Prev/Next nav buttons */
.hero-slider .hero-nav {
    background: rgba(255,255,255,0.12);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: background .25s, transform .25s;
}

    .hero-slider .hero-nav:hover {
        background: rgba(255,255,255,0.22);
        transform: scale(1.06);
    }

/* Reduce gradient drift & noise if prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slider {
        animation: none;
    }

        .hero-slider::before {
            opacity: .04;
        }
}

/* Fallback (older browsers without color-mix) */
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
    .hero-slider .btn.btn-primary:hover {
        filter: brightness(0.92);
    }

    .hero-slider .btn.btn-primary:active {
        filter: brightness(0.85);
    }
}
/* === Header Search (desktop) & Mobile Overlay ========================== */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,.04);
    border: 1px solid #d9e7dc;
    padding: 4px 10px 4px 32px;
    border-radius: 24px;
    margin-left: 14px;
    min-width: 200px;
    max-width: 260px;
    transition: .25s;
}

    .header-search:focus-within {
        background: #fff;
        box-shadow: 0 0 0 2px rgba(22,130,74,.25);
        border-color: #16824a;
    }

    .header-search svg {
        position: absolute;
        left: 10px;
        width: 16px;
        height: 16px;
        stroke: #16824a;
        stroke-width: 2;
        fill: none;
        pointer-events: none;
    }

    .header-search input {
        width: 100%;
        background: transparent;
        border: 0;
        font: inherit;
        font-size: .85rem;
        padding: 4px 0;
        outline: none;
    }

    .header-search .search-clear,
    .mobile-search-form .search-clear {
        position: absolute;
        right: 6px;
        background: transparent;
        border: 0;
        color: #16824a;
        font-size: 1.1rem;
        line-height: 1;
        cursor: pointer;
        padding: 2px 6px;
        border-radius: 6px;
    }

        .header-search .search-clear:hover,
        .mobile-search-form .search-clear:hover {
            background: rgba(0,0,0,.06);
        }

/* Mobile toggle icon hidden desktop */
.search-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
}

/* Mobile overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    background: linear-gradient(145deg,#0b5a2f,#0d7d3d);
    padding: 14px 18px 20px;
    transition: .4s cubic-bezier(.65,.02,.35,1);
    z-index: 2000;
}

    .mobile-search-overlay.open {
        transform: translateY(0);
    }

.ms-inner {
    max-width: 640px;
    margin: 0 auto;
}

.mobile-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #cfe4d5;
    border-radius: 40px;
    padding: 6px 44px 6px 40px;
}

    .mobile-search-form svg {
        position: absolute;
        left: 14px;
        width: 18px;
        height: 18px;
        stroke: #16824a;
        stroke-width: 2;
        fill: none;
    }

    .mobile-search-form input {
        flex: 1;
        border: 0;
        font: inherit;
        font-size: .95rem;
        background: transparent;
        outline: none;
    }

    .mobile-search-form .ms-close {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 10px;
        background: #16824a;
        color: #fff;
        border: 0;
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
        line-height: 1;
        cursor: pointer;
        border-radius: 50%;
    }

    .mobile-search-form .search-clear {
        right: 46px;
    }

@media (max-width:920px) {
    .header-search {
        display: none;
    }

    .search-toggle {
        display: inline-block;
    }
}

/* Highlighted search text */
.search-hl,
mark.search-hl {
    background: #ffe49a;
    color: #12381f;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 600;
}

/* No results message */
.no-products-msg {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px 20px 60px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0b5a2f;
    animation: fadeIn .35s ease;
}

/* Prevent scroll when mobile search open */
.no-scroll {
    overflow: hidden;
}

/* Accessibility live region helper if needed visually hidden */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
}