@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --color-ivory: #FDFBF7;
  --color-sand: #E6DFD3;
  --color-charcoal: #333333;
  --color-muted-green: #7A8B7A;
  --color-soft-clay: #D4A373;
  --color-deep-brown: #5C4033;
  --color-white: #FFFFFF;
  --color-error: #B00020;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Layout */
  --container-width: 1200px;
  --border-radius: 2px; /* Sharp corners */
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-ivory);
  color: var(--color-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--color-charcoal);
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; }
p { margin-bottom: var(--space-sm); color: #4A4A4A; }
a { color: var(--color-charcoal); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-muted-green); }

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: var(--border-radius);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-charcoal), #1a1a1a);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-deep-brown), #3a2218);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-charcoal);
  border-color: var(--color-charcoal);
}

.btn-secondary:hover {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-sand);
  z-index: 1000;
  transition: all var(--transition-fast);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--space-md);
  max-width: var(--container-width);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-charcoal);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-charcoal);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-sand);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 20s infinite alternate linear;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(253,251,247,0.9) 0%, rgba(253,251,247,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-content .subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-deep-brown);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Animations */
@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

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

@keyframes flash {
  0% { background-color: var(--color-sand); }
  100% { background-color: transparent; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Sections */
section {
  padding: var(--space-xl) 0;
}

.bg-sand { background-color: var(--color-sand); }
.bg-muted-green { background-color: var(--color-muted-green); color: var(--color-white); }
.bg-muted-green p, .bg-muted-green h2, .bg-muted-green h3 { color: var(--color-white); }

/* Split Screen Section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.split-section.reverse {
  direction: rtl;
}
.split-section.reverse > * {
  direction: ltr;
}

.split-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Product Hotspot Section */
.product-interactive {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.product-interactive img {
  width: 100%;
  display: block;
  animation: float 6s ease-in-out infinite;
}

.hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--color-muted-green);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.hotspot::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--color-muted-green);
  border-radius: 50%;
  animation: hotspot-pulse 2s infinite;
  z-index: -1;
  opacity: 0.6;
}

.hotspot-inner {
  width: 8px;
  height: 8px;
  background-color: var(--color-white);
  border-radius: 50%;
}

@keyframes hotspot-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hotspot-tooltip {
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
}

.hotspot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--color-charcoal) transparent transparent transparent;
}

.hotspot:hover .hotspot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Lifestyle Story Panels */
.panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.panel-card {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: var(--space-md);
  border: 1px solid rgba(230, 223, 211, 0.5);
  border-radius: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.panel-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  background-color: var(--color-white);
}

.panel-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Ingredients Grid */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.ingredient-card {
  text-align: center;
  transition: transform var(--transition-fast);
}

.ingredient-card:hover {
  transform: translateY(-5px);
}

.ingredient-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-white);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
  background-color: var(--color-ivory);
}

.ingredient-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--color-charcoal);
}

.ingredient-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* Product Page Gallery */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

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

.gallery-main {
  width: 100%;
  height: 500px;
  object-fit: cover;
  background-color: var(--color-sand);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-main:hover img {
  transform: scale(1.05);
}

.gallery-thumbs {
  display: flex;
  gap: 1rem;
}

.gallery-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.gallery-thumbs img.active, .gallery-thumbs img:hover {
  border-color: var(--color-muted-green);
}

.sticky-product-info {
  position: sticky;
  top: 100px;
}

.price-block {
  margin: 1.5rem 0;
}

.price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-charcoal);
  font-family: var(--font-heading);
}

.shipping-note {
  font-size: 0.9rem;
  color: var(--color-muted-green);
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-sand);
  width: fit-content;
  margin-bottom: 1.5rem;
}

.qty-btn {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-charcoal);
}

.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  pointer-events: none;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-muted-green);
}

.form-control.error {
  border-color: var(--color-error);
}

.error-msg {
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  font-weight: 400;
  color: #555;
  cursor: pointer;
}

/* Checkout Structure */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.checkout-summary {
  background-color: var(--color-ivory);
  padding: var(--space-md);
  border: 1px solid var(--color-sand);
  border-radius: var(--border-radius);
  position: sticky;
  top: 100px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-sand);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-top: 1rem;
}

.summary-product {
  display: flex;
  gap: 1rem;
}

.summary-product img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid var(--color-sand);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--color-sand);
  margin-bottom: 1rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-charcoal);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform var(--transition-fast);
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
  color: #555;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 999;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: 1.5rem;
  z-index: 10000;
  transition: bottom 0.5s ease;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media(min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.cookie-text { flex: 1; font-size: 0.9rem; }
.cookie-text a { color: var(--color-sand); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-buttons .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* Footer */
footer {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--space-lg) 0 var(--space-md);
}

footer a {
  color: var(--color-sand);
}

footer a:hover {
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #999;
}

/* Responsive */
@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .summary-item.desktop-only { display: none; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger { display: block; }
  
  .split-section { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .mobile-sticky-cta { display: block; }
  /* Padding bottom for mobile sticky button */
  body { padding-bottom: 80px; }
}
