/* ============================================
   AMELA'S CUPAVCI — DESIGN SYSTEM
   Brown/Beige Palette | Warm & Appetizing
   ============================================ */

/* ------------ CSS RESET ------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

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

ul,
ol {
  list-style: none;
}

/* ------------ DESIGN TOKENS ------------ */
:root {
  /* Colors - Brown/Beige Palette */
  --color-primary-dark: #5D4037;
  --color-primary: #795548;
  --color-primary-light: #A1887F;
  --color-secondary: #EFEBE9;
  --color-accent: #D4A574;
  --color-accent-light: #E8D4B8;

  --color-bg: #FFFBF7;
  --color-bg-alt: #FFF8F0;
  --color-surface: #FFFFFF;
  --color-text: #3E2723;
  --color-text-muted: #5D4037;
  --color-text-light: #6D4C41;

  --color-success: #558B2F;
  --color-success-light: #7CB342;
  --color-warning: #F9A825;
  --color-error: #C62828;
  --color-error-light: #FFEBEE;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Dancing Script', cursive;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;

  --leading-tight: 1.2;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(62, 39, 35, 0.05);
  --shadow-md: 0 4px 6px rgba(62, 39, 35, 0.07), 0 2px 4px rgba(62, 39, 35, 0.05);
  --shadow-lg: 0 10px 15px rgba(62, 39, 35, 0.1), 0 4px 6px rgba(62, 39, 35, 0.05);
  --shadow-xl: 0 20px 25px rgba(62, 39, 35, 0.1), 0 10px 10px rgba(62, 39, 35, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
}

/* ------------ TYPOGRAPHY ------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-primary-dark);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  h3 {
    font-size: var(--text-3xl);
  }
}

.text-accent {
  font-family: var(--font-accent);
}

.text-muted {
  color: var(--color-text-muted);
}

/* ------------ LAYOUT ------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

@media (min-width: 768px) {
  .section {
    padding: var(--space-4xl) 0;
  }
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------ BUTTONS ------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-weight: 500;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

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

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

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

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

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

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

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

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ------------ CARDS ------------ */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

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

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body {
  padding: var(--space-lg);
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* Product Card */
.product-card {
  position: relative;
}

.product-card .card-image {
  aspect-ratio: 1;
}

.product-price {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary-dark);
}

.product-price-small {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Product card button consistency on mobile */
@media (max-width: 768px) {
  .product-card .btn {
    width: auto;
    white-space: normal;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
  }
}

/* ------------ FORMS ------------ */
.form-group {
  margin-bottom: var(--space-lg);
}

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

.form-label.required::after {
  content: ' *';
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(121, 85, 72, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-error);
  background: var(--color-error-light);
}

.form-error {
  display: block;
  color: var(--color-error);
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
}

.form-hint {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ------------ NAVIGATION ------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-secondary);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-normal);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    padding: var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* Cart Icon */
.cart-icon {
  position: relative;
  padding: var(--space-sm);
  cursor: pointer;
}

.cart-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary-dark);
}

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: var(--space-xs);
  background: var(--color-secondary);
  padding: var(--space-xs);
  border-radius: var(--radius-full);
}

.lang-btn {
  padding: var(--space-xs) var(--space-sm);
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* ------------ FOOTER ------------ */
.footer {
  background: var(--color-primary-dark);
  color: var(--color-secondary);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.footer-brand {
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  color: white;
  margin-bottom: var(--space-md);
}

.footer-desc {
  color: var(--color-primary-light);
  margin-bottom: var(--space-lg);
}

.footer-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
}

.footer-link {
  display: block;
  color: #D7CCC8;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

/* ------------ HERO SECTION ------------ */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
}

.hero-logo {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 0 auto var(--space-xl);
  display: block;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.04);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.04);
  }

  56% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .hero-logo {
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    max-width: 320px;
  }
}

.hero-badge {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-primary-dark);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
  color: var(--color-primary-dark);
}

.hero-title .accent {
  font-family: var(--font-accent);
  color: var(--color-accent);
  font-size: 1.2em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
}

.hero-text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero Image with Speech Bubble Container */
.hero-image-container {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 550px;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  background: var(--color-surface);
  border-radius: 30px;
  padding: 12px;
  box-shadow:
    0 20px 60px rgba(121, 85, 72, 0.3),
    0 0 80px rgba(210, 180, 140, 0.2);
  animation: float 6s ease-in-out infinite;
}

