/* ==========================================================================
   SHOP'N BAKE — HOMEPAGE STYLES
   Extends design-system.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL / BASE OVERRIDES
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  background-image: linear-gradient(#FFFFFFF2, #FFFFFFF2), url('files/web/pattern.jpg');
  background-size: cover;
  background-position: center;
}

/* A background that stays still while scrolling makes phones repaint the whole page
   on every scroll, so only use it on computers with a mouse */
@media (hover: hover) and (pointer: fine) {
  body { background-attachment: fixed; }
}

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

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFFF4;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-default);
  transition: box-shadow var(--duration-base) var(--easing-standard);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
}

.logo-text {
  font-family: var(--font-family-base);
  font-size: var(--font-size-lg);
  color: var(--color-purple-500);
  line-height: 1.1;
}

.logo-text strong {
  display: block;
  color: var(--color-purple-500);
}

/* Primary Nav */
.primary-nav {
  flex: 1;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  color: var(--color-purple-500);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-2) 0;
  transition: color var(--duration-base) var(--easing-standard);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-purple-500);
}

.nav-arrow {
  font-size: 10px;
  opacity: 0.6;
  transition: transform var(--duration-base) var(--easing-standard);
}

.has-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--duration-base) var(--easing-standard),
    transform var(--duration-base) var(--easing-standard),
    visibility var(--duration-base);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  color: var(--color-purple-900);
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--easing-standard),
    color var(--duration-fast) var(--easing-standard);
}

.dropdown-menu a:hover {
  background-color: var(--color-yellow-50);
  color: var(--color-purple-500);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--color-purple-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color var(--duration-base) var(--easing-standard),
    color var(--duration-base) var(--easing-standard),
    transform var(--duration-fast) var(--easing-standard);
}

.icon-btn:hover {
  background-color: var(--color-purple-500);
  color: var(--color-yellow-500);
  transform: scale(1.08);
}

.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--color-yellow-500);
  color: var(--color-purple-900);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-family-base);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-purple-500);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--easing-standard),
    opacity var(--duration-base) var(--easing-standard);
}


/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--color-purple-50);
  min-height: 1015px;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease-in-out;
  transform: translateX(100%);
}

.hero-slide.active {
  transform: translateX(0);
}

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

.slider-overlay {
  position: absolute;
  inset: 0;
  background: #FFFFFF66;
  /* Light overlay to ensure text is readable */
  z-index: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #FFFFFF4C;
  border: 1px solid #FFFFFFCC;
  color: var(--color-purple-500);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.slider-btn:hover {
  background: #FFFFFFB2;
  transform: translateY(-50%) scale(1.05);
}

.slider-prev {
  left: 32px;
}

.slider-next {
  right: 32px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: var(--space-20);
  max-width: 600px;
  /* Constrain text width */
  margin-inline: 0 auto;
  /* Force to the left side */
  padding-left: var(--space-12);
  /* Add generous left padding so it isn't completely flush with screen edge */
}

/* Hero Content */
.hero-content {
  width: 100%;
  max-width: 582px;
  min-height: 473px;
  background: #FFFFFFD8;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-10);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
  box-shadow: var(--shadow-lg);
}

.hero-eyebrow {
  align-self: flex-start;
  background-color: var(--color-yellow-100);
  color: var(--color-purple-500);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
}

.hero-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--color-purple-500);
  margin: 0;
  /* Paint the yellow stripe on "A" using background-clip on the second word */
  background: linear-gradient(135deg, var(--color-purple-500) 0%, var(--color-purple-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  color: var(--color-neutral-500);
  text-transform: uppercase;
  margin: 0;
}

.btn-outline-yellow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  align-self: flex-start;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-purple-900);
  background: transparent;
  color: var(--color-purple-900);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration-base) var(--easing-standard),
    color var(--duration-base) var(--easing-standard),
    border-color var(--duration-base) var(--easing-standard),
    transform var(--duration-fast) var(--easing-standard),
    box-shadow var(--duration-base) var(--easing-standard);
}

.btn-outline-yellow:hover {
  background-color: var(--color-purple-900);
  color: var(--color-yellow-500);
  border-color: var(--color-purple-500);
  box-shadow: var(--shadow-glow-yellow);
  transform: translateY(-2px);
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, #FFF4683F 0%, transparent 70%);
  border-radius: var(--radius-full);
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

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

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

.hero-image {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: var(--shadow-lg), 0 30px 80px #492A6F33;
  position: relative;
  z-index: 1;
  animation: floatCake 6s ease-in-out infinite;
}

@keyframes floatCake {

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

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

/* Floating Badges */
.hero-float-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: #FFFFFFF2;
  backdrop-filter: blur(8px);
  border: 1px solid #FFFFFFCC;
  border-radius: var(--radius-xl);
  padding: var(--space-2) var(--space-4);
  box-shadow: var(--shadow-md);
  animation: badgePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.hero-float-badge--top {
  top: 30px;
  left: -20px;
  animation-delay: 0.3s;
}

.hero-float-badge--bottom {
  bottom: 30px;
  right: -20px;
  animation-delay: 0.5s;
}

@keyframes badgePop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-float-badge .float-icon {
  font-size: 1.5rem;
}

.hero-float-badge strong {
  display: block;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  color: var(--color-purple-900);
  line-height: 1.1;
}

.hero-float-badge small {
  display: block;
  font-family: var(--font-family-base);
  font-size: var(--font-size-xs);
  color: var(--color-neutral-500);
}


/* --------------------------------------------------------------------------
   INFO BAR
   -------------------------------------------------------------------------- */
.info-bar {
  background: var(--color-purple-900);
  width: 100%;
  max-width: 1192px;
  min-height: 296px;
  margin: -148px auto 0 auto;
  position: relative;
  z-index: 20;
  border-radius: 24px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.info-bar-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  width: 100%;
}

.info-card {
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.info-icon {
  color: var(--color-yellow-500);
  display: flex;
  align-items: center;
}

.info-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  color: var(--color-white);
  margin: 0;
}

.info-desc {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-sm);
  color: var(--color-purple-200);
  line-height: 1.6;
  margin: 0;
}

.info-link {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  color: var(--color-yellow-400);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--duration-base) var(--easing-standard),
    color var(--duration-base) var(--easing-standard);
}

.info-link:hover {
  color: var(--color-yellow-300);
  gap: var(--space-2);
}

.info-divider {
  width: 1px;
  align-self: stretch;
  background: #FFFFFF19;
  margin: var(--space-4) 0;
}


/* --------------------------------------------------------------------------
   SECTION HEADER (shared)
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-purple-500);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-4xl);
  color: var(--color-purple-900);
  margin: 0 0 var(--space-4) 0;
  letter-spacing: -0.01em;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-yellow-500), var(--color-purple-500));
  border-radius: var(--radius-full);
  margin: 0 auto;
}


/* --------------------------------------------------------------------------
   PRODUCTS SECTION
   -------------------------------------------------------------------------- */
.products-section {
  padding: var(--space-20) 0;
  background: transparent;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

/* Product Card */
.product-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-base) var(--easing-standard),
    box-shadow var(--duration-base) var(--easing-standard);
  cursor: pointer;
}

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

.product-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-neutral-50);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--easing-standard);
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

/* Placeholder product image */
.product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-placeholder-rose {
  background: linear-gradient(135deg, #ffe0e9 0%, #ffd6e7 50%, #ffb3cc 100%);
}

.product-placeholder-wedding {
  background: linear-gradient(135deg, #f8f4ff 0%, #ede1ff 50%, #d9c4ff 100%);
}

.placeholder-emoji {
  font-size: 5rem;
  filter: drop-shadow(0 4px 8px #00000026);
  transition: transform var(--duration-base) var(--easing-standard);
}

.product-card:hover .placeholder-emoji {
  transform: scale(1.1) rotate(-5deg);
}

/* Wishlist Button */
.wishlist-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #FFFFFFF2;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neutral-400);
  box-shadow: var(--shadow-sm);
  transition:
    color var(--duration-base) var(--easing-standard),
    background-color var(--duration-base) var(--easing-standard),
    transform var(--duration-fast) var(--easing-standard);
}

.wishlist-btn:hover {
  transform: scale(1.15);
}

/* Product Badges */
.product-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-new {
  background-color: var(--color-yellow-100);
  color: var(--color-purple-800);
}

.badge-popular {
  background-color: var(--color-purple-100);
  color: var(--color-purple-600);
}

.badge-luxury {
  background: linear-gradient(90deg, #c9a227, #f0d060);
  color: #5a3a00;
}

.badge-wedding {
  background-color: #fce7f3;
  color: #9d174d;
}

/* Product Info */
.product-info {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-name {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  color: var(--color-purple-900);
  margin: 0;
  line-height: 1.3;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.stars {
  color: var(--color-yellow-600);
  font-size: var(--font-size-sm);
  letter-spacing: 1px;
}

.review-count {
  font-family: var(--font-family-base);
  font-size: var(--font-size-xs);
  color: var(--color-neutral-500);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-default);
}

.product-price {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  color: var(--color-purple-700);
}

.btn-add-cart {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background-color: var(--color-yellow-500);
  color: var(--color-purple-900);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xs);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--duration-base) var(--easing-standard),
    transform var(--duration-fast) var(--easing-standard);
}

.btn-add-cart:hover {
  background-color: var(--color-yellow-400);
  transform: scale(1.03);
}

.btn-add-cart:active {
  transform: scale(0.97);
}

/* View All */
.products-cta-wrap {
  display: flex;
  justify-content: center;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  padding: 16px 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-purple-900);
  color: var(--color-white);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition:
    background-color var(--duration-base) var(--easing-standard),
    transform var(--duration-fast) var(--easing-standard),
    box-shadow var(--duration-base) var(--easing-standard);
}

.btn-view-all:hover {
  background-color: var(--color-purple-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}


/* --------------------------------------------------------------------------
   PROMO / NEWSLETTER BANNER
   -------------------------------------------------------------------------- */
.promo-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-yellow-400) 0%, var(--color-yellow-500) 40%, var(--color-yellow-300) 100%);
  padding: var(--space-16) 0;
}

/* Decorative dot pattern */
.promo-bg-dots {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    radial-gradient(circle, var(--color-purple-900) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  pointer-events: none;
}

.promo-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.promo-headline {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-4xl);
  color: var(--color-purple-900);
  margin: 0 0 var(--space-4) 0;
  line-height: 1.2;
}

.promo-highlight {
  font-style: italic;
  color: var(--color-purple-600);
  font-size: 1.15em;
}

.promo-script {
  font-style: italic;
  color: var(--color-purple-700);
  font-family: 'Georgia', serif;
}

.promo-sub {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-base);
  color: var(--color-purple-800);
  margin: 0;
}

.promo-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.promo-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.promo-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 2px solid #492A6F33;
  background: #FFFFFFE5;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  color: var(--color-purple-900);
  transition: border-color var(--duration-base) var(--easing-standard),
    box-shadow var(--duration-base) var(--easing-standard);
  box-sizing: border-box;
}

.promo-input::placeholder {
  color: var(--color-neutral-400);
}

.promo-input:focus {
  outline: none;
  border-color: var(--color-purple-500);
  box-shadow: 0 0 0 4px #492A6F1E;
}

.promo-submit {
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  background-color: var(--color-purple-900);
  color: var(--color-white);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition:
    background-color var(--duration-base) var(--easing-standard),
    transform var(--duration-fast) var(--easing-standard);
}

.promo-submit:hover {
  background-color: var(--color-purple-700);
  transform: translateY(-1px);
}

.promo-confirm {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  color: var(--color-purple-800);
  background: #FFFFFFB2;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin: 0;
  text-align: center;
}


/* --------------------------------------------------------------------------
   TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding: var(--space-20) 0;
  background: transparent;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    transform var(--duration-base) var(--easing-standard),
    box-shadow var(--duration-base) var(--easing-standard);
}

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

.testimonial-stars {
  color: var(--color-yellow-600);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-lg);
  color: var(--color-purple-900);
  margin: 0;
}

.testimonial-body {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-sm);
  color: var(--color-neutral-600);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-purple-500), var(--color-purple-700));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

.testimonial-meta strong {
  display: block;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  color: var(--color-purple-900);
}

.testimonial-meta span {
  font-family: var(--font-family-base);
  font-size: var(--font-size-xs);
  color: var(--color-neutral-500);
}


/* --------------------------------------------------------------------------
   FAQ SECTION
   -------------------------------------------------------------------------- */
.faq-section {
  padding: var(--space-20) 0;
  background: transparent;
}

.faq-inner {
  max-width: 760px;
  margin-inline: auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border-default);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--color-white);
  border: none;
  cursor: pointer;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  color: var(--color-purple-900);
  text-align: left;
  transition: background-color var(--duration-base) var(--easing-standard);
}

.faq-question:hover {
  background-color: var(--color-neutral-50);
}

.faq-question[aria-expanded="true"] {
  background-color: var(--color-yellow-50);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-purple-500);
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--easing-standard);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5) var(--space-6);
  animation: fadeSlideIn 0.25s var(--easing-standard) both;
}

.faq-answer p {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-base);
  color: var(--color-neutral-600);
  line-height: 1.7;
  margin: 0;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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


/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-purple-900);
  color: var(--color-neutral-200);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding: var(--space-16) var(--space-6);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  align-self: center;
}

.footer-logo-img {
  height: 90px;
  width: auto;
}

.footer-logo-wordmark {
  font-family: var(--font-family-base);
  font-size: var(--font-size-xl);
  color: var(--color-white);
  line-height: 1.1;
}

.footer-logo-wordmark strong {
  display: block;
  color: var(--color-yellow-500);
}

.footer-tagline {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-sm);
  color: var(--color-neutral-300);
  margin: 0;
  line-height: 1.6;
  max-width: 260px;
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #FFFFFF14;
  border: 1px solid #FFFFFF26;
  color: var(--color-neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background-color var(--duration-base) var(--easing-standard),
    color var(--duration-base) var(--easing-standard),
    border-color var(--duration-base) var(--easing-standard),
    transform var(--duration-fast) var(--easing-standard);
}

.social-link:hover {
  background-color: var(--color-yellow-500);
  color: var(--color-purple-900);
  border-color: var(--color-yellow-500);
  transform: translateY(-2px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-col-title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow-400);
  margin: 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-sm);
  color: var(--color-neutral-300);
  text-decoration: none;
  transition: color var(--duration-base) var(--easing-standard);
}

