/* ============================================
   BRITTANY SOAP CO. - Main Stylesheet
   Mobile-First Responsive Design
   ============================================ */

/* --------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------- */
:root {
  /* Color Palette - Based on Logo */
  --color-teal: #A8DADC;
  --color-pink: #F4C2C2;
  --color-sage: #8DA47F;
  --color-light-bg: #F9FCFD;
  --color-cream: #FDF8F3; /* Keeping original cream as alternative */
  
  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-off-white: #FAFAFA;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #E5E5E5;
  --color-gray-300: #D4D4D4;
  --color-gray-400: #A3A3A3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;
  
  /* Semantic Colors */
  --color-primary: var(--color-teal);
  --color-secondary: var(--color-sage);
  --color-background: var(--color-light-bg);
  --color-surface: var(--color-white);
  --color-text: #000000;
  --color-text-muted: var(--color-gray-700);
  --color-accent: var(--color-pink);
  --color-sale: #C85A5A;
  --color-sold-out: var(--color-gray-400);
  
  /* Typography */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  
  /* Layout */
  --container-max: 1280px;
  --container-padding: var(--space-4);
  --header-height: 70px;
  --announcement-height: 40px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
}


/* --------------------------------------------
   Accessibility Utilities
   -------------------------------------------- */
/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

em {
  font-style: italic;
}

strong {
  font-weight: var(--font-weight-semibold);
}


/* --------------------------------------------
   Utility Classes
   -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* --------------------------------------------
   Button Styles
   -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  min-height: 44px;
  min-width: 44px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-align: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn--primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}


/* --------------------------------------------
   Announcement Bar
   -------------------------------------------- */
.announcement-bar {
  background-color: var(--color-teal);
  color: white;
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: calc(var(--font-size-xs) * 1.1);
  font-weight: var(--font-weight-bold);
  position: relative;
  z-index: 100;
}

.announcement-bar p {
  margin: 0;
}

.announcement-bar strong {
  font-weight: var(--font-weight-bold);
}


/* --------------------------------------------
   Header
   -------------------------------------------- */
.header {
  background-color: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  z-index: 100;
}

.logo-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

/* Mobile Menu Toggle */
.header__menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  z-index: 100;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.hamburger {
  position: relative;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition-fast);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  bottom: -7px;
}

/* Hamburger active state */
.header__menu-toggle.active .hamburger {
  background-color: transparent;
}

.header__menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.header__menu-toggle.active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Navigation - Mobile */
.header__nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 50;
}

