@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  /* Funny Farm locked palette (from Tammi's master brand guide) */
  --ff-cream: #f8e7c6;
  --ff-cream-soft: #f7eedc;
  --ff-honey-gold: #f4c430;
  --ff-golden-text: #f2c94c;
  --ff-amber-light: #e39a3b;
  --ff-amber-mid: #b86a2b;
  --ff-amber-deep: #8b4a1e;
  --ff-ink: #4b2a14;
  --ff-cherry-red: #c83424;
  --ff-auburn-spice: #b44a1d;
  --ff-wing-glow: #ffe6a3;

  --honey-gold: #f2b850;
  --honey-amber: #d98b1f;
  --honey-cream: #ffe6a0;
  --honey-shadow: #3b2408;
  --text-dark: #3b2408;
  --panel-bg: rgba(255, 252, 240, 0.78);
  --panel-border: rgba(255, 224, 170, 0.7);
  --panel-shadow: 0 18px 40px rgba(59, 36, 8, 0.18);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --font-head: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html,
body {
  height: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;

  /* top layer: single glow (never tiles) */
  background-image:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 240, 190, 0.65) 0%,
      rgba(255, 200, 90, 0.28) 32%,
      rgba(255, 160, 40, 0.10) 52%,
      rgba(0, 0, 0, 0) 70%
    ),
    url("../img/backgrounds/honeycomb-tile.png");

  background-repeat: no-repeat, repeat;
  background-position: top right, top left;
  background-size: auto, 420px 420px;
  background-attachment: scroll, scroll;
  background-color: #c87a10;
}


h1,
h2,
h3,
.site-branding h1 {
  font-family: var(--font-head);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h2,
h3 {
  letter-spacing: -0.012em;
}

a {
  color: var(--honey-shadow);
  text-decoration: none;
  font-weight: 600;
}

a:hover,
a:focus-visible {
  color: var(--honey-amber);
}

.button,
.button-primary,
button {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  border: 1px solid var(--honey-amber);
  background: var(--honey-cream);
  color: var(--honey-shadow);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible,
.button-primary:hover,
.button-primary:focus-visible,
button:hover,
button:focus-visible {
  background: #ffe1a1;
  border-color: #c6790f;
  box-shadow: 0 8px 20px rgba(59, 36, 8, 0.18);
  transform: translateY(-1px);
}

.container {
  width: min(960px, 100% - 2 * var(--space-5));
  margin: 0 auto;
}

.site-header,
.site-footer {
  padding: var(--space-4) 0;
  background: rgba(255, 248, 225, 0.7);
  backdrop-filter: blur(6px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 225, 0.86);
  border-bottom: 1px solid rgba(217, 139, 31, 0.28);
  box-shadow: 0 8px 18px rgba(59, 36, 8, 0.1);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(217, 139, 31, 0), rgba(217, 139, 31, 0.45), rgba(217, 139, 31, 0));
}

.site-footer {
  background: rgba(255, 248, 225, 0.78);
}

.site-header .container,
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-branding h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem);
}

.site-tagline {
  margin: 2px 0 0;
  font-size: 0.83rem;
  color: rgba(59, 36, 8, 0.72);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.site-nav a {
  padding: 7px var(--space-3);
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 248, 225, 0.4);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--honey-amber);
  background: rgba(255, 230, 160, 0.62);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"] {
  border-color: rgba(217, 139, 31, 0.55);
  background: rgba(255, 224, 144, 0.68);
}

main {
  padding: var(--space-7) 0;
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.content-panel {
  padding: var(--space-6);
  border-radius: 20px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
}

.content-panel h2 {
  margin-top: 0;
}

.locations-map {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
}

.lead-in {
  margin: 0 0 var(--space-2);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.product-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  padding: var(--space-4);
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
}

.product-card h3 {
  margin-top: 0;
}


.product-card-link {
  color: inherit;
  text-decoration: none;
}

.product-card-link:hover .product-photo,
.product-card-link:focus-visible .product-photo {
  transform: translateY(-1px);
}

.product-card-link:hover h3,
.product-card-link:focus-visible h3 {
  text-decoration: underline;
}

p {
  margin-bottom: 0;
}


.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: var(--space-5);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art__img {
  display: block;
  width: min(100%, 220px);
  max-width: 220px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 10px 18px rgba(59, 36, 8, 0.18));
}

