/* ═══════════════════════════════════════════════════════════
   BIOLILA BRAND CSS — override Bootstrap + inject brand tokens
   Load LAST so it wins over theme.css
   Palette + typography sourced from "Brand book BioLila.pdf":
     White #FFFFFF · Black #000000 · Grey #6C6E70 · Green #9BCB3B
     Gilroy (Light/ExtraBold) for Latin, Tajawal for Arabic
═══════════════════════════════════════════════════════════ */

/* ── Brand fonts ── */
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500&display=swap');

[lang="ar"], [dir="rtl"] {
  font-family: 'Tajawal', sans-serif !important;
}

/* ── Brand tokens ── */
:root {
  --bio-black:        #000000;
  --bio-white:        #ffffff;
  --bio-grey:         #6C6E70;
  --bio-grey-soft:    rgba(108,110,112,0.14);
  --bio-grey-mute:    rgba(108,110,112,0.7);
  --bio-green:        #9BCB3B;
  --bio-green-soft:   rgba(155,203,59,0.14);
  --bio-green-deep:   #6B8F2E;

  --bio-surface:        #ffffff;
  --bio-surface-2:      #f7f7f7;
  --bio-surface-3:      #ffffff;
  --bio-text:           #000000;
  --bio-text-muted:     #6C6E70;
  --bio-text-light:     #6C6E70;
  --bio-border:         rgba(108,110,112,0.22);
  --bio-bg:             #ffffff;
  --bio-footer-bg:      #000000;
  --bio-radius-pill:    999px;
  --bio-radius-lg:      20px;
  --bio-radius-xl:      28px;
  --bio-shadow:         0 2px 16px rgba(0,0,0,0.07);
  --bio-shadow-hover:   0 8px 32px rgba(0,0,0,0.14);
  --bio-transition:     250ms cubic-bezier(0.4,0,0.2,1);

  /* K-Beauty (Gamme Coréenne) sub-brand accent — scoped to that category only */
  --bio-kbeauty-red:    #EC1C26;

  /* Override Bootstrap variables */
  --bs-primary:         #9BCB3B;
  --bs-primary-rgb:     155,203,59;
  --bs-body-bg:         #ffffff;
  --bs-body-color:      #000000;
  --bs-body-font-family: 'Gilroy', system-ui, sans-serif;
  --bs-body-font-size:  1rem;
  --bs-body-line-height:1.65;
  --bs-border-color:    rgba(108,110,112,0.22);
  --bs-dark:            #000000;
}

/* ── Global base ── */
html { scroll-behavior: smooth; }
body {
  background-color: var(--bio-bg) !important;
  color: var(--bio-text) !important;
  font-family: 'Gilroy', system-ui, sans-serif !important;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── Display headings → Gilroy Light (brand book excludes Bold/Black from body & section type) ── */
h1, h2, h3,
.display-font,
.section-title-bio {
  font-family: 'Gilroy', sans-serif !important;
  font-weight: 300 !important;
}

/* Hero-scale display headline is the one deliberate exception — matches the brand book's own
   marketing collateral, which uses the heavy weight only at hero/display scale. */
.hero-headline-bio {
  font-family: 'Gilroy', sans-serif !important;
  font-weight: 800 !important;
}

h1 { letter-spacing: -0.01em; }
h2 { font-weight: 300 !important; }

/* ─────────────────────────────────────────────
   NAVIGATION OVERRIDES
───────────────────────────────────────────── */
#header .main-header,
#header .sticky-area .main-header {
  background-color: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--bio-border) !important;
  transition: background var(--bio-transition), box-shadow var(--bio-transition) !important;
}

/* When scrolled */
#header.sticky-on .main-header {
  box-shadow: 0 1px 24px rgba(0,0,0,0.08) !important;
}

/* Brand logo — constrain to navbar height (source file has no built-in padding) */
#header .navbar-brand img {
  max-height: 34px;
  width: auto;
}