.header__nav.active {
  opacity: 1;
  visibility: visible;
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link:focus {
  color: var(--color-primary);
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.nav__link:focus::after {
  width: 100%;
}

/* Cart Icon */
.header__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  z-index: 100;
  transition: color var(--transition-fast);
}

.header__cart:hover {
  color: var(--color-primary);
}

.cart-icon {
  width: 24px;
  height: 24px;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}


/* --------------------------------------------
   Hero Section
   -------------------------------------------- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  min-height: 500px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 218, 220, 0.3), rgba(244, 194, 194, 0.3));
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: var(--space-8);
  padding-bottom: var(--space-12);
}

.hero__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  min-height: 500px;
}

.hero__badge {
  display: inline-block;
  align-self: center;
  background-color: transparent;
  color: var(--color-white);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  margin-bottom: auto;
}

.hero__title em {
  color: var(--color-primary);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-white);
  max-width: 700px;
  margin: auto auto var(--space-4) auto;
  line-height: var(--line-height-relaxed);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  text-align: center;
}

/* Tagline */
.tagline {
  text-align: center;
  max-width: 800px;
  margin: var(--space-6) auto;
  padding: var(--space-4) var(--container-padding);
  font-size: var(--font-size-lg);
  font-style: italic;
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  background-color: rgba(244, 194, 194, 0.15);
  border-radius: var(--radius-md);
}



/* --------------------------------------------
   Media Queries - Tablet (768px+)
   -------------------------------------------- */
@media (min-width: 768px) {
  :root {
    --container-padding: var(--space-6);
  }
  
  /* Announcement Bar */
  .announcement-bar {
    font-size: var(--font-size-sm);
  }
  
  /* Header Navigation - Tablet */
  .header__menu-toggle {
    display: none;
  }
  
  /* Ensure header container is positioned so we can absolutely center the nav */
  .header__container {
    position: relative;
  }
  
  .header__nav {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: transparent;
    opacity: 1;
    visibility: visible;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 100;
  }
  
  .nav__list {
    flex-direction: row;
    gap: var(--space-8);
    align-items: center;
  }
  
  .nav__link {
    font-size: var(--font-size-base);
  }
  
  /* Hero - Tablet */
  .hero__container {
    flex-direction: row;
    text-align: left;
  }

  .hero__content {
    text-align: left;
    flex: 1;
  }

  .hero__image {
    flex: 1;
  }

  .hero__title {
    font-size: var(--font-size-4xl);
  }

  .hero__subtitle {
    font-size: var(--font-size-lg);
  }

  .hero__actions {
    flex-direction: row;
    justify-content: flex-start;
  }

  .btn {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
  }
}


/* --------------------------------------------
   Media Queries - Desktop (1024px+)
   -------------------------------------------- */
@media (min-width: 1024px) {
  :root {
    --container-padding: var(--space-8);
  }
  
  /* Logo */
  .logo-text {
    font-size: var(--font-size-xl);
  }
  
  /* Hero - Desktop */
  .hero {
    padding: var(--space-20) 0;
  }

  .hero__title {
    font-size: var(--font-size-5xl);
  }

  .hero__image {
    max-width: 550px;
  }
}





/* --------------------------------------------
   Products Section
   -------------------------------------------- */
.products {
  padding: 4rem 0;
  background: var(--color-cream);
}

.products h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Product Card */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Product Carousel */
.product-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.carousel-track img,
.carousel-track video {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  pointer-events: none;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-dot.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active:hover {
  background: var(--color-primary);
}

.product-card h3 {
  margin: 1rem;
  font-size: 1.25rem;
  text-align: center;
  color: var(--color-text);
}

.price {
  font-weight: bold;
  color: var(--color-primary);
  text-align: center;
  margin: 0;
}

.description {
  font-size: 0.95rem;
  color: #666;
  margin: 0 1rem 1rem;
  text-align: center;
  line-height: 1.4;
}

.product-card button {
  width: 100%;
  border-radius: 0;
  margin-top: auto;
  padding: var(--space-4);
}

/* Products - Small Tablet (640px) */
@media (min-width: 640px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Products - Desktop (1024px) */
@media (min-width: 1024px) {
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* --------------------------------------------
   About Section
   -------------------------------------------- */
.about {
  background-color: var(--color-surface);
  padding: var(--space-16) 0;
}

.about h2 {
  text-align: center;
  font-size: var(--font-size-2xl);
  color: var(--color-gray-900);
  margin-bottom: var(--space-8);
}

/* About Image */
.about__image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-10);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, var(--color-light-bg), var(--color-accent));
}

.about__image {
  width: 100%;
  height: auto;
  display: block;
}

.about__placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  text-align: center;
  line-height: var(--line-height-relaxed);
}

/* About Content */
.about__content {
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

.about__block {
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-gray-200);
}

.about__block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.about__block h3 {
  font-size: calc(var(--font-size-lg) * 1.2);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-semibold);
}

.about__block p {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
}

.about__block p:not(:last-child) {
  margin-bottom: var(--space-4);
}