.section-divider {
  display: flex;
  justify-content: center;
  margin: calc(var(--space-3) * -1) 0 calc(var(--space-3) * -1);
}

.section-divider img {
  display: block;
  width: min(100%, 520px);
  max-width: 520px;
  height: auto;
  opacity: 0.68;
}

.product-icon {
  display: block;
  width: clamp(48px, 6vw, 56px);
  height: auto;
  margin-bottom: var(--space-2);
  filter: drop-shadow(0 4px 8px rgba(59, 36, 8, 0.15));
}

.product-photo {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 160px;
  object-fit: contain;
  margin-bottom: var(--space-2);
  border-radius: 14px;
  background: rgba(255, 248, 225, 0.85);
  border: 1px solid var(--panel-border);
  box-shadow: 0 10px 18px rgba(59, 36, 8, 0.1);
}

.floating-bee {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  width: clamp(64px, 9vw, 98px);
  height: auto;
  opacity: 0.26;
  animation: floating-bee-drift 10s ease-in-out infinite;
}

.floating-bee--one {
  top: 108px;
  left: max(8px, calc(50vw - 610px));
}

.floating-bee--two {
  top: 42vh;
  right: max(12px, calc(50vw - 620px));
  animation-duration: 12s;
  animation-delay: -3.5s;
}

@keyframes floating-bee-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(2deg);
  }
}

.hero-blurb {
  max-width: 62ch;
  margin-top: var(--space-3);
  color: rgba(59, 36, 8, 0.82);
}

.text-link {
  align-self: center;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.signup-panel p {
  max-width: 64ch;
}

.signup-form {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.signup-form label {
  font-weight: 600;
}

.signup-form__fields {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.signup-form input[type="email"] {
  flex: 1 1 260px;
  min-width: min(260px, 100%);
  padding: 11px var(--space-4);
  border-radius: 999px;
  border: 1px solid var(--honey-amber);
  background: rgba(255, 248, 225, 0.92);
  color: var(--text-dark);
  font: inherit;
}

.signup-note {
  margin-top: var(--space-2);
  font-size: 0.92rem;
  color: rgba(59, 36, 8, 0.75);
}


.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: var(--space-5);
  align-items: start;
}

.feature-figure {
  margin: 0;
}

.feature-figure figcaption {
  margin-top: var(--space-2);
  font-size: 0.92rem;
  color: rgba(59, 36, 8, 0.8);
}

.lightbox-trigger,
.gallery-thumb {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  width: 100%;
}

.lightbox-trigger img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 10px 20px rgba(59, 36, 8, 0.14);
}

.farm-grid {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-gallery {
  margin-top: var(--space-5);
}

.mini-gallery h3 {
  margin: 0 0 var(--space-3);
}

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 30%);
  gap: var(--space-3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: var(--space-2) 2px var(--space-2) 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 139, 31, 0.55) rgba(255, 248, 225, 0.55);
}

.gallery-strip::-webkit-scrollbar {
  height: 8px;
}

.gallery-strip::-webkit-scrollbar-thumb {
  background: rgba(217, 139, 31, 0.5);
  border-radius: 999px;
}

.gallery-strip::-webkit-scrollbar-track {
  background: rgba(255, 248, 225, 0.55);
  border-radius: 999px;
}

.gallery-thumb {
  scroll-snap-align: start;
}

.gallery-thumb img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 8px 16px rgba(59, 36, 8, 0.12);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: var(--space-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 18, 4, 0.75);
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 2 * var(--space-5));
  padding: var(--space-6) var(--space-4) var(--space-4);
  border-radius: 18px;
  background: rgba(255, 252, 240, 0.98);
  border: 1px solid var(--panel-border);
  box-shadow: 0 18px 36px rgba(59, 36, 8, 0.35);
  display: grid;
  gap: var(--space-3);
}

.lightbox__image {
  width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 248, 225, 0.8);
}

.lightbox__caption {
  margin: 0;
  text-align: center;
  color: rgba(59, 36, 8, 0.84);
}

.lightbox__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

