/* ============================================================
   ALPACA VALLEY — styles.css
   Cozy Organic Cream Light Theme — Farm & Fiber Storefront
   ============================================================ */



/* ── CSS VARIABLES ── */
:root {
  --bg:           #f5efe6; /* Pale Cozy Cream Background */
  --bg-surface:   #faf8f5; /* Light Cream Surface */
  --bg-card:      #faf8f5; /* Very subtle organic beige Card */
  --bg-card-h:    #f5efe6; /* Cozy beige Hover Background */
  --bg-sidebar:   #132c1c; /* Deep High-Contrast Forest Pine Green */
  --accent:       #132c1c; /* Deep Pine Green as primary brand contrast */
  --accent-h:     #0c1b11; /* Darker Pine Green for interactive hover */
  --accent-gold:  #e59a3c; /* Sun Gold for CTA / Badges / active states */
  --accent-gold-h:#c88029; /* Darker Sun Gold for hover */
  --accent-dim:   rgba(19, 44, 28, 0.08);  /* Dimmed Pine Green */
  --accent-dim2:  rgba(19, 44, 28, 0.04);  /* Very light Pine Green */
  --text:         #221e1b; /* Rich Warm Dark Charcoal-Brown for peak readability */
  --text-s:       #544e48; /* Highly readable dark warm slate-gray */
  --text-m:       #827870; /* Balanced mid warm gray for tertiary text */
  --border:       rgba(19, 44, 28, 0.12);  /* Subtle pine green border overlay */
  --border-h:     rgba(19, 44, 28, 0.3);   /* Active border highlight */
  --shadow-sm:    0 4px 16px rgba(19, 44, 28, 0.03);
  --shadow-md:    0 10px 36px rgba(19, 44, 28, 0.05);
  --shadow-lg:    0 24px 64px rgba(19, 44, 28, 0.08);
  --radius:       6px;    /* Cozy organic slightly rounded corners */
  --radius-md:    12px;
  --radius-lg:    20px;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --sidebar-w:    340px;
  --header-h:     100px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; border: none; outline: none; background: none; }

/* ── BODY ── */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Elegant organic dotted mesh overlay — fixed background decoration */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  background-image: radial-gradient(rgba(46, 83, 57, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.8;
}
body.body--modal-open,
body.body--sidebar-open { overflow: hidden; }

/* ── CONTAINER ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--accent);
}

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Delicate matching border */
  background: rgba(250, 248, 245, 0.15); /* Delicate translucent cream, same style as text box! */
  backdrop-filter: blur(28px); /* Same frosted blur! */
  -webkit-backdrop-filter: blur(28px);
}
.header--scrolled {
  background: rgba(245, 239, 230, 0.9);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Brand */
.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-logo-wrapper {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #faf8f5; /* Clean circle background */
  mix-blend-mode: multiply; /* Blends the light background transparently with the header */
}
.brand-logo-img {
  height: 100%;
  width: 100%;
  display: block;
  flex-shrink: 0;
  object-fit: cover; /* Crops horizontal margins */
  object-position: center; /* Center the emblem */
  transform: scale(1.45); /* Zoom in on the emblem inside the white circle! */
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px; /* Even bigger! Was 38px */
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #000000;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 17px; /* Even bigger! Was 15px */
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #000000;
  font-weight: 700;
}

/* Header Nav */
.header-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-link {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-s);
  font-weight: 500;
  transition: color 0.25s;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

/* Menu Button */
.menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-s);
  transition: all 0.25s;
  flex-shrink: 0;
}
.menu-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim2);
}
.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.menu-icon span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: all 0.3s var(--ease);
  transform-origin: left center;
}
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: rotate(45deg) translateY(-1px); width: 110%; }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: rotate(-45deg) translateY(1px); width: 110%; }
.menu-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-inner { padding: 0 20px; }
  .brand-sub { display: none; }
}