/* Nav links */
#header .nav-link,
#header .navbar-nav .nav-link {
  font-family: 'Gilroy', sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--bio-text) !important;
  padding: 4px 0 !important;
  position: relative;
}

#header .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--bio-green-deep);
  transition: left var(--bio-transition), right var(--bio-transition);
}

#header .nav-link:hover::after,
#header .nav-link.selected-nav-item::after {
  left: 0;
  right: 0;
}

#header .nav-link:hover,
#header .nav-link.selected-nav-item {
  color: var(--bio-green-deep) !important;
}

/* Primary button override — black default (premium/contrast per brand book), grey on hover */
.btn-primary,
.btn-dark,
.btn.btn-dark {
  background: var(--bio-black) !important;
  border-color: var(--bio-black) !important;
  color: #fff !important;
  border-radius: var(--bio-radius-pill) !important;
  font-family: 'Gilroy', sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: 0.03em !important;
  transition: background var(--bio-transition), transform var(--bio-transition), box-shadow var(--bio-transition) !important;
}

.btn-primary:hover,
.btn-dark:hover {
  background: var(--bio-grey) !important;
  border-color: var(--bio-grey) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22) !important;
}

/* White button → outlined grey */
.btn-white {
  background: rgba(255,255,255,0.92) !important;
  color: var(--bio-text) !important;
  border: 1px solid var(--bio-border) !important;
  border-radius: var(--bio-radius-pill) !important;
  font-family: 'Gilroy', sans-serif !important;
  font-weight: 300 !important;
  font-size: 0.8125rem !important;
  backdrop-filter: blur(8px);
}

/* ─────────────────────────────────────────────
   PRODUCT CARDS
───────────────────────────────────────────── */
.product-card,
.card.product-card {
  border-radius: var(--bio-radius-lg) !important;
  border: 1px solid var(--bio-border) !important;
  background: var(--bio-surface) !important;
  overflow: hidden;
  transition: box-shadow var(--bio-transition), transform var(--bio-transition) !important;
}

.product-card:hover {
  box-shadow: var(--bio-shadow-hover) !important;
  transform: translateY(-4px) !important;
}

/* Product card title */
.product-card .card-title,
.product-card h3,
.product-card .js-name-b2 {
  font-family: 'Gilroy', sans-serif !important;
  font-weight: 300 !important;
  font-size: 1.15rem !important;
}

/* Price */
.product-card .price,
.product-card .product-price {
  color: var(--bio-green-deep) !important;
  font-weight: 600 !important;
}

/* Add to cart button */
.product-card .btn-cart,
.product-card .btn-add-cart {
  background: var(--bio-black) !important;
  color: #fff !important;
  border-radius: var(--bio-radius-pill) !important;
  border: none !important;
  font-size: 0.8125rem !important;
  font-weight: 300 !important;
}

/* ─────────────────────────────────────────────
   K-BEAUTY (GAMME CORÉENNE) — scoped red accent
   Applied only to: the homepage's K-Beauty Ritual section, and shop
   sidebar category names that match K-Beauty/Korean (see shop.blade.php)
───────────────────────────────────────────── */
#bio-ritual .bio-section-title em {
  color: var(--bio-kbeauty-red) !important;
}

.kbeauty-cat-label {
  color: var(--bio-kbeauty-red) !important;
  font-weight: 600 !important;
}

/* ─────────────────────────────────────────────
   VIDEO MOMENT (cinematic beat right after the hero)
───────────────────────────────────────────── */
.bio-video {
  padding: 0 0 var(--bio-pad-gap, 12px);
}

.bio-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: var(--bio-radius-xl);
  overflow: hidden;
  background: #000;
  box-shadow: var(--bio-shadow);
}

@media (max-width: 900px) {
  .bio-video-frame { aspect-ratio: 4/5; border-radius: var(--bio-radius-lg); }
}

.bio-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 45%);
  pointer-events: none;
}

.bio-video-caption {
  position: absolute;
  left: 28px;
  bottom: 24px;
  font-family: 'Gilroy', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: #fff;
  margin: 0;
  max-width: 60%;
}