@media (max-width: 720px) {
  .container {
    width: min(960px, 100% - 2 * var(--space-4));
  }

  .site-header .container,
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-panel {
    padding: var(--space-5);
  }

  .site-tagline {
    font-size: 0.78rem;
  }

  .button-row {
    align-items: flex-start;
  }

  .text-link {
    width: 100%;
  }

  .signup-form__fields {
    width: 100%;
    flex-direction: column;
  }

  .signup-form input[type="email"],
  .signup-form__fields button {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero-art {
    order: -1;
  }

  .hero-art__img {
    max-width: 460px;
    width: min(100%, 460px);
  }

  .locations-map {
    height: 320px;
  }

  .media-split,
  .farm-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-trigger img {
    height: auto;
    max-height: 320px;
    object-fit: cover;
  }

  .gallery-strip {
    grid-auto-columns: minmax(170px, 72%);
  }

  .lightbox {
    padding: var(--space-4);
  }

  .lightbox__panel {
    max-height: calc(100vh - 2 * var(--space-4));
    padding-top: var(--space-5);
  }

  .lightbox__image {
    max-height: calc(100vh - 200px);
  }
  .section-divider {
    margin: calc(var(--space-2) * -1) 0;
  }

  .floating-bee--one {
    top: 88px;
    left: 8px;
  }

  .floating-bee--two {
    top: 56vh;
    right: 8px;
  }
}

.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;
}

.chatbot-wrap {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  width: min(340px, calc(100vw - 2 * var(--space-4)));
  z-index: 40;
  transition: width 0.2s ease;
}

.chatbot-toggle {
  margin-left: auto;
  display: block;
  margin-bottom: var(--space-2);
}

.chatbot-panel {
  border-radius: 20px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 252, 240, 0.96);
  box-shadow: 0 18px 40px rgba(59, 36, 8, 0.24);
  overflow: hidden;
  transition: padding 0.2s ease;
}

.chatbot-mascot {
  display: flex;
  justify-content: center;
  padding-top: var(--space-3);
  cursor: pointer;
}

.chatbot-mascot img {
  display: block;
  max-width: 180px;
  height: auto;
  animation: bee-float 3.6s ease-in-out infinite, bee-wiggle 5s ease-in-out infinite;
}

.chatbot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
}

.chatbot-sub {
  font-size: 0.85rem;
  color: rgba(59, 36, 8, 0.72);
}

.chatbot-min {
  border-radius: 8px;
  padding: 0 var(--space-2);
  line-height: 1.2;
}

.chatbot-messages {
  max-height: 220px;
  overflow-y: auto;
  padding: 0 var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: max-height 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
}

.chatbot-message {
  font-size: 0.92rem;
  padding: var(--space-2) var(--space-3);
  border-radius: 12px;
}

.chatbot-message--bot {
  background: rgba(255, 230, 160, 0.45);
}

.chatbot-message--user {
  background: rgba(255, 252, 240, 1);
  border: 1px solid var(--panel-border);
  align-self: flex-end;
}

.chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-3);
  transition: padding 0.2s ease;
}

.chatbot-form input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--honey-amber);
  padding: var(--space-2) var(--space-3);
  font: inherit;
}

.chatbot-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.85rem;
  padding: 0 var(--space-4) var(--space-3);
  transition: opacity 0.2s ease, max-height 0.2s ease, padding 0.2s ease;
}

.chatbot-wrap.is-compact {
  width: min(240px, calc(100vw - 2 * var(--space-4)));
}

.chatbot-wrap.is-compact .chatbot-mascot {
  padding-top: var(--space-2);
}

.chatbot-wrap.is-compact .chatbot-header {
  padding: var(--space-2) var(--space-3);
}

.chatbot-wrap.is-compact .chatbot-sub {
  display: none;
}

