/* ============================================
   MALKEEYA - Brand Design System
   ============================================ */

/* ===== CSS Variables - Brand Colors ===== */
:root {
  /* Brand Colors */
  --color-sun-honey: #E2A84B;        /* Primary accent */
  --color-cocoa-brown: #5A3B2E;      /* Primary dark */
  --color-soft-sand: #F4E9D0;        /* Secondary light */
  --color-matte-black: #1C1B1A;      /* Text color */
  --color-cream-white: #FDF8F2;      /* Background */
  --color-burnished-gold: #C7963B;   /* Secondary accent */
  
  /* Semantic Color Mappings */
  --color-primary: var(--color-sun-honey);
  --color-secondary: var(--color-cocoa-brown);
  --color-accent: var(--color-burnished-gold);
  --color-text: var(--color-matte-black);
  --color-text-light: var(--color-cocoa-brown);
  --color-background: var(--color-cream-white);
  --color-background-alt: var(--color-soft-sand);
  
  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Playfair Display', serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(26, 27, 26, 0.1);
  --shadow-md: 0 4px 8px rgba(26, 27, 26, 0.15);
  --shadow-lg: 0 8px 16px rgba(26, 27, 26, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Max Widths */
  --max-width-sm: 640px;
  --max-width-md: 768px;
  --max-width-lg: 1024px;
  --max-width-xl: 1280px;
  --max-width-content: 1200px;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

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

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

.section-alt {
  background-color: var(--color-background-alt);
}

/* ===== Skip to Content Link (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-secondary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ===== Navigation ===== */
.navbar {
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-soft-sand);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: all var(--transition-fast);
  padding: var(--spacing-xs) 0;
  position: relative;
}

.logo:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.logo:active {
  transform: translateY(0);
}

.logo:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.logo img,
.logo svg {
  height: 45px;
  width: auto;
  display: block;
  transition: transform var(--transition-fast);
}

.logo:hover img,
.logo:hover svg {
  transform: scale(1.02);
}

.logo-text {
  display: inline-block;
  position: relative;
}

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

.logo:hover .logo-text::after {
  width: 100%;
}

/* Hide text if logo image is present and loaded */
.logo img[src],
.logo svg {
  display: block;
}

.logo img[src] ~ .logo-text,
.logo svg ~ .logo-text {
  display: none;
}

@media (max-width: 768px) {
  .logo img,
  .logo svg {
    height: 38px;
  }
  
  .logo {
    font-size: 1.25rem;
    gap: var(--spacing-xs);
  }
}

@media (max-width: 480px) {
  .logo img,
  .logo svg {
    height: 32px;
  }
  
  .logo {
    font-size: 1.125rem;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--color-primary);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
}

.menu-toggle:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.menu-toggle[aria-expanded="true"] {
  color: var(--color-primary);
}

.cart-icon {
  position: relative;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cart-icon:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.cart-icon:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.cart-icon img,
.cart-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

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

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

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

/* ===== Hero Section ===== */
.hero-large {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  transform: translateX(100%);
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.hero-slide.prev {
  transform: translateX(-100%);
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease-out;
}

.hero-slide.active .hero-background-image {
  transform: scale(1.05);
}

.hero-overlay-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  z-index: 2;
  max-width: 500px;
}

.hero-title-large {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: heroTitleFadeIn 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

.hero-slide.active .hero-title-large {
  animation: heroTitleFadeIn 0.8s ease-out forwards;
}

.hero-slide:not(.active) .hero-title-large {
  opacity: 0;
  transform: translateY(30px);
  animation: none;
}

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

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: white;
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: heroSubtitleFadeIn 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

.hero-slide.active .hero-subtitle {
  animation: heroSubtitleFadeIn 0.8s ease-out forwards;
}

.hero-slide:not(.active) .hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}

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

.hero-overlay-content::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  right: -10%;
  bottom: -20%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
  z-index: -1;
  border-radius: 20px;
}

.btn-hero {
  background-color: white;
  color: var(--color-secondary);
  padding: var(--spacing-md) var(--spacing-2xl);
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroButtonFadeIn 0.8s ease-out forwards;
  animation-delay: 0.7s;
}

.hero-slide.active .btn-hero {
  animation: heroButtonFadeIn 0.8s ease-out forwards;
}

.hero-slide:not(.active) .btn-hero {
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}

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

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

/* Hero Carousel Navigation */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  color: var(--color-secondary);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-nav-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-nav-prev {
  left: var(--spacing-lg);
}

.hero-nav-next {
  right: var(--spacing-lg);
}

/* Hero Indicators */
.hero-indicators {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-sm);
  z-index: 10;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.hero-indicator:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.hero-indicator.active {
  background: white;
  width: 32px;
  border-radius: 6px;
}

/* Text Block Section */
.section-text-block {
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.text-block-large {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.8;
  color: var(--color-text);
  max-width: 900px;
  margin: 0 auto;
  font-style: italic;
}

/* Section Title */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-2xl);
  font-weight: 600;
}