@media (max-width: 640px) {
  .bio-video-caption { left: 18px; bottom: 18px; font-size: 1.05rem; max-width: 80%; }
}

.bio-video-control {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--bio-transition), border-color var(--bio-transition), transform var(--bio-transition);
}

.bio-video-control:hover {
  background: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.05);
}

.bio-video-control svg { width: 17px; height: 17px; }

.bio-video-playhint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--bio-transition);
}

.bio-video-frame.bio-video-paused .bio-video-playhint {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.bio-video-playhint-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--bio-black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.bio-video-playhint-btn svg { width: 22px; height: 22px; margin-left: 3px; }

/* ─────────────────────────────────────────────
   BANNER (admin-managed, between hero and products)
───────────────────────────────────────────── */
.bio-banner {
  padding: 0 0 var(--bio-pad-gap, 0);
}

.bio-banner-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 21/6;
  overflow: hidden;
  text-decoration: none;
}

@media (max-width: 900px) {
  .bio-banner-link { aspect-ratio: 4/3; }
}

.bio-banner-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.bio-banner-link:hover img { transform: scale(1.02); }

.bio-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
  padding: 24px;
}

.bio-banner-title {
  font-family: 'Gilroy', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(1.6rem, 4vw, 2.75rem) !important;
  color: #fff !important;
  margin-bottom: 10px;
}

.bio-banner-subtitle {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.9);
  max-width: 520px;
  margin: 0 auto 18px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   SECTION HEADERS (Bootstrap-based sections)
───────────────────────────────────────────── */
section h2 {
  font-family: 'Gilroy', sans-serif !important;
  font-weight: 300 !important;
  color: var(--bio-text) !important;
}

/* ─────────────────────────────────────────────
   HERO SECTION — Bio-style override
───────────────────────────────────────────── */
.bio-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--bio-bg);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.bio-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}

.bio-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bio-green-deep);
  margin-bottom: 20px;
}

.bio-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bio-green);
  flex-shrink: 0;
}

.bio-headline {
  font-family: 'Gilroy', sans-serif !important;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.01em !important;
  color: var(--bio-text) !important;
  margin-bottom: 24px !important;
}

.bio-headline em {
  font-style: italic;
  color: var(--bio-green-deep);
}

.bio-hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bio-text-muted);
  max-width: 440px;
  margin-bottom: 36px;
}

.bio-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.bio-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--bio-black);
  color: #fff !important;
  font-family: 'Gilroy', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  border-radius: var(--bio-radius-pill);
  border: none;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none !important;
  transition: background var(--bio-transition), transform var(--bio-transition), box-shadow var(--bio-transition);
}

.bio-btn-primary:hover {
  background: var(--bio-grey) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}

.bio-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  font-family: 'Gilroy', sans-serif;
  font-size: 0.875rem;
  color: var(--bio-text-muted) !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  min-height: 44px;
  transition: color var(--bio-transition), border-color var(--bio-transition);
}

.bio-btn-ghost:hover {
  color: var(--bio-text) !important;
  border-color: var(--bio-text-muted);
}

.bio-dz-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--bio-surface);
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bio-text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.bio-hero-img-wrap {
  position: relative;
  border-radius: var(--bio-radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bio-surface-2);
}

.bio-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.bio-hero-img-wrap:hover img { transform: scale(1.03); }

/* ─── Hero product collage ─── */
.bio-hero-collage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  height: 540px;
}

.bio-hero-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-hero-col-main { padding-top: 0; }
.bio-hero-col-side { padding-top: 48px; }

.bio-hero-img-tile {
  border-radius: var(--bio-radius-xl);
  overflow: hidden;
  background: var(--bio-surface-2);
  flex: 1;
}

.bio-hero-img-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 500ms ease;
}

.bio-hero-img-tile:hover img { transform: scale(1.04); }

