/* ── Variables ── */
:root {
  --bg-deep: #0a120e;
  --bg-forest: #0f1a14;
  --bg-card: rgba(18, 28, 22, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --gold: #c9a050;
  --gold-light: #f0d890;
  --gold-glow: rgba(201, 160, 80, 0.35);
  --text: #e8e4dc;
  --text-muted: rgba(232, 228, 220, 0.6);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --header-h: 72px;
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
}

main {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ── Forest Background ── */
.forest-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-deep);
  overflow: hidden;
}

.forest-photo {
  position: absolute;
  inset: 0;
  background:
    url('../assets/summer-forest.jpg') center center / cover no-repeat;
  transform: scale(1.03);
  filter: brightness(0.72) saturate(1.08) contrast(1.05);
  will-change: transform;
}

.forest-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 14, 10, 0.78) 0%, rgba(6, 12, 8, 0.42) 38%, rgba(4, 10, 6, 0.52) 68%, rgba(3, 8, 5, 0.82) 100%),
    radial-gradient(ellipse 90% 70% at 50% 35%, rgba(8, 18, 12, 0.35) 0%, transparent 65%),
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(8, 20, 12, 0.55) 0%, transparent 70%);
  pointer-events: none;
}

.forest-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.forest-trees {
  background:
    radial-gradient(ellipse 3% 25% at 8% 100%, #0a1810 0%, transparent 100%),
    radial-gradient(ellipse 4% 30% at 15% 100%, #0c1a12 0%, transparent 100%),
    radial-gradient(ellipse 3% 28% at 25% 100%, #0a1610 0%, transparent 100%),
    radial-gradient(ellipse 5% 35% at 35% 100%, #0e1e14 0%, transparent 100%),
    radial-gradient(ellipse 4% 32% at 50% 100%, #0a1810 0%, transparent 100%),
    radial-gradient(ellipse 5% 38% at 65% 100%, #0c1c12 0%, transparent 100%),
    radial-gradient(ellipse 3% 26% at 78% 100%, #0a1610 0%, transparent 100%),
    radial-gradient(ellipse 4% 30% at 88% 100%, #0e1a12 0%, transparent 100%),
    radial-gradient(ellipse 3% 22% at 95% 100%, #0a1410 0%, transparent 100%);
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.forest-mist {
  background:
    radial-gradient(ellipse 60% 30% at 50% 60%, rgba(40, 80, 50, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 20% at 30% 70%, rgba(30, 60, 40, 0.1) 0%, transparent 60%);
  animation: mistDrift 20s ease-in-out infinite alternate;
}

@keyframes mistDrift {
  from { transform: translateX(-2%) translateY(0); opacity: 0.8; }
  to   { transform: translateX(2%) translateY(-1%); opacity: 1; }
}

/* Sunlight rays */
.sun-rays {
  position: absolute;
  top: -10%;
  left: 35%;
  width: 60%;
  height: 70%;
  background: conic-gradient(
    from 200deg at 30% 0%,
    transparent 0deg,
    rgba(255, 220, 140, 0.06) 8deg,
    transparent 16deg,
    rgba(255, 210, 120, 0.04) 24deg,
    transparent 32deg,
    rgba(255, 230, 160, 0.08) 40deg,
    transparent 50deg,
    rgba(255, 200, 100, 0.05) 58deg,
    transparent 70deg
  );
  filter: blur(2px);
  animation: rayPulse 8s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes rayPulse {
  0%, 100% { opacity: 0.7; transform: scale(1) rotate(-2deg); }
  50%      { opacity: 1; transform: scale(1.05) rotate(2deg); }
}

/* Shimmer particles */
.shimmer-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shimmer-particles::before,
.shimmer-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.shimmer-particles::before {
  width: 4px;
  height: 4px;
  top: 25%;
  left: 42%;
  background: var(--gold-light);
  box-shadow:
    120px 80px 0 0 rgba(255, 220, 140, 0.6),
    200px 40px 0 1px rgba(255, 230, 160, 0.4),
    280px 120px 0 0 rgba(255, 210, 120, 0.5),
    60px 160px 0 1px rgba(255, 240, 180, 0.3),
    340px 60px 0 0 rgba(255, 220, 140, 0.4),
    160px 200px 0 1px rgba(255, 230, 160, 0.5),
    400px 140px 0 0 rgba(255, 210, 120, 0.3),
    80px 100px 0 1px rgba(255, 240, 180, 0.6);
  animation: sparkle 4s ease-in-out infinite;
}

.shimmer-particles::after {
  width: 200px;
  height: 200px;
  top: 15%;
  left: 30%;
  background: radial-gradient(circle, rgba(255, 220, 140, 0.12) 0%, transparent 70%);
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.2); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.15); }
}

/* Background fragrance ingredients */
.ingredient-scene {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 92vw);
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  opacity: 0.62;
  filter: drop-shadow(0 0 40px rgba(255, 200, 100, 0.18));
}

.ingredient-float {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.ingredient-float img {
  width: auto;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(201, 160, 80, 0.35);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 230, 160, 0.12);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55)) saturate(1.08) contrast(1.05);
  transition: filter 0.4s ease, box-shadow 0.4s ease;
}

.ingredient-float figcaption {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.55;
}

.ingredient-1 img { width: clamp(100px, 14vw, 160px); animation: ingredientFloat 7s ease-in-out infinite, ingredientGlow 5s ease-in-out infinite; }
.ingredient-2 img { width: clamp(120px, 16vw, 190px); animation: ingredientFloat 8s ease-in-out 1s infinite, ingredientGlow 6s ease-in-out 0.5s infinite; }
.ingredient-3 img { width: clamp(90px, 12vw, 140px); animation: ingredientFloat 6.5s ease-in-out 0.5s infinite, ingredientGlow 5.5s ease-in-out 1s infinite; }

@keyframes ingredientFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes ingredientGlow {
  0%, 100% { filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55)) saturate(1.08) contrast(1.05) brightness(1); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 230, 160, 0.12); }
  50%      { filter: drop-shadow(0 12px 32px rgba(201, 160, 80, 0.3)) saturate(1.12) contrast(1.08) brightness(1.1); box-shadow: 0 14px 36px rgba(201, 160, 80, 0.18), inset 0 0 0 1px rgba(255, 230, 160, 0.22); }
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(8, 14, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--transition);
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

.cart-btn {
  position: relative;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.cart-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 9px;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
}

.cart-count.pulse {
  transform: scale(1.3);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.hero-content {
  max-width: 640px;
  padding-block: 4rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 4px 24px var(--gold-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--glass-border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-card {
  width: 100%;
  padding: 0.7rem 1rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
  margin-top: 1rem;
}

.btn-card:hover:not(:disabled) {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

.btn-card:disabled {
  color: var(--gold);
  border-color: var(--gold);
  opacity: 0.8;
  cursor: default;
}

/* ── Catalog Sections ── */
.catalog-section {
  padding: 6rem 0;
  position: relative;
}

.catalog-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(8, 14, 10, 0.72) 18%, rgba(8, 14, 10, 0.72) 82%, transparent);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin-inline: auto;
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 160, 80, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 160, 80, 0.08);
}

.product-card.visible:hover {
  transform: translateY(-4px);
}

.product-image {
  position: relative;
  height: 200px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(255, 220, 140, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, rgba(20, 30, 24, 0.5) 0%, rgba(10, 18, 14, 0.8) 100%);
  overflow: hidden;
}

.product-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 230, 160, 0.08),
    rgba(255, 220, 140, 0.15),
    rgba(255, 230, 160, 0.08),
    transparent
  );
  animation: cardShimmer 4s ease-in-out infinite;
}

@keyframes cardShimmer {
  0%   { left: -100%; }
  50%  { left: 150%; }
  100% { left: 150%; }
}

.product-illustration {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
  border-radius: 50%;
  border: 2px solid rgba(201, 160, 80, 0.28);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 230, 160, 0.1);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45)) saturate(1.06) contrast(1.04);
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.product-card:hover .product-illustration {
  transform: scale(1.06);
  filter: drop-shadow(0 8px 24px rgba(201, 160, 80, 0.25)) saturate(1.1) contrast(1.06);
  box-shadow:
    0 10px 28px rgba(201, 160, 80, 0.15),
    inset 0 0 0 1px rgba(255, 230, 160, 0.18);
}

