/* Farmilo Brand Styles */

/* Font imports - Using similar playful fonts as fallbacks */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #2E6A00;
  --color-primary-light: #3d8a00;
  --color-primary-dark: #1e4800;
  --color-header: #88AA44;
  --color-header-light: #9dbe5e;
  --color-button: #F7BF09;
  --color-button-hover: #e5b008;
  --color-button-text: #000000;
  --color-bg: #FFFFFF;
  --color-bg-secondary: #CBDABF;
  --color-bg-tertiary: #f5f9f2;
  --color-text: #000000;
  --color-text-muted: #666666;
  --color-text-light: #888888;
  
  /* Category Colors */
  --color-veggie: #4CAF50;
  --color-veggie-light: #E8F5E9;
  --color-meat: #FF7043;
  --color-meat-light: #FBE9E7;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Fonts */
  --font-header: 'Baloo 2', cursive, system-ui;
  --font-body: 'Nunito', sans-serif, system-ui;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

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

a:hover {
  color: var(--color-primary-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-header);
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-button);
  color: var(--color-button-text);
  box-shadow: var(--shadow-md);
}

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

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

.btn-secondary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
}

/* Header / Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-bg-secondary);
  padding: 0.75rem 0;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  height: 40px;
  width: auto;
}

@media (min-width: 768px) {
  .navbar-logo {
    height: 50px;
  }
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-link {
  font-weight: 600;
  color: var(--color-text);
}

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

/* Hero Section */
.hero {
  position: relative;
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--color-bg-tertiary) 0%, var(--color-bg-secondary) 100%);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-text h1 {
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

/* Homepage: full-viewport hero image (nav + slogan float on top) */
/* Stack heights must match real .navbar + .slogan-bar (same as builder/in-flow pages) */
.page-home {
  --home-nav-h: calc(0.75rem + 40px + 0.75rem + 1px);
  --home-slogan-h: calc(0.5rem + 1.25rem + 0.5rem);
}

@media (min-width: 768px) {
  .page-home {
    --home-nav-h: calc(0.75rem + 50px + 0.75rem + 1px);
    /* Match desktop .slogan-bar padding + track (see below) */
    --home-slogan-h: calc(0.625rem + 1.5rem + 0.625rem);
  }
}

.page-home .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(203, 218, 191, 0.65);
}

/* Only positioning here — sizing must come from .slogan-bar so it matches builder (page-home was overriding with higher specificity and shrinking the bar on desktop) */
.page-home .slogan-bar {
  position: fixed;
  top: var(--home-nav-h);
  left: 0;
  right: 0;
  z-index: 199;
}

@media (max-width: 640px) {
  .page-home {
    --home-slogan-h: calc(0.4rem + 1.25rem + 0.4rem);
  }
}

/* Hero Fullwidth Style */
.hero.hero-fullwidth {
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: none;
}

.page-home .hero.hero-fullwidth {
  /* Full screen: image from top of viewport; room for fixed header */
  padding-top: calc(var(--home-nav-h) + var(--home-slogan-h));
  box-sizing: border-box;
  /* True vertical centering of copy: align-items:center + padding-top skews high; use auto margins */
  align-items: flex-start;
}

.page-home .hero.hero-fullwidth > .container {
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

/* Landing hero photo: bias toward top of image to crop bottom; horizontal stays right */
.hero.hero-fullwidth .hero-background img {
  object-fit: cover;
  object-position: 92% 6%;
  width: 100%;
  height: 100%;
  transform: translateY(clamp(0.4rem, 2.2vmin, 1.35rem));
  transform-origin: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.9) 30%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 60%,
      rgba(255, 255, 255, 0.4) 100%
    );
  }
}

.hero-content-centered {
  position: relative;
  z-index: 2;
  max-width: 550px;
  padding: 2rem 0;
}

.hero-content-centered h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  line-height: 1.1;
}