.bio-hero-tile-lg { flex: 1.6; }
.bio-hero-tile-sm { flex: 1; }

@media (max-width: 900px) {
  .bio-hero-collage {
    height: 320px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .bio-hero-col-side { padding-top: 24px; }
  .bio-hero-img-tile { border-radius: var(--bio-radius-lg); }
  /* Contain floats so they don't bleed into the text below on single-column layout */
  .bio-hero-visual {
    overflow: hidden;
    border-radius: var(--bio-radius-xl);
  }
  .bio-hero-float { display: none; }
}

@media (max-width: 640px) {
  .bio-hero-collage {
    height: 220px;
    gap: 6px;
  }
  /* Show only 2 images on small phones — hide the side column */
  .bio-hero-col-side { display: none; }
  .bio-hero-collage { grid-template-columns: 1fr; }
  .bio-hero-col-main { flex-direction: row; gap: 6px; }
  .bio-hero-tile-lg, .bio-hero-tile-sm { flex: 1; }
}

.bio-hero-float {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(45px);
}
.bio-hero-float-1 {
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: var(--bio-green-soft);
  opacity: 0.5;
}
.bio-hero-float-2 {
  bottom: -30px; left: -20px;
  width: 150px; height: 150px;
  background: rgba(108,110,112,0.18);
  opacity: 0.5;
}

/* ─────────────────────────────────────────────
   TRUST TICKER
───────────────────────────────────────────── */
.bio-ticker-wrap {
  background: var(--bio-black);
  overflow: hidden;
  padding: 13px 0;
  width: 100%;
}

.bio-ticker-track {
  display: flex;
  width: max-content;
  animation: bio-ticker 36s linear infinite;
}

@keyframes bio-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.bio-ticker-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  white-space: nowrap;
}

.bio-ticker-item span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
}

.bio-ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bio-green);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bio-ticker-track { animation: none; }
}

/* ─────────────────────────────────────────────
   SECTION LABEL
───────────────────────────────────────────── */
.bio-section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bio-green-deep);
  margin-bottom: 10px;
  display: block;
}

.bio-section-title {
  font-family: 'Gilroy', sans-serif !important;
  font-size: clamp(1.85rem, 3.2vw, 2.9rem) !important;
  font-weight: 300 !important;
  color: var(--bio-text) !important;
  line-height: 1.2 !important;
  margin-bottom: 14px;
}

.bio-section-desc {
  font-size: 0.9375rem;
  color: var(--bio-text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────
   REAL PRODUCT GRID
───────────────────────────────────────────── */
.bio-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.bio-product-card {
  background: var(--bio-surface);
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius-xl);
  overflow: hidden;
  transition: box-shadow var(--bio-transition), transform var(--bio-transition);
  cursor: pointer;
}

.bio-product-card:hover {
  box-shadow: var(--bio-shadow-hover);
  transform: translateY(-4px);
}

.bio-product-card.bio-hidden {
  display: none;
}

.bio-product-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bio-surface-2);
  text-decoration: none;
}

.bio-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.bio-product-card:hover .bio-product-img-wrap img {
  transform: scale(1.04);
}

.bio-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--bio-radius-pill);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bio-green-deep);
}

.bio-product-body {
  padding: 18px 20px 20px;
}

.bio-product-cat {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bio-text-light);
  margin-bottom: 5px;
}

.bio-product-name {
  font-family: 'Gilroy', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 300 !important;
  color: var(--bio-text) !important;
  line-height: 1.3;
  margin-bottom: 7px;
}

.bio-product-benefit {
  font-size: 0.8125rem;
  color: var(--bio-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.bio-product-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bio-green-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  min-height: 36px;
  transition: gap var(--bio-transition), color var(--bio-transition);
}

.bio-product-link:hover {
  gap: 10px;
  color: var(--bio-black);
}

.bio-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.bio-product-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bio-text);
}

.bio-product-old-price {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--bio-text-muted);
  text-decoration: line-through;
}

.bio-product-badge-sale {
  background: var(--bio-green);
  color: #000;
}