.product-ingredient {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.75;
  margin-bottom: 0.35rem;
}

.product-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.product-brand {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.25rem 0 0.5rem;
  line-height: 1.2;
}

.product-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
}

.product-volume {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-light);
}

/* ── Footer ── */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(6, 10, 8, 0.8);
}

.footer-inner {
  display: grid;
  gap: 2rem;
  text-align: center;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(232, 228, 220, 0.35);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(8, 14, 10, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }

  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 1rem;
  }

  .forest-bg {
    overflow: visible;
  }

  .ingredient-scene {
    opacity: 0.55;
    bottom: 8%;
    width: min(420px, 94vw);
    height: auto;
    min-height: 120px;
    gap: clamp(8px, 3vw, 24px);
  }

  .ingredient-1 img { width: clamp(72px, 20vw, 100px); }
  .ingredient-2 img { width: clamp(84px, 22vw, 110px); }
  .ingredient-3 img { width: clamp(68px, 18vw, 92px); }

  .ingredient-float figcaption {
    display: none;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    padding-bottom: clamp(140px, 28vw, 200px);
  }

  .hero-content {
    text-align: center;
    margin-inline: auto;
    padding-block: 2.5rem 1rem;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .catalog-section {
    padding: 4rem 0;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
  }

  .product-card {
    opacity: 1;
    transform: none;
  }

  .product-card:hover {
    transform: none;
  }

  .product-image {
    height: 180px;
  }

  .product-illustration {
    width: 120px;
    height: 120px;
  }

  .btn-card {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .product-info {
    padding: 1rem 1.25rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