/* Product Showcase Grid */
.products-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.product-showcase-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  transition: transform var(--transition-base);
}

.product-showcase-card:hover {
  transform: scale(1.02);
}

.product-showcase-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.product-showcase-card:hover .product-showcase-image img {
  transform: scale(1.1);
}

.product-showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  padding: var(--spacing-lg);
  color: white;
}

.product-showcase-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: white;
  margin: 0;
  text-transform: capitalize;
}

/* Lifestyle Section */
.lifestyle-section {
  padding: var(--spacing-2xl) 0;
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-lg);
}

.lifestyle-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.lifestyle-item:hover {
  transform: scale(1.02);
}

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

.lifestyle-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  padding: var(--spacing-xl);
  color: white;
}

.lifestyle-overlay h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: white;
  margin: 0;
}

/* ===== Product Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.product-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background-color: var(--color-background-alt);
}

.product-info {
  padding: var(--spacing-md);
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.product-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  flex-shrink: 0;
  object-fit: contain;
}

.product-tagline {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

.product-description {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

/* ===== Mission Section ===== */
.mission-section {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-xl) 0;
}

.mission-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1920&h=1080&fit=crop&q=80') center/cover;
  opacity: 0.08;
  z-index: 0;
}

.mission-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.mission-content h2 {
  margin-bottom: var(--spacing-md);
  color: var(--color-secondary);
}

.mission-intro {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.mission-statement {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
  font-style: italic;
}

.mission-values {
  list-style: none;
  padding: 0;
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text);
  margin-top: var(--spacing-sm);
}

.mission-values li {
  position: relative;
  padding-left: var(--spacing-md);
}

.mission-values li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

@media (max-width: 768px) {
  .mission-section {
    padding: var(--spacing-lg) 0;
  }

  .mission-intro,
  .mission-statement,
  .mission-values {
    font-size: 0.9375rem;
  }
}

/* ===== Newsletter Section ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
}

.newsletter-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.newsletter-content h3 {
  color: white;
  margin-bottom: var(--spacing-xs);
  font-size: 1.25rem;
  font-weight: 600;
}

.newsletter-content > p {
  margin-bottom: var(--spacing-md);
  font-size: 0.9375rem;
  opacity: 0.95;
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-xs);
  max-width: 450px;
  margin: 0 auto var(--spacing-sm);
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: var(--spacing-xs) var(--spacing-sm);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: var(--font-body);
}

.newsletter-form button {
  padding: var(--spacing-xs) var(--spacing-lg);
  white-space: nowrap;
  font-size: 0.9375rem;
}

.newsletter-disclaimer {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: var(--spacing-xs);
  line-height: 1.4;
}

.newsletter-disclaimer a {
  color: white;
  text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-secondary);
  color: var(--color-background-alt);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer-section h4 {
  color: var(--color-background);
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer-section .logo {
  margin-bottom: var(--spacing-sm);
}

.footer-section .logo img,
.footer-section .logo svg {
  height: 35px;
  width: auto;
  filter: brightness(0) invert(1); /* Makes the logo white */
}

.footer-section .logo .logo-text {
  font-size: 1.25rem;
  color: white;
}

.footer-section p {
  color: var(--color-background-alt);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-xs);
  line-height: 1.5;
}