.footer-links a:hover {
  color: var(--color-yellow-400);
}

.footer-bottom {
  border-top: 1px solid #FFFFFF19;
}

.footer-bottom-inner {
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-family: var(--font-family-base);
  font-size: var(--font-size-xs);
  color: var(--color-neutral-400);
  margin: 0;
}

.footer-copy a {
  color: var(--color-yellow-500);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.footer-copy a:hover {
  text-decoration: underline;
}


/* --------------------------------------------------------------------------
   BACK TO TOP BUTTON
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-purple-900);
  color: var(--color-yellow-500);
  border: 2px solid var(--color-yellow-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition:
    opacity var(--duration-base) var(--easing-standard),
    transform var(--duration-base) var(--easing-standard);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-yellow-500);
  color: var(--color-purple-900);
  transform: translateY(-3px) scale(1.05);
}


/* --------------------------------------------------------------------------
   CART TOAST
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 96px;
  right: 32px;
  z-index: 200;
  background: var(--color-purple-900);
  color: var(--color-white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--color-yellow-500);
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(120%);
  transition:
    opacity 0.3s var(--easing-standard),
    transform 0.3s var(--easing-standard);
  white-space: nowrap;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}


/* --------------------------------------------------------------------------
   RESPONSIVE — TABLET
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }

  .hero-content {
    align-items: center;
  }

  .btn-outline-yellow {
    align-self: center;
  }

  .hero-image-wrapper {
    order: -1;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-float-badge--top {
    left: 0;
  }

  .hero-float-badge--bottom {
    right: 0;
  }

  .info-bar-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .info-divider {
    display: none;
  }

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

  .promo-inner {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .primary-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .primary-nav.mobile-open {
    display: block;
    position: fixed;
    inset: 0;
    top: 72px;
    background: var(--color-white);
    z-index: 99;
    padding: var(--space-6);
    overflow-y: auto;
  }

  .primary-nav.mobile-open .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav.mobile-open .nav-link {
    font-size: var(--font-size-lg);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-default);
  }

  .primary-nav.mobile-open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: var(--space-4);
    display: none;
  }

  .primary-nav.mobile-open .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .hero-section {
    min-height: auto;
    padding-top: var(--space-12);
  }

  .hero-inner {
    padding-block: var(--space-8);
    padding-inline: var(--space-4);
  }

  .hero-content {
    min-height: auto;
    padding: var(--space-6) var(--space-4);
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-eyebrow {
    font-size: 10px;
  }

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

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

  .promo-headline {
    font-size: var(--font-size-3xl);
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }

  .toast {
    bottom: 80px;
    right: 20px;
  }
}
/* --------------------------------------------------------------------------
   CONTACT PAGE RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .contact-info {
    padding-top: var(--space-0);
  }
  .page-content .container {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }
  form[id="contact-form"] > div:first-child {
    grid-template-columns: 1fr !important;
  }
}

/* Global button override */
button, .btn {
  text-decoration: none !important;
}

/* FAQ Smooth Expander Override */
.faq-answer {
  display: block !important;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  animation: none !important;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, padding 0.5s ease-in-out !important;
}

.faq-question[aria-expanded="true"] ~ .faq-answer {
  max-height: 600px;
  opacity: 1;
  padding-top: var(--space-3) !important;
  padding-bottom: var(--space-5) !important;
}

/* Answers open on click/tap only (opening on hover made clicks look like they did nothing,
   and on iPhone it made the first tap count as a "hover") */
.faq-item:hover .faq-question {
  background-color: var(--color-yellow-50);
}

@media (max-width: 768px) {
  /* Global Inline Grid Overrides */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="height: 600px"] {
    height: 400px !important;
  }

}

/* --------------------------------------------------------------------------
   RESPONSIVE — PRODUCT GRIDS & CART (phones and tablets)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Two cards per row on tablets and phones instead of one full-width card */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .products-grid {
    gap: var(--space-3);
  }

  .product-info {
    padding: var(--space-3);
    gap: var(--space-2);
  }

  .product-name {
    font-size: var(--font-size-sm);
  }

  .product-price {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 600px) {
  /* Cart rows: image left; name + remove on top, quantity + total below */
  .cart-item {
    display: grid !important;
    grid-template-columns: 72px 1fr auto;
    grid-template-areas:
      "img info  info"
      "img qty   total";
    gap: var(--space-2) var(--space-4) !important;
    align-items: center;
  }

  .cart-item > img {
    grid-area: img;
    width: 72px !important;
    height: 72px !important;
    align-self: start;
  }

  .cart-item > div:nth-of-type(1) {
    grid-area: info;
    min-width: 0;
  }

  .cart-item > div:nth-of-type(2) {
    grid-area: qty;
    justify-self: start;
  }

  .cart-item .item-total {
    grid-area: total;
    width: auto !important;
  }

  .cart-item .qty-btn {
    min-width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 768px) {
  /* Side gutters for pages whose content sits directly in <main> without a .container */
  .page-content--prose,
  .page-content > .section-header {
    padding-left: var(--space-4) !important;
    padding-right: var(--space-4) !important;
  }

  /* Footer: brand on top, the three link columns side by side */
  .footer-main-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-main-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* The header's backdrop-filter makes it the containing block for this fixed panel,
     so `inset: 0` only spans the header. Give the open menu an explicit viewport height. */
  .primary-nav.mobile-open {
    bottom: auto;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
  }
}

/* --------------------------------------------------------------------------
   PHONE — HEADER ICONS, MENU ICON, INFO BAR, NEWSLETTER, TESTIMONIALS
   -------------------------------------------------------------------------- */

/* Menu icon turns into an X while the menu is open */
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  /* Header: smaller logo and icons so the bar feels lighter */
  .header-inner {
    gap: var(--space-4);
  }

  .logo-img {
    height: 36px;
  }

  .header-actions {
    gap: 0;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .mobile-menu-btn {
    width: 36px;
    height: 36px;
    padding: 9px 8px;
  }

  /* Testimonials: swipeable row with the next card peeking in */
  .testimonials-section {
    padding: var(--space-12) 0;
  }

  .testimonials-grid {
    display: flex !important;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: none !important;
    margin: 0 calc(-1 * var(--space-4)) !important;
    padding: var(--space-1) var(--space-4) var(--space-3);
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
    padding: var(--space-5) var(--space-4);
    gap: var(--space-2);
  }

  .testimonial-stars {
    font-size: 0.95rem;
  }

  .testimonial-title {
    font-size: var(--font-size-base);
  }

  .testimonial-body {
    font-size: 13px;
    line-height: 1.6;
  }

  .testimonial-author {
    padding-top: var(--space-3);
  }

  .testimonial-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   CART — pick-up / delivery date calendar (table of days)
   -------------------------------------------------------------------------- */
.date-field {
  position: relative; /* anchors the pop-up calendar under the date box */
}

.date-field-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 10px;
  border: 1px solid var(--color-neutral-300);
  background: var(--color-white);
  color: var(--color-purple-900);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.date-field-btn[aria-expanded="true"] {
  border-color: var(--color-purple-500);
}

.date-field-btn svg {
  flex-shrink: 0;
  color: var(--color-purple-500);
}

#pickup-date-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-field-placeholder {
  color: var(--color-neutral-500);
}

.date-cal {
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  background: var(--color-white);
  padding: var(--space-3);
}

/* Pop-up version: floats under the date box (at least 280px wide on desktop,
   full width on phones where the date box spans the row) */
.date-cal-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 280px);
  max-width: calc(100vw - 32px);
  z-index: 60;
  box-shadow: var(--shadow-lg);
}

.date-cal-popup[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .date-cal-popup {
    width: 100%; /* phones: same width as the full-width date box */
  }
}

.date-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.date-cal-month {
  font-weight: var(--font-weight-bold);
  color: var(--color-purple-900);
}

.date-cal-nav {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-purple-900);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.date-cal-nav:hover:not(:disabled) {
  background: var(--color-purple-100);
}

.date-cal-nav:disabled {
  color: var(--color-neutral-300);
  cursor: default;
}

.date-cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
}

.date-cal-table th {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-500);
  padding: var(--space-1) 0;
}

.date-cal-table td {
  padding: 2px;
}

.date-cal-day {
  width: 100%;
  max-width: 44px;
  aspect-ratio: 1;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-purple-900);
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

.date-cal-day:hover:not(:disabled):not(.is-selected) {
  background: var(--color-yellow-100);
}

.date-cal-day:focus-visible {
  outline: 2px solid var(--color-purple-500);
  outline-offset: 1px;
}

.date-cal-day:disabled {
  color: var(--color-neutral-300);
  text-decoration: line-through;
  cursor: not-allowed;
}

.date-cal-day.is-today {
  box-shadow: inset 0 0 0 1px var(--color-neutral-300);
}

.date-cal-day.is-selected {
  background: var(--color-purple-500);
  color: var(--color-white);
}

.date-cal-note {
  margin: var(--space-2) 0 0;
  font-size: 0.85rem;
  color: var(--color-neutral-600);
}

/* --------------------------------------------------------------------------
   BLOG PAGE — featured post, recent posts grid, call to action
   -------------------------------------------------------------------------- */
.blog-page { padding: var(--space-4) 0 var(--space-16); }

.blog-featured-wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--space-4); }
.blog-featured {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  color: var(--color-white);
  text-decoration: none;
  isolation: isolate;
}
.blog-featured-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s var(--easing-standard);
}
.blog-featured::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(33, 18, 52, 0.85) 0%, rgba(33, 18, 52, 0.45) 45%, rgba(33, 18, 52, 0.05) 75%);
}
.blog-featured:hover .blog-featured-img { transform: scale(1.03); }
.blog-featured-body { max-width: 780px; padding: var(--space-12) var(--space-10); }
.blog-featured-label {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-weight: var(--font-weight-medium);
  color: var(--color-yellow-500);
}
.blog-featured-title {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
}
.blog-featured-excerpt { margin: 0; max-width: 600px; font-size: var(--font-size-base); line-height: 1.6; color: rgba(255, 255, 255, 0.9); }
.blog-featured-arrow {
  position: absolute;
  right: var(--space-10);
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.25s var(--easing-standard);
}
.blog-featured:hover .blog-featured-arrow { transform: translate(6px, -50%); }

.blog-recent { padding-top: var(--space-16); }
.blog-recent-title {
  margin: 0 0 var(--space-8);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-purple-900);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-12) var(--space-6);
}
.blog-card[hidden] { display: none; }
.blog-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.blog-card-img {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-neutral-200);
  margin-bottom: var(--space-5, 1.25rem);
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--easing-standard); }
.blog-card-link:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-title {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
  color: var(--color-purple-900);
}
.blog-card-link:hover .blog-card-title { text-decoration: underline; text-underline-offset: 3px; }
.blog-card-excerpt {
  margin: 0 0 var(--space-4);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-neutral-600);
  flex-grow: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-neutral-700);
}
.blog-avatar {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-yellow-500);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.blog-avatar img { width: 22px; height: auto; }

.blog-more { display: flex; justify-content: center; margin-top: var(--space-12); }
.blog-more-btn {
  padding: 10px var(--space-6);
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-purple-500);
  color: var(--color-white);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}
.blog-more-btn:hover { background: var(--color-purple-900); opacity: 0.9; }
.blog-more-btn[hidden] { display: none; }

.blog-cta-wrap { max-width: 1440px; margin: var(--space-20) auto 0; padding: 0 var(--space-4); }
.blog-cta {
  border-radius: var(--radius-2xl);
  background: var(--color-purple-500);
  padding: var(--space-16) var(--space-6);
  text-align: center;
  color: var(--color-white);
}
.blog-cta-title { margin: 0 0 var(--space-3); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: var(--font-weight-bold); color: var(--color-white); }
.blog-cta-text { margin: 0 0 var(--space-8); font-size: var(--font-size-base); color: rgba(255, 255, 255, 0.85); }
.blog-cta-actions { display: flex; justify-content: center; gap: var(--space-3); flex-wrap: wrap; }
.blog-cta-btn {
  display: inline-block;
  padding: 10px var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
}
.blog-cta-btn-outline { border: 1px solid rgba(255, 255, 255, 0.7); color: var(--color-white); }
.blog-cta-btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.blog-cta-btn-solid { background: var(--color-yellow-500); color: var(--color-purple-900); border: 1px solid var(--color-yellow-500); }
.blog-cta-btn-solid:hover { background: var(--color-yellow-400); }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .blog-featured { min-height: 440px; }
  .blog-featured-body { padding: var(--space-8) var(--space-6); }
  .blog-featured-arrow { display: none; }
  .blog-featured::before {
    background: linear-gradient(to top, rgba(33, 18, 52, 0.9) 0%, rgba(33, 18, 52, 0.65) 60%, rgba(33, 18, 52, 0.2) 100%);
  }
  .blog-recent { padding-top: var(--space-12); }
  .blog-recent-title { margin-bottom: var(--space-6); }
  .blog-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .blog-cta { padding: var(--space-12) var(--space-5, 1.25rem); }
  .blog-cta-wrap { margin-top: var(--space-16); }
}

/* --------------------------------------------------------------------------
   BLOG POST — tinted hero, byline, share column, article body, pull quote
   (the comment section keeps its own inline styles)
   -------------------------------------------------------------------------- */
.post-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
  isolation: isolate;
  background: var(--color-purple-500);
}
.post-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: grayscale(1) contrast(1.15) brightness(1.05);
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, rgba(73, 42, 111, 0.88) 0%, rgba(73, 42, 111, 0.7) 55%, rgba(73, 42, 111, 0.55) 100%);
}
.post-hero-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-20);
}
.post-hero-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-yellow-500);
  color: var(--color-purple-900);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-hero-title {
  margin: var(--space-6) 0 var(--space-6);
  max-width: 820px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
}
.post-hero-rule { display: block; width: 36px; height: 3px; background: var(--color-yellow-500); margin-bottom: var(--space-4); }
.post-hero-meta { margin: 0; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: rgba(255, 255, 255, 0.9); }
.post-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: var(--space-6);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  text-decoration: none;
}
.post-hero-scroll svg { transition: transform 0.25s var(--easing-standard); }
.post-hero-scroll:hover svg { transform: translateY(4px); }

.post-byline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-10) var(--space-6) var(--space-8);
  font-style: italic;
  color: var(--color-neutral-500);
  scroll-margin-top: 90px;
}
.post-byline-rule { width: 28px; height: 2px; background: var(--color-neutral-300); }

