@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Noto+Serif:wght@400;700&family=Manrope:wght@400;600&display=swap');

:root {
  /* Colors */
  --color-primary: #6E7F5F; /* Olive */
  --color-secondary: #A67C52; /* Beige */
  --color-bg-light: #F5F5F3; /* Off-white */
  --color-bg-muted: #e4e2de;
  --color-surface: #ffffff;
  --color-text-main: #222222;
  --color-text-muted: #6B6B6B;
  --color-border: #D1D1D1;

  /* Typography */
  --font-heading: 'Noto Serif', 'Playfair Display', serif;
  --font-body: 'Manrope', 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --spacing-xl: 80px;
  --spacing-xxl: 120px;

  --container-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--spacing-md); }
.section { padding: var(--spacing-xxl) 0; }
.section-sm { padding: var(--spacing-xl) 0; }
.bg-muted { background-color: var(--color-bg-muted); }
.bg-surface { background-color: var(--color-surface); }
.text-center { text-align: center; }
.text-white { color: #fff; }
.right-align { text-align: right; }

/* Typography Utilities */
.title-lg { font-size: 3rem; letter-spacing: 0.08em; margin-bottom: var(--spacing-md); }
.title-md { font-size: 2.25rem; letter-spacing: 0.06em; margin-bottom: var(--spacing-md); }
.title-sm { font-size: 1.5rem; letter-spacing: 0.04em; margin-bottom: var(--spacing-sm); }
.subtitle { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.text-muted { color: var(--color-text-muted); }
.text-limit { max-width: 500px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid var(--color-text-main);
  background: transparent;
  color: var(--color-text-main);
  transition: all 0.3s ease;
  border-radius: 8px;
}
.btn:hover { background: var(--color-text-main); color: var(--color-surface); }
.btn-solid { background: var(--color-primary); color: var(--color-surface); border-color: var(--color-primary); }
.btn-solid:hover { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-lg); }

/* Navbar */
.navbar {
  position: absolute;
  top: 0; left: 0; width: 100%;
  padding: 2rem 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.navbar.scrolled {
  position: fixed; background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--color-border);
}
.navbar-container {
  display: flex; justify-content: space-between; align-items: center;
}
.navbar .logo { font-family: var(--font-heading); font-size: 2rem; color: #fff; }
.navbar.scrolled .logo, .navbar.solid-bg .logo { color: var(--color-text-main); }
.navbar.solid-bg { position: fixed; background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--color-border); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; font-weight: 500; }
.navbar.scrolled .nav-links a, .navbar.solid-bg .nav-links a { color: var(--color-text-main); }
.nav-icons { display: flex; gap: 1.5rem; color: #fff; }
.navbar.scrolled .nav-icons, .navbar.solid-bg .nav-icons { color: var(--color-text-main); }

/* Hero */
.hero {
  position: relative; height: 90vh; background-size: cover; background-position: center; display: flex; align-items: center;
}
.hero-sm { height: 60vh; }
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3);
}
.hero-content { position: relative; z-index: 2; width: 100%; display: flex; justify-content: flex-end; }
.hero-collab { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; font-family: var(--font-heading); font-size: 2rem; }
.hero-collab h2 { font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; }
.x-divider { font-size: 1.5rem; font-family: var(--font-body); font-weight: 300; opacity: 0.7; }

/* Scroll Animations */
.section, .product-card, .collection-item, .trust-badge, .mood-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.section.visible, .product-card.visible, .collection-item.visible, .trust-badge.visible, .mood-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Collections & Cards */
.collection-item { overflow: hidden; border-radius: 8px; margin-bottom: 1rem; cursor: pointer; }
.collection-item img { aspect-ratio: 1; object-fit: cover; width: 100%; height: 100%; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.collection-item:hover img { transform: scale(1.08); }
.collection-title { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-body); }

/* Alternating Layout for Fragrance Page */
.alternating-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}
.alternating-row:last-child {
  margin-bottom: 0;
}
.alternating-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.alternating-image {
  overflow: hidden;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}
.alternating-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.alternating-image:hover img {
  transform: scale(1.05);
}
.alternating-row.visible .alternating-text,
.alternating-row.visible .alternating-image {
  opacity: 1;
  transform: translateY(0);
}
.alternating-row.reverse .alternating-text {
  order: 2;
}
.alternating-row.reverse .alternating-image {
  order: 1;
}

