/* CSS Design System - Bubli & Bowtie */

:root {
  /* Colors */
  --color-blush-pink: #fdf2f4;
  --color-blush-dark: #f0c5ca;
  --color-sky-blue: #f5f5f5;
  --color-sky-dark: #888888;
  --color-cream: #fffdf9;
  --color-charcoal-gray: #303538;
  --color-charcoal-light: #525a5f;
  --color-gold: #d4af37;
  --color-gold-light: #f5eedc;
  --color-white: #ffffff;

  /* 8px Grid Spacing */
  --space-0: 0px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;

  /* Typography */
  --font-body: 'Nunito', sans-serif;
  --font-heading: 'Dancing Script', cursive;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(48, 53, 56, 0.04);
  --shadow-md: 0 8px 24px rgba(48, 53, 56, 0.08);
  --shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.2);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal-gray);
  background-color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  /* Baseline for 8px scaling if needed, we'll use rems/px */
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-charcoal-gray);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.text-center {
  text-align: center;
}

.bg-cream {
  background-color: var(--color-cream);
}

.bg-blush {
  background-color: var(--color-blush-pink);
}

.bg-charcoal {
  background-color: var(--color-charcoal-gray);
  color: var(--color-white);
}

.section-title {
  font-size: 3rem;
  /* ~48px */
  margin-bottom: var(--space-6);
  color: var(--color-charcoal-gray);
}

.bg-charcoal .section-title {
  color: var(--color-white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
}

@media (prefers-reduced-motion: reduce) {

  .btn,
  a,
  * {
    transition: none !important;
  }
}

.btn--primary {
  background-color: var(--color-blush-dark);
  color: var(--color-charcoal-gray);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(240, 197, 202, 0.6), 0 4px 12px rgba(48, 53, 56, 0.1);
}

.btn--secondary {
  background-color: var(--color-charcoal-gray);
  color: var(--color-white);
}

.btn--secondary:hover {
  background-color: var(--color-charcoal-light);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  border-color: var(--color-charcoal-gray);
  color: var(--color-charcoal-gray);
  background: transparent;
}

.btn--outline:hover {
  background-color: var(--color-charcoal-gray);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(48, 53, 56, 0.2);
}

.btn--full {
  width: 100%;
}

/* Magic UI Sparkles */
.sparkle-icon {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  animation: sparkle-appear 1.5s ease-in-out forwards;
}

@keyframes sparkle-appear {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }

  50% {
    transform: scale(1) rotate(90deg);
    opacity: 1;
  }

  100% {
    transform: scale(0) rotate(180deg);
    opacity: 0;
  }
}

/* Header */
.header {
  padding: var(--space-3) 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  color: var(--color-charcoal-gray);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.logo__img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo--light {
  color: var(--color-white);
}

.nav {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  font-weight: 600;
  color: var(--color-white);
}

.nav a:not(.btn):hover {
  color: var(--color-gold);
}

/* Hero Scroll System - Base Styles */
.hero-scroll-container {
  height: 400vh;
  /* Default scroll track */
  background: linear-gradient(135deg, var(--color-blush-pink), var(--color-sky-blue) 100%);
}

.hero--sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background-color: transparent;
}

.hero__canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.40);
  z-index: 2;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 5;
  pointer-events: none;
  padding: 0 0 var(--space-8);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 100vh;
}

.hero__content {
  pointer-events: auto;
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}

.hero__title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: var(--space-3);
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.hero__description {
  font-size: 1.25rem;
  margin-bottom: var(--space-5);
  color: var(--color-white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-weight: 600;
}

.hero__content .btn--primary {
  padding: var(--space-2) var(--space-6);
  font-size: 1.125rem;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.4), 0 2px 8px rgba(212, 175, 55, 0.2);
  animation: hero-btn-glow 2.5s ease-in-out infinite;
}

@keyframes hero-btn-glow {

  0%,
  100% {
    box-shadow: 0 4px 24px rgba(212, 175, 55, 0.4), 0 2px 8px rgba(212, 175, 55, 0.2);
  }

  50% {
    box-shadow: 0 6px 32px rgba(212, 175, 55, 0.6), 0 4px 16px rgba(212, 175, 55, 0.35);
  }
}

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-container {
    height: auto !important;
  }

  .hero--sticky {
    position: relative !important;
    height: 80vh !important;
  }

  .hero__canvas {
    display: none !important;
  }

  .hero--sticky::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* User preferred hero.png fallback */
    background: url('../public/hero.png') no-repeat center center;
    background-size: cover;
    z-index: 1;
  }

  .parallax-layer {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Features Section */
.features {
  padding: var(--space-12) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.feature-card {
  background: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
}

.feature-card__icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
  display: inline-flex;
  width: var(--space-10);
  height: var(--space-10);
  align-items: center;
  justify-content: center;
  background: var(--color-blush-pink);
  border-radius: var(--radius-full);
}

.feature-card__title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.feature-card__text {
  color: var(--color-charcoal-light);
}

/* Customize Section */
.customize {
  padding: var(--space-12) 0;
  background-color: var(--color-white);
}

.customize__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.preview-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-cream);
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-card__img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.preview-card__overlay {
  position: absolute;
  top: 68%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-charcoal-gray);
  pointer-events: none;
}

