/* ==========================================================================
   Elysian Botanica - Luxury Minimalist Beauty E-Commerce Design System
   Inspired by Reveal (Skinimalism) & Ember (Apothecary Sensory PDP)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --font-editorial: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Color Palette */
  --bg-canvas: #FAF8F5;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3EFEA;
  --bg-card: #FFFFFF;
  --bg-alt: #F7F3EE;
  
  --border-subtle: #EAE4DA;
  --border-medium: #DCD3C7;
  --border-focus: #1A1715;

  --text-primary: #1A1715;
  --text-secondary: #5E574E;
  --text-muted: #8E857C;
  --text-inverse: #FFFFFF;

  --accent-amber: #B87342;
  --accent-amber-light: #F7EFE8;
  --accent-hover: #9E5F33;
  --accent-espresso: #25201D;
  
  --sage-bg: #EAF0EB;
  --sage-text: #37533E;
  --terracotta-bg: #FBEFE9;
  --terracotta-text: #964722;

  --shadow-sm: 0 2px 8px rgba(26, 23, 21, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 23, 21, 0.07);
  --shadow-lg: 0 16px 40px rgba(26, 23, 21, 0.12);
  --shadow-drawer: -8px 0 32px rgba(26, 23, 21, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Utility */
.font-serif {
  font-family: var(--font-editorial);
  letter-spacing: -0.01em;
}

.font-sans {
  font-family: var(--font-ui);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: #D5CCC0;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #B5A99B;
}

/* Container */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--accent-espresso);
  color: #EAE4DC;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.65rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.announcement-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto;
}

.announcement-pill {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: #F7EFE8;
}

/* Navigation Header */
.header-glass {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  font-family: var(--font-editorial);
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-logo span {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-ui);
  color: var(--accent-amber);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  position: relative;
}

.action-btn:hover {
  background: var(--bg-subtle);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--accent-espresso);
  color: #FFF;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Hero Section (Split Editorial Style from Reveal & Ember) */
.hero-editorial {
  padding: 3rem 0 4.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(243, 239, 234, 0.7) 0%, rgba(250, 248, 245, 0) 60%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-amber);
}

.hero-title {
  font-family: var(--font-editorial);
  font-size: 4rem;
  line-height: 1.05;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-amber);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 33rem;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  background-color: var(--accent-espresso);
  color: #FFF;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  border: 1px solid var(--accent-espresso);
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--accent-amber);
  border-color: var(--accent-amber);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 115, 66, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--text-primary);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.6rem;
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-number {
  font-family: var(--font-editorial);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}

.proof-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: var(--bg-subtle);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(234, 228, 218, 0.8);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  max-width: 18rem;
}

.floating-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--radius-full);
  background: var(--terracotta-bg);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-text h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.floating-text p {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Trust Features Bar */
.trust-strip {
  padding: 2.2rem 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.trust-text p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Catalog Filter & Controls */
.catalog-section {
  padding: 4.5rem 0 6rem;
}

.section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3rem;
}

.section-tag {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-amber);
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-family: var(--font-editorial);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* Control Bar: Pills, Search, Sort */
.control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-pill {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-pill:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--accent-espresso);
  border-color: var(--accent-espresso);
  color: #FFF;
}

.search-sort-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
  max-width: 32rem;
  justify-content: flex-end;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 18rem;
}

.search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  font-size: 0.84rem;
  font-family: var(--font-ui);
  color: var(--text-primary);
  transition: var(--transition-smooth);
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-espresso);
  box-shadow: 0 0 0 3px rgba(26, 23, 21, 0.05);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.sort-select {
  padding: 0.6rem 1.8rem 0.6rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  font-size: 0.84rem;
  font-family: var(--font-ui);
  color: var(--text-secondary);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235E574E' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: var(--transition-smooth);
}