.post-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 860px) 1fr;
  padding: 0 var(--space-6) var(--space-16);
}
.post-share {
  grid-column: 1;
  justify-self: end;
  align-self: start;
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-right: var(--space-10);
}
.post-share-label { font-size: var(--font-size-xs); font-weight: var(--font-weight-medium); color: var(--color-purple-500); }
.post-share-link { color: var(--color-purple-500); display: flex; transition: color 0.2s, transform 0.2s; }
.post-share-link:hover { color: var(--color-yellow-600); transform: scale(1.1); }

.post-article { grid-column: 2; min-width: 0; }
.post-body, .post-footer { max-width: 640px; margin-left: auto; margin-right: auto; }
/* line the comment section up with the text column (its inline design is unchanged) */
.post-article .comments-section { max-width: 640px !important; margin-left: auto; margin-right: auto; }
.post-body { color: var(--color-neutral-700); font-size: 1.0625rem; line-height: 1.8; }
.post-body p { margin: 0 0 var(--space-6); }
.post-body h2 {
  margin: var(--space-10) 0 var(--space-4);
  font-size: var(--font-size-2xl);
  line-height: 1.3;
  color: var(--color-purple-900);
}
.post-body a {
  color: var(--color-purple-500);
  font-weight: var(--font-weight-medium);
  text-decoration: underline;
  text-decoration-color: var(--color-yellow-500);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.post-body a:hover { background: var(--color-yellow-100); }
.post-lead::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-size: 5.2rem;
  line-height: 0.8;
  font-weight: var(--font-weight-bold);
  color: var(--color-purple-500);
}

.post-quote {
  margin: var(--space-12) auto;
  padding: 0;
  max-width: 860px;
  text-align: center;
}
.post-quote p {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.25;
  font-weight: var(--font-weight-bold);
  color: var(--color-purple-900);
}
.post-quote::before {
  content: '';
  display: block;
  width: 36px; height: 3px;
  margin: 0 auto var(--space-6);
  background: var(--color-yellow-500);
}

.post-footer {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-neutral-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.post-footer-tags { font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-neutral-500); }

@media (max-width: 1100px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-article { grid-column: 1; }
  .post-share {
    grid-column: 1;
    position: static;
    justify-self: center;
    flex-direction: row;
    margin: 0 0 var(--space-8);
  }
}
@media (max-width: 768px) {
  .post-hero { min-height: 460px; }
  .post-hero-inner { padding: var(--space-12) var(--space-4) var(--space-20); }
  .post-layout { padding: 0 var(--space-4) var(--space-12); }
  .post-byline { padding: var(--space-8) var(--space-4) var(--space-6); }
  .post-body { font-size: 1rem; }
  .post-lead::first-letter { font-size: 4rem; }
  .post-quote { margin: var(--space-10) auto; }
}

/* --------------------------------------------------------------------------
   EDITORIAL PAGES (About, Help) — poster intro, side-shape nav, reading
   column with a decorative ring and side notes, off-white closing section
   -------------------------------------------------------------------------- */
.ed-page { --ed-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace; overflow-x: clip; }

/* Poster */
.ed-poster { background: var(--color-neutral-100); padding: var(--space-16) var(--space-6) var(--space-12); }
.ed-poster-inner { max-width: 880px; margin: 0 auto; }
.ed-poster-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-16); }
.ed-swatches { display: flex; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.ed-swatches span { width: 28px; height: 56px; }
.ed-swatches span:nth-child(1) { background: #2E1A47; }
.ed-swatches span:nth-child(2) { background: #492A6F; }
.ed-swatches span:nth-child(3) { background: #6D5290; }
.ed-swatches span:nth-child(4) { background: #9C8AB4; }
.ed-swatches span:nth-child(5) { background: #CFC5DB; }
.ed-swatches span:nth-child(6) { background: #FFF468; }
.ed-swatches .ed-swatch-logo {
  width: 56px;
  background: var(--color-white);
  display: flex; align-items: center; justify-content: center;
}
.ed-swatch-logo img { width: 40px; height: auto; }
.ed-quote-mark { color: var(--color-purple-500); width: 96px; height: auto; }
.ed-display {
  margin: 0;
  font-size: clamp(2.75rem, 8.5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: var(--font-weight-bold);
  color: var(--color-purple-900);
  max-width: 12ch;
}
.ed-display em { font-style: normal; color: var(--color-purple-500); background: linear-gradient(transparent 62%, var(--color-yellow-500) 62%); }
.ed-kicker {
  margin: var(--space-10) 0 var(--space-8);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
}
.ed-lead { margin: 0; max-width: 680px; font-size: clamp(1.125rem, 2.2vw, 1.5rem); line-height: 1.45; color: var(--color-neutral-800); }
.ed-poster-foot {
  display: flex; justify-content: space-between; gap: var(--space-6);
  margin-top: var(--space-16);
  font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); line-height: 1.35;
  color: var(--color-neutral-900);
}
.ed-poster-foot span:last-child { text-align: right; }
.ed-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-8); }
.ed-chip {
  padding: 6px 14px;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-full);
  background: var(--color-white);
  font-size: var(--font-size-sm);
  color: var(--color-purple-900);
  text-decoration: none;
}
.ed-chip:hover { border-color: var(--color-purple-500); background: var(--color-yellow-100); }

/* Reading column */
.ed-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(0, 640px) 1fr;
  padding: var(--space-20) var(--space-6) var(--space-16);
}
.ed-body > * { grid-column: 2; position: relative; z-index: 1; }
.ed-ring {
  position: absolute !important;
  z-index: 0 !important;
  top: 120px;
  right: -180px;
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 72px solid var(--color-yellow-500);
  opacity: 0.85;
  pointer-events: none;
}
.ed-ring--low { top: auto; bottom: 18%; right: auto; left: -360px; border-color: var(--color-yellow-300); }

.ed-sidenav {
  grid-column: 1 !important;
  grid-row: 1 / span 40;
  justify-self: end;
  align-self: start;
  position: sticky !important;
  top: 140px;
  margin-right: var(--space-12);
}
.ed-sidenav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.ed-sidenav a {
  display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3);
  font-family: var(--ed-mono);
  font-size: 12px;
  color: var(--color-neutral-500);
  text-decoration: none;
}
.ed-sidenav a:hover, .ed-sidenav a.is-active { color: var(--color-purple-900); }
.ed-shape { width: 12px; height: 12px; flex-shrink: 0; border: 2px solid var(--color-purple-900); }
.ed-shape--tri { border: none; background: var(--color-purple-900); clip-path: polygon(0 0, 100% 0, 0 100%); }
.ed-shape--dia { transform: rotate(45deg) scale(0.85); background: var(--color-purple-900); }
.ed-shape--circle { border-radius: 50%; }
.ed-shape--square { border-radius: 2px; }
.ed-sidenav a:not(.is-active) .ed-shape--circle,
.ed-sidenav a:not(.is-active) .ed-shape--square { background: transparent; }
.ed-sidenav a.is-active .ed-shape { background: var(--color-yellow-500); border-color: var(--color-purple-900); }
.ed-sidenav a.is-active .ed-shape--tri { background: var(--color-purple-500); }

.ed-section { margin-bottom: var(--space-16); scroll-margin-top: 110px; }
.ed-label {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--ed-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--color-purple-500);
}
.ed-heading {
  margin: 0 0 var(--space-5, 1.25rem);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: var(--font-weight-bold);
  color: var(--color-purple-900);
}
.ed-section p, .ed-section li { font-size: 1.0625rem; line-height: 1.8; color: var(--color-neutral-700); }
.ed-section p { margin: 0 0 var(--space-4); }
.ed-section a { color: var(--color-purple-500); font-weight: var(--font-weight-medium); text-decoration: underline; text-decoration-color: var(--color-yellow-500); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.ed-section strong { color: var(--color-purple-900); }
.ed-note {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5, 1.25rem);
  border-left: 4px solid var(--color-yellow-500);
  background: var(--color-white);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  line-height: 1.5;
  color: var(--color-purple-900);
}
.ed-list { margin: 0; padding: 0; list-style: none; }
.ed-list li { position: relative; padding-left: var(--space-6); }
.ed-list li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 10px; height: 10px; background: var(--color-yellow-500); border: 2px solid var(--color-purple-900); transform: rotate(45deg); }
.ed-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.ed-cols h3 { margin: 0 0 var(--space-3); font-size: var(--font-size-lg); color: var(--color-purple-900); }

/* Off-white closing section */
.ed-alt { background: var(--color-neutral-100); padding: var(--space-20) var(--space-6); }
.ed-alt-inner { max-width: 640px; margin: 0 auto; }
.ed-alt p { font-size: 1.0625rem; line-height: 1.8; color: var(--color-neutral-700); margin: 0 0 var(--space-4); }
.ed-contact { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); margin-top: var(--space-8); font-family: var(--ed-mono); font-size: 14px; }
.ed-contact a { color: var(--color-purple-900); text-decoration: none; font-weight: 700; }
.ed-contact a:hover { text-decoration: underline; }
.ed-contact span { color: var(--color-neutral-600); }
.ed-socials { display: flex; gap: var(--space-6); margin-top: var(--space-8); }
.ed-socials a { color: var(--color-purple-900); display: flex; }
.ed-socials a:hover { color: var(--color-purple-500); }
.ed-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.ed-btn {
  display: inline-block;
  padding: 12px var(--space-6);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  text-decoration: none;
  border: 1px solid var(--color-purple-900);
  color: var(--color-purple-900);
}
.ed-btn--solid { background: var(--color-yellow-500); border-color: var(--color-yellow-500); }
.ed-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

@media (max-width: 1100px) {
  .ed-body { grid-template-columns: minmax(0, 1fr); max-width: 688px; margin: 0 auto; }
  .ed-body > * { grid-column: 1; }
  .ed-sidenav { display: none; }
}
@media (max-width: 768px) {
  .ed-poster { padding: var(--space-10) var(--space-4) var(--space-8); }
  .ed-poster-top { margin-bottom: var(--space-10); }
  .ed-swatches span { width: 18px; height: 40px; }
  .ed-swatches .ed-swatch-logo { width: 40px; }
  .ed-swatch-logo img { width: 30px; }
  .ed-quote-mark { width: 60px; }
  .ed-kicker { margin: var(--space-6) 0; font-size: var(--font-size-sm); }
  .ed-poster-foot { margin-top: var(--space-10); font-size: var(--font-size-xs); }
  .ed-body { padding: var(--space-12) var(--space-4) var(--space-8); }
  .ed-ring { width: 300px; height: 300px; border-width: 44px; right: -170px; top: 60px; opacity: 0.6; }
  .ed-ring--low { left: -200px; }
  .ed-section { margin-bottom: var(--space-12); }
  .ed-section p, .ed-section li, .ed-alt p { font-size: 1rem; }
  .ed-cols { grid-template-columns: 1fr; gap: var(--space-6); }
  .ed-alt { padding: var(--space-12) var(--space-4); }
}

/* --------------------------------------------------------------------------
   HOME — "good to know" strip over the bottom of the hero (no purple card)
   -------------------------------------------------------------------------- */
.info-bar.info-strip {
  max-width: none;
  min-height: 0;
  margin: -112px 0 0;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(to top, rgba(20, 12, 30, 0.82) 0%, rgba(20, 12, 30, 0.55) 60%, rgba(20, 12, 30, 0) 100%);
  display: block;
}
.info-strip-inner {
  max-width: var(--breakpoint-xl);
  margin: 0 auto;
  min-height: 112px;
  padding: var(--space-6) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-10);
}
.info-strip-label {
  margin: 0;
  flex-shrink: 0;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}
.info-strip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
}
.info-strip-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.2s;
}
.info-strip-item svg { flex-shrink: 0; color: var(--color-white); }
.info-strip-item strong { display: block; font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); letter-spacing: -0.01em; line-height: 1.2; }
.info-strip-item small { display: block; font-size: var(--font-size-xs); color: rgba(255, 255, 255, 0.7); }
.info-strip-item:hover strong { color: var(--color-yellow-500); }
.info-strip-item:hover svg { color: var(--color-yellow-500); }

@media (max-width: 1024px) {
  .info-strip-inner { gap: var(--space-6); }
  .info-strip-item strong { font-size: var(--font-size-base); }
  .info-strip-label { display: none; }
}
@media (max-width: 768px) {
  /* Phones: sits under the hero on the page background, compact 2 x 2 */
  .info-bar.info-strip { margin: 0; background: transparent; width: 100%; padding: 0 !important; }
  .info-strip-inner { min-height: 0; padding: var(--space-5) var(--space-4); }
  .info-strip-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-3); }
  .info-strip-item, .info-strip-item svg { color: var(--color-purple-900); }
  .info-strip-item svg { width: 22px; height: 22px; }
  .info-strip-item strong { font-size: var(--font-size-sm); }
  .info-strip-item small { color: var(--color-neutral-600); font-size: 11px; }
  .info-strip-item:hover strong, .info-strip-item:hover svg { color: var(--color-purple-500); }
}

/* --------------------------------------------------------------------------
   HOME — testimonials loop from right to left (pauses on hover / focus)
   -------------------------------------------------------------------------- */
.testimonials-marquee {
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--space-6));
  padding: var(--space-2) 0 var(--space-4);
}
.testimonials-marquee::-webkit-scrollbar { display: none; }
.testimonials-track { display: flex; gap: var(--space-6); width: max-content; padding: 0 var(--space-6); }
.testimonials-track .testimonial-card { flex: 0 0 360px; }

.testimonials-marquee.is-looping {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.testimonials-marquee.is-looping .testimonials-track {
  padding: 0;
  animation: testimonials-loop var(--loop-duration, 45s) linear infinite;
}
.testimonials-marquee.is-looping:hover .testimonials-track,
.testimonials-marquee.is-looping:focus-within .testimonials-track { animation-play-state: paused; }
.testimonials-marquee.is-looping .testimonial-card { margin-right: 0; }

/* the track holds two identical halves; moving by exactly one half loops seamlessly */
@keyframes testimonials-loop {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--space-6) / 2)); }
}

@media (max-width: 768px) {
  .testimonials-marquee { margin: 0 calc(-1 * var(--space-4)); }
  .testimonials-track { gap: var(--space-3); }
  .testimonials-track .testimonial-card { flex: 0 0 280px; }
  @keyframes testimonials-loop {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - var(--space-3) / 2)); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-marquee.is-looping { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .testimonials-marquee.is-looping .testimonials-track { animation: none; }
}