.customize-form .btn--primary {
  padding: var(--space-3) var(--space-6);
  font-size: 1.125rem;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.4), 0 2px 8px rgba(212, 175, 55, 0.2);
  animation: hero-btn-glow 2.5s ease-in-out infinite;
}

.preview-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-gold);
  /* embroidery color */
}

.preview-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-gold);
}

.preview-icon {
  font-size: 0.8rem;
  display: block;
  margin-top: 4px;
}

/* Form Styles */
.customize__form {
  background: var(--color-white);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--space-1);
  font-size: 0.875rem;
  color: var(--color-charcoal-gray);
}

.form-input {
  width: 100%;
  padding: var(--space-2);
  border: 1px solid var(--color-charcoal-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px var(--color-gold-light);
}

.color-options,
.icon-options {
  display: flex;
  gap: var(--space-2);
}

.color-opt input,
.icon-opt input {
  display: none;
}

.color-swatch {
  display: block;
  width: var(--space-5);
  height: var(--space-5);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}

.bg-blush {
  background-color: var(--color-blush-dark);
}

.bg-sky {
  background-color: var(--color-sky-dark);
}

.color-opt input:checked+.color-swatch {
  border-color: var(--color-gold);
  transform: scale(1.1);
}

.icon-display {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-6);
  height: var(--space-6);
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
  background: var(--color-white);
  transition: all 0.2s;
}

.icon-opt input:checked+.icon-display {
  border-color: var(--color-gold);
  background-color: var(--color-gold-light);
}

.price-summary {
  background: var(--color-cream);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-1);
  font-size: 0.875rem;
}

.price-total {
  font-weight: 800;
  font-size: 1.25rem;
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid #e0e0e0;
}

.delivery-estimate {
  margin-top: var(--space-2);
  font-size: 0.75rem;
  color: var(--color-charcoal-light);
  display: flex;
  align-items: center;
}

.delivery-estimate::before {
  content: '🚚';
  margin-right: var(--space-1);
}

/* Products Catalog */
.products {
  padding: var(--space-12) 0;
  background-color: var(--color-gold-light);
}

.products__subtitle {
  color: var(--color-charcoal-light);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.product-grid__loading {
  grid-column: 1 / -1;
  color: var(--color-charcoal-light);
  font-size: 1rem;
  padding: var(--space-10) 0;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.product-card__img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-cream);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.08);
}

.product-card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.product-card__name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-charcoal-gray);
  margin: 0;
}

.product-card__price {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-charcoal-gray);
  margin: 0;
}

.product-card__btn {
  margin-top: auto;
  padding: var(--space-1) var(--space-2);
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  background-color: var(--color-blush-dark);
  color: var(--color-charcoal-gray);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-card__btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(240, 197, 202, 0.6);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  background: var(--color-white);
  color: var(--color-charcoal-gray);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-left: 4px solid var(--color-charcoal-gray);
  pointer-events: auto;
  animation: toast-slide-in 0.4s ease forwards;
  max-width: 360px;
}

.toast--hiding {
  animation: toast-slide-out 0.35s ease forwards;
}

.toast__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {

  .product-card,
  .product-card__img,
  .product-card__btn,
  .toast {
    transition: none !important;
    animation: none !important;
  }

  .toast {
    opacity: 1;
    transform: none;
  }
}

/* Cart Drawer & Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(48, 53, 56, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background-color: var(--color-white);
  z-index: 1001;
  box-shadow: -4px 0 24px rgba(48, 53, 56, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-active {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-4) var(--space-2);
  border-bottom: 1px solid var(--color-sky-blue);
}

.cart-drawer__header h3 {
  margin: 0;
  font-size: 2rem;
  color: var(--color-charcoal-gray);
}

.cart-drawer__close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-charcoal-light);
  transition: color 0.2s;
  padding: 0 var(--space-1);
}

.cart-drawer__close:hover {
  color: var(--color-charcoal-gray);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cart-empty-message {
  text-align: center;
  color: var(--color-charcoal-light);
  margin-top: var(--space-4);
  font-size: 1.125rem;
}

.cart-item {
  display: flex;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px dashed var(--color-sky-blue);
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item__img-wrapper {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-cream);
  flex-shrink: 0;
}

.cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

.cart-item__price {
  font-weight: 800;
  color: var(--color-charcoal-gray);
  margin-bottom: var(--space-2);
}

.cart-item__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  background: var(--color-sky-blue);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cart-qty-btn {
  background: none;
  border: none;
  padding: var(--space-1) var(--space-2);
  cursor: pointer;
  font-weight: 700;
  color: var(--color-charcoal-gray);
  transition: background 0.2s;
}

.cart-qty-btn:hover {
  background: #e2e2e2;
}

.cart-qty-count {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: #d9534f;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.cart-drawer__footer {
  padding: var(--space-4);
  border-top: 1px solid var(--color-sky-blue);
  background: var(--color-cream);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: var(--color-charcoal-gray);
}

/* Nav Cart Button & Badge */
.cart-btn {
  position: relative;
}