/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 46, 36, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 950;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.sidebar-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  max-width: 90vw;
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(245, 239, 230, 0.15);
  z-index: 960;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow-lg);
  color: #f5efe6;
}
.sidebar--open { transform: translateX(0); }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(245, 239, 230, 0.15);
  flex-shrink: 0;
}
.sidebar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
}
.sidebar-close {
  width: 34px; height: 34px;
  border: 1px solid rgba(245, 239, 230, 0.25);
  border-radius: var(--radius);
  color: #f5efe6;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.sidebar-close:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

.sidebar-search {
  padding: 14px 22px;
  border-bottom: 1px solid rgba(245, 239, 230, 0.15);
  flex-shrink: 0;
}
.sidebar-search input {
  width: 100%;
  background: rgba(245, 239, 230, 0.08);
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: var(--radius);
  padding: 9px 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  transition: border-color 0.25s;
}
.sidebar-search input::placeholder { color: rgba(245, 239, 230, 0.45); }
.sidebar-search input:focus { border-color: var(--accent-gold); }

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 239, 230, 0.15) transparent;
}
.sidebar-content::-webkit-scrollbar { width: 4px; }
.sidebar-content::-webkit-scrollbar-track { background: transparent; }
.sidebar-content::-webkit-scrollbar-thumb { background: rgba(245, 239, 230, 0.15); border-radius: 4px; }

/* Category buttons list */
.sidebar-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  color: rgba(245, 239, 230, 0.85);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: all 0.22s;
  border-bottom: 1px solid rgba(245, 239, 230, 0.1);
  gap: 12px;
  text-align: left;
}
.sidebar-cat-btn:hover {
  color: #ffffff;
  background: rgba(245, 239, 230, 0.08);
  padding-left: 28px;
}
.sidebar-cat-name { flex: 1; }
.sidebar-cat-count {
  background: rgba(229, 154, 60, 0.2);
  color: var(--accent-gold);
  padding: 2px 10px;
  border-radius: 10px;
}

/* ══════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
  filter: brightness(1.05) saturate(1.35); /* Increased brightness and saturation for a vibrant, lush morning pasture */
}

.hero:hover .hero-bg {
  transform: scale(1.0);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(245, 239, 230, 0.0) 0%,
    rgba(245, 239, 230, 0.1) 60%,
    rgba(245, 239, 230, 0.3) 100% /* Reduced wash to let vibrant pasture colors shine through */
  ),
  linear-gradient(
    to top,
    rgba(245, 239, 230, 0.4) 0%, /* Reduced washed out bottom overlay to keep colors prominent */
    transparent 50%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px; /* Wider card box to fit larger eyebrow text beautifully! Was 580px */
  padding: 32px 52px;
  margin: 100px 20px 0;
  text-align: center;
  background: rgba(250, 248, 245, 0.22); /* Frosted translucent glass card for peak legibility */
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(19, 44, 28, 0.05);
}

.hero-title,
.hero-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 700; /* Extra bold! */
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #000000; /* Pure black text */
  text-shadow: none; /* Removed the white outline! */
  text-align: center;
}

.hero-title {
  margin-bottom: 12px;
}

.hero-heading {
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px; /* A little bit bigger still! Was 15px */
  color: #000000; /* Pure black text! Was #1a1615 */
  line-height: 1.8;
  font-weight: 600; /* Semi-bold for peak legibility! Was 500 */
  margin: 0 auto 44px;
  max-width: 600px; /* Adjusted to perfectly flow into exactly 3 lines */
  text-align: center;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.25); }
}

.desktop-only {
  display: inline;
}