/* --------------------------------------------------------------------------
   HOME — newsletter: heading and text on the left, email + button on the right
   -------------------------------------------------------------------------- */
.newsletter { padding: 0 var(--space-6); margin: var(--space-16) auto; }
.newsletter-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-12);
  border-radius: 28px;
  background: var(--color-purple-500);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: var(--space-10);
  color: var(--color-white);
}
.newsletter-title {
  margin: 0 0 var(--space-4);
  max-width: 11ch;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.02em;
  color: var(--color-white);
}
.newsletter-text { margin: 0; max-width: 460px; font-size: var(--font-size-base); line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.newsletter-text strong { color: var(--color-yellow-500); }
.newsletter-form { justify-self: end; width: 100%; max-width: 440px; }
.newsletter-label { display: block; margin-bottom: var(--space-3); font-size: var(--font-size-sm); color: rgba(255, 255, 255, 0.9); }
.newsletter-row { display: flex; gap: var(--space-2); }
.newsletter-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font: inherit;
  font-size: var(--font-size-base);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.65); }
.newsletter-input:focus { border-color: var(--color-yellow-500); background: rgba(255, 255, 255, 0.18); }
.newsletter-input.is-invalid { border-color: #FF9C9A; }
.newsletter-btn {
  height: 52px;
  padding: 0 var(--space-6);
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-yellow-500);
  color: var(--color-purple-900);
  font: inherit;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.newsletter-btn:hover { background: var(--color-yellow-400); transform: translateY(-1px); }
.newsletter-terms { margin: var(--space-3) 0 0; font-size: var(--font-size-xs); color: rgba(255, 255, 255, 0.75); }
.newsletter-terms a { color: var(--color-white); text-decoration: underline; }
.newsletter-confirm { margin: var(--space-3) 0 0; font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); color: var(--color-yellow-500); }

@media (max-width: 900px) {
  .newsletter-inner { grid-template-columns: 1fr; padding: var(--space-10) var(--space-8); gap: var(--space-8); }
  .newsletter-form { justify-self: stretch; max-width: none; }
  .newsletter-title { max-width: none; }
}
@media (max-width: 480px) {
  .newsletter { padding: 0 var(--space-4); margin: var(--space-12) auto; }
  .newsletter-inner { padding: var(--space-8) var(--space-5, 1.25rem); border-radius: var(--radius-2xl); }
  .newsletter-row { flex-direction: column; }
  .newsletter-input { flex: none; width: 100%; }
  .newsletter-btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   ACCOUNT — signed-in dot on the header icon, sign-in errors
   -------------------------------------------------------------------------- */
#btn-account { position: relative; }
.m-drawer-avatar { text-decoration: none; }
.m-drawer-avatar .m-drawer-photo { width: 100%; height: 100%; object-fit: cover; }
#btn-account.is-signed-in::after {
  content: '';
  position: absolute;
  top: 4px; right: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-success);
  border: 2px solid var(--color-white);
}
.auth-error {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: #FDECEC;
  color: #9B2C2A;
  font-size: var(--font-size-sm);
}

/* --------------------------------------------------------------------------
   ACCOUNT DASHBOARD (account.html)
   -------------------------------------------------------------------------- */
.acct-page { min-height: 70vh; padding-bottom: var(--space-16); }
.acct-loading { padding: var(--space-20) var(--space-6); text-align: center; color: var(--color-neutral-500); }

.acct-hero { background: var(--color-purple-500); color: var(--color-white); padding: var(--space-12) var(--space-6) var(--space-16); }
.acct-hero-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); flex-wrap: wrap; }
.acct-kicker { margin: 0 0 var(--space-2); font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-yellow-500); }
.acct-title { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; color: var(--color-white); }
.acct-sub { margin: var(--space-2) 0 0; color: rgba(255, 255, 255, 0.8); font-size: var(--font-size-sm); }
.acct-hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.acct-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px var(--space-5, 1.25rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-purple-500);
  background: var(--color-white);
  color: var(--color-purple-900);
  font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-bold);
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.acct-btn:hover { transform: translateY(-1px); }
.acct-btn--solid { background: var(--color-yellow-500); border-color: var(--color-yellow-500); color: var(--color-purple-900); }
.acct-btn--solid:hover { background: var(--color-yellow-400); }
.acct-btn--light { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--color-white); }
.acct-btn--sm { padding: 6px 12px; font-size: var(--font-size-xs); }
.acct-link { background: none; border: none; padding: 0; font: inherit; font-size: var(--font-size-xs); color: var(--color-neutral-600); text-decoration: underline; cursor: pointer; }

.acct-layout {
  max-width: 1120px;
  margin: calc(-1 * var(--space-8)) auto 0;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.acct-nav {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--space-3);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.acct-tab {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%;
  padding: 10px var(--space-3);
  border: none; border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-neutral-700);
  font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium);
  text-align: left; cursor: pointer;
}
.acct-tab:hover { background: var(--color-neutral-100); color: var(--color-purple-900); }
.acct-tab[aria-selected="true"] { background: var(--color-yellow-100); color: var(--color-purple-900); font-weight: var(--font-weight-bold); }
.acct-tab[aria-selected="true"] svg { color: var(--color-purple-500); }
.acct-tab-count {
  margin-left: auto;
  min-width: 22px; padding: 1px 7px;
  border-radius: var(--radius-full);
  background: var(--color-purple-500); color: var(--color-white);
  font-size: 11px; font-weight: var(--font-weight-bold); text-align: center;
}

.acct-panel {
  padding: var(--space-8);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.acct-h2 { margin: 0 0 var(--space-4); font-size: var(--font-size-xl); color: var(--color-purple-900); }
.acct-panel .acct-h2 ~ .acct-h2 { margin-top: var(--space-8); }
.acct-hint { margin: calc(-1 * var(--space-2)) 0 var(--space-5, 1.25rem); font-size: var(--font-size-sm); color: var(--color-neutral-600); }
.acct-hint a { color: var(--color-purple-500); }

.acct-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-8); }
.acct-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--space-4);
  border: 1px solid var(--color-neutral-200); border-radius: var(--radius-lg);
  background: var(--color-neutral-50);
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.acct-stat:hover { border-color: var(--color-purple-500); transform: translateY(-2px); }
.acct-stat-num { font-size: var(--font-size-2xl); font-weight: var(--font-weight-bold); color: var(--color-purple-900); line-height: 1.2; }
.acct-stat-label { font-size: var(--font-size-xs); color: var(--color-neutral-600); }

.acct-empty {
  padding: var(--space-8) var(--space-4);
  border: 1px dashed var(--color-neutral-300); border-radius: var(--radius-lg);
  text-align: center; color: var(--color-neutral-600);
}
.acct-empty p { margin: 0 0 var(--space-4); }
.acct-empty p:last-child { margin: 0; }

.acct-order {
  padding: var(--space-5, 1.25rem);
  border: 1px solid var(--color-neutral-200); border-left: 4px solid var(--color-yellow-500);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}
.acct-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; }
.acct-order-ref { font-weight: var(--font-weight-bold); color: var(--color-purple-900); margin-right: var(--space-2); }
.acct-order-total { color: var(--color-purple-900); font-size: var(--font-size-lg); }
.acct-order-when { margin: var(--space-3) 0; font-size: var(--font-size-sm); color: var(--color-neutral-700); line-height: 1.6; }
.acct-order-when span { color: var(--color-neutral-500); }
.acct-order-items { list-style: none; margin: 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--color-neutral-200); }
.acct-order-items li { display: flex; justify-content: space-between; gap: var(--space-3); padding: 4px 0; font-size: var(--font-size-sm); color: var(--color-neutral-800); }
.acct-order-items small { display: block; color: var(--color-neutral-500); font-size: 12px; }

.acct-pill { display: inline-block; padding: 2px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: var(--font-weight-bold); vertical-align: middle; white-space: nowrap; }
.acct-pill--ok { background: #E3F5EC; color: #1D7A4A; }
.acct-pill--wait { background: var(--color-yellow-100); color: #7A6A00; }
.acct-pill--bad { background: #FDECEC; color: #9B2C2A; }
.acct-pill--today { background: var(--color-purple-500); color: var(--color-white); margin-left: 4px; }

/* Kitchen progress on a current order: received → baking → ready → picked up / delivered */
.acct-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: var(--space-3) 0; padding: 0; counter-reset: step; }
.acct-progress li { position: relative; padding-top: 14px; font-size: 12px; line-height: 1.3; color: var(--color-neutral-500); }
.acct-progress li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 99px; background: var(--color-neutral-200); }
.acct-progress li.is-done::before { background: #1D7A4A; }
.acct-progress li.is-now::before { background: var(--color-purple-500); }
.acct-progress li.is-done { color: #1D7A4A; }
.acct-progress li.is-now { color: var(--color-purple-900); font-weight: var(--font-weight-bold); }
.acct-progress-cancelled { margin: var(--space-3) 0; padding: 10px 12px; border-radius: 10px; background: #FDECEC; color: #9B2C2A; font-size: var(--font-size-sm); }
.acct-progress-cancelled a { color: inherit; }

/* Order history: a row per order that opens to show what was in it */
.acct-hist { display: flex; flex-direction: column; gap: var(--space-2); }
.acct-hist-order { border: 1px solid var(--color-neutral-200); border-radius: 14px; background: var(--color-white); }
.acct-hist-order[open] { border-color: var(--color-purple-500); }
.acct-hist-order summary {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto 20px; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); cursor: pointer; list-style: none;
}
.acct-hist-order summary::-webkit-details-marker { display: none; }
.acct-hist-chev { justify-self: center; color: var(--color-neutral-500); transition: transform 0.2s; }
.acct-hist-order[open] .acct-hist-chev { transform: rotate(180deg); color: var(--color-purple-500); }
.acct-hist-order summary:focus-visible { outline: 3px solid var(--color-purple-500); outline-offset: 2px; border-radius: 14px; }
.acct-hist-date { font-size: var(--font-size-sm); color: var(--color-neutral-600); }
.acct-hist-what { display: flex; flex-direction: column; min-width: 0; }
.acct-hist-what strong { color: var(--color-purple-900); font-size: var(--font-size-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-hist-what small { color: var(--color-neutral-500); font-size: 12px; }
.acct-hist-amount { color: var(--color-purple-900); white-space: nowrap; }
.acct-hist-body { padding: 0 var(--space-4) var(--space-4); }
.acct-again { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: var(--font-weight-bold); color: var(--color-purple-500); }
.acct-again[hidden] { display: none; }
.acct-hist-totals { margin: var(--space-3) 0 0; padding-top: var(--space-2); border-top: 1px dashed var(--color-neutral-300); font-size: var(--font-size-sm); }
.acct-hist-totals div { display: flex; justify-content: space-between; padding: 2px 0; color: var(--color-neutral-700); }
.acct-hist-totals dd { margin: 0; }
.acct-hist-totals .is-total { font-weight: var(--font-weight-bold); color: var(--color-purple-900); }
@media (max-width: 600px) {
  .acct-hist-order summary { grid-template-columns: minmax(0, 1fr) auto 18px; row-gap: 4px; }
  .acct-hist-date { grid-column: 1 / -1; font-size: 12px; }
  .acct-hist-status { grid-column: 1; grid-row: 3; }
  .acct-progress li { font-size: 11px; }
}

.acct-table-wrap { overflow-x: auto; }
.acct-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
.acct-table th { text-align: left; padding: var(--space-2) var(--space-3); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-neutral-500); border-bottom: 2px solid var(--color-purple-500); }
.acct-table td { padding: var(--space-3); border-bottom: 1px solid var(--color-neutral-200); color: var(--color-neutral-800); }
.acct-table .num { text-align: right; white-space: nowrap; font-weight: var(--font-weight-bold); }

.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-4); }
.acct-product { border: 1px solid var(--color-neutral-200); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.acct-product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-neutral-100); }
.acct-product-body { padding: var(--space-3); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.acct-product h3 { margin: 0; font-size: var(--font-size-sm); color: var(--color-purple-900); }
.acct-product p { margin: 0; font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); color: var(--color-purple-500); }
.acct-product-actions { margin-top: auto; padding-top: var(--space-2); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }

.acct-cart { list-style: none; margin: 0; padding: 0; }
.acct-cart li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-neutral-200); }
.acct-cart img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-md); background: var(--color-neutral-100); }
.acct-cart strong { display: block; color: var(--color-purple-900); font-size: var(--font-size-sm); }
.acct-cart small { display: block; color: var(--color-neutral-500); font-size: 12px; }
.acct-cart span { font-size: 12px; color: var(--color-neutral-600); }
.acct-cart .acct-cart-price { font-weight: var(--font-weight-bold); color: var(--color-purple-900); font-size: var(--font-size-sm); }
.acct-cart-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5, 1.25rem); }

.acct-details { margin: 0 0 var(--space-6); display: grid; gap: var(--space-3); }
.acct-details div { display: grid; grid-template-columns: 140px 1fr; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-neutral-200); }
.acct-details dt { color: var(--color-neutral-500); font-size: var(--font-size-sm); }
.acct-details dd { margin: 0; color: var(--color-purple-900); font-weight: var(--font-weight-medium); word-break: break-word; }

@media (max-width: 900px) {
  .acct-layout { grid-template-columns: 1fr; }
  .acct-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .acct-nav::-webkit-scrollbar { display: none; }
  .acct-tab { width: auto; flex-shrink: 0; white-space: nowrap; }
  .acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .acct-hero { padding: var(--space-8) var(--space-4) var(--space-12); }
  .acct-layout { padding: 0 var(--space-4); }
  .acct-panel { padding: var(--space-5, 1.25rem) var(--space-4); }
  .acct-details div { grid-template-columns: 1fr; gap: 2px; }
  /* Payment history becomes stacked cards on phones */
  .acct-table thead { display: none; }
  .acct-table, .acct-table tbody, .acct-table tr, .acct-table td { display: block; width: 100%; }
  .acct-table tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-neutral-200); }
  .acct-table td { display: flex; justify-content: space-between; padding: 3px 0; border: none; }
  .acct-table td::before { content: attr(data-label); color: var(--color-neutral-500); font-size: 12px; }
}

/* --------------------------------------------------------------------------
   PHONE MENU — purple side drawer; the page shrinks and slides to the right
   -------------------------------------------------------------------------- */