.bio-product-quickadd {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bio-green-deep);
  box-shadow: var(--bio-shadow);
  transition: background var(--bio-transition), color var(--bio-transition), transform var(--bio-transition);
  cursor: pointer;
  z-index: 2;
}

.bio-product-quickadd:hover {
  background: var(--bio-green);
  color: #000;
  transform: scale(1.08);
}

@media (max-width: 1100px) {
  .bio-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .bio-products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ─────────────────────────────────────────────
   BESTSELLERS SLIDER (slick)
───────────────────────────────────────────── */
.bio-bestsellers-slider .slick-track { display: flex; }
.bio-bestsellers-slider .slick-slide { height: auto; }
.bio-bestsellers-slider .slick-slide > div { height: 100%; }

.bio-bestseller-slide {
  padding: 0 12px;
  height: 100%;
}

.bio-bestseller-slide .bio-product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bio-bestsellers-slider .slick-list {
  margin: 0 -12px;
  padding-bottom: 8px;
}

.bio-bestsellers-slider .slick-arrow {
  position: absolute;
  top: -52px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--bio-border);
  background: var(--bio-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: border-color var(--bio-transition), background var(--bio-transition);
}

.bio-bestsellers-slider .slick-arrow:hover {
  border-color: var(--bio-black);
  background: var(--bio-black);
  color: #fff;
}

.bio-bestsellers-slider .slick-prev { right: 56px; left: auto; }
.bio-bestsellers-slider .slick-next { right: 8px; }

.bio-bestsellers-slider .slick-dots {
  bottom: -36px;
}

.bio-bestsellers-slider .slick-dots li button::before {
  color: var(--bio-green) !important;
}

.bio-bestsellers-slider .slick-dots li.slick-active button::before {
  color: var(--bio-green-deep) !important;
}

/* ─────────────────────────────────────────────
   CATEGORY FILTER PILLS
───────────────────────────────────────────── */
.bio-filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.bio-pill {
  padding: 9px 22px;
  border-radius: var(--bio-radius-pill);
  border: 1px solid var(--bio-border);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--bio-text-muted);
  background: transparent;
  cursor: pointer;
  min-height: 40px;
  font-family: 'Gilroy', sans-serif;
  transition: all var(--bio-transition);
  text-decoration: none;
}

.bio-pill:hover {
  border-color: var(--bio-green);
  color: var(--bio-green-deep);
  background: transparent;
}

.bio-pill.active {
  background: var(--bio-black) !important;
  border-color: var(--bio-black) !important;
  color: #fff !important;
}

/* ─────────────────────────────────────────────
   RITUAL SECTION
───────────────────────────────────────────── */
.bio-ritual {
  background: linear-gradient(to bottom, transparent, rgba(108,110,112,0.05) 25%, rgba(108,110,112,0.08) 75%, transparent);
}

.bio-ritual-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.bio-ritual-img {
  border-radius: var(--bio-radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bio-surface-2);
}

.bio-ritual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-ritual-step {
  padding: 18px 0;
  border-bottom: 1px solid var(--bio-border);
}

.bio-ritual-step:last-child { border-bottom: none; }

.bio-ritual-num {
  font-family: 'Gilroy', sans-serif;
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--bio-border);
  line-height: 1;
  margin-bottom: -12px;
  letter-spacing: -0.02em;
}

.bio-ritual-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bio-text);
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}

.bio-ritual-desc {
  font-size: 0.85rem;
  color: var(--bio-text-muted);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   STORY SECTION
───────────────────────────────────────────── */
.bio-story {
  background: var(--bio-surface-2);
  position: relative;
  overflow: hidden;
}

.bio-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.bio-story-img {
  border-radius: var(--bio-radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bio-surface-3);
}

.bio-story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-quote {
  font-family: 'Gilroy', sans-serif !important;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.5rem) !important;
  font-weight: 300 !important;
  line-height: 1.35 !important;
  color: var(--bio-text) !important;
  margin-bottom: 24px;
}

