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

:root {
  /* Colors */
  --color-bg: #F7F3EE; /* Ivory white */
  --color-surface: #EEF4FA; /* Soft blue */
  --color-primary: #1C232C; /* Deep sophisticated dark */
  --color-secondary: #5E6B77; /* Muted slate */
  --color-accent: #D4A15A; /* Warm gold accents */
  --color-hydration: #7C9AB8; /* Soft bluish hydration tones */
  --color-seabuckthorn: #E4A778; /* Muted orange */
  --color-white: #FFFFFF;
  
  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Spacing & Layout */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --container-max: 1400px;
  
  /* Utilities & Easing */
  --ease-buttery: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.6s var(--ease-buttery);
  --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.05);
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

p {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-secondary);
  font-size: 1.1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.text-center { text-align: center; }

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(247, 243, 238, 0.85);
  backdrop-filter: blur(12px);
  padding: 1rem var(--spacing-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-brand-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  height: 100%;
}

.nav-brand img {
  height: 50px; /* Traditional luxury size for product pages to prevent overlap */
  object-fit: contain;
  transition: all 0.5s ease;
}

body.home-page .nav-brand img {
  height: 80px; /* Thode bade size me (Larger size specifically for homepage) */
  max-height: none;
  transform: scale(1.15);
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  border-radius: 0; /* Sharp elegant edges */
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  width: 50%;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.hero-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.hero-image-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  height: 80vh;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 200px 0 0 200px;
  box-shadow: var(--shadow-float);
  animation: floatLux 8s ease-in-out infinite;
}

/* Featured Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.product-card {
  text-align: center;
}

.product-image-container {
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: var(--transition-smooth);
}

.product-card:hover .product-image-container {
  box-shadow: var(--shadow-float);
  transform: translateY(-10px);
}

.product-image-container img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  transition: transform 0.8s ease;
}

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

.product-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.product-price {
  font-family: var(--font-sans);
  color: var(--color-secondary);
  font-weight: 400;
}

/* Feature Blocks */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.feature-image-container {
  background-color: var(--color-hydration);
  border-radius: 30px 200px 30px 30px;
  overflow: hidden;
  position: relative;
}

.feature-block.reverse .feature-image-container {
  border-radius: 200px 30px 30px 30px;
  background-color: var(--color-surface);
}

.feature-image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}

.feature-list {
  margin-top: 2rem;
}

.feature-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-list li::before {
  content: '✦';
  color: var(--color-accent);
  font-size: 1.2rem;
}