.m-page { background: inherit; }
html.m-drawer-open .m-page {
  background-color: var(--color-white);
  background-image: linear-gradient(#FFFFFFF2, #FFFFFFF2), url('files/web/pattern.jpg');
  background-size: cover;
  background-position: center;
}
.m-page-shield { display: none; }
.m-drawer { display: none; }

@media (max-width: 768px) {
  .m-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 72vw;
    max-width: 320px;
    padding: calc(var(--space-20) + env(safe-area-inset-top)) var(--space-6) var(--space-8);
    color: var(--color-white);
    overflow-y: auto;
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .m-drawer[hidden] { display: none; }

  html.m-drawer-open, html.m-drawer-open body { background: var(--color-purple-500); background-image: none; overflow: hidden; }
  html.m-drawer-open .m-page {
    position: fixed;
    inset: 0;
    z-index: 1;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    transform-origin: left center;
    transition: transform 0.32s cubic-bezier(.2,.8,.2,1), border-radius 0.32s ease, box-shadow 0.32s ease;
  }
  html.m-drawer-visible .m-page {
    transform: translateX(min(68vw, 300px)) scale(0.84);
    border-radius: 32px;
    box-shadow: -18px 0 50px rgba(20, 10, 35, 0.35);
  }
  html.m-drawer-visible .m-drawer { opacity: 1; transform: none; }
  html.m-drawer-open .m-page-shield {
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    left: min(68vw, 300px);
    z-index: 2;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .m-drawer-close {
    position: absolute;
    top: calc(var(--space-4) + env(safe-area-inset-top));
    left: var(--space-4);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    cursor: pointer;
  }

  .m-drawer-head { margin-bottom: var(--space-8); }
  .m-drawer-avatar {
    width: 76px; height: 76px;
    margin-bottom: var(--space-5, 1.25rem);
    border-radius: 50%;
    border: 3px solid var(--color-yellow-500);
    background: rgba(255, 255, 255, 0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--font-size-2xl); font-weight: var(--font-weight-bold);
    color: var(--color-yellow-500);
    overflow: hidden;
  }
  .m-drawer-avatar img { width: 54px; height: auto; }
  .m-drawer-hello { margin: 0; font-size: var(--font-size-base); color: rgba(255, 255, 255, 0.85); }
  .m-drawer-name { margin: 2px 0 0; font-size: 1.75rem; line-height: 1.15; font-weight: var(--font-weight-bold); color: var(--color-white); }

  .m-drawer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
  .m-drawer-list--account { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.18); }
  .m-drawer-list a, .m-drawer-list button {
    display: flex; align-items: center; gap: var(--space-4);
    width: 100%;
    padding: 11px var(--space-2);
    border: none; border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-white);
    font: inherit; font-size: var(--font-size-base); font-weight: var(--font-weight-medium);
    text-align: left; text-decoration: none; cursor: pointer;
  }
  .m-drawer-list a:hover, .m-drawer-list button:hover, .m-drawer-list a:focus-visible, .m-drawer-list button:focus-visible { background: rgba(255, 255, 255, 0.1); }
  .m-drawer-list a[aria-current="page"] { color: var(--color-yellow-500); }
  .m-drawer-list svg { flex-shrink: 0; opacity: 0.9; }
  .m-drawer-count {
    margin-left: auto;
    min-width: 22px; padding: 1px 7px;
    border-radius: var(--radius-full);
    background: var(--color-yellow-500); color: var(--color-purple-900);
    font-size: 12px; font-weight: var(--font-weight-bold); text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.m-drawer-open .m-page, .m-drawer { transition: none !important; }
}

/* --------------------------------------------------------------------------
   AUTH PAGES — reset password, verify email; dashboard email reminder
   -------------------------------------------------------------------------- */
/* Password boxes with an eye button to show or hide what was typed */
.pw-field { position: relative; }
.pw-field .input { padding-right: 52px; }
.pw-field .input::-ms-reveal, .pw-field .input::-ms-clear { display: none; } /* Edge's own eye: ours replaces it */
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: var(--radius-md, 8px);
  background: none; color: var(--color-neutral-500); cursor: pointer;
}
.pw-toggle:hover { color: var(--color-purple-500); background: var(--color-neutral-100); }
.pw-toggle:focus-visible { outline: 3px solid var(--color-purple-500); outline-offset: 0; }
.pw-toggle[aria-pressed="true"] { color: var(--color-purple-500); }
.pw-toggle svg[hidden] { display: none; }

/* Sign-up page: newsletter choice (never pre-ticked) and the first-time welcome gift */
.signup-news {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  transition: border-color 0.15s, background 0.15s;
}
.signup-news:has(input:checked) { border-color: var(--color-purple-500); background: #F6F1FB; }
.signup-news-check { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.signup-news-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; cursor: pointer; accent-color: var(--color-purple-500); }
.signup-news-label { display: flex; flex-direction: column; gap: 2px; font-size: var(--font-size-sm); color: var(--color-neutral-600); line-height: 1.5; }
.signup-news-label strong { color: var(--color-purple-900); font-size: var(--font-size-base); }
.signup-news-offer {
  display: flex; align-items: flex-start; gap: var(--space-2);
  margin: 0; padding: 10px 12px;
  border-radius: var(--radius-md, 10px);
  background: #FFF6CC;
  font-size: var(--font-size-sm); line-height: 1.5; color: var(--color-neutral-800);
}
.signup-news-offer[hidden] { display: none; }
.signup-news-offer svg { flex: none; margin-top: 1px; color: var(--color-purple-500); }
.signup-news-offer strong { color: var(--color-purple-900); }
.signup-news-fine { margin: 0; font-size: var(--font-size-xs); line-height: 1.5; color: var(--color-neutral-500); }

.auth-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: var(--space-12) var(--space-4); }
.auth-card {
  width: 100%; max-width: 460px;
  padding: var(--space-8);
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl, var(--shadow-lg));
  text-align: center;
}
.auth-title { margin: 0 0 var(--space-3); font-size: var(--font-size-2xl); color: var(--color-purple-900); }
.auth-text { margin: 0 0 var(--space-6); color: var(--color-neutral-600); font-size: var(--font-size-sm); line-height: 1.6; }
.auth-text strong { color: var(--color-purple-900); word-break: break-all; }
.auth-form { display: flex; flex-direction: column; gap: var(--space-2); text-align: left; }
.auth-form .input { border-color: var(--color-neutral-300); margin-bottom: var(--space-3); }
.auth-form .text-label { color: var(--color-purple-900); }
.auth-check { display: flex; align-items: center; gap: 8px; font-size: var(--font-size-sm); color: var(--color-neutral-600); cursor: pointer; margin-bottom: var(--space-3); }
.auth-submit { display: block; width: 100%; padding: var(--space-3); font-size: var(--font-size-base); border-radius: var(--radius-lg); text-align: center; text-decoration: none; }
.auth-foot { margin: var(--space-6) 0 0; font-size: var(--font-size-sm); color: var(--color-neutral-500); }
.auth-foot a, .auth-linkbtn { color: var(--color-purple-500); text-decoration: none; }
.auth-linkbtn { background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
.auth-foot a:hover, .auth-linkbtn:hover { text-decoration: underline; }
.auth-success { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: #E3F5EC; color: #1D7A4A; font-size: var(--font-size-sm); }
.auth-card .auth-error { margin-bottom: var(--space-3); text-align: left; }
.auth-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-5, 1.25rem);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-yellow-100); color: var(--color-purple-500);
}
.auth-icon--ok { background: var(--color-purple-500); color: var(--color-yellow-500); }
.auth-icon--warn { background: #FDECEC; color: #9B2C2A; }

.acct-verify {
  max-width: 1120px;
  margin: calc(-1 * var(--space-8)) auto var(--space-10);
  padding: var(--space-4) var(--space-5, 1.25rem);
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--color-yellow-100);
  border: 1px solid var(--color-yellow-500);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  color: var(--color-purple-900);
  position: relative; z-index: 1;
}
.acct-verify p { margin: 0; flex: 1; font-size: var(--font-size-sm); line-height: 1.5; }
.acct-verify svg { flex-shrink: 0; color: var(--color-purple-500); }
.acct-verify:not([hidden]) + .acct-layout { margin-top: 0; }
@media (max-width: 1168px) { .acct-verify { margin-left: var(--space-6); margin-right: var(--space-6); } }
@media (max-width: 600px) {
  .acct-verify { margin: calc(-1 * var(--space-8)) var(--space-4) var(--space-8); flex-wrap: wrap; align-items: flex-start; }
  .acct-verify p { flex-basis: calc(100% - 40px); }
  .acct-verify .acct-btn { width: 100%; }
  .auth-card { padding: var(--space-6) var(--space-5, 1.25rem); }
}

/* --------------------------------------------------------------------------
   WISHLIST SIGN-IN POP-UP — illustrated header, white card, pill buttons
   -------------------------------------------------------------------------- */
html.authpop-lock { overflow: hidden; }
.authpop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(33, 18, 52, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.authpop[hidden] { display: none; }
.authpop.is-open { opacity: 1; }

.authpop-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-radius: 28px;
  background: var(--color-white);
  box-shadow: 0 24px 60px rgba(20, 10, 35, 0.35);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.authpop.is-open .authpop-card { transform: none; }

.authpop-art {
  position: relative;
  height: 176px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 244, 104, 0.25) 0 18px, transparent 19px),
    radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.12) 0 26px, transparent 27px),
    linear-gradient(160deg, #6D5290 0%, var(--color-purple-500) 70%);
}
.authpop-cake { display: block; margin-bottom: 18px; }
.authpop-heart { position: absolute; top: 26px; right: 30%; transform: rotate(14deg); animation: authpop-float 2.4s ease-in-out infinite; }
@keyframes authpop-float { 50% { transform: rotate(14deg) translateY(-6px); } }

.authpop-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: var(--color-white);
  color: var(--color-purple-900);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.authpop-close:hover { background: var(--color-yellow-100); }

.authpop-body {
  position: relative;
  margin-top: -28px;
  padding: var(--space-8) var(--space-8) var(--space-6);
  border-radius: 28px 28px 0 0;
  background: var(--color-white);
  text-align: center;
}
.authpop-title { margin: 0 0 var(--space-3); font-size: 1.75rem; line-height: 1.2; font-weight: var(--font-weight-bold); color: var(--color-purple-900); }
.authpop-text { margin: 0 0 var(--space-6); font-size: var(--font-size-base); line-height: 1.6; color: var(--color-neutral-700); }
.authpop-text strong { color: var(--color-purple-900); }

.authpop-btn {
  display: block;
  width: 100%;
  margin-bottom: var(--space-3);
  padding: 15px var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.authpop-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.authpop-btn--primary { background: var(--color-purple-500); color: var(--color-white); }
.authpop-btn--primary:hover { background: #3A2159; }
.authpop-btn--outline { border: 2px solid var(--color-neutral-200); background: var(--color-neutral-50); color: var(--color-purple-900); }
.authpop-btn--outline:hover { border-color: var(--color-purple-500); }

.authpop-later {
  margin: var(--space-1) 0 var(--space-5, 1.25rem);
  padding: 6px;
  border: none;
  background: none;
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.authpop-later:hover { color: var(--color-purple-900); }
.authpop-legal { margin: 0; font-size: 12px; line-height: 1.5; color: var(--color-neutral-500); }
.authpop-legal a { color: var(--color-purple-500); text-decoration: none; }
.authpop-legal a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .authpop { align-items: flex-end; padding: 0; }
  .authpop-card { max-width: none; border-radius: 28px 28px 0 0; max-height: 92dvh; }
  .authpop-art { height: 164px; }
  .authpop-body { padding: var(--space-8) var(--space-5, 1.25rem) calc(var(--space-6) + env(safe-area-inset-bottom)); }
  .authpop-title { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .authpop, .authpop-card { transition: none; }
  .authpop-heart { animation: none; }
}

/* --------------------------------------------------------------------------
   ADDED-TO-CART POP-UP — header bar, round photo with tick, confetti
   -------------------------------------------------------------------------- */
.cartpop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(33, 18, 52, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow: hidden;
}
.cartpop[hidden] { display: none; }
.cartpop.is-open { opacity: 1; }

.cartpop-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: 0 24px 60px rgba(20, 10, 35, 0.3);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.35s cubic-bezier(.2,.9,.25,1.2);
}
.cartpop.is-open .cartpop-card { transform: none; }

.cartpop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5, 1.25rem);
  border-bottom: 1px solid var(--color-neutral-200);
}
.cartpop-head-title { display: flex; align-items: center; gap: var(--space-2); font-size: var(--font-size-base); font-weight: var(--font-weight-bold); color: var(--color-purple-900); }
.cartpop-head-title svg { color: var(--color-purple-500); }
.cartpop-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: var(--color-neutral-100);
  color: var(--color-neutral-700);
  cursor: pointer;
}
.cartpop-close:hover { background: var(--color-neutral-200); color: var(--color-purple-900); }

.cartpop-body { padding: var(--space-8) var(--space-6) var(--space-6); text-align: center; }
.cartpop-hero {
  position: relative;
  width: 132px; height: 132px;
  margin: 0 auto var(--space-5, 1.25rem);
  padding: 12px;
  border-radius: 50%;
  background: var(--color-yellow-100);
  box-shadow: inset 0 0 0 6px #FFFBCF;
}
.cartpop-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--color-white); }
.cartpop-tick {
  position: absolute;
  right: 4px; bottom: 6px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--color-white);
  background: var(--color-success);
  color: var(--color-white);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1.4) 0.2s;
}
.cartpop.is-open .cartpop-tick { transform: scale(1); }

.cartpop-title { margin: 0 0 var(--space-3); font-size: 1.75rem; line-height: 1.15; font-weight: var(--font-weight-bold); letter-spacing: -0.02em; color: var(--color-purple-900); }
.cartpop-item { margin-bottom: var(--space-4); }
.cartpop-name { margin: 0; font-size: var(--font-size-base); font-weight: var(--font-weight-medium); color: var(--color-neutral-800); }
.cartpop-details { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--color-neutral-500); }
.cartpop-price { margin: 6px 0 0; font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); color: var(--color-purple-500); }
.cartpop-summary {
  margin: 0 0 var(--space-5, 1.25rem);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-neutral-50);
  font-size: var(--font-size-sm);
  color: var(--color-neutral-700);
}
.cartpop-summary strong { color: var(--color-purple-900); }