.footer-section a {
  color: var(--color-background-alt);
  display: block;
  margin-bottom: var(--spacing-xs);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

.footer-bottom {
  text-align: center;
  color: var(--color-background-alt);
  font-size: 0.8125rem;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(244, 233, 208, 0.15);
  opacity: 0.9;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  flex-wrap: wrap;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(253, 248, 242, 0.15);
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 2px solid rgba(253, 248, 242, 0.3);
  position: relative;
  flex-shrink: 0;
  padding: 8px;
  margin: 0;
  line-height: 0;
  box-sizing: border-box;
}

.social-link:hover {
  background-color: rgba(253, 248, 242, 0.25);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--color-background-alt);
  color: var(--color-background-alt);
  transition: all var(--transition-fast);
  display: block;
  pointer-events: none;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.social-link:hover svg {
  fill: var(--color-background-alt);
  color: var(--color-background-alt);
  transform: scale(1.1);
}

/* ===== Form Validation Styles ===== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--color-soft-sand);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(226, 168, 75, 0.1);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: #28a745;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
  display: none;
}

.form-group.error .error-message {
  display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc3545;
}

/* ===== Loading States ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--color-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Responsive Design ===== */
/* ===== Image Overlay Styles ===== */
.image-overlay {
  position: relative;
}

.image-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(253, 248, 242, 0.7) 0%, rgba(244, 233, 208, 0.5) 100%);
  z-index: 1;
}

.image-overlay > * {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-background);
    flex-direction: column;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    gap: var(--spacing-md);
    z-index: 999;
  }
  
  .nav-links[aria-expanded="true"] {
    transform: translateX(0);
  }
  
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: var(--spacing-sm);
  }
  
  .hero-large,
  .hero-carousel {
    height: 70vh;
    min-height: 500px;
  }

  .hero-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .hero-nav-prev {
    left: var(--spacing-sm);
  }

  .hero-nav-next {
    right: var(--spacing-sm);
  }

  .hero-indicators {
    bottom: var(--spacing-md);
  }

  .hero-overlay-content {
    left: 5%;
    right: 5%;
    max-width: 90%;
  }

  .lifestyle-grid {
    grid-template-columns: 1fr;
  }

  .products-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }

  .newsletter-section {
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-lg);
  }

  .newsletter-content h3 {
    font-size: 1.125rem;
  }

  .newsletter-content > p {
    font-size: 0.875rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  .newsletter-disclaimer {
    font-size: 0.6875rem;
  }
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.hidden {
  display: none;
}

/* ===== Loading & Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ===== Product Detail Page ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-xl);
}

.product-detail-image {
  width: 100%;
  border-radius: var(--radius-lg);
  background-color: var(--color-background-alt);
}

.product-detail-info h1 {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.product-detail-info h1 .product-icon {
  width: 36px;
  height: 36px;
}

.product-tagline-large {
  font-size: 1.25rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.product-detail-description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-light);
}

.product-specs {
  background-color: var(--color-background-alt);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
}

.product-specs p {
  margin-bottom: var(--spacing-xs);
}

.ingredients-list {
  margin-top: var(--spacing-2xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.ingredients-list h3 {
  margin-bottom: var(--spacing-lg);
  color: var(--color-secondary);
  font-size: 1.75rem;
  text-align: center;
  font-family: var(--font-heading);
}

.ingredients-list ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-sm);
  background-color: var(--color-background-alt);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.ingredients-list li {
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.6;
  position: relative;
  padding-left: calc(var(--spacing-md) + 20px);
  transition: all var(--transition-fast);
}

.ingredients-list li::before {
  content: '•';
  position: absolute;
  left: var(--spacing-sm);
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: bold;
}

.ingredients-list li:hover {
  background-color: rgba(226, 168, 75, 0.1);
  border-radius: var(--radius-sm);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .ingredients-list ul {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
  }

  .ingredients-list li {
    padding: var(--spacing-xs) var(--spacing-sm);
    padding-left: calc(var(--spacing-sm) + 20px);
  }
}


/* ===== Toast Notifications ===== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
    border-left: 4px solid var(--color-primary);
    display: flex;
    align-items: center;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: #4CAF50;
}

.toast-error {
    border-left-color: #F44336;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--color-text);
}

/* ===== Quick View Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--color-background);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 900px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

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

.close-modal {
    color: var(--color-text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.modal-image {
    height: 500px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

.modal-details {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details h2 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.product-tagline {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.modal-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
}

.quantity-selector button {
    background: none;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 1.2rem;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.view-details-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    text-decoration: underline;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-image {
        height: 300px;
    }
    .modal-image img {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}