/* Fragrance Notes */
.fragrance-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.fragrance-notes strong {
  font-weight: 500;
  color: var(--color-text-main);
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.alternating-text .btn {
  align-self: flex-start;
  margin-top: 32px;
}

/* Mood Cards */
.mood-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
}
.mood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mood-card .mood-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 2rem;
  color: white;
  transition: background 0.5s ease;
}
.mood-card:hover img {
  transform: scale(1.08);
}
.mood-card:hover .mood-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
}
.mood-card .mood-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  transform: translateY(15px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  letter-spacing: 0.04em;
}
.mood-card .mood-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  transform: translateY(15px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s;
}
.mood-card:hover .mood-name,
.mood-card:hover .mood-desc {
  transform: translateY(0);
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08), 0 10px 20px rgba(0,0,0,0.04);
}
.product-card > a { display: block; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--color-bg-muted); mix-blend-mode: multiply; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.product-card:hover img { transform: scale(1.05); }
.card-info { padding: 2rem 1.5rem; text-align: left; }
.product-name { font-size: 1.25rem; margin-bottom: 0.5rem; font-family: var(--font-heading); letter-spacing: 0.02em; }
.product-desc { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.product-price { font-size: 1.15rem; font-weight: 500; }
.bookmark-icon { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--color-surface); border-radius: 50%; padding: 0.5rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.1); cursor: pointer; color: var(--color-text-main); border: none; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease, color 0.3s ease; }
.bookmark-icon:hover { transform: scale(1.1); background: var(--color-text-main); color: var(--color-surface); }

.minimal-card img { mix-blend-mode: normal; border-radius: 12px; }

/* Filters */
.filter-bar { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 4rem; flex-wrap: wrap; }
.filter-btn { padding: 0.75rem 2rem; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 30px; cursor: pointer; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.filter-btn.active { background: var(--color-text-main); color: var(--color-surface); border-color: var(--color-text-main); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.filter-btn:hover:not(.active) { background: var(--color-bg-muted); border-color: var(--color-text-main); }

/* Trust Badges */
.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.circle-badge { background: #E5E4DE; border-radius: 50%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; color: var(--color-primary); }
.circle-badge i { margin-bottom: 0.5rem; }

/* Footer */
.footer { padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-text-main); }

/* Help Page Specifics */
.help-search-input {
  width: 100%;
  padding: 1.5rem 1.5rem 1.5rem 4.5rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  background: var(--color-surface);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}
.help-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 12px 30px rgba(110, 127, 95, 0.15);
  transform: translateY(-4px);
}
.help-search-input::placeholder {
  color: #A0A0A0;
}
.contact-card {
  border: 1px solid transparent;
}
.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.06);
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* Profile Page Specifics */
.profile-card {
  background: var(--color-surface);
  padding: 3.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.06);
}
.profile-card .btn {
  margin-top: auto;
}

/* Cart Page Specifics */
.cart-item {
  display: flex;
  gap: 32px;
  align-items: center;
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cart-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  overflow: hidden;
  background: var(--color-surface);
}
.qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 1.2rem;
  color: var(--color-text-main);
}
.qty-btn:hover {
  background: var(--color-bg-muted);
}
.qty-val {
  padding: 0 16px;
  font-weight: 500;
  font-size: 1rem;
}
.cart-remove-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cart-remove-btn:hover {
  color: #d9534f;
}
.cart-summary {
  background: var(--color-surface);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Product Page Specifics */
.main-img-wrap {
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-surface);
  position: relative;
}
.main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}
.main-img-wrap:hover img {
  transform: scale(1.05);
}
.product-thumbnail {
  width: 90px; 
  height: 90px; 
  object-fit: cover; 
  cursor: pointer; 
  border-radius: 8px;
  opacity: 0.6;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
}
.product-thumbnail:hover {
  opacity: 1;
}
.product-thumbnail.active {
  opacity: 1;
  border-color: var(--color-primary);
}
.notes-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.note-tag {
  background: var(--color-bg-muted);
  color: var(--color-text-main);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Checkout Specifics */
.checkout-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text-main);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.checkout-input::placeholder {
  color: var(--color-text-muted);
}
.checkout-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(110, 127, 95, 0.1);
  transform: translateY(-2px);
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 48px;
}
.checkout-step .active {
  color: var(--color-primary);
  font-weight: 600;
}
.checkout-step .separator {
  width: 4px;
  height: 4px;
  background: var(--color-border);
  border-radius: 50%;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--spacing-lg); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: var(--spacing-lg); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: var(--spacing-md); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  
  .alternating-row {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
  }
  .alternating-row.reverse .alternating-text {
    order: 1;
  }
  .alternating-row.reverse .alternating-image {
    order: 2;
  }
  
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links { display: none; }
  .title-lg { font-size: 2.25rem; }
  .cart-item { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cart-item img { width: 100% !important; height: auto !important; aspect-ratio: 1; }
  .cart-item > div:last-child { width: 100%; flex-direction: row !important; align-items: center; height: auto !important; margin-top: 16px; border-top: 1px solid var(--color-border); padding-top: 16px; }
  .cart-summary { align-items: center; padding: 1.5rem; }
  .cart-summary > div { max-width: 100% !important; }
  .checkout-form > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 30px;
  right: 30px;
  background: var(--color-surface);
  color: var(--color-text-main);
  padding: 16px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--color-border);
  z-index: 1000;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  height: 20px;
  min-width: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-family: var(--font-body);
}

.cart-bounce {
  animation: cartBounce 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes cartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
