/* ============================================================
   MariCooks — warm bakery palette (flows with Florida Nature Prints)
   Soft rose cream + cocoa + soft green accents
   ============================================================ */

:root {
  /* Map “blue” tokens to cocoa/rose so shared layout classes still work */
  --blue-50: #faf6f4;
  --blue-100: #f3e8e4;
  --blue-200: #e8d0c8;
  --blue-400: #c4897a;
  --blue-600: #8b5348;
  --blue-700: #6e4038;
  --blue-800: #4a2c28;

  --green-50: #f3f7f2;
  --green-100: #e0ece0;
  --green-200: #c2d8c2;
  --green-400: #7aab7e;
  --green-600: #4a7c52;
  --green-700: #3a6342;

  --rose: #eed6d3;
  --cocoa: #4a2c28;
  --sand: #f7f1ec;
  --cream: #fbf8f5;
  --text: #2c211f;
  --text-soft: #6b5650;
  --border: #e8d8d2;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(74, 44, 40, 0.08);
  --shadow-hover: 0 14px 40px rgba(74, 44, 40, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

/* Carousel slides must fill the banner box (override global img height:auto) */
.banner-carousel .banner-slide,
.hero-media .banner-slide {
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-600);
}

/* ---- Layout ---- */
.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

main {
  flex: 1;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.nav-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-800);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo span {
  color: var(--green-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-700);
  border-bottom-color: var(--green-400);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--blue-700);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: var(--shadow);
}

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

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

.btn-outline {
  background: transparent;
  border-color: var(--blue-400);
  color: var(--blue-700);
}

.btn-outline:hover {
  background: var(--blue-50);
  color: var(--blue-800);
}

/* Shipping & packaging box on shop */
.shipping-box {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shipping-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.shipping-lead {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.shipping-tube {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--blue-50, #f0f7f4);
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(26, 61, 46, 0.1);
}

.shipping-tube strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue-800, #1a3d2e);
  font-size: 0.95rem;
}

.shipping-tube p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.shipping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.shipping-table th,
.shipping-table td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--border);
}

.shipping-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  font-weight: 600;
}

.shipping-table td:last-child,
.shipping-table th:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--blue-800, #1a3d2e);
}

.shipping-table .ship-muted {
  color: var(--text-soft);
  font-weight: 400;
}

.shipping-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.order-shipping-estimate {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(26, 61, 46, 0.06),
    rgba(26, 61, 46, 0.02)
  );
  border: 1px solid rgba(26, 61, 46, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.order-shipping-estimate strong {
  font-size: 0.9rem;
}

.order-shipping-estimate > span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-800, #1a3d2e);
  margin-left: auto;
}

.order-shipping-estimate p {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.btn-payment {
  background: linear-gradient(135deg, #635bff 0%, #0a2540 100%);
  color: var(--white);
  width: 100%;
  max-width: 320px;
}

.btn-payment:hover {
  color: var(--white);
  box-shadow: var(--shadow-hover);
  opacity: 0.95;
}

.btn-block {
  width: 100%;
}

/* ---- Hero (cookie photo band) ---- */
.hero {
  position: relative;
  min-height: min(68vh, 560px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: #4a2c28;
}

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

.hero-media img,
.banner-carousel .banner-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Crossfade carousel for hero + page banners */
.banner-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.banner-carousel .banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.banner-carousel .banner-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-media-veil,
.page-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-media-veil {
  background:
    linear-gradient(
      105deg,
      rgba(42, 24, 22, 0.78) 0%,
      rgba(74, 44, 40, 0.5) 48%,
      rgba(60, 36, 32, 0.4) 100%
    ),
    linear-gradient(to top, rgba(30, 16, 14, 0.55) 0%, transparent 42%);
}

.page-hero-veil {
  /* Soft solid-ish wash — avoids visible banding / “lines” on mobile */
  background: linear-gradient(
    135deg,
    rgba(250, 246, 244, 0.9) 0%,
    rgba(247, 241, 236, 0.86) 50%,
    rgba(240, 236, 230, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 3.5rem 0;
}

.hero-caption {
  margin: 1.25rem 0 0 !important;
  font-size: 0.88rem !important;
  opacity: 0.85 !important;
  letter-spacing: 0.02em;
  max-width: none !important;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  opacity: 0.95;
  margin-bottom: 1.75rem;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

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

.hero .btn-primary:hover {
  background: var(--green-50);
  color: var(--green-700);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* ---- Sections ---- */
.section {
  padding: 4rem 0;
}

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

.section-green {
  background: var(--green-50);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--blue-800);
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-100), var(--green-100));
  padding: 2.75rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
}

.page-hero .container {
  position: relative;
  z-index: 3;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  color: var(--blue-800);
  margin-bottom: 0.4rem;
}

.page-hero p {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 50ch;
}

/* ---- Feature cards (home) ---- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--blue-800);
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---- Gallery: category covers + accordion dropdowns ---- */
.category-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.category-choice {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  width: 100%;
}

.category-choice:hover,
.category-choice:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-600, #2f6b43);
  outline: none;
}

.category-choice-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--blue-100), var(--green-100));
  overflow: hidden;
}