.cartpop-btn {
  display: block;
  width: 100%;
  padding: 15px var(--space-6);
  border-radius: var(--radius-full);
  background: var(--color-purple-500);
  color: var(--color-white);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cartpop-btn:hover { background: #3A2159; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cartpop-later {
  margin: var(--space-3) 0 var(--space-4);
  padding: 8px;
  border: none;
  background: none;
  font: inherit;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-purple-900);
  cursor: pointer;
}
.cartpop-later:hover { text-decoration: underline; text-underline-offset: 3px; }
.cartpop-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--color-neutral-500); }

/* Confetti */
.cartpop-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.cartpop-confetti i {
  position: absolute;
  top: -12px;
  border-radius: 2px;
  opacity: 0;
  animation-name: cartpop-fall;
  animation-timing-function: cubic-bezier(.25,.6,.45,1);
  animation-fill-mode: forwards;
}
@keyframes cartpop-fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--drift), 100vh) rotate(var(--spin)); }
}

@media (max-width: 480px) {
  .cartpop { align-items: flex-end; padding: 0; }
  .cartpop-card { max-width: none; border-radius: 24px 24px 0 0; max-height: 92dvh; }
  .cartpop-body { padding: var(--space-6) var(--space-5, 1.25rem) calc(var(--space-6) + env(safe-area-inset-bottom)); }
  .cartpop-hero { width: 112px; height: 112px; }
  .cartpop-title { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cartpop, .cartpop-card, .cartpop-tick { transition: none; }
}

/* --------------------------------------------------------------------------
   FAQ PAGE — search, topic chips, grouped questions, "still have a question"
   -------------------------------------------------------------------------- */
.faq-section h1.section-title { margin-bottom: 0; }
.faq-tools { margin: 0 0 var(--space-10); }
.faq-search {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0 var(--space-5, 1.25rem);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-neutral-500);
  box-shadow: var(--shadow-sm);
}
.faq-search:focus-within { border-color: var(--color-purple-500); }
.faq-search input {
  flex: 1; min-width: 0;
  height: 52px;
  border: none; outline: none; background: transparent;
  font: inherit; font-size: var(--font-size-base); color: var(--color-purple-900);
}
.faq-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); justify-content: center; }
.faq-chip {
  padding: 6px 14px;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-full);
  background: var(--color-white);
  font-size: var(--font-size-sm);
  color: var(--color-purple-900);
  text-decoration: none;
}
.faq-chip:hover { border-color: var(--color-purple-500); background: var(--color-yellow-100); }
.faq-count { margin: var(--space-3) 0 0; text-align: center; font-size: var(--font-size-sm); color: var(--color-neutral-600); min-height: 1.2em; }
.faq-group { margin-bottom: var(--space-10); scroll-margin-top: 100px; }
.faq-group[hidden], .faq-item[hidden] { display: none; }
.faq-group-title { margin: 0 0 var(--space-4); font-size: var(--font-size-xl); color: var(--color-purple-900); }
.faq-answer p + p { margin-top: var(--space-3); }
.faq-empty { text-align: center; color: var(--color-neutral-600); margin: 0 0 var(--space-10); }
.faq-more {
  margin-top: var(--space-4);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-2xl);
  background: var(--color-purple-500);
  color: var(--color-white);
  text-align: center;
}
.faq-more h2 { margin: 0 0 var(--space-2); font-size: var(--font-size-2xl); color: var(--color-white); }
.faq-more p { margin: 0 0 var(--space-6); color: rgba(255, 255, 255, 0.85); }
.faq-more-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.faq-more .btn-secondary { background: transparent; border: 1px solid rgba(255, 255, 255, 0.7); color: var(--color-white); }

/* --------------------------------------------------------------------------
   ACCOUNT — profile picture with upload / remove
   -------------------------------------------------------------------------- */
.acct-hero-inner > .acct-hero-who { display: flex; align-items: center; gap: var(--space-6); }
.acct-photo { position: relative; flex-shrink: 0; }
.acct-photo-circle {
  width: 104px; height: 104px;
  border-radius: 50%;
  border: 4px solid var(--color-yellow-500);
  background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 2rem; font-weight: var(--font-weight-bold);
  color: var(--color-yellow-500);
}
.acct-photo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-photo-btn {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--color-purple-500);
  border-radius: 50%;
  background: var(--color-yellow-500);
  color: var(--color-purple-900);
  cursor: pointer;
  transition: transform 0.2s;
}
.acct-photo-btn:hover { transform: scale(1.08); }
.acct-photo-btn:focus-visible { outline: 3px solid var(--color-white); outline-offset: 2px; }
.acct-photo-menu {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  z-index: 20;
  min-width: 190px;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
}
.acct-photo-menu[hidden] { display: none; }
.acct-photo-menu button {
  display: flex; align-items: center; gap: var(--space-2);
  width: 100%;
  padding: 10px 12px;
  border: none; border-radius: var(--radius-md);
  background: none;
  font: inherit; font-size: var(--font-size-sm);
  color: var(--color-purple-900);
  text-align: left; cursor: pointer;
}
.acct-photo-menu button:hover { background: var(--color-neutral-100); }
.acct-photo-menu .is-danger { color: #9B2C2A; }
.acct-photo-status { margin: var(--space-2) 0 0; font-size: var(--font-size-xs); color: var(--color-yellow-500); min-height: 1.2em; }
@media (max-width: 600px) {
  .acct-hero-inner > .acct-hero-who { gap: var(--space-4); }
  .acct-photo-circle { width: 80px; height: 80px; font-size: 1.5rem; }
  .acct-photo-btn { width: 32px; height: 32px; }
}

/* --------------------------------------------------------------------------
   EMPTY STATES (cart, wishlist) — line drawing, short message, big yellow button
   -------------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52vh;
  padding: var(--space-10) var(--space-4) var(--space-12);
  text-align: center;
}
.empty-art { width: min(260px, 70vw); height: auto; margin-bottom: var(--space-8); }
.empty-title { margin: 0 0 var(--space-2); font-size: var(--font-size-2xl); font-weight: var(--font-weight-bold); color: var(--color-neutral-900); }
.empty-text { margin: 0 0 var(--space-8); max-width: 420px; font-size: var(--font-size-base); line-height: 1.6; color: var(--color-neutral-500); }
.empty-btn {
  display: block;
  width: 100%;
  max-width: 440px;
  padding: 18px var(--space-6);
  border-radius: 18px;
  background: var(--color-yellow-500);
  color: var(--color-neutral-900);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.empty-btn:hover { background: var(--color-yellow-400); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.empty-link {
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-purple-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty-link:hover { color: var(--color-purple-900); }
@media (prefers-reduced-motion: no-preference) {
  .empty-art { animation: empty-bob 4s ease-in-out infinite; }
  @keyframes empty-bob { 50% { transform: translateY(-6px); } }
}

/* --------------------------------------------------------------------------
   PRODUCT LISTS — compact cards (4 per row), inset photo, round cart button,
   page heading with item count and a category icon row
   -------------------------------------------------------------------------- */
.products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); } }
@media (max-width: 480px) { .products-grid { gap: var(--space-3); } }

.product-card {
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--color-neutral-200);
  box-shadow: 0 2px 10px rgba(26, 15, 40, 0.06);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26, 15, 40, 0.12); }
.product-image-wrapper { aspect-ratio: 6 / 5; border-radius: 12px; background: var(--color-yellow-50); }
.product-card .wishlist-btn { width: 34px !important; height: 34px !important; top: 10px !important; right: 10px !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important; }
.product-card .wishlist-btn svg { width: 17px; height: 17px; }
.product-info { padding: var(--space-3) var(--space-1) var(--space-1); gap: var(--space-3); flex: 1; }
.product-name {
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer { border-top: none; padding-top: 0; align-items: center; margin-top: auto; }
.product-price { font-size: var(--font-size-base); color: var(--color-neutral-900); }

.btn-add-cart--icon {
  width: 40px; height: 40px;
  padding: 0;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-purple-500);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(73, 42, 111, 0.3);
}
.btn-add-cart--icon:hover { background: #3A2159; transform: scale(1.08); }
.btn-add-cart--icon.is-added { background: var(--color-success); box-shadow: 0 4px 12px rgba(47, 168, 106, 0.35); }
.btn-add-cart--icon:focus-visible { outline: 3px solid var(--color-yellow-500); outline-offset: 2px; }
@media (max-width: 480px) {
  .product-card { padding: 8px; border-radius: 16px; }
  .btn-add-cart--icon { width: 36px; height: 36px; }
  .product-name { font-size: var(--font-size-sm); }
}

/* List page heading */
.plist-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.plist-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-purple-500);
}
.plist-eyebrow::before { content: '\2665'; color: #E66A8F; font-size: 12px; }
.plist-title { margin: 0; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--color-neutral-900); }
.plist-sub { margin: var(--space-2) 0 0; color: var(--color-neutral-600); font-size: var(--font-size-base); }
.plist-count {
  margin: 0;
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-700);
}

/* Category icon row (lined up with the product grid) */
.plist-cats {
  width: calc(100% - 2 * var(--space-6));
  max-width: calc(var(--breakpoint-xl) - 2 * var(--space-6));
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  padding-top: var(--space-4) !important;
  padding-bottom: var(--space-4) !important;
  border-radius: 20px;
  background: #FBF8FD;
  border: 1px solid #F0EAF6;
  overflow-x: auto;
  scrollbar-width: none;
}
.plist-cats::-webkit-scrollbar { display: none; }
.plist-cat {
  flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-800);
  text-decoration: none;
}
.plist-cat-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-purple-500);
  box-shadow: 0 2px 8px rgba(73, 42, 111, 0.08);
  transition: transform 0.2s, background 0.2s;
}
.plist-cat:hover .plist-cat-icon { transform: translateY(-2px); }
.plist-cat[aria-current="page"] { color: var(--color-purple-900); font-weight: var(--font-weight-bold); }
.plist-cat[aria-current="page"] .plist-cat-icon { background: var(--color-purple-500); color: var(--color-yellow-500); }

/* Home page section header: title left, "View all" right */
.plist-row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.plist-row-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--color-neutral-900); }
.plist-view-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-purple-900);
  text-decoration: none;
  white-space: nowrap;
}
.plist-view-all svg { transition: transform 0.2s; }
.plist-view-all:hover svg { transform: translateX(4px); }

@media (max-width: 600px) {
  .plist-head { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .plist-cats { width: calc(100% - 2 * var(--space-4)); justify-content: flex-start; padding-left: var(--space-2) !important; padding-right: var(--space-2) !important; }
  .plist-cat { flex: 0 0 auto; padding: var(--space-1) var(--space-2); font-size: var(--font-size-xs); }
  .plist-cat-icon { width: 46px; height: 46px; }
}

/* --------------------------------------------------------------------------
   TAPS — respond immediately on phones (no double-tap-to-zoom wait)
   -------------------------------------------------------------------------- */
a, button, input, select, textarea, label, .product-card { touch-action: manipulation; }

/* --------------------------------------------------------------------------
   HEADER — full width: logo and menu on the left edge, icons on the right edge
   (page content below stays in its centred column)
   -------------------------------------------------------------------------- */
.site-header .header-inner {
  max-width: none;
  padding-inline: var(--space-8);
}
@media (max-width: 768px) {
  .site-header .header-inner { padding-inline: var(--space-4); }
}

/* --------------------------------------------------------------------------
   PRODUCT PAGE — title band, photo + details, option pills, tabs,
   related products row, features strip
   -------------------------------------------------------------------------- */
.pd-page { padding-bottom: var(--space-16); }
.pd-band {
  padding: var(--space-10) var(--space-4);
  text-align: center;
  background: linear-gradient(180deg, #F6F2FA 0%, rgba(246, 242, 250, 0.4) 100%);
  border-bottom: 1px solid #EFE8F5;
}
.pd-band-title { margin: 0 0 var(--space-2); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: var(--font-weight-bold); color: var(--color-neutral-900); }
.pd-crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-2); font-size: var(--font-size-sm); color: var(--color-neutral-500); }
.pd-crumbs a { color: var(--color-neutral-700); text-decoration: none; }
.pd-crumbs a:hover { color: var(--color-purple-500); text-decoration: underline; }
.pd-crumbs [aria-current] { color: var(--color-purple-500); font-weight: var(--font-weight-medium); }

.pd-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
  padding-top: var(--space-10) !important;
}
.pd-gallery { position: sticky; top: 96px; }
.pd-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: #F6F2FA;
  cursor: zoom-in;
}
.pd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.pd-photo.is-zoomed img { transform: scale(1.8); }
.pd-heart { position: absolute !important; top: 18px !important; right: 18px !important; width: 46px !important; height: 46px !important; background: var(--color-white) !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important; }
.pd-zoom-hint {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px; color: var(--color-neutral-700);
  pointer-events: none;
  transition: opacity 0.2s;
}
.pd-photo.is-zoomed .pd-zoom-hint { opacity: 0; }
@media (hover: none) { .pd-zoom-hint { display: none; } .pd-photo { cursor: default; } }

.pd-info { display: flex; flex-direction: column; }
.pd-category { font-size: var(--font-size-sm); color: var(--color-neutral-500); }
.pd-title { margin: 4px 0 var(--space-3); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.15; font-weight: var(--font-weight-bold); color: var(--color-neutral-900); }
.pd-price-row { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.pd-price { margin: 0; font-size: 1.6rem; font-weight: var(--font-weight-bold); color: var(--color-purple-500); }
.pd-price-note { font-size: var(--font-size-xs); color: var(--color-neutral-500); }
.pd-lead { margin: var(--space-3) 0 var(--space-6); color: var(--color-neutral-600); line-height: 1.7; }

.pd-options { display: flex; flex-direction: column; gap: var(--space-5, 1.25rem); padding-top: var(--space-6); border-top: 1px solid var(--color-neutral-200); }
.pd-field { margin: 0; padding: 0; border: none; min-width: 0; }
.pd-field[hidden] { display: none; }
.pd-field legend, .pd-label { display: block; margin-bottom: var(--space-2); padding: 0; font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); color: var(--color-neutral-900); }
.pd-field legend strong { font-weight: var(--font-weight-medium); color: var(--color-neutral-600); }
.pd-field small, .pd-label small { font-weight: var(--font-weight-light); color: var(--color-neutral-500); }