.hero-content-centered p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero.hero-fullwidth {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
  }
  
  .hero-content-centered {
    padding: 3rem 0;
  }
  
  .hero-content-centered h1 {
    font-size: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-content-centered h1 {
    font-size: 3.75rem;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  font-family: var(--font-header);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-cta {
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

@media (max-width: 640px) {
  .hero.hero-fullwidth {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    padding: 2rem 0;
  }

  .page-home .hero.hero-fullwidth {
    padding-top: calc(var(--home-nav-h) + var(--home-slogan-h));
    padding-bottom: 2rem;
    padding-left: 0;
    padding-right: 0;
  }
  
  .hero.hero-fullwidth .hero-background img {
    object-position: 86% 14%;
    transform: translateY(clamp(0.35rem, 2vmin, 1.05rem));
  }
  
  .hero-content-centered h1 {
    font-size: 2rem;
  }
  
  .hero-content-centered p {
    font-size: 1rem;
  }
  
  .hero-trust {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .trust-item {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero-fullwidth .hero-background img {
    transform: none;
  }
}

/* Features Section */
.features {
  padding: 4rem 0;
  background-color: var(--color-bg);
}

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

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

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

.product-details-inline-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Home — products */
.home-products-section {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, #fff 40%, #fff 100%);
}

.home-products-lead {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Home — product carousel (≈3 cards per view on large screens) */
.home-products-carousel-wrap {
  max-width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-inline: clamp(0.25rem, 1vw, 0.75rem);
}

.home-products-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
}

.home-products-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: rgba(46, 106, 0, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.home-products-nav:hover:not(:disabled) {
  background: #fff;
  transform: scale(1.05);
}

.home-products-nav:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.home-products-nav[hidden] {
  display: none;
}

.home-products-nav:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.home-products-nav-icon {
  display: block;
}

.home-products-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  container-type: inline-size;
  container-name: home-products;
  outline: none;
  padding-block: 0.35rem;
}

.home-products-viewport::-webkit-scrollbar {
  display: none;
}

.home-products-track {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  width: max-content;
  min-height: min-content;
}

.home-products-track .home-product-card {
  flex-grow: 0;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-sizing: border-box;
  width: calc((100cqi - 2 * 1.25rem) / 3);
  max-width: 360px;
}

@media (max-width: 899px) {
  .home-products-track .home-product-card {
    width: calc((100cqi - 1 * 1.25rem) / 2);
    max-width: 340px;
  }
}

@media (max-width: 559px) {
  .home-products-carousel-wrap {
    padding-inline: 0;
  }

  .home-products-carousel {
    gap: 0.25rem;
  }

  .home-products-nav {
    width: 36px;
    height: 36px;
  }

  .home-products-track .home-product-card {
    width: min(310px, 88cqi);
    max-width: none;
  }
}

@media (min-width: 560px) and (max-width: 898px) {
  .home-products-track .home-product-card {
    min-width: 240px;
  }
}

@media (min-width: 900px) {
  .home-products-track .home-product-card {
    min-width: 0;
  }
}

.home-product-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(46, 106, 0, 0.08);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.home-product-image-wrap {
  margin: 0 auto 1rem;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
  position: relative;
}

.home-product-image-wrap:has(> img) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-product-image-wrap .product-image-gallery {
  border-radius: inherit;
  overflow: hidden;
  height: 100%;
}

.home-product-image-wrap .product-gallery-viewport,
.home-product-image-wrap .product-gallery-slide {
  background: transparent;
}

.home-product-image-wrap > img {
  box-sizing: border-box;
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: auto;
}

.home-product-image {
  box-sizing: border-box;
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: auto;
}

.home-product-cat {
  display: inline-block;
  align-self: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.home-product-cat--veggie {
  background: rgba(46, 106, 0, 0.12);
  color: var(--color-primary);
}

.home-product-cat--meat {
  background: rgba(247, 191, 9, 0.25);
  color: #5c4a00;
}

.home-product-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.home-product-desc {
  margin: 0;
  flex: 1;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-product-price {
  margin: 0.85rem 0 0;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.home-product-price-hint {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Social Section */
.social-section {
  background-color: #FFFFFF;
}

.social-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.social-heading-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.social-heading h2 {
  margin: 0;
}

/* Alltag: Foto-Reihen (z. B. zwei Blöcke à zwei Fotos) */
.lifestyle-gallery {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.lifestyle-gallery--compact {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  gap: 1.5rem;
}

.lifestyle-gallery-block {
  margin: 0;
}

.lifestyle-gallery-title {
  margin: 0 0 1rem;
  text-align: center;
  font-family: var(--font-header);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.lifestyle-gallery--compact .lifestyle-gallery-title {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.lifestyle-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .lifestyle-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }

  .lifestyle-gallery--compact .lifestyle-gallery-grid {
    gap: 0.65rem;
  }
}

.lifestyle-gallery-figure {
  margin: 0;
}

.lifestyle-gallery-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(46, 106, 0, 0.1);
  box-shadow: var(--shadow-md);
  background: var(--color-bg-secondary);
  aspect-ratio: 4 / 3;
}

.lifestyle-gallery--compact .lifestyle-gallery-photo {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Edge-to-edge (viewport-wide) galleries on home */
.lifestyle-gallery-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  box-sizing: border-box;
}

.lifestyle-gallery--fullwidth {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  gap: 2.25rem;
}

@media (min-width: 768px) {
  .lifestyle-gallery--fullwidth {
    gap: 2.75rem;
  }
}

.lifestyle-gallery--fullwidth .lifestyle-gallery-title {
  max-width: 60rem;
  font-size: 1.3rem;
  margin-bottom: 1.125rem;
}

@media (min-width: 768px) {
  .lifestyle-gallery--fullwidth .lifestyle-gallery-title {
    font-size: 1.45rem;
  }
}

/* One photo at a time: same carousel primitives as products */
.lifestyle-carousel-mount {
  width: 100%;
}

.lifestyle-carousel-frame {
  position: relative;
  width: 100%;
  max-width: min(780px, 100%);
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: transparent;
  aspect-ratio: 4 / 3;
  max-height: min(52vh, 480px);
}

.lifestyle-carousel-frame .product-image-gallery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lifestyle-carousel-frame .product-gallery-viewport {
  background: transparent;
}

.lifestyle-carousel-frame .product-gallery-slide {
  background: transparent;
}

.lifestyle-carousel-frame .product-gallery-slide img {
  max-width: 100%;
  max-height: 100%;
}

@media (min-width: 640px) {
  .lifestyle-carousel-frame {
    max-width: min(860px, 100%);
    max-height: min(54vh, 520px);
  }
}

@media (min-width: 900px) {
  .lifestyle-carousel-frame {
    max-width: min(920px, 90vw);
    max-height: min(52vh, 560px);
    aspect-ratio: 3 / 2;
  }
}

@media (min-width: 768px) {
  .lifestyle-carousel-frame .product-gallery-nav {
    width: 34px;
    height: 34px;
  }

  .lifestyle-carousel-frame .product-gallery-nav-icon {
    width: 15px;
    height: 15px;
  }
}

.lifestyle-gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .lifestyle-gallery-photo img {
    transition: transform 0.35s ease;
  }

  .lifestyle-gallery-figure:hover .lifestyle-gallery-photo img {
    transform: scale(1.03);
  }
}

.social-cta {
  margin-top: 2rem;
  text-align: center;
}

.social-cta .btn {
  margin: 0.25rem;
}

.social-handle {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Slogan Announcement Bar */
.slogan-bar {
  background-color: var(--color-primary);
  text-align: center;
  padding: 0.5rem 1rem;
  overflow: hidden;
  position: relative;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slogan-bar-track {
  position: relative;
  width: 100%;
  height: 1.25rem;
}

.slogan-bar-item {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slogan-bar-item.active {
  opacity: 1;
}

@media (min-width: 768px) {
  .slogan-bar-item {
    font-size: 0.95rem;
  }

  /* Roomier bar on desktop so text at 0.95rem matches visual weight everywhere (incl. fixed bar on home) */
  .slogan-bar {
    min-height: 2.75rem;
    padding: 0.625rem 1.25rem;
  }

  .slogan-bar-track {
    height: 1.5rem;
  }
}

@media (max-width: 640px) {
  .slogan-bar-item {
    font-size: 0.75rem;
  }

  .slogan-bar {
    padding: 0.4rem 0.75rem;
  }
}

/* Steps Section */
.steps {
  padding: 4rem 0;
  background-color: #FFFFFF;
}

.steps-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  position: relative;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 700;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

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

/* Pickup Info Banner */
.pickup-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-tertiary);
  border-left: 4px solid var(--color-header);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.pickup-info-banner-lg {
  padding: 1.5rem 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pickup-info-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

/* Two columns: copy | QR */
.pickup-info-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
}

.pickup-info-text {
  flex: 1 1 16rem;
  min-width: 0;
}

.pickup-info-qr-col {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pickup-info-qr {
  margin: 0;
  text-align: center;
  max-width: 148px;
}

.pickup-info-qr-img {
  display: block;
  width: 120px;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 2px solid rgba(46, 106, 0, 0.12);
  background: #fff;
}

.pickup-info-qr-caption {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--color-text-muted);
  font-weight: 600;
}

.pickup-info-text strong {
  display: block;
  font-family: var(--font-header);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.pickup-info-text p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pickup-info-banner-lg .pickup-info-text p {
  font-size: 1rem;
}

@media (max-width: 640px) {
  .pickup-info-banner {
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .pickup-info-icon {
    font-size: 1.5rem;
  }

  .pickup-info-text strong {
    font-size: 1rem;
  }

  .pickup-info-body {
    flex-direction: column;
    align-items: stretch;
  }

  .pickup-info-qr-col {
    justify-content: center;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(46, 106, 0, 0.1);
  }

  .pickup-info-qr {
    max-width: none;
  }

  .pickup-info-qr-img {
    width: 132px;
  }
}

/* Box Size Selector */
.box-sizes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .box-sizes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.box-size-card {
  position: relative;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 3px solid var(--color-bg-secondary);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.box-size-card:hover {
  border-color: var(--color-header);
}

.box-size-card.selected {
  border-color: var(--color-primary);
  background: var(--color-bg-tertiary);
}

.box-size-badge {
  position: absolute;
  top: -0.75rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--color-button);
  color: var(--color-button-text);
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.box-size-card h3 {
  margin-bottom: 0.25rem;
}

.box-size-card .price {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.box-size-card .discount {
  color: var(--color-primary);
  font-weight: 600;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Product Card */
.product-card {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

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

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.product-card-image.has-image {
  font-size: inherit;
}

/* Single image only; gallery thumbnails use .product-gallery-slide img */
.product-card-image > img {
  box-sizing: border-box;
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Product image gallery (home + builder cards) */
.product-image-gallery {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(46, 106, 0, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  pointer-events: auto;
}

.product-gallery-nav:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.product-gallery-prev {
  left: 0.35rem;
}

.product-gallery-next {
  right: 0.35rem;
}

.product-gallery-nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.product-gallery-nav:focus-visible:not(:disabled) {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.product-gallery-nav-icon {
  display: block;
  flex-shrink: 0;
}

.product-gallery-viewport {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
  background: transparent;
  container-type: inline-size;
  container-name: product-gallery;
}

.product-gallery-viewport::-webkit-scrollbar {
  display: none;
}

.product-gallery-track {
  display: flex;
  flex-direction: row;
  height: 100%;
  align-items: stretch;
}

.product-gallery-slide {
  flex-grow: 0;
  flex-shrink: 0;
  /* Fallback before JS sets exact px = scrollport width (fixes “split” slide bug) */
  flex-basis: 100cqi;
  width: 100cqi;
  min-width: 100cqi;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.product-gallery-slide img {
  box-sizing: border-box;
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.product-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.4rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.25rem;
  pointer-events: none;
  z-index: 2;
}

.product-gallery-dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.product-gallery-dot:hover,
.product-gallery-dot:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.15);
}

.product-gallery-dot.active {
  background: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.product-card-image--gallery .product-image-gallery {
  position: absolute;
  inset: 0;
}

.product-card-image--gallery:not(.has-image) {
  font-size: inherit;
}

.product-card-category {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.product-card-category.veggie {
  background: var(--color-veggie-light);
  color: var(--color-veggie);
}

.product-card-category.meat {
  background: var(--color-meat-light);
  color: var(--color-meat);
}

.product-card-content {
  padding: 1rem;
}

.product-card-title {
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.product-card-description {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.product-card-price {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--color-primary);
}

.product-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.product-trust-badge {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.2rem 0.5rem;
}

.product-details-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-bg-secondary);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-bg-secondary);
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover:not(:disabled) {
  background: var(--color-primary);
  color: white;
}

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

.quantity-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.add-btn {
  padding: 0.5rem 1rem;
  background: var(--color-button);
  color: var(--color-button-text);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-header);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.add-btn:hover:not(:disabled) {
  background: var(--color-button-hover);
  transform: scale(1.05);
}

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

/* Category Filters */
.category-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  border: 2px solid var(--color-bg-secondary);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-header);
}

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

/* Sidebar Cart */
.sidebar-cart {
  position: sticky;
  top: 100px;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.sidebar-cart-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-bg-secondary);
}

.slot-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slot-dots {
  display: none;
}

.slot-counter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.slot-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.25rem;
}

.slot-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.slot-progress-fill.complete {
  background: var(--color-header);
}

.cart-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-bg-tertiary);
}

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

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-emoji {
  font-size: 1.5rem;
}

.cart-item-name {
  font-weight: 600;
}

.cart-item-qty {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.cart-total {
  padding-top: 1rem;
  border-top: 2px solid var(--color-bg-secondary);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cart-total-row.final {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Delivery Options */
.delivery-options {
  display: grid;
  gap: 1rem;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-bg);
  border: 2px solid var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.delivery-option:hover {
  border-color: var(--color-header);
}

.delivery-option.selected {
  border-color: var(--color-primary);
  background: var(--color-bg-tertiary);
}

.delivery-option input {
  display: none;
}

.delivery-radio {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-bg-secondary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.delivery-option.selected .delivery-radio {
  border-color: var(--color-primary);
}

.delivery-option.selected .delivery-radio::after {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.delivery-info h4 {
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.delivery-info p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.shipping-soon-banner {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 1.1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(46, 106, 0, 0.06);
}

.delivery-coming-soon {
  padding: 1rem;
  background: var(--color-bg-secondary);
  border: 2px dashed rgba(46, 106, 0, 0.2);
  border-radius: var(--radius-lg);
  pointer-events: none;
  user-select: none;
}

.delivery-coming-soon-label {
  margin-bottom: 0.35rem;
}

.delivery-coming-soon-label h4 {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.35;
}

.delivery-coming-soon-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.delivery-soon-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  background: rgba(247, 191, 9, 0.35);
  color: #5c4a00;
}

/* Builder Layout */
.builder-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

@media (min-width: 1024px) {
  .builder-layout {
    grid-template-columns: 1fr 350px;
  }
}

.builder-main {
  min-width: 0;
}

.builder-section {
  margin-bottom: 2rem;
}

.builder-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.builder-step-number {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-header);
  font-weight: 700;
}

/* Checkout Summary */
.checkout-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.checkout-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-bg-secondary);
}

.checkout-items {
  margin-bottom: 1.5rem;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-bg-tertiary);
}

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

.checkout-item-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkout-item-emoji {
  font-size: 1.5rem;
}

.checkout-item-name {
  font-weight: 600;
}

.checkout-item-qty {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.checkout-item-price {
  font-weight: 600;
}

.checkout-summary {
  padding-top: 1rem;
  border-top: 2px solid var(--color-bg-secondary);
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.checkout-row.total {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--color-bg-secondary);
}

/* Checkout Info Cards */
.checkout-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
}

.checkout-info-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.checkout-info-title {
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.checkout-info-text {
  color: var(--color-text-muted);
  margin: 0;
}

.checkout-discount-badge {
  color: var(--color-primary);
  font-weight: 600;
}

.checkout-subscription-info {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  text-align: center;
}

.checkout-subscription-info p {
  margin: 0;
  color: var(--color-text-muted);
}

.checkout-subscription-price {
  color: var(--color-primary);
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.visible {
  display: flex;
}

.builder-public-notice-modal.modal-overlay {
  z-index: 1150;
}

.builder-public-notice-modal .modal-content {
  text-align: left;
  max-width: 28rem;
}

.builder-public-notice-modal .modal-title {
  text-align: center;
}

.builder-public-notice-modal .modal-actions {
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 500px;
  margin: 1rem;
  text-align: center;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.modal-title {
  margin-bottom: 1rem;
}

.modal-text {
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Product Details Modal */
body.no-scroll {
  overflow: hidden;
}

.product-details-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1200;
}

.product-details-modal.open {
  display: block;
}

.product-details-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.product-details-dialog {
  position: relative;
  width: min(820px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-details-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  border: none;
  background: transparent;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
}

.product-details-header {
  padding: 1.25rem 1.25rem 0.75rem;
}

.product-details-header h3 {
  margin: 0 0 0.35rem;
}

.product-details-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.25rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}

.product-details-tab {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.product-details-tab.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.product-details-body {
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto;
}

.product-details-panel {
  display: none;
}

.product-details-panel.active {
  display: block;
}

.details-block {
  display: grid;
  gap: 0.75rem;
}

.details-block h4 {
  margin: 0;
}

.details-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.details-note {
  color: var(--color-text-muted);
  margin: 0;
}

.nutrition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.nutrition-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  background: var(--color-bg);
}

.nutrition-card h4 {
  margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
  .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer p, .footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Mobile Cart Bar */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-bg-secondary);
  padding: 1rem;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

@media (max-width: 1023px) {
  .mobile-cart-bar {
    display: block;
  }
  
  .sidebar-cart {
    display: none;
  }
}

.mobile-cart-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-cart-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-cart-slots {
  font-weight: 600;
}

.mobile-cart-total {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--color-primary);
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

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

.animate-pulse {
  animation: pulse 0.3s ease-out;
}

.animate-bounce {
  animation: bounce 0.3s ease-out;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.progress-step.active {
  background: var(--color-primary);
  color: white;
}

.progress-step.completed {
  background: var(--color-header);
  color: white;
}

.progress-step-number {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Enhanced Mobile Styles */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .features, .steps {
    padding: 3rem 0;
  }
  
  .feature-card, .step-card {
    padding: 1.5rem;
  }
  
  .product-grid {
    gap: 0.75rem;
  }
  
  .product-card-image {
    font-size: 3rem;
  }
  
  .product-card-content {
    padding: 0.75rem;
  }
  
  .product-card-title {
    font-size: 0.875rem;
  }
  
  .product-card-description {
    display: none;
  }
  
  .builder-section-header h2 {
    font-size: 1.25rem;
  }
  
  .progress-steps {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .progress-step {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .category-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .filter-btn {
    white-space: nowrap;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
  
  /* Add padding for mobile cart bar */
  .builder-layout {
    padding-bottom: 5rem;
  }
}

/* Smooth scrolling on touch devices */
@media (hover: none) {
  .category-filters {
    -webkit-overflow-scrolling: touch;
  }
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #1a4d00;
    --color-text-muted: #444444;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .navbar, .footer, .mobile-cart-bar, .btn {
    display: none !important;
  }
  
  .checkout-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}

/* About Page */
.about-hero {
  padding: 4rem 0 2rem;
  background: linear-gradient(135deg, var(--color-bg-tertiary) 0%, var(--color-bg-secondary) 100%);
}

.about-hero h1 {
  margin-bottom: 1rem;
}

.about-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.about-tab {
  padding: 0.75rem 1.5rem;
  background: var(--color-bg);
  border: 2px solid var(--color-bg-secondary);
  border-radius: var(--radius-full);
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text);
}

.about-tab:hover {
  border-color: var(--color-header);
}

.about-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.about-section {
  padding: 2rem 0 4rem;
}

.about-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.about-card-highlight {
  border-top: 4px solid var(--color-primary);
}

.about-card-content {
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
  align-items: flex-start;
}

.about-card-icon {
  font-size: 5rem;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card-photo {
  width: 150px;
  height: 150px;
  overflow: hidden;
  padding: 0;
}

.about-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .about-card-photo {
    width: 180px;
    height: 180px;
  }
}

.about-card-text h2 {
  margin-bottom: 0.25rem;
}

.about-card-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-values {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
}

.about-value-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.about-value strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}

.about-value p {
  margin: 0;
  font-size: 0.875rem;
}

.about-slogan {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .about-slogan {
    font-size: 1.75rem;
  }
}

.about-partners-section-title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-bg-secondary);
}

.about-partner-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-header);
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.about-partner-link:hover {
  color: var(--color-primary-light);
}

.about-partner-header h3 a {
  color: var(--color-primary);
  text-decoration: none;
}

.about-partner-header h3 a:hover {
  text-decoration: underline;
}

/* Partner Styles */
.about-partner-card {
  padding: 0;
  margin-bottom: 2rem;
}

.about-partner-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-bg-secondary);
}

.about-partner-logo {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.about-partner-header h3 {
  margin-bottom: 0.25rem;
}

.about-partner-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-button);
  color: var(--color-button-text);
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.about-partner-body {
  padding: 2rem;
}

.about-partner-body > p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-partner-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .about-partner-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-partner-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
}

.about-partner-detail-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.about-partner-detail strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}

.about-partner-detail p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.about-transparency-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-tertiary);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
}

.about-transparency-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.about-transparency-note h4 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.about-transparency-note p {
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .about-card-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .about-card-icon {
    width: 100px;
    height: 100px;
    font-size: 4rem;
  }

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

  .about-partner-header {
    padding: 1.25rem 1.5rem;
  }

  .about-partner-body {
    padding: 1.5rem;
  }

  .about-transparency-note {
    flex-direction: column;
    text-align: center;
  }
}

/* Contact Form */
.contact-form-card {
  max-width: 650px;
  margin: 0 auto;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form-group {
  margin-bottom: 1.25rem;
}

.contact-form-group label {
  display: block;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
  outline: none;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  border-color: var(--color-primary);
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
  color: var(--color-text-light);
}

.contact-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-success {
  text-align: center;
  padding: 2rem;
}

.contact-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-success h3 {
  margin-bottom: 0.5rem;
}

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

/* Loading state for buttons */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Tooltip styles */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background: var(--color-text);
  color: white;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid var(--color-button);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* Selection styles */
::selection {
  background: var(--color-header);
  color: white;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-header);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}