.category-choice-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.category-choice:hover .category-choice-img img {
  transform: scale(1.04);
}

.category-choice-body {
  padding: 0.9rem 1rem 1.05rem;
}

.category-choice-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  color: var(--blue-800, #143d22);
}

.category-choice-body p {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.category-choice-meta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-700, #2a8f55);
  letter-spacing: 0.02em;
}

.gallery-top-bar,
.gallery-browse-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.35rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-select-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  color: var(--blue-800, #143d22);
  font-size: 0.92rem;
}

.gallery-select-label select {
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--blue-800, #143d22);
  min-width: 12rem;
  cursor: pointer;
}

.gallery-count {
  margin: 0 0 0 auto;
  font-size: 0.88rem;
  color: var(--text-soft);
  font-weight: 600;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-soft);
  padding: 2rem 1rem;
}

/* Mixed “all categories” grid (jumbled order, not by theme) */
.gallery-all-mixed {
  margin: 0.25rem 0 1.25rem;
}

.gallery-all-mixed[hidden] {
  display: none !important;
}

.gallery-all-mixed .photo-grid {
  margin-top: 0.35rem;
}

/* Accordion category sections */
.gallery-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-accordion[hidden] {
  display: none !important;
}

.gallery-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-section-toggle {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
  width: 100%;
  padding: 0.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.gallery-section-toggle:hover {
  background: rgba(47, 107, 67, 0.06);
}

.gallery-section-cover {
  position: relative;
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-100), var(--green-100));
  flex-shrink: 0;
}

.gallery-section-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-section-text h2 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  color: var(--blue-800, #143d22);
}

.gallery-section-text p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.gallery-section-chevron {
  font-size: 1.25rem;
  color: var(--green-700, #2a8f55);
  transition: transform 0.2s ease;
  padding-right: 0.35rem;
}

.gallery-section.is-open .gallery-section-chevron {
  transform: rotate(180deg);
}

.gallery-section-panel {
  display: none;
  padding: 0 0.85rem 1.1rem;
  border-top: 1px solid var(--border);
}

.gallery-section.is-open .gallery-section-panel {
  display: block;
  padding-top: 1rem;
}

.gallery-section-panel .photo-grid {
  margin-top: 0.25rem;
}

@media (max-width: 560px) {
  .gallery-count {
    margin-left: 0;
    width: 100%;
  }

  .gallery-browse-bar,
  .gallery-top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-select-label {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-section-toggle {
    grid-template-columns: 88px 1fr auto;
  }

  .gallery-section-cover {
    width: 88px;
    height: 72px;
  }
}

/* ---- Photo grid ---- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.photo-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.photo-card .photo-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: linear-gradient(160deg, var(--blue-100), var(--green-100));
  overflow: hidden;
}

/* USPS mail-ready badge on menu / home product cards */
.ships-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  background: linear-gradient(180deg, #3cb371, #2a8f55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.ships-inline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-700, #2a8f55);
  white-space: nowrap;
}

.photo-card .photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the card so the photo is always visible */
  object-position: center;
  display: block;
}

.photo-card .photo-body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.photo-card h3 {
  font-size: 1.05rem;
  color: var(--blue-800);
  margin-bottom: 0.25rem;
}

.photo-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.photo-card .photo-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.5rem;
}