.pd-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pd-pill { position: relative; cursor: pointer; }
.pd-pill input, .pd-swatch input, .pd-extra input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pd-pill span {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-full);
  background: var(--color-white);
  font-size: var(--font-size-sm); font-weight: var(--font-weight-medium);
  color: var(--color-neutral-800);
  line-height: 1.3;
  transition: border-color 0.15s, background 0.15s;
}
.pd-pill small { font-size: 11px; }
.pd-pill:hover span { border-color: var(--color-purple-500); }
.pd-pill input:checked + span { background: var(--color-yellow-500); border-color: var(--color-yellow-500); color: var(--color-purple-900); }
.pd-pill input:checked + span small { color: var(--color-purple-900); }
.pd-pill input:focus-visible + span, .pd-swatch input:focus-visible + span, .pd-extra input:focus-visible ~ span { outline: 3px solid var(--color-purple-500); outline-offset: 2px; }

.pd-swatches { display: flex; gap: var(--space-3); }
.pd-swatch { cursor: pointer; }
.pd-swatch span[aria-hidden] {
  display: block; width: 30px; height: 30px; border-radius: 50%;
  background: var(--swatch);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 0 3px var(--color-white), 0 0 0 4px var(--color-neutral-300);
  transition: box-shadow 0.15s;
}
.pd-swatch input:checked + span { box-shadow: 0 0 0 3px var(--color-white), 0 0 0 5px var(--color-purple-500); }

/* Can Cake packs: how many of each flavour (they add up to the pack) */
.pd-mix { display: flex; flex-direction: column; gap: var(--space-2); }
.pd-mix[hidden], .pd-pills[hidden] { display: none; }
.pd-mix-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-full);
  background: var(--color-white);
  transition: border-color 0.15s, background 0.15s;
}
.pd-mix-row.is-picked { border-color: var(--color-yellow-500); background: #FFFBE6; }
.pd-mix-name { font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: var(--color-neutral-800); }
.pd-mix-step { display: inline-flex; align-items: center; gap: 4px; }
.pd-mix-step button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--color-neutral-300); background: var(--color-white);
  font-size: 1.15rem; line-height: 1; color: var(--color-purple-900); cursor: pointer;
}
.pd-mix-step button:hover:not(:disabled) { border-color: var(--color-purple-500); }
.pd-mix-step button:focus-visible { outline: 3px solid var(--color-purple-500); outline-offset: 2px; }
.pd-mix-step button:disabled { opacity: 0.35; cursor: not-allowed; }
.pd-mix-step output { min-width: 28px; text-align: center; font-weight: var(--font-weight-bold); color: var(--color-purple-900); }
.pd-mix-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.pd-mix-status { margin: 0; font-size: var(--font-size-sm); color: var(--color-neutral-600); }
.pd-mix-status.is-done { color: #1D7A4A; font-weight: var(--font-weight-bold); }
.pd-mix-status.is-warn { color: #B42318; font-weight: var(--font-weight-bold); }
.pd-mix-even {
  padding: 6px 14px; border: 1px solid var(--color-purple-500); border-radius: var(--radius-full);
  background: none; color: var(--color-purple-500);
  font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); cursor: pointer;
}
.pd-mix-even:hover { background: #F6F1FB; }

.pd-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-lg);
  font: inherit; font-size: var(--font-size-base);
  color: var(--color-purple-900);
}
.pd-input:focus { outline: none; border-color: var(--color-purple-500); box-shadow: 0 0 0 3px rgba(73, 42, 111, 0.12); }

.pd-checks { display: flex; flex-direction: column; gap: var(--space-2); }
.pd-check { display: flex; align-items: center; gap: var(--space-3); font-size: var(--font-size-sm); color: var(--color-neutral-800); cursor: pointer; }
.pd-check input { width: 18px; height: 18px; accent-color: var(--color-purple-500); cursor: pointer; }

.pd-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-2); }
.pd-extra {
  position: relative;
  display: flex; align-items: center; gap: var(--space-2);
  padding: 8px;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pd-extra img { width: 44px; height: 44px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.pd-extra span { display: flex; flex-direction: column; line-height: 1.3; }
.pd-extra strong { font-size: var(--font-size-sm); color: var(--color-purple-900); }
.pd-extra small { font-size: 12px; color: var(--color-neutral-600); }
.pd-extra:hover { border-color: var(--color-purple-500); }
.pd-extra:has(input:checked) { border-color: var(--color-purple-500); background: var(--color-yellow-100); box-shadow: inset 0 0 0 1px var(--color-purple-500); }

.pd-actions { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
.pd-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-neutral-300); border-radius: var(--radius-full); overflow: hidden; background: var(--color-white); }
.pd-qty button { width: 42px; height: 48px; border: none; background: none; font-size: 1.2rem; color: var(--color-purple-900); cursor: pointer; }
.pd-qty button:hover { background: var(--color-neutral-100); }
.pd-qty input { width: 36px; border: none; text-align: center; font: inherit; font-weight: var(--font-weight-bold); color: var(--color-purple-900); -moz-appearance: textfield; }
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-btn {
  flex: 1;
  min-width: 130px;
  height: 50px;
  padding: 0 var(--space-6);
  border: none;
  border-radius: var(--radius-full);
  font: inherit; font-size: var(--font-size-base); font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.pd-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.pd-btn--cart { background: var(--color-purple-500); color: var(--color-white); }
.pd-btn--cart:hover { background: #3A2159; }
.pd-btn--buy { background: var(--color-yellow-500); color: var(--color-purple-900); }
.pd-btn--buy:hover { background: var(--color-yellow-400); }
.pd-ready { margin: var(--space-3) 0 0; font-size: var(--font-size-sm); color: var(--color-neutral-600); }
.pd-ready strong { color: var(--color-purple-900); }
.pd-note { margin: var(--space-1) 0 0; font-size: var(--font-size-sm); color: var(--color-neutral-500); }

.pd-meta { margin: var(--space-6) 0 0; padding-top: var(--space-5, 1.25rem); border-top: 1px solid var(--color-neutral-200); display: grid; gap: var(--space-2); font-size: var(--font-size-sm); }
.pd-meta div { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.pd-meta dt { font-weight: var(--font-weight-bold); color: var(--color-neutral-900); }
.pd-meta dd { margin: 0; color: var(--color-neutral-600); display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.pd-meta dd > a:not([data-share]) { color: var(--color-purple-500); }
.pd-share a {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-purple-500); color: var(--color-white);
  transition: transform 0.15s;
}
.pd-share a:hover { transform: scale(1.1); }

/* Tabs */
.pd-tabs-wrap { margin-top: var(--space-16); }
.pd-tabs { display: flex; justify-content: center; gap: var(--space-8); border-bottom: 1px solid var(--color-neutral-200); overflow-x: auto; scrollbar-width: none; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tab {
  padding: var(--space-3) 0;
  border: none; border-bottom: 3px solid transparent;
  background: none;
  font: inherit; font-size: var(--font-size-lg); font-weight: var(--font-weight-medium);
  color: var(--color-neutral-500);
  white-space: nowrap;
  cursor: pointer;
}
.pd-tab[hidden] { display: none; }
.pd-tab:hover { color: var(--color-purple-900); }
.pd-tab[aria-selected="true"] { color: var(--color-purple-900); border-bottom-color: var(--color-purple-500); font-weight: var(--font-weight-bold); }
.pd-tab-body { max-width: 860px; margin: 0 auto; padding-top: var(--space-8); color: var(--color-neutral-700); line-height: 1.8; }
.pd-tab-body h3 { margin: 0 0 var(--space-3); font-size: var(--font-size-lg); color: var(--color-purple-900); }
.pd-tab-body p { margin: 0 0 var(--space-4); }
.pd-tab-body ul { margin: 0 0 var(--space-4); padding-left: var(--space-5, 1.25rem); }
.pd-tab-body a { color: var(--color-purple-500); }
.pd-ticks { list-style: none; padding: 0 !important; }
.pd-ticks li { position: relative; padding-left: 30px; margin-bottom: var(--space-2); }
.pd-ticks li::before {
  content: '';
  position: absolute; left: 0; top: 5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-yellow-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23492A6F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.pd-size-table { width: 100%; max-width: 520px; border-collapse: collapse; margin: 0 0 var(--space-4); font-size: var(--font-size-sm); }
.pd-size-table th { text-align: left; padding: var(--space-2) var(--space-3); background: #F6F2FA; color: var(--color-purple-900); }
.pd-size-table td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-neutral-200); }

/* Related products */
.pd-related { margin-top: var(--space-16); text-align: center; }
.pd-related[hidden] { display: none; }
.pd-related-kicker { margin: 0; font-size: var(--font-size-sm); color: var(--color-neutral-600); }
.pd-related-title { margin: 4px 0 var(--space-8); font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--color-neutral-900); }
.pd-related-title span { color: var(--color-purple-500); }
.pd-related-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--space-5, 1.25rem)) / 4);
  gap: var(--space-5, 1.25rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-3);
  text-align: left;
  scrollbar-width: thin;
}
.pd-rel-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; scroll-snap-align: start; }
.pd-rel-img { display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #F6F2FA; margin-bottom: var(--space-2); }
.pd-rel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.pd-rel-card:hover .pd-rel-img img { transform: scale(1.05); }
.pd-rel-type { font-size: 12px; color: var(--color-neutral-500); }
.pd-rel-card strong { font-size: var(--font-size-base); color: var(--color-neutral-900); }
.pd-rel-price { font-weight: var(--font-weight-bold); color: var(--color-purple-500); }

/* Features strip */
.pd-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-16); padding-top: var(--space-8) !important; border-top: 1px solid var(--color-neutral-200); }
.pd-feature { display: flex; align-items: center; gap: var(--space-3); }
.pd-feature-icon { width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-yellow-500); color: var(--color-purple-900); }
.pd-feature strong { display: block; font-size: var(--font-size-sm); color: var(--color-neutral-900); }
.pd-feature small { display: block; font-size: 12px; color: var(--color-neutral-500); }