/* Ingredient Story */
.ingredient-story {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.ingredient-story h2 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.ingredient-story p {
  color: #a0aec0;
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}

/* Product Detail Page */
.product-detail-section {
  padding-top: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

.product-gallery img {
  width: 100%;
  height: 600px;
  object-fit: contain;
}

.product-info h1 {
  margin-bottom: 1rem;
}

.product-info .price {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.product-description {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 2rem;
}

.accordion {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.accordion-header {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content p {
  padding-bottom: 1.5rem;
}

.accordion.active .accordion-content {
  max-height: 500px;
}

.add-to-cart-wrapper {
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
}

.qty-input {
  display: flex;
  border: 1px solid var(--color-primary);
  width: 120px;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

.qty-input input {
  width: 40px;
  text-align: center;
  border: none;
  font-family: var(--font-sans);
  background: transparent;
}

.add-btn {
  flex: 1;
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--color-bg);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--color-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
  border-bottom: 1px solid var(--color-primary);
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 0;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  background: transparent;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-sans);
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 0.8rem;
  color: var(--color-secondary);
}

/* Animations & Utilities */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSlow {
  0% { transform: translateY(-50%) }
  50% { transform: translateY(-53%) }
  100% { transform: translateY(-50%) }
}

@keyframes floatLux {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px) translateZ(0);
  transition: all 1s var(--ease-cinematic);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease, visibility 1s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  height: 60px;
  object-fit: contain;
  animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* Updated Navbar Styles */
.nav-brand-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-brand-center img {
  height: 25px;
  transition: var(--transition-smooth);
}

.navbar.scrolled .nav-brand-center img {
  height: 22px;
}

/* Hero Section Enhancements */
.hero-subheading {
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  display: block;
  font-weight: 500;
}

.hero-brand-name {
  font-size: clamp(40px, 5vw, 84px); /* Desktop max ~84px, Mobile min ~40px */
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: normal;
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-weight: 300; /* Thin, elegant weight */
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.6;
}

.hero-features {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.hero-features .feature-item {
  font-size: 0.85rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.hero-features .feature-item::before {
  content: '✦';
  font-size: 0.7rem;
  color: var(--color-secondary);
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  
  .hero-content {
    width: 100%;
    margin-bottom: var(--spacing-lg);
  }
  
  .hero p {
    margin: 0 auto 2rem;
  }
  
  .hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 50vh;
    transform: none;
  }
  
  .hero-image {
    border-radius: var(--radius-lg);
  }
  
  .feature-block, .feature-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  
  .product-detail-section {
    grid-template-columns: 1fr;
  }
  
  .product-gallery {
    position: relative;
    top: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    transition: 0.5s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
    z-index: 101;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation Effects */
.float-3d {
  animation: float3D 8s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  transform-style: preserve-3d;
  will-change: transform; /* Hardware acceleration */
}

@keyframes float3D {
  0% { transform: translateY(0) rotateX(0) rotateY(0) translateZ(0); }
  33% { transform: translateY(-12px) rotateX(1deg) rotateY(2deg) translateZ(0); }
  66% { transform: translateY(-6px) rotateX(-1deg) rotateY(-1deg) translateZ(0); }
  100% { transform: translateY(0) rotateX(0) rotateY(0) translateZ(0); }
}

.ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  animation: rippleEffect 8s infinite alternate ease-in-out;
  pointer-events: none;
  z-index: 0;
}

@keyframes rippleEffect {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.glow-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(8px);
  animation: floatParticle 10s infinite alternate;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes floatParticle {
  0% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  100% { transform: translate(100px, -100px) scale(1.5); opacity: 0.6; }
}

/* Slider Overrides */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-bg);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05);
  transition: transform 10s ease-out;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-slide-content {
  flex: 1;
  padding: 0 var(--spacing-xl);
  z-index: 2;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active .hero-slide-content {
  opacity: 1;
}

.hero-slide-image-wrapper {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active .hero-slide-image-wrapper {
  opacity: 1;
}

.hero-slide-image {
  max-width: 70%;
  max-height: 70vh;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.1));
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 40px;
  left: var(--spacing-xl);
  display: flex;
  gap: 15px;
  z-index: 20;
}

.slider-dot {
  width: 40px;
  height: 3px;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.slider-dot-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-primary);
  width: 0%;
}

/* Quick View Modal & Button */
.quick-view-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 5;
}

.product-image-container:hover .quick-view-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.quick-view-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background: var(--color-bg);
  width: 90%;
  max-width: 900px;
  border-radius: 20px;
  position: relative;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-image {
  background: var(--color-surface);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  max-height: 400px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.modal-details {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
  .modal-image {
    padding: 2rem;
  }
  .modal-image img {
    max-height: 250px;
  }
  .modal-details {
    padding: 2rem;
  }
}

/* Parallax & Cinematic Storytelling */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Slider Overrides - Responsive & Branding Fixes */
.hero-slide-inner {
  display: flex;
  height: 100%;
  position: relative;
  align-items: center;
}


@media (max-width: 992px) {
  .hero-slide-inner {
    flex-direction: column;
    justify-content: center;
    padding-top: 120px; /* Offset sticky navbar */
  }
  
  .hero-slide-content {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 1.5rem;
    transform: translateY(20px);
  }

  .hero-slide-image-wrapper {
    flex: 1;
    margin-top: 2rem;
    padding-bottom: 80px; /* Space for dots */
    transform: translateY(20px);
  }

  .hero-slide-image {
    max-height: 45vh; /* Prevent cropping on small screens */
  }

  .slider-controls {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
  }
  
  .hero-cta-group {
    justify-content: center;
    margin-top: 1.5rem;
  }
}

/* --- NEW SECTION STYLES --- */

/* --- PREMIUM 3D INTERACTIONS --- */
.product-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  border-radius: 12px;
  background: var(--color-surface);
}

.product-card:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(-2deg) scale3d(1.02, 1.02, 1.02);
  box-shadow: 20px 30px 50px rgba(0,0,0,0.15);
  z-index: 10;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  border-radius: inherit;
}

.product-card:hover::after {
  opacity: 1;
}

.product-card:hover .product-image-container img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Collection Cards */
.collection-card {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  display: block;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-card:hover {
  transform: translateY(-10px);
}

.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  transition: opacity 0.4s ease;
}

.collection-card:hover .collection-card-overlay {
  opacity: 0.8;
}

.collection-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  color: var(--color-white);
  z-index: 2;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-card:hover .collection-card-content {
  transform: translateY(0);
}

.collection-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

/* Bestsellers Carousel */
.carousel-container {
  width: 100%;
  overflow-x: auto;
  padding: 2rem 0;
  scrollbar-width: none; /* Firefox */
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.carousel-track {
  display: flex;
  gap: 2rem;
  padding: 0 var(--spacing-xl);
  width: max-content;
}

.carousel-item {
  width: 300px;
  text-align: center;
  display: block;
  transition: opacity 0.3s ease;
}

.carousel-item:hover {
  opacity: 0.8;
}

/* Interactive Ingredient Story */
.ingredient-showcase {
  display: flex;
  height: 500px;
  gap: 1rem;
}

.ingredient-column {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ingredient-column:hover {
  flex: 2;
}

.ingredient-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ingredient-column:hover .ingredient-bg {
  transform: scale(1.1);
}

.ingredient-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  transition: background 0.4s ease;
}

.ingredient-column:hover .ingredient-overlay {
  background: rgba(0,0,0,0.2);
}

.ingredient-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: var(--color-white);
  z-index: 2;
}

.ingredient-content h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .ingredient-showcase {
    flex-direction: column;
    height: 800px;
  }
}

/* Background Abstract Animations */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--color-secondary);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  bottom: -200px;
  left: -200px;
}