.bio-story-body p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--bio-text-muted);
  margin-bottom: 16px;
}

.bio-trust-strip {
  padding: 28px 0;
  border-top: 1px solid var(--bio-border);
  border-bottom: 1px solid var(--bio-border);
}

.bio-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.bio-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bio-trust-icon {
  display: flex;
  color: var(--bio-green-deep);
  flex-shrink: 0;
}

.bio-trust-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bio-text);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .bio-trust-row { gap: 20px; }
  .bio-trust-label { font-size: 0.7rem; }
}

.bio-pillars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
}

.bio-pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bio-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bio-surface);
  border: 1px solid var(--bio-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--bio-green-deep);
}

.bio-pillar-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bio-text);
  margin-bottom: 2px;
}

.bio-pillar-text span {
  font-size: 0.8125rem;
  color: var(--bio-text-muted);
}

/* ─────────────────────────────────────────────
   REVIEWS
───────────────────────────────────────────── */
.bio-reviews-bg {
  background: linear-gradient(160deg, var(--bio-surface-2) 0%, var(--bio-bg) 100%);
}

.bio-reviews-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  /* Matches .container's actual gutter (--bs-gutter-x: 1.875rem, i.e. 0.9375rem
     per side) — a wider bleed here pushes this element past the viewport edge
     and causes page-level horizontal scroll. */
  margin: 0 -0.9375rem;
  padding: 0 0.9375rem 24px;
}

.bio-reviews-scroll::-webkit-scrollbar { display: none; }
.bio-reviews-scroll.grabbing { cursor: grabbing; }

.bio-reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-right: 24px;
}

.bio-review-card {
  background: var(--bio-surface);
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius-xl);
  padding: 28px;
  width: 310px;
  flex-shrink: 0;
  box-shadow: var(--bio-shadow);
}

.bio-review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--bio-black);
}

.bio-review-stars-input {
  color: var(--bio-green-deep);
}

.bio-review-stars-input span:hover svg {
  transform: scale(1.1);
}

.bio-review-stars-input svg {
  transition: transform var(--bio-transition);
}

.bio-review-text {
  font-family: 'Gilroy', sans-serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--bio-text);
  margin-bottom: 20px;
}

.bio-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bio-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bio-surface-3);
  flex-shrink: 0;
}

.bio-review-avatar img { width: 100%; height: 100%; object-fit: cover; }

.bio-review-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bio-text);
}

.bio-review-city {
  font-size: 0.8rem;
  color: var(--bio-text-muted);
}

/* ─────────────────────────────────────────────
   INSTAGRAM GRID
───────────────────────────────────────────── */
.bio-insta-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}

.bio-insta-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bio-surface-2);
  cursor: pointer;
}

.bio-insta-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.bio-insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--bio-transition);
}

.bio-insta-tile:hover .bio-insta-overlay { opacity: 1; }
.bio-insta-tile:hover img { transform: scale(1.06); }
.bio-insta-overlay svg { color: #fff; }

/* ─────────────────────────────────────────────
   FOOTER OVERRIDE
───────────────────────────────────────────── */
.bio-footer {
  background: var(--bio-footer-bg) !important;
  color: rgba(255,255,255,0.6);
  padding: 80px 0 0;
}

.bio-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.bio-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bio-footer-logo-text {
  font-family: 'Gilroy', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: #ffffff;
}

.bio-footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  margin-bottom: 22px;
  max-width: 270px;
}

.bio-footer-socials {
  display: flex;
  gap: 12px;
}

.bio-footer-social {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: border-color var(--bio-transition), color var(--bio-transition);
}

.bio-footer-social:hover {
  border-color: var(--bio-green);
  color: var(--bio-green) !important;
}

.bio-footer-col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 18px;
  display: block;
}

.bio-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bio-footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  min-height: 36px;
  display: flex;
  align-items: center;
  transition: color var(--bio-transition);
}