/* Speech bubble pointer */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 28px solid var(--color-surface);
  filter: drop-shadow(-4px 0 3px rgba(121, 85, 72, 0.15));
}

.hero-image {
  position: relative;
  width: 100%;
  border-radius: 20px;
  display: block;
  z-index: 2;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(210, 180, 140, 0.4) 0%, transparent 70%);
  border-radius: 30px;
  animation: pulse-glow 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Sparkle Effects */
.hero-image-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.sparkle {
  position: absolute;
  left: var(--sparkle-x);
  top: var(--sparkle-y);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
  animation-delay: var(--sparkle-delay);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Falling Coconut Particles */
.coconut-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Global particles that cover entire page */
.coconut-particles.global-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
}

.coconut-flake {
  position: absolute;
  left: var(--x);
  top: -20px;
  width: 6px;
  height: 10px;
  background: linear-gradient(135deg, #8B6914 0%, #5D4037 50%, #3E2723 100%);
  border-radius: 40% 60% 60% 40%;
  animation: fall 8s linear infinite;
  animation-delay: var(--delay);
  opacity: 0.75;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.coconut-flake::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
  border-radius: inherit;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.7;
  }

  90% {
    opacity: 0.7;
  }

  100% {
    transform: translateY(100vh) rotate(360deg) translateX(50px);
    opacity: 0;
  }
}

@media (max-width: 1024px) {

  .hero {
    flex-direction: column;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-container {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 80%;
    max-width: 400px;
    margin: var(--space-xl) auto 0;
  }

  .coconut-particles {
    opacity: 0.5;
  }
}

/* ------------ USP SECTION ------------ */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

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

.usp-item {
  text-align: center;
  padding: var(--space-xl);
}

.usp-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--color-accent-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.usp-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary-dark);
}

.usp-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.usp-text {
  color: var(--color-text-muted);
}

/* ------------ BADGES ------------ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.badge-accent {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.badge-success {
  background: var(--color-success-light);
  color: white;
}

.badge-warning {
  background: var(--color-warning);
  color: var(--color-primary-dark);
}

/* ------------ ALLERGEN BADGES ------------ */
.allergen-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.allergen-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ------------ PRICE DISPLAY ------------ */
.price {
  font-weight: 600;
  color: var(--color-primary-dark);
}

.price-large {
  font-size: var(--text-3xl);
}

.price-currency {
  font-size: 0.7em;
}

.price-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ------------ QUANTITY SELECTOR ------------ */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--color-secondary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary-dark);
  transition: background var(--transition-fast);
}

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

.qty-value {
  width: 50px;
  text-align: center;
  font-weight: 600;
  font-size: var(--text-lg);
}

/* ------------ NOTIFICATIONS/TOAST ------------ */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background: var(--color-surface);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid var(--color-success);
}

.toast-error {
  border-left: 4px solid var(--color-error);
}

/* ------------ DELIVERY/PICKUP TOGGLE ------------ */
.delivery-toggle {
  display: flex;
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xs);
  gap: var(--space-xs);
}

.delivery-option {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  transition: all var(--transition-normal);
}

.delivery-option.active {
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}

.delivery-option svg {
  width: 24px;
  height: 24px;
}

/* ------------ UTILITIES ------------ */
.text-center {
  text-align: center;
}

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

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

.mb-0 {
  margin-bottom: 0;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

.mt-0 {
  margin-top: 0;
}

.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);
}

.hidden {
  display: none !important;
}

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

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-secondary);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Decorative Elements */
.coconut-decoration {
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--color-secondary) 30%, transparent 70%);
  border-radius: 50%;
  opacity: 0.5;
}

/* ------------ COOKIE CONSENT ------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  padding: var(--space-lg);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ============================================
   AWARD-WINNING ANIMATIONS & EFFECTS
   ============================================ */

/* ------------ SCROLL REVEAL ANIMATIONS ------------ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Delays */
.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