.sort-select:focus {
  border-color: var(--accent-espresso);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.product-media {
  position: relative;
  aspect-ratio: 1/1;
  background: #FFFFFF;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-primary,
.product-img-secondary {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.product-img-secondary {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .product-img-secondary {
  opacity: 1;
  transform: scale(1.05);
}

.product-card:hover .product-img-primary {
  transform: scale(1.05);
}

.product-badge {
  display: none !important;
}

.wishlist-btn {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.wishlist-btn:hover, .wishlist-btn.active {
  background: #FFF;
  color: #E24A4A;
}

.quick-view-overlay {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.product-card:hover .quick-view-overlay {
  opacity: 1;
  transform: translateY(0);
}

.btn-quick-view {
  width: 100%;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-quick-view:hover {
  background: var(--accent-espresso);
  color: #FFF;
  border-color: var(--accent-espresso);
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.product-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-amber);
  font-weight: 600;
}

.product-edition {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.pdp-category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.4rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.product-title:hover {
  color: var(--accent-amber);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.stars {
  color: #E8A838;
  display: flex;
  gap: 1px;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
}

.price-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-current {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-compare {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-add-cart {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  width: 2.3rem;
  height: 2.3rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-add-cart:hover {
  background: var(--accent-espresso);
  color: #FFF;
  border-color: var(--accent-espresso);
}

/* Editorial Story / Sensory Apothecary Strip (Ember Inspo) */
.apothecary-strip {
  background-color: var(--bg-alt);
  padding: 5.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.strip-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
}

.strip-img-main {
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.strip-img-stacked {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.strip-img-sub {
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.strip-img-main img, .strip-img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strip-content h3 {
  font-family: var(--font-editorial);
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.strip-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.ingredient-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}

.ingredient-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Quick View Modal (PDP inspired by Ember) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 23, 21, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.pdp-modal {
  background: var(--bg-surface);
  width: 100%;
  max-width: 58rem;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .pdp-modal {
  transform: translateY(0);
}

.pdp-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 20;
}

.pdp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.pdp-back-btn:hover {
  background: var(--accent-espresso);
  color: #FFF;
  border-color: var(--accent-espresso);
}

.pdp-back-btn svg {
  transition: transform 0.2s ease;
}

.pdp-back-btn:hover svg {
  transform: translateX(-3px);
}

.modal-close-btn {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--accent-espresso);
  color: #FFF;
}

.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2rem 2.5rem 2.5rem 2.5rem;
}

.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdp-main-img {
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.4s ease;
}

.pdp-thumbnails {
  display: flex;
  gap: 0.75rem;
}

.pdp-thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.pdp-thumb.active {
  border-color: var(--accent-espresso);
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-content {
  display: flex;
  flex-direction: column;
}

.pdp-badge {
  align-self: flex-start;
  margin-bottom: 0.75rem;
}

.pdp-title {
  font-family: var(--font-editorial);
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.pdp-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.pdp-rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pdp-price-current {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pdp-price-compare {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pdp-savings-badge {
  background: var(--terracotta-bg);
  color: var(--terracotta-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

/* Subscription Toggle (From Ember PDP) */
.subscription-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1.5rem;
}

.subscription-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.subscription-option.selected {
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.sub-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sub-radio {
  accent-color: var(--accent-espresso);
  width: 1.1rem;
  height: 1.1rem;
}

.sub-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.sub-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sub-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-amber);
}

/* Actions in PDP */
.pdp-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quantity-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  height: 3.2rem;
  padding: 0 0.5rem;
}

.step-btn {
  background: none;
  border: none;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.step-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.step-value {
  width: 2.2rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-pdp-add {
  flex-grow: 1;
  height: 3.2rem;
  font-size: 0.95rem;
}

/* Accordions for Ingredients / How to Use / Clinical */
.accordion-group {
  border-top: 1px solid var(--border-subtle);
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion-trigger {
  width: 100%;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.accordion-item.active .accordion-content {
  max-height: 20rem;
  padding-bottom: 1rem;
}

/* Cart Slide-Over Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 23, 21, 0.5);
  backdrop-filter: blur(4px);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 27rem;
  background: var(--bg-surface);
  z-index: 130;
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-family: var(--font-editorial);
  font-size: 1.6rem;
  font-weight: 500;
}

.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.cart-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

/* Free Shipping Progress Meter */
.shipping-meter {
  background: var(--bg-subtle);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.meter-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meter-bar {
  height: 6px;
  background: #E0D7CC;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--accent-amber);
  width: 0%;
  transition: width 0.4s ease;
}

.meter-fill.unlocked {
  background: var(--sage-text);
}

/* Cart Items Container */
.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty-state svg {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  stroke: var(--border-medium);
}

.cart-empty-state h4 {
  font-family: var(--font-editorial);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-img {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.cart-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cart-item-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
}

.cart-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  height: 1.8rem;
}

.cart-qty-btn {
  background: none;
  border: none;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.cart-qty-val {
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 1.2rem;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  text-decoration: underline;
  margin-left: 0.75rem;
}

.cart-item-remove:hover {
  color: #E24A4A;
}

/* Cart Footer */
.cart-footer {
  flex-shrink: 0;
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}

.promo-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.promo-input {
  flex-grow: 1;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  font-size: 0.82rem;
  outline: none;
  text-transform: uppercase;
}

.promo-btn {
  padding: 0 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.promo-btn:hover {
  background: var(--accent-espresso);
  color: #FFF;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.btn-checkout {
  width: 100%;
  padding: 1rem;
  font-size: 0.95rem;
}

/* Checkout Simulated Modal */
.checkout-modal {
  background: var(--bg-surface);
  width: 100%;
  max-width: 36rem;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.checkout-success-box {
  text-align: center;
  padding: 2rem 0;
}

.success-icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--sage-bg);
  color: var(--sage-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast-message {
  background: var(--accent-espresso);
  color: #FFF;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Footer */
.footer-editorial {
  background: var(--accent-espresso);
  color: #DDD6CE;
  padding: 5rem 0 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand h2 {
  font-family: var(--font-editorial);
  font-size: 2.2rem;
  color: #FFF;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: #AFA69D;
  line-height: 1.7;
  max-width: 22rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FFF;
  margin-bottom: 1.4rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: #AFA69D;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s ease;
}

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

.newsletter-box p {
  font-size: 0.86rem;
  color: #AFA69D;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  font-size: 0.84rem;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--accent-amber);
}

.btn-newsletter {
  padding: 0 1.4rem;
  border-radius: var(--radius-full);
  background: var(--accent-amber);
  color: #FFF;
  border: none;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-newsletter:hover {
  background: var(--accent-hover);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #8C837A;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-floating-card {
    left: 1rem;
    bottom: 1rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .control-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-sort-group {
    max-width: 100%;
    justify-content: space-between;
  }
  .pdp-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .strip-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}