.about__photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.about__photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* About - Tablet */
@media (min-width: 768px) {
  .about {
    padding: var(--space-20) 0;
  }
  
  .about h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-10);
  }
  
  .about__image-wrapper {
    margin-bottom: var(--space-12);
  }
  
  .about__block h3 {
    font-size: var(--font-size-xl);
  }
  
  .about__photos {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* About - Desktop */
@media (min-width: 1024px) {
  .about h2 {
    font-size: var(--font-size-4xl);
  }
}


/* --------------------------------------------
   Product Modal
   -------------------------------------------- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.product-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.product-modal__container {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  max-width: 1000px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.product-modal.active .product-modal__container {
  transform: translateY(0) scale(1);
}

.product-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  color: var(--color-gray-700);
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}

.product-modal__close:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.product-modal__content {
  display: flex;
  flex-direction: column;
}

.product-modal__gallery {
  width: 100%;
  background: var(--color-gray-100);
  min-height: 300px;
}

.product-carousel--modal {
  height: 100%;
  width: 100%;
}

.product-carousel--modal .carousel-track {
  height: 100%;
}

.product-carousel--modal .carousel-track img,
.product-carousel--modal .carousel-track video {
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.product-modal__details {
  padding: var(--space-6);
}

.product-modal__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-3);
}

.product-modal__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.product-modal__price {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.product-modal__size {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  padding: var(--space-1) var(--space-3);
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
}

.product-modal__description {
  margin-bottom: var(--space-6);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

.product-modal__description p {
  margin: 0;
}

.product-modal__ingredients {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--color-cream);
  border-radius: var(--radius-md);
}

.product-modal__ingredients h3 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
}

.product-modal__ingredients p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.product-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.product-modal__quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 44px;
  height: 44px;
  background: var(--color-gray-100);
  border: none;
  font-size: var(--font-size-lg);
  cursor: pointer;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: var(--color-gray-200);
}

.product-modal__quantity input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  -moz-appearance: textfield;
}

.product-modal__quantity input::-webkit-outer-spin-button,
.product-modal__quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
}

.product-modal__info {
  border-top: 1px solid var(--color-gray-200);
  padding-top: var(--space-4);
}

.product-modal__info details {
  border-bottom: 1px solid var(--color-gray-100);
}

.product-modal__info summary {
  padding: var(--space-3) 0;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-modal__info summary::after {
  content: '+';
  font-size: var(--font-size-lg);
  color: var(--color-gray-500);
}

.product-modal__info details[open] summary::after {
  content: '−';
}

.product-modal__info details p {
  padding: 0 0 var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* Product Modal - Tablet */
@media (min-width: 768px) {
  .product-modal__content {
    flex-direction: row;
    min-height: 500px;
  }
  
  .product-modal__gallery {
    width: 50%;
    flex-shrink: 0;
    min-height: 100%;
  }
  
  .product-carousel--modal {
    height: 100%;
  }
  
  .product-carousel--modal .carousel-track img,
  .product-carousel--modal .carousel-track video {
    min-height: 500px;
  }
  
  .product-modal__details {
    width: 50%;
    padding: var(--space-8);
    overflow-y: auto;
  }
  
  .product-modal__actions {
    flex-direction: row;
    align-items: center;
  }
}

/* ============================================
   SITE-END - centered links & visibility
   ============================================ */
.site-end {
  background-color: #E8F4F8 !important;
  border-top: 3px solid var(--color-primary) !important;
  min-height: 200px !important;
  margin-top: var(--space-8) !important;
  padding: var(--space-10) 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  clear: both !important;
  width: 100% !important;
  position: relative;
  z-index: 1;
}

.site-end .container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-end__links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 14px;
}

.site-end__link {
  color: var(--color-gray-600);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
}

.site-end__link:hover { color: var(--color-primary); }

.site-end__divider { color: var(--color-gray-400); user-select: none; margin: 0 var(--space-2); }

.site-end__copyright { font-size: 12px; color: var(--color-gray-500); margin: 0; }

.site-end__copyright p { margin: 0; margin-bottom: var(--space-2); }

.site-end__company { font-size: 11px; color: var(--color-gray-400); }

/* Responsive */
@media (min-width: 768px) {
  .site-end { padding: var(--space-16) 0 !important; }
  .site-end__links { gap: var(--space-5); }
}


/* --------------------------------------------
   Reduced Motion Support
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep carousel functional but static */
  .carousel-track {
    transition: none !important;
  }

  .nav__link::after,
  .btn,
  .product-card {
    transition: none !important;
    transform: none !important;
  }
}