/* ------------ PREMIUM HOVER EFFECTS ------------ */
.card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 30px 60px rgba(93, 64, 55, 0.15),
    0 15px 30px rgba(93, 64, 55, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

/* Image Zoom on Hover */
.card-image {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover .card-image {
  transform: scale(1.08);
}

/* ------------ MAGNETIC BUTTON EFFECT ------------ */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 20px rgba(93, 64, 55, 0.2),
    0 6px 6px rgba(93, 64, 55, 0.1);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(93, 64, 55, 0.15);
}

/* Button Shine Effect */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

/* ------------ GLOWING ACCENT TEXT ------------ */
.accent {
  position: relative;
  display: inline-block;
}

.hero-title .accent {
  animation: text-glow 3s ease-in-out infinite;
}

@keyframes text-glow {

  0%,
  100% {
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
  }

  50% {
    text-shadow: 0 0 40px rgba(212, 165, 116, 0.6), 0 0 60px rgba(212, 165, 116, 0.3);
  }
}

/* ------------ ANIMATED BADGE ------------ */
.hero-badge {
  animation: badge-pulse 2s ease-in-out infinite;
}

.hero-actions .btn-primary,
.btn-add-cart,
.cta-button {
  animation: button-pulse 2s ease-in-out infinite;
}

@keyframes button-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(93, 64, 55, 0.4);
    transform: scale(1);
  }

  14% {
    box-shadow: 0 0 0 8px rgba(93, 64, 55, 0);
    transform: scale(1.02);
  }

  28% {
    box-shadow: 0 0 0 0 rgba(93, 64, 55, 0.4);
    transform: scale(1);
  }

  42% {
    box-shadow: 0 0 0 8px rgba(93, 64, 55, 0);
    transform: scale(1.02);
  }

  56% {
    box-shadow: 0 0 0 0 rgba(93, 64, 55, 0);
    transform: scale(1);
  }
}

@keyframes badge-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.4);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(212, 165, 116, 0);
  }
}

/* ------------ SMOOTH UNDERLINE ANIMATION ------------ */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

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

/* ------------ USP ITEM ANIMATIONS ------------ */
.usp-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.usp-item:hover {
  transform: translateY(-8px);
}

.usp-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.usp-item:hover .usp-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

/* ------------ DECORATIVE GRADIENT BORDERS ------------ */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  border-radius: var(--radius-full);
  opacity: 0.6;
}

/* ------------ FLOATING ANIMATION ------------ */
@keyframes gentle-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: gentle-float 4s ease-in-out infinite;
}

/* ------------ PRICE HIGHLIGHT ------------ */
.price-large {
  position: relative;
  display: inline-block;
}

.price-large::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 30%;
  background: linear-gradient(to top, rgba(212, 165, 116, 0.2), transparent);
  z-index: -1;
  border-radius: 2px;
}

/* ------------ ALLERGEN BADGE HOVER ------------ */
.allergen-badge {
  transition: all 0.3s ease;
}

.allergen-badge:hover {
  transform: scale(1.05);
  background: var(--color-accent-light);
  color: var(--color-primary-dark);
}

/* ------------ QUANTITY BUTTON EFFECTS ------------ */
.qty-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.qty-btn:hover {
  transform: scale(1.1);
}

.qty-btn:active {
  transform: scale(0.95);
}

/* ------------ CART ICON BOUNCE ------------ */
.cart-icon {
  transition: all 0.3s ease;
}

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

.cart-count {
  animation: count-pop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes count-pop {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* ------------ FOOTER LINK HOVER ------------ */
.footer-link {
  position: relative;
  transition: all 0.3s ease;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.footer-link:hover::before {
  width: 100%;
}

.footer-link:hover {
  color: white;
  padding-left: 8px;
}

/* ------------ LOADING SKELETON ------------ */
.skeleton {
  background: linear-gradient(90deg,
      var(--color-secondary) 25%,
      var(--color-bg) 50%,
      var(--color-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ------------ SMOOTH PAGE TRANSITIONS ------------ */
main {
  animation: page-fade-in 0.6s ease-out;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------ GRADIENT TEXT ANIMATION ------------ */
.gradient-text {
  background: linear-gradient(135deg,
      var(--color-primary-dark) 0%,
      var(--color-accent) 50%,
      var(--color-primary-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }
}

/* ------------ SMOOTH SCROLL INDICATOR ------------ */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce-down 2s infinite;
}

@keyframes bounce-down {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.5;
  }
}

/* ------------ SELECTION STYLING ------------ */
::selection {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

/* ------------ FOCUS STATES FOR ACCESSIBILITY ------------ */
*:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ------------ REDUCED MOTION PREFERENCE ------------ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .coconut-flake,
  .sparkle,
  .hero-image {
    animation: none !important;
  }
}

/* Legal pages mobile typography */
@media (max-width: 480px) {
  .container[style*="max-width: 800px"] h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .container[style*="max-width: 800px"] h2 {
    font-size: 1.25rem;
    margin-top: var(--space-xl);
  }

  .container[style*="max-width: 800px"] h3 {
    font-size: 1.1rem;
  }
}