.photo-card .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ---- Shop layout ---- */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.shop-info h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--blue-800);
  margin-bottom: 0.75rem;
}

.shop-info > p {
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.size-list {
  list-style: none;
  margin-bottom: 1.75rem;
}

.size-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.size-list .size-label {
  font-weight: 500;
  color: var(--text);
}

.size-list .size-label {
  font-weight: 500;
  color: var(--text);
}

.size-list .size-price {
  font-weight: 600;
  color: var(--green-600);
  white-space: nowrap;
  margin-left: 0.75rem;
}

.size-desc {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

.product-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.product-type-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
}

.product-type-card.is-featured {
  border-color: var(--green-600, #2f6b43);
  box-shadow: 0 8px 28px rgba(47, 107, 67, 0.12);
}

.product-type-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: linear-gradient(180deg, #3cb371, #2a8f55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.product-type-icon {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}

.product-type-card h3 {
  margin: 0 0 0.4rem;
  color: var(--blue-800);
  font-size: 1.2rem;
}

.product-type-card > p {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.order-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.55;
}

.order-steps li {
  margin-bottom: 0.55rem;
}

.notify-box {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: #f3faf6;
  border: 1px solid rgba(47, 107, 67, 0.25);
  border-radius: var(--radius);
}

.notify-box h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  color: var(--blue-800);
}

.notify-box ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.notify-box li {
  margin-bottom: 0.4rem;
}

.notify-box-tip {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--blue-800);
}

.notify-box code,
.payment-note code {
  font-size: 0.82em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.payment-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.payment-box h3 {
  font-size: 1.05rem;
  color: var(--blue-800);
  margin-bottom: 0.5rem;
}

.payment-box p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.payment-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.btn-payment-alt {
  background: #1a4a6b !important;
  border-color: #0f3048 !important;
}

.form-after-submit {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  text-align: center;
}

.payment-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.75rem;
}

/* ---- Forms ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--blue-800);
  margin-bottom: 0.35rem;
}

.form-card .form-intro {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: 0.35rem;
}

.form-group .hint {
  font-weight: 400;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(90, 159, 196, 0.2);
  background: var(--white);
}

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

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

.form-message {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.form-message.success {
  display: block;
  background: var(--green-100);
  color: var(--green-700);
  border: 1px solid var(--green-200);
}

.form-message.error {
  display: block;
  background: #fdecea;
  color: #9b2c2c;
  border: 1px solid #f5c6c2;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--blue-800);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--blue-100), var(--green-100));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-details h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--blue-800);
  margin-bottom: 0.75rem;
}

.contact-details p {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.contact-details a {
  font-weight: 600;
}

/* ---- CTA band ---- */
.cta-band {
  text-align: center;
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--blue-600), var(--green-600));
  color: var(--white);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.6rem;
}

.cta-band p {
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--blue-700);
}

.cta-band .btn-primary:hover {
  background: var(--green-50);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--blue-800);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-brand span {
  color: var(--green-200);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

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

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

/* ---- Preview notice (when Formspree not set up) ---- */
.setup-notice {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  color: #6b5200;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.setup-notice code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ---- Mobile ---- */
@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.75rem 0.75rem;
    gap: 0.2rem;
    display: none;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  /* No full-width underlines across Menu / Recipes / About, etc. */
  .nav-links a {
    padding: 0.7rem 0.85rem;
    border-bottom: none;
    border-radius: 10px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-bottom: none;
    background: rgba(74, 44, 40, 0.06);
    color: var(--blue-700);
  }

  .nav-links a.active {
    background: rgba(74, 124, 82, 0.12);
    color: var(--green-700);
    font-weight: 650;
  }

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

  .shop-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(70vh, 520px);
  }

  .hero-media,
  .banner-carousel {
    /* Avoid subpixel seams from layered slides on small screens */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .page-hero {
    padding: 2rem 0 1.75rem;
    /* Keep banner media clipped; no stray edge lines */
    isolation: isolate;
  }

  .page-hero h1,
  .page-hero p {
    /* Stronger text over photo wash on small screens */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  }

  .gallery-top-bar,
  .gallery-browse-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .gallery-count {
    margin: 0;
  }

  .gallery-select-label {
    flex-wrap: wrap;
  }

  .gallery-select-label select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .recipe-group h2 {
    font-size: 1.25rem;
    padding-bottom: 0.35rem;
    /* Short accent instead of a line across the full screen */
    border-bottom: none;
    box-shadow: none;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    padding-inline: 0.15rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .photo-grid,
  .recipe-index-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 1.5rem, var(--max));
  }
}