.bio-footer-links a:hover { color: #ffffff; }

.bio-footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.bio-footer-contact-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--bio-green);
}

.bio-footer-contact-item span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.bio-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bio-footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

/* ─────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────── */
.bio-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.bio-reveal.bio-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .bio-reveal { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────────────────────
   SLICK SLIDER OVERRIDES
───────────────────────────────────────────── */
.slick-dots li button::before {
  color: var(--bio-green) !important;
}

.slick-dots li.slick-active button::before {
  color: var(--bio-green-deep) !important;
}

.slick-prev::before,
.slick-next::before {
  color: var(--bio-text) !important;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bio-footer-inner { grid-template-columns: 1fr 1fr; }
  .bio-insta-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .bio-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0 48px;
  }
  .bio-hero-inner .bio-hero-visual { order: -1; }
  .bio-hero-img-wrap { aspect-ratio: 16/9; }
  .bio-ritual-inner { grid-template-columns: 1fr; gap: 40px; }
  .bio-ritual-img { aspect-ratio: 16/9; }
  .bio-story-inner { grid-template-columns: 1fr; gap: 36px; }
  .bio-story-img { aspect-ratio: 16/9; order: -1; }
}

@media (max-width: 640px) {
  .bio-insta-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-insta-tile:last-child { display: none; }
  .bio-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .bio-footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .bio-section-title { font-size: 1.85rem !important; }
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--bio-green-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Section padding utility */
.bio-pad { padding: 88px 0; }
.bio-pad-sm { padding: 60px 0; }

/* Neutral section background */
.bio-bg-warm { background-color: var(--bio-surface-2); }

/* ─────────────────────────────────────────────
   REELS GALLERY
───────────────────────────────────────────── */
.bio-reels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bio-reel-tile {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: var(--bio-radius-xl);
  overflow: hidden;
  background: var(--bio-surface-2);
  border: 1px solid var(--bio-border);
  box-shadow: var(--bio-shadow);
  transition: box-shadow var(--bio-transition), transform var(--bio-transition);
}

.bio-reel-tile:hover {
  box-shadow: var(--bio-shadow-hover);
  transform: translateY(-4px);
}

.bio-reel-tile iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1100px) {
  .bio-reels-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .bio-reels-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ─────────────────────────────────────────────
   PRODUCT GALLERY — guarantee scroll room so the
   sticky image column stays pinned even when the
   description column is short.
───────────────────────────────────────────── */
@media (min-width: 768px) {
  .product-gallery-row {
    min-height: calc(100vh + 400px);
  }
}
.bio-bg-body  { background-color: var(--bio-bg); }

/* ─────────────────────────────────────────────
   MEGA-MENU v2 — portal pattern.
   #biolila-megamenu is a DOM sibling of <header>, not nested inside it,
   and uses `position: fixed` with top/left set inline by JS from the
   trigger's real getBoundingClientRect(). It has zero dependency on any
   ancestor's position/transform/stacking-context — the two previous
   bugs here (Bootstrap's .position-static !important canceling our
   position:relative, then the sticky header's own transform re-anchoring
   the containing block) are both structurally impossible with this
   approach, since there's no ancestor relationship to break.
───────────────────────────────────────────── */
.biolila-megamenu {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bio-surface);
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius-lg);
  box-shadow: var(--bio-shadow-hover);
  padding: 28px;
  min-width: 640px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--bio-transition), transform var(--bio-transition), visibility var(--bio-transition);
  z-index: 1000;
  pointer-events: none;
}

.biolila-megamenu-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.biolila-megamenu-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.biolila-megamenu-col {
  min-width: 200px;
}

.biolila-megamenu-heading {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8125rem;
  color: var(--bio-text);
  margin-bottom: 12px;
  text-decoration: none;
  transition: color var(--bio-transition);
}

.biolila-megamenu-heading:hover {
  color: var(--bio-green-deep);
}

.biolila-megamenu-subcat {
  margin-bottom: 18px;
}