/* --------------------------------------------
   Collections (centered)
   -------------------------------------------- */
.collections {
  padding: var(--space-12) 0;
  text-align: center !important;
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

.collections h2 {
  margin-bottom: var(--space-4);
}

.collections__lead {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

/* --------------------------------------------
   Contact (centered)
   -------------------------------------------- */
.contact {
  padding: var(--space-12) 0;
  text-align: center !important;
  background-color: var(--color-surface);
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
  border-top: 1px solid var(--color-gray-300);
}

.contact h2 {
  margin-bottom: var(--space-4);
}

.contact__lead {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text-muted);
}
.contact__info {
  max-width: 700px;
  margin: var(--space-4) auto 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

.contact__info a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact__info a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.contact__social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
  width: 100%;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------
   Privacy Policy Page
   -------------------------------------------- */
.privacy {
  padding: var(--space-12) 0;
  background-color: var(--color-surface);
}

.privacy h1 {
  margin-bottom: var(--space-6);
  text-align: center;
}

.privacy .last-updated {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-8);
}

.privacy h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.privacy p {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

.privacy ul {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.privacy li {
  margin-bottom: var(--space-2);
}

/* --------------------------------------------
   Refund Policy Page
   -------------------------------------------- */
.refund {
  padding: var(--space-12) 0;
  background-color: var(--color-surface);
}

.refund h1 {
  margin-bottom: var(--space-6);
  text-align: center;
}

.refund h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.refund p {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

/* --------------------------------------------
   Cart Modal
   -------------------------------------------- */
.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
}

.cart-modal.active {
  display: block;
}

.cart-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.cart-modal__content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background-color: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cart-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-gray-200);
}

.cart-modal__header h2 {
  margin: 0;
  font-size: var(--font-size-2xl);
}

.cart-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-text);
  transition: color 0.2s ease;
}

.cart-modal__close:hover {
  color: var(--color-primary);
}

.cart-modal__items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

.cart-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--space-8) 0;
}

.cart-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  position: relative;
}

.cart-item__image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.cart-item__details {
  flex: 1;
}

.cart-item__details h3 {
  font-size: var(--font-size-base);
  margin: 0 0 var(--space-1) 0;
  color: var(--color-text);
}

.cart-item__size {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-1) 0;
}

.cart-item__price {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin: 0;
}

.cart-item__quantity {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
}

.cart-item__quantity .qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-gray-300);
  background-color: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cart-item__quantity .qty-btn:hover {
  background-color: var(--color-gray-100);
  border-color: var(--color-primary);
}

.cart-item__quantity span {
  min-width: 24px;
  text-align: center;
  font-weight: var(--font-weight-medium);
}

.cart-item__remove {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gray-500);
  padding: var(--space-1);
  transition: color 0.2s ease;
}

.cart-item__remove:hover {
  color: var(--color-error);
}

.cart-modal__footer {
  padding: var(--space-6);
  border-top: 1px solid var(--color-gray-200);
  background-color: var(--color-gray-50);
}

.cart-modal__notice {
  background-color: var(--color-teal-light);
  border-left: 4px solid var(--color-teal);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-md);
}

.cart-modal__notice p {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

.cart-modal__notice p:last-child {
  margin-bottom: 0;
}

.cart-modal__notice-small {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

.cart-modal__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.cart-modal__footer .btn {
  width: 100%;
  margin-bottom: var(--space-3);
}

.cart-modal__footer .btn:last-child {
  margin-bottom: 0;
}

.btn--secondary {
  background-color: white;
  color: var(--color-text);
  border: 1px solid var(--color-gray-300);
}

.btn--secondary:hover {
  background-color: var(--color-gray-100);
}

/* Cart Notification */
.cart-notification {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.cart-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.cart-notification svg {
  flex-shrink: 0;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .cart-modal__content {
    max-width: 100%;
  }
  
  .cart-notification {
    bottom: var(--space-4);
    right: var(--space-4);
    left: var(--space-4);
    font-size: var(--font-size-sm);
  }
}