.cart-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cart-icon-btn:hover {
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--color-charcoal-gray);
  color: var(--color-white);
  font-size: 0.70rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--color-white);
}

.cart-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 1.125rem;
}

.cart-whatsapp-btn svg {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cart-drawer {
    transition: none !important;
  }
}

/* Testimonials */
.testimonials {
  padding: var(--space-12) 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.testimonial-card {
  background: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.stars {
  color: var(--color-gold);
  margin-bottom: var(--space-3);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: var(--space-4);
  color: var(--color-charcoal-light);
}

.layer-author {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-charcoal-gray);
}

/* Gifts */
.gifts {
  padding: var(--space-12) 0;
}

.gifts__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gifts__content {
  max-width: 600px;
  margin-bottom: var(--space-6);
}

.gifts__text {
  margin-bottom: var(--space-4);
}

.gifts__image-wrapper {
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
}

.gifts__image {
  width: 100%;
  height: 115%;
  object-fit: cover;
  transform: translateY(-60px);
}

/* About Section */
.about {
  padding: var(--space-12) 0;
  background: var(--color-white);
}

.about__text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--color-charcoal-light);
}

/* Footer */
.footer {
  padding: var(--space-10) 0 var(--space-4);
}

.footer__brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: var(--space-4);
}

.footer__brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__tagline {
  color: #99a2a8;
  margin-top: 0;
  text-align: left;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.link-group h4 {
  color: var(--color-white);
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
}

.link-group a {
  display: block;
  color: #99a2a8;
  margin-bottom: var(--space-1);
  font-size: 0.875rem;
}

.link-group a:hover {
  color: var(--color-gold);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-4);
  border-top: 1px solid #444a4f;
  color: #99a2a8;
  font-size: 0.75rem;
}

/* Responsive Variables & Breakpoints */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .logo {
    font-size: 2rem;
  }

  .nav {
    gap: var(--space-2);
  }

  .section-title {
    font-size: 2.5rem;
  }

  .features__grid,
  .testimonials__grid {
    gap: var(--space-4);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  :root {
    /* Slightly smaller space for mobile to fit more */
    --space-12: 64px;
    --space-10: 48px;
    --space-8: 40px;
    --space-6: 32px;
  }

  .container {
    padding: 0 var(--space-3);
  }

  .section-title {
    font-size: 2.25rem;
    margin-bottom: var(--space-4);
  }

  /* Header / Nav */
  .header {
    padding: var(--space-2) 0;
    background: transparent;
  }

  .header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    font-size: 1.25rem;
  }

  .nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0;
  }

  .nav a:not(.cart-btn) {
    display: none;
  }

  .nav .cart-btn {
    font-size: 0.875rem;
    padding: 8px 12px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero Section */
  .hero-scroll-container {
    height: 350vh;
    /* Restore enough height for animation but slightly shorter than desktop */
  }

  .hero--sticky {
    position: sticky !important;
    /* Ensure it stays sticky on mobile */
    height: 100vh;
  }

  .hero__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding-bottom: 0;
    padding-top: 20vh;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero__canvas {
    display: block !important;
    /* Ensure canvas is visible */
    z-index: 1;
    width: 100vw;
    height: 100vh;
  }

  .hero__title {
    font-size: 2.25rem;
    margin-bottom: var(--space-2);
  }

  .hero__description {
    font-size: 1rem;
    margin-bottom: var(--space-4);
  }

  .hero__inner {
    padding-bottom: var(--space-6);
  }

  /* Features & Testimonials */
  .features,
  .testimonials,
  .customize,
  .gifts,
  .about {
    padding: var(--space-8) 0;
  }

  .features__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-top: var(--space-4);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .toast-container {
    left: var(--space-2);
    right: var(--space-2);
    bottom: var(--space-2);
  }

  .toast {
    max-width: 100%;
  }

  .feature-card,
  .testimonial-card {
    padding: var(--space-4);
  }

  /* Customize Section */
  .customize__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .preview-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  /* Touch Targets for Customizer */
  .color-swatch {
    width: 44px;
    height: 44px;
  }

  .icon-display {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .form-input {
    padding: 12px;
    font-size: 16px;
    /* Prevent zoom on iOS */
  }

  .btn {
    min-height: 48px;
    padding: 12px 24px;
  }

  /* Gifts Section */
  .gifts__content {
    margin-bottom: var(--space-4);
  }

  .gifts__image-wrapper {
    max-width: 100%;
  }

  .gifts__image {
    height: 100%;
    transform: none;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }

  .footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__links {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .link-group a {
    padding: 10px 0;
    /* Touch target */
  }
}

@media (prefers-reduced-motion: reduce) {

  .btn,
  a,
  * {
    transition: none !important;
  }

  .hero-scroll-container {
    height: auto;
  }

  .hero--sticky {
    position: relative;
    height: 80vh;
  }

  .hero__canvas {
    display: none;
  }

  .hero--sticky::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('hero.png') no-repeat center center;
    background-size: cover;
    z-index: 1;
  }

  .parallax-layer {
    transform: none !important;
    opacity: 1 !important;
  }
}