@media (max-width: 768px) {
  .hero-content {
    margin: 130px 16px 40px; /* More space from the top header on mobile screens! Was 100px */
    padding: 32px 20px; /* Smaller card box on mobile screens! Was 44px 28px */
    background: rgba(250, 248, 245, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(19, 44, 28, 0.04);
  }
  .desktop-only {
    display: none;
  }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.btn--primary {
  background: var(--accent-gold);
  color: #ffffff;
  border: 1px solid var(--accent-gold);
}
.btn--primary:hover {
  background: var(--accent-gold-h);
  border-color: var(--accent-gold-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 154, 60, 0.25);
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn--ghost:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}
.btn--lg { padding: 16px 44px; font-size: 12px; }

/* ══════════════════════════════════════════════
   INTRO STRIP
══════════════════════════════════════════════ */
.intro-strip {
  padding: 64px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.intro-item {
  text-align: center;
  padding: 0 16px;
}
.intro-icon {
  display: block;
  font-size: 8px;
  color: var(--accent-gold);
  margin: 0 auto 16px;
  letter-spacing: 0.5em;
}
.intro-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--accent);
}
.intro-item p {
  font-size: 13px;
  color: var(--text-s);
  line-height: 1.7;
}
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 520px) {
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ══════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 14px;
  color: var(--text-s);
  max-width: 520px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════
   FEATURED & CONTACT SECTION WRAPPER
   ══════════════════════════════════════════════ */
.featured-contact-wrap {
  position: relative;
  background-image: linear-gradient(rgba(245, 239, 230, 0.72), rgba(245, 239, 230, 0.72)), url('images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Beautiful parallax scrolling effect */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ══════════════════════════════════════════════
   FEATURED SECTION
══════════════════════════════════════════════ */
.featured {
  padding: 100px 0 50px;
  background: transparent;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .featured-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .featured-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 8px 22px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-s);
  transition: all 0.25s;
  background: transparent;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim2);
}
.filter-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

/* ══════════════════════════════════════════════
   COLLECTION SECTION
══════════════════════════════════════════════ */
.collection {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════
   PRODUCT CARD
══════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.product-card--featured .card-image { height: 280px; }

/* Card Image */
.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
.card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .card-image::before { transform: scale(1.06); }

/* Category Visual Mapping Defaults */
.cat-alpakadnger::before,
.cat-alpaka::before,
.cat-schaf::before,
.cat-schafdnger::before,
.cat-vogel-nistmaterialien::before,
.cat-default::before {
  background-color: #faf7f2;
}

/* Photo placeholder icon */
.card-image::after {
  content: '\1F40D'; /* Alpaca or generic animal/farm emoji fallback */
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  opacity: 0.12;
  pointer-events: none;
}
.cat-alpakadnger::after { content: '\1F331'; }
.cat-alpaka::after { content: '\1F999'; }
.cat-schaf::after { content: '\1F411'; }
.cat-schafdnger::after { content: '\1F33E'; }
.cat-vogel-nistmaterialien::after { content: '\1F426'; }

/* Hover reveal overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 46, 36, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.product-card:hover .card-overlay { opacity: 1; }
.card-view-btn {
  padding: 10px 28px;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  font-weight: 600;
}

.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius);
  z-index: 3;
}

/* Card Body */
.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-category {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--accent);
  margin-bottom: 10px;
}
.card-desc {
  font-size: 13px;
  color: var(--text-s);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.card-stock {
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 10px;
  font-weight: 500;
}
.stock-ok  { background: rgba(46, 83, 57, 0.08); color: var(--accent); }
.stock-low { background: rgba(229, 154, 60, 0.1);  color: var(--accent-gold); }
.stock-out { background: rgba(180,50,50,0.08);   color: #c06060; }

/* ══════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════ */
.contact {
  position: relative;
  padding: 50px 0 100px;
  background: transparent;
}
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  position: relative;
  z-index: 2;
}
.contact-header { margin-bottom: 0; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  position: relative;
  background-image: linear-gradient(rgba(19, 44, 28, 0.94), rgba(19, 44, 28, 0.94)), url('images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(245, 239, 230, 0.1);
  padding: 56px 0 32px;
  color: #f5efe6;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 239, 230, 0.15);
  margin-bottom: 24px;
}
.footer-logo-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #faf8f5; /* Elegant cream base to serve as the white circle */
}
.footer-logo-img {
  height: 100%;
  width: 100%;
  display: block;
  flex-shrink: 0;
  object-fit: cover; /* Crops the left/right margins */
  object-position: center; /* Centers the emblem */
  transform: scale(1.45); /* Zoom in on the emblem inside the white circle! */
}
.footer-wordmark {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-tagline {
  font-size: 12px;
  color: rgba(245, 239, 230, 0.6);
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-link {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.7);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent-gold); }
.footer-link--btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.footer-copy { text-align: center; }
.footer-copy p {
  font-size: 11px;
  color: rgba(245, 239, 230, 0.5);
  line-height: 1.9;
}
.footer-copy a { color: var(--accent-gold); }
.footer-disclaimer { font-size: 10px !important; color: rgba(245, 239, 230, 0.4) !important; }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 16px; }
}