@media (max-width: 960px) {
  .pd-top { grid-template-columns: 1fr; gap: var(--space-8); }
  .pd-gallery { position: static; }
  .pd-photo { aspect-ratio: 4 / 3.4; }
  .pd-related-row { grid-auto-columns: calc((100% - 2 * var(--space-4)) / 2.4); gap: var(--space-4); }
  .pd-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pd-band { padding: var(--space-6) var(--space-4); }
  .pd-top { padding-top: var(--space-6) !important; }
  .pd-photo { border-radius: 18px; aspect-ratio: 1; }
  .pd-tabs { justify-content: flex-start; gap: var(--space-5, 1.25rem); }
  .pd-tab { font-size: var(--font-size-base); }
  .pd-actions .pd-btn { flex: 1 1 40%; }
  .pd-qty { order: -1; }
  .pd-related-row { grid-auto-columns: 62%; }
  .pd-features { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* --------------------------------------------------------------------------
   CUPCAKE PAGE — many icing swatches, "other colour", grouped extras
   -------------------------------------------------------------------------- */
.pd-swatches--wrap { flex-wrap: wrap; gap: 12px; }
.pd-swatch--other { display: inline-flex; align-items: center; gap: 6px; }
.pd-swatch--other span[aria-hidden] {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(#F9C9D7, #FFE45C, #AEE5CF, #AFD5F0, #C9B6E8, #F9C9D7);
  font-weight: var(--font-weight-bold); color: var(--color-purple-900);
  box-shadow: 0 0 0 3px var(--color-white), 0 0 0 4px var(--color-neutral-300);
}
.pd-swatch--other input:checked + span { box-shadow: 0 0 0 3px var(--color-white), 0 0 0 5px var(--color-purple-500); }
.pd-swatch-text { font-size: var(--font-size-sm); color: var(--color-neutral-700); }
.pd-other-colour { margin-top: var(--space-3); }
.pd-other-colour[hidden] { display: none; }
.pd-extras-group { margin: var(--space-3) 0 var(--space-2); font-size: 12px; font-weight: var(--font-weight-bold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-purple-500); }
.pd-extras-group:first-child { margin-top: 0; }
.pd-note a { color: var(--color-purple-500); }

/* Product pages: anything switched off for this kind of product stays hidden */
.pd-page [hidden] { display: none !important; }

/* Product pages on phones: every tab fits on screen (they wrap instead of hiding off the edge),
   and the "more" row says it can be swiped */
@media (max-width: 600px) {
  .pd-tabs { flex-wrap: wrap; justify-content: center; gap: 0 var(--space-4); overflow: visible; }
  .pd-tab { font-size: var(--font-size-sm); padding: var(--space-2) 0; }
  .pd-related-kicker::after { content: ' · swipe for more →'; color: var(--color-purple-500); }
}


/* ==========================================================================
   LIVE SHOP DATA (products, blog and ads managed in the owner dashboard)
   ========================================================================== */
.plist-empty { grid-column: 1 / -1; text-align: center; color: var(--color-neutral-500); padding: var(--space-12) var(--space-4); }
.product-badge--soldout { background: var(--color-neutral-900); color: #fff; }
.product-badge--low { background: var(--color-yellow-500); color: var(--color-purple-900); }
.product-card.is-sold-out .product-img { filter: grayscale(0.55); opacity: 0.8; }
.product-card .btn-add-cart:disabled { opacity: 0.4; cursor: not-allowed; }
.pd-stock-note { margin: var(--space-1) 0 0; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: #8A6100; }
.pd-stock-note--out { color: var(--color-error); }
.pd-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Blog posts written in the dashboard */
.post-page.is-loading .post-hero-inner, .post-page.is-loading .post-article, .post-page.is-loading .post-byline { visibility: hidden; }
.post-body h3 { margin: var(--space-8) 0 var(--space-3); font-size: var(--font-size-xl); color: var(--color-purple-900); }
.post-body ul, .post-body ol { margin: 0 0 var(--space-6); padding-left: 1.4em; }
.post-body li { margin-bottom: var(--space-2); }
.post-body img { display: block; width: 100%; height: auto; border-radius: var(--radius-xl); margin: var(--space-8) 0; }
.post-body blockquote { margin: var(--space-10) 0; padding: 0; text-align: center; }
.post-body blockquote::before { content: ''; display: block; width: 36px; height: 3px; margin: 0 auto var(--space-5); background: var(--color-yellow-500); }
.post-body blockquote, .post-body blockquote p { font-size: clamp(1.3rem, 3vw, 1.85rem); line-height: 1.3; font-weight: var(--font-weight-bold); color: var(--color-purple-900); }
.post-body blockquote p { margin: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--color-neutral-200); margin: var(--space-10) 0; }

/* Ads: pop-up */
.ad-pop { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: var(--space-4);
  background: rgba(33, 18, 52, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; }
.ad-pop.is-open { opacity: 1; }
.ad-pop-card { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--radius-2xl);
  box-shadow: 0 24px 60px rgba(26, 15, 40, .35); text-align: center; transform: translateY(12px) scale(.98); transition: transform .25s ease; }
.ad-pop.is-open .ad-pop-card { transform: none; }
.ad-pop-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ad-pop-body { padding: var(--space-6) var(--space-6) var(--space-5); }
.ad-pop-title { margin: 0 0 var(--space-2); font-size: var(--font-size-2xl); line-height: 1.25; color: var(--color-purple-900); }
.ad-pop-text { margin: 0 0 var(--space-5); color: var(--color-neutral-600); line-height: 1.6; }
.ad-pop-btn, .ad-block-btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius-full); background: var(--color-purple-500); color: #fff;
  font-weight: var(--font-weight-medium); text-decoration: none; transition: transform .15s ease, background .15s ease; }
.ad-pop-btn:hover, .ad-block-btn:hover { transform: translateY(-1px); }
.ad-pop-later { display: block; margin: var(--space-3) auto 0; background: none; border: 0; color: var(--color-neutral-500); font: inherit; font-size: var(--font-size-sm); cursor: pointer; text-decoration: underline; }
.ad-pop-close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92);
  font-size: 24px; line-height: 1; color: var(--color-neutral-900); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* Ads: banner under the header */
.ad-banner { display: flex; align-items: center; justify-content: center; gap: var(--space-4); padding: 10px 48px 10px var(--space-4); background: var(--color-purple-500); color: #fff;
  position: relative; text-align: center; flex-wrap: wrap; font-size: var(--font-size-sm); }
.ad-banner-text { margin: 0; }
.ad-banner-text strong { color: var(--color-yellow-500); }
.ad-banner-btn { padding: 5px 16px; border-radius: var(--radius-full); background: var(--color-yellow-500); color: var(--color-purple-900); font-weight: var(--font-weight-medium); text-decoration: none; white-space: nowrap; }
.ad-banner-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: #fff; font-size: 22px; cursor: pointer; }

/* Ads: page section, blog list and inside articles */
.ad-section-wrap { max-width: 1200px; margin: var(--space-12) auto; padding: 0 var(--space-4); }
.ad-block { display: flex; align-items: stretch; overflow: hidden; border-radius: var(--radius-2xl); background: var(--color-purple-500); color: #fff; }
.ad-block-img { flex: 0 0 42%; min-height: 220px; position: relative; }
.ad-block-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-block-body { flex: 1; padding: var(--space-8); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ad-block-title { margin: 0 0 var(--space-2); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; color: #fff; }
.ad-block-text { margin: 0 0 var(--space-5); color: rgba(255,255,255,.85); line-height: 1.6; }
.ad-block .ad-block-btn { background: var(--color-yellow-500); color: var(--color-purple-900); }
.ad-block--blog { grid-column: 1 / -1; margin: var(--space-4) 0; }
.post-body .ad-block--inline { margin: var(--space-10) 0; font-size: 1rem; }
.post-body .ad-block--inline .ad-block-img { flex-basis: 38%; min-height: 180px; }
.post-body .ad-block--inline .ad-block-img img { margin: 0; border-radius: 0; }
.post-body .ad-block--inline .ad-block-body { padding: var(--space-6); }
.post-body .ad-block--inline .ad-block-btn { text-decoration: none; color: var(--color-purple-900); }
.post-body .ad-block--inline .ad-block-title { margin: 0 0 var(--space-2); color: #fff; }
.post-body .ad-block--inline .ad-block-text { margin: 0 0 var(--space-5); color: rgba(255,255,255,.85); }
@media (max-width: 640px) {
  .ad-block { flex-direction: column; }
  .ad-block-img { flex-basis: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .ad-block-body { padding: var(--space-6); }
  .ad-banner { padding-right: 44px; gap: var(--space-2); }
}
@media (prefers-reduced-motion: reduce) {
  .ad-pop, .ad-pop-card { transition: none; }
}

/* Coupon box (cart.html → checkout.js) */
.coupon-box { margin: calc(-1 * var(--space-2)) 0 var(--space-5); }
.coupon-box [hidden] { display: none !important; }
.coupon-label { display: block; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: var(--color-purple-900); margin-bottom: var(--space-2); }
.coupon-row { display: flex; gap: var(--space-2); }
.coupon-input { flex: 1; min-width: 0; padding: 10px 12px; border-color: var(--color-neutral-300); text-transform: uppercase; letter-spacing: .06em; }
.coupon-input::placeholder { text-transform: none; letter-spacing: normal; }
.coupon-apply { flex-shrink: 0; padding: 0 var(--space-5); border: 1.5px solid var(--color-purple-500); border-radius: var(--radius-md); background: #fff;
  color: var(--color-purple-500); font: inherit; font-weight: var(--font-weight-bold); cursor: pointer; transition: background .15s, color .15s; }
.coupon-apply:hover { background: var(--color-purple-500); color: #fff; }
.coupon-apply:disabled { opacity: .5; cursor: wait; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--color-yellow-100); border: 1px dashed var(--color-purple-500); }
.coupon-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--color-purple-900); font-size: var(--font-size-sm); min-width: 0; flex-wrap: wrap; }
.coupon-tag strong { letter-spacing: .06em; }
.coupon-remove { background: none; border: 0; padding: 0; color: var(--color-neutral-600); font: inherit; font-size: var(--font-size-sm); text-decoration: underline; cursor: pointer; flex-shrink: 0; }
.coupon-message { margin: var(--space-2) 0 0; font-size: var(--font-size-sm); color: #B42318; }
.coupon-message.is-ok { color: #1D7A4A; }
.coupon-lines { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--color-neutral-200); }
.coupon-line { display: flex; justify-content: space-between; margin-bottom: var(--space-2); color: var(--color-neutral-700); }
.coupon-line--discount { color: #1D7A4A; font-weight: var(--font-weight-medium); }
.coupon-line--total { font-weight: var(--font-weight-bold); color: var(--color-purple-900); font-size: 1.2rem; margin-bottom: 0; }

/* Account page: newsletter on/off */
.acct-news { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.acct-news-btn { background: none; border: 0; padding: 0; font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium);
  color: var(--color-purple-500); text-decoration: underline; cursor: pointer; }
.acct-news-btn:disabled { opacity: .5; cursor: wait; }

/* Help centre: smaller headings inside a long section (Newsletter & privacy) */
.ed-subheading { margin: var(--space-8) 0 var(--space-3); font-size: var(--font-size-xl); line-height: 1.3; color: var(--color-purple-900); }
.ed-section .ed-list { margin: 0 0 var(--space-4); display: grid; gap: var(--space-2); }


/* ==========================================================================
   READY TODAY (home page) — ready-made products and the Can Cake panel.
   Ready-made items skip the 5-day wait: same-day pick-up or delivery.
   ========================================================================== */
.ready-section { padding: var(--space-16) 0 var(--space-4); background: linear-gradient(180deg, #F6F1FB 0%, rgba(246, 241, 251, 0) 100%); }
.ready-sub { margin: var(--space-2) 0 0; color: var(--color-neutral-600); }
.ready-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.ready-layout.no-can { grid-template-columns: minmax(0, 1fr); }
.ready-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.ready-layout.no-can .ready-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ready-grid.is-empty { display: flex; }
.ready-grid.is-empty .ready-empty { flex: 1; }
.ready-layout:has(.ready-grid.is-empty) { align-items: stretch; }

/* Can Cake panel */
.can-feature {
  display: flex; flex-direction: column;
  padding: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(26, 15, 40, 0.06);
}
.can-feature-photo { position: relative; display: block; aspect-ratio: 6 / 5; border-radius: 12px; overflow: hidden; background: var(--color-yellow-50); }
.can-feature-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--easing-standard); }
.can-feature-photo:hover img { transform: scale(1.04); }
.can-feature-tag {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-yellow-500);
  color: var(--color-purple-900);
  font-size: 11px; font-weight: var(--font-weight-bold); letter-spacing: 0.05em; text-transform: uppercase;
}
.can-feature-body { padding: var(--space-4) var(--space-2) var(--space-2); display: flex; flex-direction: column; gap: var(--space-3); }
.can-feature-title { margin: 0; font-size: 1.35rem; color: var(--color-purple-900); }
.can-feature-text { margin: 0; color: var(--color-neutral-600); font-size: var(--font-size-sm); line-height: 1.6; }
.can-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.can-pack { position: relative; cursor: pointer; }
.can-pack input { position: absolute; opacity: 0; pointer-events: none; }
.can-pack span {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px;
  border: 1.5px solid var(--color-neutral-300);
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.can-pack strong { font-size: var(--font-size-sm); color: var(--color-neutral-900); white-space: nowrap; }
.can-pack small { font-size: var(--font-size-xs); color: var(--color-neutral-600); }
.can-pack:hover span { border-color: var(--color-purple-500); }
.can-pack input:checked + span { border-color: var(--color-purple-500); background: #F6F1FB; box-shadow: inset 0 0 0 1px var(--color-purple-500); }
.can-pack input:checked + span small { color: var(--color-purple-900); font-weight: var(--font-weight-medium); }
.can-pack input:focus-visible + span { outline: 3px solid var(--color-yellow-500); outline-offset: 2px; }
.can-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border: 0; border-radius: var(--radius-full);
  background: var(--color-purple-500);
  color: var(--color-white);
  font-family: inherit; font-size: var(--font-size-base); font-weight: var(--font-weight-bold);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(73, 42, 111, 0.3);
  transition: background 0.2s, transform 0.2s;
}
.can-add:hover { background: #3A2159; transform: translateY(-1px); }
.can-add:focus-visible { outline: 3px solid var(--color-yellow-500); outline-offset: 2px; }
.can-add:disabled, .can-add.is-disabled { opacity: 0.45; cursor: not-allowed; transform: none; pointer-events: none; }
a.can-add { text-decoration: none; }

/* "Ready today" badge on product cards: bottom corner of the photo, clear of the heart button */
.product-badge--ready { top: auto; bottom: var(--space-3); background: #1D7A4A; color: #fff; white-space: nowrap; }
@media (max-width: 768px) {
  .product-badge--ready { bottom: 8px; left: 8px; font-size: 10px; padding: 3px 8px; letter-spacing: 0.04em; }
}

/* Nothing ready-made left today */
.ready-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 100%;
  padding: var(--space-10) var(--space-6);
  border: 1.5px dashed var(--color-neutral-300);
  border-radius: 18px;
  background: var(--color-white);
  text-align: center;
  color: var(--color-neutral-600);
}
.ready-empty svg { color: var(--color-purple-500); }
.ready-empty p { margin: 0; max-width: 34ch; line-height: 1.6; }
.ready-empty strong { display: block; color: var(--color-neutral-900); }
.ready-empty-link { font-weight: var(--font-weight-bold); color: var(--color-purple-500); text-decoration: underline; text-underline-offset: 3px; }

/* Product page: ready-made note */
.pd-ready-made {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 var(--space-6);
  padding: 12px 14px;
  border-radius: 12px;
  background: #E4F6ED;
  color: #1D5A3A;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}
.pd-ready-made svg { flex-shrink: 0; color: #1D7A4A; margin-top: 1px; }
.pd-ready-made strong { color: #14482D; }

@media (max-width: 1100px) {
  .ready-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ready-layout.no-can .ready-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .ready-section { padding-top: var(--space-12); }
  .ready-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .ready-layout.no-can .ready-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Can Cake: photo beside the details */
  .can-feature { flex-direction: row; gap: var(--space-3); align-items: stretch; }
  .can-feature-photo { flex: 0 0 38%; aspect-ratio: auto; min-height: 100%; }
  .can-feature-body { flex: 1; min-width: 0; padding: var(--space-1) 0 0; gap: var(--space-2); }
  .can-feature-title { font-size: 1.15rem; }
  .can-feature-tag { font-size: 10px; padding: 3px 8px; top: 8px; left: 8px; }
}
@media (max-width: 480px) {
  .can-feature { flex-direction: column; }
  .can-feature-photo { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
  .can-feature-body { padding: var(--space-3) var(--space-1) var(--space-1); }
}

/* "Ready today" big card (the Instant Cake): fills the space beside the Can Cake.
   Other ready-made items follow underneath as normal cards. */
.ready-grid.has-feature { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ready-layout:has(.ready-grid.has-feature[data-count="0"]) { align-items: stretch; }
.ready-grid.has-feature[data-count="0"] { grid-template-rows: minmax(0, 1fr); }
.ready-feature { grid-column: 1 / -1; flex-direction: row; gap: var(--space-6); }
.ready-feature:hover { transform: translateY(-3px); }
.ready-feature-photo { flex: 0 0 52%; aspect-ratio: auto; min-height: 340px; }
.ready-feature-photo > a { position: absolute; inset: 0; }
.ready-feature-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-4) 0; }
.ready-feature-kicker {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: #E4F6ED;
  color: #1D7A4A;
  font-size: 11px; font-weight: var(--font-weight-bold); letter-spacing: 0.06em; text-transform: uppercase;
}
.ready-feature-link { color: inherit; text-decoration: none; }
.ready-feature-title { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; color: var(--color-purple-900); }
.ready-feature-text { margin: 0; color: var(--color-neutral-600); line-height: 1.65; }
.ready-feature-when { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: #1D5A3A; }
.ready-feature-when svg { color: #1D7A4A; flex-shrink: 0; }
.ready-feature-price { margin: var(--space-1) 0 0; font-size: 1.6rem; font-weight: var(--font-weight-bold); color: var(--color-neutral-900); }
.ready-feature .can-add { margin-top: var(--space-1); }

@media (max-width: 1100px) {
  .ready-grid.has-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ready-feature-photo { flex-basis: 46%; }
}
@media (max-width: 768px) {
  .ready-layout:has(.ready-grid.has-feature[data-count="0"]) { align-items: start; }
  .ready-feature-photo { flex-basis: 42%; min-height: 0; aspect-ratio: 4 / 5; }
  .ready-feature-body { padding: var(--space-2) var(--space-2) var(--space-2) 0; gap: var(--space-2); }
  .ready-feature-text { font-size: var(--font-size-sm); }
  .ready-feature-price { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .ready-feature { flex-direction: column; gap: 0; }
  .ready-feature-photo { flex: none; aspect-ratio: 16 / 11; }
  .ready-feature-body { padding: var(--space-4) var(--space-2) var(--space-2); }
}