/* ==========================================================================
   NEW REDESIGN STYLES: Cinematic, Minimal, Premium
   ========================================================================== */

/* Hero Slider Redesign */
.hero-slider {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.5s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-bg.cinematic-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--color-surface) 0%, var(--color-bg) 100%);
  transform: scale(1.1) translateZ(0);
  transition: transform 6s var(--ease-buttery);
  will-change: transform;
}

.hero-slide.active .hero-slide-bg.cinematic-bg {
  transform: scale(1);
}

.cinematic-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-top: 80px; /* Space for navbar */
  gap: 4rem;
}

.hero-slide-content.text-left {
  flex: 0 0 35%; /* Fixed smaller width for text */
  max-width: 420px; /* Reduced width for elegant breathing room */
  text-align: left;
  opacity: 0;
  transform: translateY(30px) scale(0.95) translateZ(0);
  transition: all 1.2s var(--ease-cinematic) 0.3s;
  will-change: transform, opacity;
  background: rgba(247, 243, 238, 0.6); /* Soft subtle backing for text readability */
  padding: 3.5rem; /* Increased whitespace around text */
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.hero-slide.active .hero-slide-content.text-left {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.hero-product-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80%;
  position: relative;
}

.hero-product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.15));
  border-radius: 20px;
}

.cinematic-zoom {
  opacity: 0;
  transform: scale(0.8) translateZ(0);
  transition: all 1.5s var(--ease-cinematic) 0.5s;
  will-change: transform, opacity;
}

.hero-slide.active .cinematic-zoom {
  opacity: 1;
  transform: scale(1) translateZ(0);
}

.btn-lux {
  margin-top: 2rem;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  padding: 1rem 3rem;
  border-radius: 0;
}

.btn-lux:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.lux-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 15px;
}

.lux-controls .slider-dot {
  width: 40px;
  height: 2px;
  background: rgba(0,0,0,0.2);
  border-radius: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.lux-controls .slider-dot-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--color-primary);
  transition: width 0.3s;
}

.lux-controls .slider-dot.active .slider-dot-fill {
  width: 100%;
  transition: width 5s linear; /* Matches 5s autoplay */
}

/* Premium Featured Showcase */
.showcase-section {
  padding: 8rem 0;
  background: var(--color-bg);
  overflow: hidden;
}

.showcase-header {
  margin-bottom: 4rem;
}

.showcase-scroll-container {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.showcase-track {
  display: flex;
  gap: 4rem;
  padding: 2rem 0;
  width: max-content;
  animation: cinematicScroll 30s linear infinite;
}

.showcase-track:hover {
  animation-play-state: paused;
}

@keyframes cinematicScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Scrolls half width since items are duplicated */
}

.showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  text-decoration: none;
}

.showcase-img-wrap {
  background: var(--color-white);
  width: 300px;
  height: 400px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.showcase-item:hover .showcase-img-wrap {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.showcase-item img {
  max-height: 100%;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-item:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 20px 20px rgba(0,0,0,0.1));
}

.showcase-item h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.showcase-item:hover h3 {
  color: var(--color-accent);
}

/* Shop Page Premium Product Cards */
.product-card {
  perspective: 1000px;
}

.product-image-container {
  background: rgba(255, 255, 255, 0.5); /* Glassmorphism base */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.product-card:hover .product-image-container {
  transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.1), -10px -10px 30px rgba(255,255,255,0.8);
  background: rgba(255, 255, 255, 0.8);
}

.product-card:hover .product-image-container img {
  transform: scale(1.1) translateZ(30px);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

/* Water Ripple Animation */
.ripple {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
  animation: rippleMotion 8s infinite ease-in-out;
  pointer-events: none;
}

@keyframes rippleMotion {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.15; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

.glow-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 20px 10px rgba(255,255,255,0.5);
  animation: floatParticle 4s infinite ease-in-out alternate;
  z-index: 1;
  pointer-events: none;
}

@keyframes floatParticle {
  0% { transform: translateY(0) scale(1); opacity: 0.2; }
  100% { transform: translateY(-30px) scale(1.5); opacity: 0.6; }
}

/* Centered Logo Override */
.nav-brand-center {
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
}

@media (max-width: 992px) {
  .cinematic-flex {
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
  }
  .hero-slide-content.text-left {
    text-align: center;
    margin-bottom: 2rem;
  }
  .ripple {
    left: 50%;
  }
}