/* ══════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 46, 36, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal-overlay--open {
  opacity: 1;
  visibility: visible;
}
.modal-overlay--open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  box-shadow: var(--shadow-lg);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-s);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 2;
  background: rgba(255,255,255,0.8);
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-image {
  height: 480px;
  position: relative;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
}
.modal-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #faf7f2;
  background-size: cover;
  background-position: center;
}
.modal-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(88deg, transparent 0px, rgba(46,83,57,0.015) 1px, transparent 2px, transparent 12px);
}
.modal-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius);
  z-index: 3;
}
.modal-details {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
}
.modal-category {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.modal-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--accent);
  margin-bottom: 20px;
}
.modal-description {
  font-size: 14px;
  color: var(--text-s);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 28px;
}
.modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.modal-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
}
.modal-stock {
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}
.modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  margin-bottom: 14px;
}
.modal-cta:hover {
  background: var(--accent-gold-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 154, 60, 0.25);
}
.modal-note {
  font-size: 11px;
  color: var(--text-m);
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .modal-inner { grid-template-columns: 1fr; }
  .modal-image { height: 240px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-details { padding: 28px 24px; }
}

/* ══════════════════════════════════════════════
   ANIMATIONS (entry)
══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.6s var(--ease) both; }
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.12s; }
.animate-in:nth-child(3) { animation-delay: 0.19s; }
.animate-in:nth-child(4) { animation-delay: 0.26s; }
.animate-in:nth-child(n+5) { animation-delay: 0.3s; }

/* ── SCROLLBAR (global) ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

/* ── FOCUS RING (accessibility) ── */
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }

/* ══════════════════════════════════════════════
   CATEGORY VIEW OVERLAY
══════════════════════════════════════════════ */
.cat-view {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 800;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.cat-view::-webkit-scrollbar { width: 4px; }
.cat-view::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.cat-view--open {
  transform: translateX(0);
}

.cat-view-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 32px 80px;
}

.cat-view-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.cat-view-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-s);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s;
  white-space: nowrap;
  margin-top: 8px;
}
.cat-view-back:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(-3px);
}

.cat-view-title-wrap { flex: 1; }
.cat-view-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1.1;
  margin-top: 8px;
}

.cat-view-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .cat-view-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .cat-view-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .cat-view-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px)  { .cat-view-inner { padding: 100px 20px 60px; } }

/* ══════════════════════════════════════════════
   CHECKOUT MODAL & FORMS
══════════════════════════════════════════════ */
.checkout-inner {
  padding: 40px;
}
.checkout-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}
.form-label {
  font-size: 13px;
  color: var(--text-s);
  letter-spacing: 0.05em;
  font-weight: 500;
}
.form-input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.25s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px var(--accent-gold);
  background: var(--bg-surface);
}
.form-input::placeholder {
  color: var(--text-m);
}

/* Custom Radio Buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  font-size: 14px;
  color: var(--text);
}
.radio-label:hover {
  background: var(--accent-dim2);
}
.radio-label input {
  display: none;
}
.radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.2s;
}
.radio-label input:checked + .radio-custom {
  border-color: var(--accent-gold);
}
.radio-label input:checked + .radio-custom::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--accent-gold);
  border-radius: 50%;
}
.radio-label:has(input:checked) {
  border-color: var(--accent-gold);
  background: rgba(229, 154, 60, 0.08);
  color: var(--text);
}

.mt-4 { margin-top: 16px; }
.mt-2 { margin-top: 8px; }

/* Logo in Footer */
.footer-brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════
   ACCORDION & SEARCH RESULTS (SIDEBAR CATALOG)
   ══════════════════════════════════════════════ */