/* MariCooks product price on cards */
.product-price {
  font-weight: 700 !important;
  color: var(--blue-800) !important;
  font-size: 1.05rem !important;
  margin: 0.15rem 0 0.35rem !important;
  opacity: 1 !important;
}

/* ---- Recipes from X ---- */
.recipes-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* ---- Recipes index (category groups + cards) ---- */
.recipe-groups {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.recipe-group h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--blue-800);
  margin: 0 0 0.9rem;
}

.recipe-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}

.recipe-index-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.recipe-index-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.recipe-index-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--blue-100), var(--green-100));
  overflow: hidden;
}

.recipe-index-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-index-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.recipe-index-body {
  padding: 0.95rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.recipe-index-body h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--blue-800);
}

.recipe-index-blurb {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.4;
  flex: 1;
}

.recipe-index-cta {
  margin-top: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--green-700, #2a8f55);
}

.recipe-empty {
  color: var(--text-soft);
}

.recipe-crumb {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.recipe-crumb a {
  color: var(--blue-700);
}

.recipe-detail-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.recipe-detail-gallery.multi {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.recipe-detail-gallery img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  background: var(--sand);
}

.recipe-video-wrap {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}

.recipe-video-wrap video {
  display: block;
  width: 100%;
  max-height: 480px;
  margin: 0 auto;
}

.recipe-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.recipe-detail-col h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue-800);
  margin: 0 0 0.65rem;
}

.recipe-servings {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.recipe-ingredients {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
}

.recipe-ingredients li {
  margin-bottom: 0.4rem;
  line-height: 1.4;
  font-size: 0.95rem;
}

.recipe-tips {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  background: var(--green-50, #eef8f1);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.recipe-related-block {
  margin-top: 1.25rem;
}

.recipe-related-block h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--blue-800);
}

.recipe-related-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.recipe-back {
  margin-top: 1.75rem;
}

.recipe-back .btn-outline {
  border-color: var(--blue-600);
  color: var(--blue-700);
}

.recipe-back .btn-outline:hover {
  background: var(--blue-50);
  color: var(--blue-800);
}

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

.recipe-card {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
}

.recipe-photos {
  background: var(--sand);
  min-height: 200px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  align-content: start;
}

.recipe-photos.multi {
  grid-template-columns: 1fr 1fr;
}

.recipe-photos img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  max-height: 280px;
  object-fit: cover;
}

.recipe-photos.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
}

.recipe-body {
  padding: 1.15rem 1.25rem 1.25rem 0;
}

.recipe-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--blue-800);
  margin-bottom: 0.35rem;
}

.recipe-blurb {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.recipe-steps {
  margin: 0 0 1rem 0;
  padding-left: 0;
  list-style: none;
}

.recipe-steps li {
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 0.4rem;
  color: var(--text);
  display: flex;
  gap: 0.4rem;
}

.recipe-steps .step-n {
  color: var(--blue-600);
  font-weight: 700;
  flex-shrink: 0;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.recipe-date {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.recipe-source {
  padding: 0.4rem 0.85rem !important;
  font-size: 0.88rem !important;
  border-color: var(--blue-600) !important;
  color: var(--blue-700) !important;
}

.recipe-source:hover {
  background: var(--blue-50) !important;
}

.recipe-related {
  font-size: 0.85rem;
}

.recipes-footnote {
  margin-top: 1.75rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  max-width: 52rem;
}

@media (max-width: 720px) {
  .recipe-card {
    grid-template-columns: 1fr;
  }
  .recipe-body {
    padding: 0 1rem 1.15rem;
  }
  .recipe-photos img {
    max-height: 220px;
  }
}

.btn-outline {
  /* ensure outline is readable on dark hero */
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