.biolila-megamenu-subcat:last-child {
  margin-bottom: 0;
}

.biolila-megamenu-sublabel {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bio-text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color var(--bio-transition);
}

.biolila-megamenu-sublabel:hover {
  color: var(--bio-green-deep);
}

.biolila-megamenu-products {
  display: flex;
  gap: 12px;
}

.biolila-megamenu-product {
  display: flex;
  flex-direction: column;
  width: 80px;
  text-decoration: none;
  transition: transform var(--bio-transition);
}

.biolila-megamenu-product:hover {
  transform: translateY(-2px);
}

.biolila-megamenu-product-img {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: var(--bio-radius-lg);
  overflow: hidden;
  background: var(--bio-surface-2);
  margin-bottom: 7px;
}

.biolila-megamenu-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--bio-transition);
}

.biolila-megamenu-product:hover .biolila-megamenu-product-img img {
  transform: scale(1.06);
}

.biolila-megamenu-product-name {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--bio-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.biolila-megamenu-product-price {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--bio-green-deep);
  margin-top: 3px;
}

.biolila-megamenu-viewall {
  display: block;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--bio-border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bio-green-deep);
  text-decoration: none;
}

.biolila-megamenu-viewall:hover {
  color: var(--bio-black);
}

@media (max-width: 1199.98px) {
  /* Desktop-only feature — mobile uses the separate offcanvas nav. */
  .biolila-megamenu {
    display: none !important;
  }
}

/* ─────────────────────────────────────────────
   SHOP SIDEBAR — category/tag filter widget on
   /shop, restyled to match the bio-design system.
   Selectors below are unique to this page.
───────────────────────────────────────────── */
.primary-sidebar .widget {
  padding: 22px 0;
  border-bottom: 1px solid var(--bio-border);
}

.primary-sidebar .widget:first-child {
  padding-top: 0;
}

.primary-sidebar .widget:last-child {
  border-bottom: none;
}

.primary-sidebar .widget-title {
  font-family: 'Gilroy', sans-serif !important;
  font-weight: 300 !important;
  font-size: 1.0625rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--bio-text);
}

.primary-sidebar .navbar-nav-cate .nav-item > a,
.primary-sidebar .nav-submenu .nav-item > a {
  font-family: 'Gilroy', sans-serif !important;
  font-weight: 300 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--bio-text-muted) !important;
  padding: 8px 0 !important;
  transition: color var(--bio-transition);
}

.primary-sidebar .navbar-nav-cate .nav-item > a:hover,
.primary-sidebar .navbar-nav-cate .nav-item > a.selected-nav-item {
  color: var(--bio-green-deep) !important;
}

.primary-sidebar .nav-submenu {
  margin-top: 2px;
  margin-bottom: 4px;
}

.primary-sidebar .nav-submenu .nav-item > a {
  font-size: 0.8125rem !important;
  color: var(--bio-text-light) !important;
}

.primary-sidebar .widget-tags a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--bio-radius-pill);
  border: 1px solid var(--bio-border);
  font-size: 0.75rem !important;
  color: var(--bio-text-muted) !important;
  text-decoration: none !important;
  transition: border-color var(--bio-transition), color var(--bio-transition);
}

.primary-sidebar .widget-tags a:hover {
  border-color: var(--bio-green-deep);
  color: var(--bio-green-deep) !important;
}

.tool-bar-left {
  font-family: 'Gilroy', sans-serif;
  color: var(--bio-text-muted);
}

.tool-bar select.form-select {
  border-radius: var(--bio-radius-pill) !important;
  border: 1px solid var(--bio-border) !important;
  background-color: var(--bio-surface) !important;
  color: var(--bio-text) !important;
  font-size: 0.8125rem !important;
  padding: 8px 20px !important;
}

.tool-bar .btn-dark {
  border-radius: var(--bio-radius-pill) !important;
  background-color: var(--bio-black) !important;
  border: none !important;
  font-size: 0.8125rem !important;
}