/* Accordion tree list reset */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Accordion nodes */
.menu-node {
  display: block;
  position: relative;
  width: 100%;
}

/* Submenu container (starts collapsed) */
.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.25s ease-out,
              visibility 0.25s;
}

/* Expanded state for submenus */
.menu-node.is-open > .submenu {
  max-height: 800px; /* roomy enough for deep structures */
  opacity: 1;
  visibility: visible;
  border-left: 1px solid rgba(245, 239, 230, 0.1);
  margin-left: 15px; /* lines showing vertical depth */
  padding-left: 4px;
}

/* Row alignment */
.menu-row {
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid rgba(245, 239, 230, 0.05);
}

.menu-row:hover {
  background: rgba(245, 239, 230, 0.03);
}

/* Caret/Expansion arrow */
.menu-toggle-btn {
  background: none;
  border: none;
  color: rgba(245, 239, 230, 0.6);
  width: 42px;  /* Exact matching width as the placeholder */
  padding: 0;   /* Asymmetric padding removed for perfect centering */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.menu-toggle-btn:hover {
  color: var(--accent-gold);
}

.menu-toggle-placeholder {
  width: 42px; /* Identical width as toggle button for pixel-perfect label alignment */
  height: 100%;
  display: inline-block;
  flex-shrink: 0;
}

.caret-icon {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

/* Caret rotated when submenu open */
.caret-icon.is-active {
  transform: rotate(90deg);
  color: var(--accent-gold);
}

/* Category item label button */
.menu-label-btn {
  background: none;
  border: none;
  flex: 1;
  padding: 14px 20px 14px 4px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: rgba(245, 239, 230, 0.85);
  transition: color 0.2s ease;
}

.menu-label-btn:hover {
  color: var(--accent-gold);
}

/* Dynamic product counts */
.menu-item-count {
  font-size: 11px;
  background: rgba(245, 239, 230, 0.1);
  color: rgba(245, 239, 230, 0.65);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
  min-width: 16px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.menu-label-btn:hover .menu-item-count {
  background: rgba(229, 154, 60, 0.2);
  color: var(--accent-gold);
}

/* Hierarchical nesting indents */
.level-1 > .menu-row {
  padding-left: 0;
}

.level-2 > .menu-row {
  padding-left: 12px;
}

.level-3 > .menu-row {
  padding-left: 24px;
}

.level-4 > .menu-row {
  padding-left: 36px;
}

/* Adjust button padding dynamically for nesting levels */
.level-2 .menu-label-btn { font-size: 13.5px; font-weight: 400; opacity: 0.95; }
.level-3 .menu-label-btn { font-size: 13px; font-weight: 400; opacity: 0.85; }
.level-4 .menu-label-btn { font-size: 12.5px; font-weight: 400; opacity: 0.75; }

/* --- Breadcrumb Search Results --- */
.search-results-list {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.search-result-btn {
  background: none;
  border: none;
  width: 100%;
  padding: 14px 22px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(245, 239, 230, 0.05);
  transition: background 0.25s, color 0.2s;
}

.search-result-btn:hover {
  background: rgba(245, 239, 230, 0.03);
}

.search-result-path {
  font-size: 12px;
  font-family: inherit;
  color: rgba(245, 239, 230, 0.85);
  line-height: 1.4;
  flex: 1;
  word-break: break-word;
}

.search-result-btn:hover .search-result-path {
  color: var(--accent-gold);
}

.search-result-count {
  font-size: 11px;
  background: rgba(245, 239, 230, 0.1);
  color: rgba(245, 239, 230, 0.65);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.search-result-btn:hover .search-result-count {
  background: rgba(229, 154, 60, 0.2);
  color: var(--accent-gold);
}