.chatbot-wrap.is-compact .chatbot-messages {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

.chatbot-wrap.is-compact .chatbot-form {
  grid-template-columns: 1fr;
  padding: 0 var(--space-3) var(--space-2);
}

.chatbot-wrap.is-compact .chatbot-form button {
  display: none;
}

.chatbot-wrap.is-compact .chatbot-form input {
  padding: var(--space-1) var(--space-3);
  font-size: 0.9rem;
}

.chatbot-wrap.is-compact .chatbot-footer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

.chatbot-wrap.is-expanded {
  width: min(340px, calc(100vw - 2 * var(--space-4)));
}

.chatbot-wrap.is-minimized .chatbot-toggle {
  margin-bottom: 0;
}

@keyframes bee-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes bee-wiggle {
  0%,
  100% {
    rotate: 0deg;
  }
  25% {
    rotate: 1deg;
  }
  75% {
    rotate: -1deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-wrap,
  .chatbot-panel,
  .chatbot-messages,
  .chatbot-form,
  .chatbot-footer {
    transition: none;
  }

  .chatbot-mascot img {
    animation: none;
  }

  .floating-bee {
    animation: none;
  }

  .button,
  .button-primary,
  button,
  .site-nav a {
    transition: none;
  }

  .button:hover,
  .button:focus-visible,
  .button-primary:hover,
  .button-primary:focus-visible,
  button:hover,
  button:focus-visible,
  .site-nav a:hover,
  .site-nav a:focus-visible {
    transform: none;
  }
}

@media (max-width: 720px) {
  main {
    padding-bottom: 170px;
  }

  .chatbot-wrap {
    right: var(--space-3);
    left: var(--space-3);
    width: auto;
    bottom: var(--space-3);
  }

  .chatbot-wrap.is-compact {
    width: min(240px, calc(100vw - 2 * var(--space-3)));
  }

  .chatbot-messages {
    max-height: 180px;
  }
}

.shop-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.shop-header-row h2 {
  margin-bottom: var(--space-2);
}

.shop-cart-button {
  white-space: nowrap;
}

.shop-grid .product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Cherry Bomb Red CTAs per the brand guide's usage rules */
.button-cta,
.shop-grid .product-card button[data-add-to-cart],
.cart-actions .button,
#image-modal-add {
  background: var(--ff-cherry-red);
  border-color: var(--ff-auburn-spice);
  color: var(--ff-cream-soft);
}

.button-cta:hover,
.button-cta:focus-visible,
.shop-grid .product-card button[data-add-to-cart]:hover,
.shop-grid .product-card button[data-add-to-cart]:focus-visible,
.cart-actions .button:hover,
.cart-actions .button:focus-visible,
#image-modal-add:hover,
#image-modal-add:focus-visible {
  background: var(--ff-honey-gold);
  border-color: var(--ff-amber-mid);
  color: var(--ff-ink);
}

.shop-category-title {
  margin: var(--space-6) 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 3px solid #f4c430;
  color: #4b2a14;
}

.shop-category-title:first-of-type {
  margin-top: 0;
}

.shop-category-note {
  margin: var(--space-3) 0 var(--space-5);
  font-style: italic;
}

.shop-product-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(217, 139, 31, 0.3);
}

.shop-price {
  font-weight: 700;
  margin-top: auto;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 36, 8, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 60;
}

.cart-overlay.is-open {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: rgba(255, 252, 240, 0.98);
  border-left: 1px solid var(--panel-border);
  box-shadow: -16px 0 36px rgba(59, 36, 8, 0.2);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  z-index: 61;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--panel-border);
}

.cart-drawer__header h2 {
  margin: 0;
}

.cart-close {
  border-radius: 10px;
  padding: 0 var(--space-2);
  font-size: 1.25rem;
  line-height: 1.2;
}

.cart-items {
  overflow-y: auto;
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.cart-empty {
  margin: 0;
  color: rgba(59, 36, 8, 0.78);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-3);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: var(--space-3);
  background: rgba(255, 248, 225, 0.72);
}

.cart-item__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-item__details h3 {
  margin: 0;
  font-size: 1rem;
}

.cart-item__details p {
  margin: 0;
  font-weight: 600;
}

.cart-item__controls {
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cart-item__controls button {
  min-width: 34px;
  text-align: center;
  padding: 4px 10px;
}

.cart-item__controls span {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

button.cart-remove {
  border-radius: 10px;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-top: 1px solid var(--panel-border);
  font-weight: 700;
}

.cart-summary p {
  margin: 0;
}

.cart-summary small {
  display: block;
  color: rgba(59, 36, 8, 0.72);
  font-weight: 400;
}

.cart-actions {
  padding: 0 var(--space-4) var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.cart-actions .button,
.cart-actions button {
  width: 100%;
  text-align: center;
}

@media (max-width: 720px) {
  .shop-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-drawer {
    width: 100%;
  }
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-5);
  align-items: start;
}

.checkout-test-badge {
  display: inline-block;
  margin: 0 0 var(--space-3);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(242, 184, 80, 0.34);
  border: 1px solid rgba(217, 139, 31, 0.42);
  font-size: 0.82rem;
  font-weight: 700;
}

.checkout-line-item,
.checkout-totals > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(217, 139, 31, 0.2);
}

.checkout-line-item {
  align-items: center;
}

.checkout-line-item__thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 252, 240, 0.9);
  border: 1px solid rgba(217, 139, 31, 0.25);
  flex-shrink: 0;
}

.checkout-line-item__info {
  flex: 1;
  min-width: 0;
}

.checkout-line-item__name {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}

.checkout-line-item__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: 2px;
}

.checkout-line-item__controls button {
  padding: 0 10px;
  line-height: 1.5;
  font-size: 0.9rem;
}

.checkout-line-item__remove {
  font-size: 0.8rem;
}

.checkout-line-item__price {
  font-weight: 700;
  white-space: nowrap;
}

.checkout-empty {
  padding: var(--space-3) 0;
}

.checkout-note-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--honey-amber);
  border-radius: 10px;
  background: rgba(255, 252, 240, 0.94);
  color: var(--text-dark);
  font: inherit;
  resize: vertical;
}

.checkout-note-field {
  display: grid;
  gap: var(--space-1);
  font-weight: 600;
  margin-top: var(--space-3);
}

.checkout-test-card-hint {
  margin: var(--space-3) 0 0;
  padding: var(--space-2) var(--space-3);
  border-radius: 10px;
  background: rgba(255, 230, 163, 0.5);
  border: 1px dashed var(--ff-amber-mid);
  font-size: 0.85rem;
}

.checkout-test-card-hint code {
  font-weight: 700;
}

.checkout-totals {
  margin: var(--space-4) 0 0;
}

.checkout-totals dt,
.checkout-totals dd {
  margin: 0;
}

.checkout-total {
  font-weight: 800;
  font-size: 1.08rem;
}

.checkout-note {
  font-size: 0.86rem;
  color: rgba(59, 36, 8, 0.72);
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.checkout-fields label,
.square-card-wrap > label {
  display: grid;
  gap: var(--space-1);
  font-weight: 600;
}

.checkout-fields input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--honey-amber);
  border-radius: 10px;
  background: rgba(255, 252, 240, 0.94);
  color: var(--text-dark);
  font: inherit;
}

.checkout-field-wide {
  grid-column: 1 / -1;
}

.square-card-wrap {
  margin-top: var(--space-4);
}

#card-container {
  min-height: 90px;
  margin-top: var(--space-2);
}

.checkout-message {
  min-height: 1.6em;
  margin: var(--space-3) 0;
  color: #7b321a;
  font-weight: 600;
}

#pay-button {
  width: 100%;
}

.order-success {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 820px) {
  .checkout-layout,
  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .checkout-field-wide {
    grid-column: auto;
  }
}


.shop-product-image[role="button"] {
  cursor: zoom-in;
}

.image-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 36, 8, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 70;
}

.image-modal-overlay.is-open {
  opacity: 1;
}

.image-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  z-index: 71;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.image-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-modal__panel {
  width: min(720px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 252, 240, 0.98);
  box-shadow: 0 18px 40px rgba(59, 36, 8, 0.25);
}

.image-modal__header {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-3) var(--space-4) 0;
}

.image-modal__close {
  border-radius: 10px;
  padding: 0 var(--space-2);
  font-size: 1.25rem;
  line-height: 1.2;
}

.image-modal__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  padding: var(--space-3) var(--space-4);
}

.image-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0 var(--space-4) var(--space-4);
}

.image-modal__price {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
}

.image-modal__add {
  white-space: nowrap;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: var(--space-5);
  align-items: start;
}

.about-hero__media {
  margin: 0;
}

.about-hero__media figcaption {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: rgba(59, 36, 8, 0.75);
}

.about-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(217, 139, 31, 0.3);
  box-shadow: 0 10px 18px rgba(59, 36, 8, 0.10);
  cursor: zoom-in;
}

.about-inline-grid {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.about-figure {
  margin: 0;
}

.about-figure figcaption {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: rgba(59, 36, 8, 0.75);
}

.about-gallery {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.about-gallery .about-photo {
  height: 180px;
  object-fit: cover;
}

@media (max-width: 720px) {
  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-inline-grid {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .about-gallery .about-photo {
    height: auto;
    object-fit: contain;
  }
}
