/* ============================================================================
   TARRS COUNTRY STORE & CONSIGNMENT — STYLES
   Warm country store · vintage but clean · small-town friendly.
   ----------------------------------------------------------------------------
   Palette lives in :root below — change a value once, it updates everywhere.
   ========================================================================== */

:root {
  /* Brand palette */
  --cream:        #F7EFDF;   /* warm cream */
  --cream-soft:   #FBF6EC;   /* weathered white */
  --paper:        #FFFDF8;   /* card surface */
  --forest:       #2F4A3C;   /* deep forest green */
  --forest-deep:  #24382D;
  --sage:         #B7C7AC;   /* soft sage */
  --sage-soft:    #DCE4D3;
  --brown:        #6E5238;   /* warm brown */
  --gold:         #C8A96A;   /* antique gold (FSB gold) */
  --gold-deep:    #A9884A;
  --barn:         #9E3B2D;   /* muted barn red — accent only */
  --ink:          #2C2622;   /* espresso text */
  --ink-soft:     #5A5148;

  --radius:   14px;
  --radius-sm: 9px;
  --shadow:   0 12px 30px rgba(44, 38, 34, 0.10);
  --shadow-sm: 0 4px 14px rgba(44, 38, 34, 0.08);
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-soft);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--gold); color: var(--forest-deep); box-shadow: 0 8px 20px rgba(200, 169, 106, 0.35); }
.btn-primary:hover { background: var(--gold-deep); color: #fff; }

.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { background: #fff; color: var(--forest-deep); border-color: #fff; }

.btn-solid { background: var(--forest); color: #fff; }
.btn-solid:hover { background: var(--forest-deep); color: #fff; }

.btn-small { padding: 9px 16px; font-size: 0.85rem; background: var(--forest); color: #fff; }
.btn-small:hover { background: var(--forest-deep); color: #fff; }

.btn-block { width: 100%; padding: 15px; font-size: 1.05rem; }

/* ============================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: rgba(110, 82, 56, 0.14); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 112px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--forest);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.4rem;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(200, 169, 106, 0.35);
}
.brand-logo {
  width: 92px; height: 92px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cream-soft);
  box-shadow: 0 2px 10px rgba(44, 38, 34, 0.18);
}
.footer-logo { width: 108px; height: 108px; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.32rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brown); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; font-size: 0.94rem; color: var(--ink-soft); }
.nav a:hover { color: var(--forest); }
.nav .nav-cta {
  background: var(--forest);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--gold); color: var(--forest-deep); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }

/* ============================================================================
   HERO
   ========================================================================== */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  /* Real storefront photo (golden-hour). Swap images/hero.png to change it. */
  background: url("images/hero.png") center 38%/cover no-repeat;
  z-index: 0;
}
/* Dark green scrim so white hero text stays readable over the bright photo. */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,40,31,0.62) 0%, rgba(26,40,31,0.52) 45%, rgba(26,40,31,0.74) 100%);
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; text-align: center; padding: 96px 24px 88px; max-width: 860px; }
.hero-eyebrow { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; line-height: 1.02; text-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.hero-title span { color: var(--gold); font-style: italic; font-weight: 400; }
.hero-headline { font-family: var(--font-head); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.7rem); margin-top: 22px; color: #fdf7ea; }
.hero-sub { font-size: 1.08rem; max-width: 620px; margin: 14px auto 0; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---- Live "OPEN" hanging sign --------------------------------------- */
.open-sign {
  position: absolute;
  z-index: 3;
  top: 45%;                                  /* hangs down onto the awning (Pinpoint Y ~45) */
  left: 6%;                                   /* Pinpoint X ~6 */
  width: clamp(118px, 14vw, 176px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;              /* swings from where the chains meet */
  animation: sign-sway 5.5s ease-in-out infinite;
  will-change: transform;
}
.open-sign__board {
  width: 100%;
  height: auto;
  transition: filter 0.6s var(--ease), opacity 0.6s var(--ease);
}
.open-sign__status {
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(26, 40, 31, 0.72);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: background 0.4s var(--ease);
}

/* OPEN state — the board glows warm barn-red and the badge goes green. */
.open-sign.is-open .open-sign__board {
  filter: drop-shadow(0 0 10px rgba(200, 60, 45, 0.7)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: sign-glow 2.8s ease-in-out infinite;
}
.open-sign.is-open .open-sign__status { background: var(--forest); }

/* CLOSED state — board hangs dim and still, badge is muted. */
.open-sign.is-closed .open-sign__board { filter: grayscale(0.6) brightness(0.72); opacity: 0.9; }
.open-sign.is-closed { animation-duration: 8s; }
.open-sign.is-closed .open-sign__status { background: rgba(110, 82, 56, 0.85); }

@keyframes sign-sway {
  0%, 100% { transform: rotate(-2.4deg); }
  50%      { transform: rotate(2.4deg); }
}
@keyframes sign-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(200, 60, 45, 0.55)) drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
  50%      { filter: drop-shadow(0 0 20px rgba(210, 70, 52, 0.95)) drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
}

/* Visit-section live status line (mirrors the sign). */
.visit-status { font-weight: 700; margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; }
.visit-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-soft); flex-shrink: 0; }
.visit-status.open { color: var(--forest); }
.visit-status.open::before { background: #3f9d5a; box-shadow: 0 0 0 3px rgba(63, 157, 90, 0.22); }
.visit-status.closed { color: var(--barn); }
.visit-status.closed::before { background: var(--barn); }

/* Trust bar */
.trust-bar { position: relative; z-index: 2; background: rgba(36,56,45,0.55); border-top: 1px solid rgba(200,169,106,0.3); backdrop-filter: blur(4px); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; padding: 16px 24px; }
.trust-tag { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.9rem; color: #fdf7ea; }
.trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,106,0.25); }

/* ============================================================================
   SHARED SECTION SCAFFOLD
   ========================================================================== */
.section { padding: 84px 0; }
.shade-cream { background: var(--cream); }
.shade-sage { background: linear-gradient(180deg, var(--sage-soft), var(--cream-soft)); }
.shade-green { background: var(--forest); color: #fdf7ea; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-eyebrow { font-weight: 700; font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.section-eyebrow.light { color: var(--gold); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-title.light { color: #fff; }
.section-lead { margin-top: 14px; font-size: 1.08rem; color: var(--ink-soft); }
.shade-green .section-lead { color: rgba(253,247,234,0.85); }

.section-note { text-align: center; margin-top: 34px; font-size: 0.96rem; color: var(--ink-soft); font-style: italic; }
.seasonal-note {
  max-width: 620px; margin-left: auto; margin-right: auto;
  background: var(--paper); border: 1px dashed var(--gold);
  border-radius: var(--radius); padding: 18px 24px; font-style: normal;
}
.center { text-align: center; }

/* ---- Card grid + card base ------------------------------------------ */
.cards-grid { display: grid; gap: 24px; }
.categories { grid-template-columns: repeat(3, 1fr); }
.featured   { grid-template-columns: repeat(4, 1fr); }
.arrivals   { grid-template-columns: repeat(3, 1fr); }
.seasonal   { grid-template-columns: repeat(4, 1fr); }
.updates    { grid-template-columns: repeat(3, 1fr); }
.testimonials { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid rgba(110, 82, 56, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.22rem; }
.card-body p { color: var(--ink-soft); font-size: 0.98rem; }

.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--brown); }

/* Media / placeholder */
.card-media { aspect-ratio: 4 / 3; background: var(--sage-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.placeholder, .photo-placeholder, .map-placeholder {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(183,199,172,0.35) 0 12px, rgba(220,228,211,0.5) 12px 24px);
  color: var(--brown);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- Category card --------------------------------------------------- */
.category-card { text-align: center; padding: 34px 24px; align-items: center; }
.cat-icon { font-size: 2.4rem; width: 72px; height: 72px; display: grid; place-items: center; background: var(--cream); border-radius: 50%; margin-bottom: 16px; box-shadow: inset 0 0 0 2px rgba(200,169,106,0.4); }
.category-card h3 { font-size: 1.28rem; margin-bottom: 6px; }
.category-card p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---- Featured (This Week) card -------------------------------------- */
.featured-card .badge {
  align-self: flex-start;
  background: var(--barn); color: #fff;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}

/* ---- Arrival card + status badges ----------------------------------- */
.arrival-card { position: relative; }
.arrival-card .status {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-weight: 700; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.status-available { background: var(--forest); }
.status-limited   { background: var(--gold-deep); }
.status-sold      { background: var(--barn); }
.status-askfirst  { background: var(--brown); }
.cat-label { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }

/* ---- Seasonal card --------------------------------------------------- */
.seasonal-card { text-align: center; padding: 32px 22px; align-items: center; }

/* ---- Update card ----------------------------------------------------- */
.update-card { padding: 26px; gap: 8px; }
.update-card .update-date { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.update-card h3 { font-size: 1.2rem; }
.update-card p { color: var(--ink-soft); }
.updates + .center { margin-top: 40px; }

/* ---- Testimonials ---------------------------------------------------- */
.testimonials-section { background: var(--cream); }
.testimonial-card { padding: 34px 28px; }
.quote-mark { font-family: var(--font-head); font-size: 3.4rem; line-height: 0.6; color: var(--gold); display: block; height: 28px; }
.testimonial-card .quote { font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: var(--ink); margin: 10px 0 16px; }
.attribution { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brown); }

/* ============================================================================
   CONSIGN WITH TARRS
   ========================================================================== */
.consign-section { background: var(--cream-soft); }
.consign-steps {
  list-style: none; padding: 0; margin: 0 0 44px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  counter-reset: none;
}
.consign-step {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(110,82,56,0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 34px 22px 22px;
  text-align: center;
}
.consign-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--forest); color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1.25rem;
  box-shadow: inset 0 0 0 2px rgba(200,169,106,0.4);
}
.consign-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.consign-step p { color: var(--ink-soft); font-size: 0.96rem; }

.consign-policy {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 34px;
}
.consign-policy-col h4 {
  font-family: var(--font-body); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px;
}
.consign-policy-col p { color: var(--ink-soft); font-size: 0.96rem; }
.consign-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .consign-steps { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .consign-policy { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 460px) {
  .consign-steps { grid-template-columns: 1fr; }
}

/* ============================================================================
   WE BUY PRODUCE — grower callout band
   ========================================================================== */
.produce-buy-section { padding: 20px 0; }
.produce-buy {
  display: flex; align-items: center; gap: 30px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 34px 38px;
  color: #fdf7ea;
  box-shadow: var(--shadow);
}
.produce-buy-emoji { font-size: 2.6rem; line-height: 1; letter-spacing: 4px; flex-shrink: 0; }
.produce-buy-text { flex: 1; }
.produce-buy-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin: 4px 0 8px; }
.produce-buy-text p { color: rgba(253,247,234,0.9); font-size: 1.02rem; max-width: 640px; }
.produce-buy-text strong { color: var(--gold); }
.produce-buy-cta { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

@media (max-width: 860px) {
  .produce-buy { flex-direction: column; text-align: center; padding: 30px 24px; }
  .produce-buy-text p { margin: 0 auto; }
  .produce-buy-cta { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* ============================================================================
   FRESH TODAY — chalkboard
   ========================================================================== */
.board-section { background: linear-gradient(180deg, var(--cream-soft), var(--cream)); }
.chalkboard {
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 1075 / 757;               /* matches the frame image */
  background: url("images/chalkboard-frame.png") center / 100% 100% no-repeat;
  display: grid;
  place-items: center;
  padding: 8% 9% 9%;
  filter: drop-shadow(0 16px 30px rgba(44, 38, 34, 0.28));
}
.chalkboard__inner { text-align: center; width: 100%; }

/* Chalk handwriting (Caveat) in soft cream, with a faint dusty shadow. */
.chalk-title {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.1rem);
  color: #fdf6e3;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}
.chalk-title::after {
  content: "";
  display: block;
  width: 130px; max-width: 55%;
  height: 2px;
  margin: 8px auto 0;
  background: rgba(253, 246, 227, 0.55);
  border-radius: 2px;
}
.chalk-date {
  font-family: "Caveat", cursive;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: rgba(200, 169, 106, 0.95);
  margin-top: 4px;
}
.chalk-list {
  list-style: none;
  padding: 0;
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chalk-list li {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.9vw, 1.7rem);
  color: #f4ecd8;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.chalk-note {
  font-family: "Caveat", cursive;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(244, 236, 216, 0.72);
  margin-top: 14px;
}
@media (max-width: 560px) {
  .chalkboard { padding: 9% 8% 10%; }
  .chalk-list { gap: 0; }
}

/* ============================================================================
   AROUND THE STORE — wooden crate gallery
   ========================================================================== */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
}

/* Each photo sits in a little wooden produce crate. */
.crate {
  position: relative;
  margin: 0;
  padding: 12px 12px 10px;
  border-radius: 8px;
  /* Warm wood with faint vertical plank lines. */
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 26px),
    linear-gradient(180deg, #7a5c40, #5f4630);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.10),
    inset 0 -3px 6px rgba(0,0,0,0.28),
    0 12px 24px rgba(44,38,34,0.20);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.crate:nth-child(3n)   { --tilt: -1deg; }
.crate:nth-child(3n+2) { --tilt: 1deg; }
.crate:hover {
  transform: translateY(-5px) rotate(0deg);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.10),
    inset 0 -3px 6px rgba(0,0,0,0.28),
    0 18px 34px rgba(44,38,34,0.30);
  z-index: 2;
}

/* The photo, framed by the crate's slat edges. */
.crate__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sage-soft);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,0.18), inset 0 0 14px rgba(0,0,0,0.25);
}
.crate__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crate__empty {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, rgba(183,199,172,0.4) 0 12px, rgba(220,228,211,0.55) 12px 24px);
  color: var(--brown); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* Handwritten caption on the bottom slat. */
.crate__label {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  text-align: center;
  color: #f6eeda;
  padding: 8px 4px 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* Kraft price/label tag on a string, pinned to a corner. */
.crate__tag {
  position: absolute;
  top: 10px; right: -8px;
  z-index: 3;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.05rem;
  color: #4a3823;
  background: linear-gradient(180deg, #e8d9b8, #d9c49a);
  padding: 5px 12px 5px 16px;
  border-radius: 4px;
  transform: rotate(4deg);
  box-shadow: 0 4px 9px rgba(0,0,0,0.28);
  /* notched left edge like a hang tag */
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 12% 100%, 0 50%);
}
.crate__tag::before { /* the little punch hole */
  content: "";
  position: absolute;
  left: 8px; top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: rgba(74,56,35,0.55);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}

@media (max-width: 1000px) {
  .market-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .market-grid { grid-template-columns: 1fr; gap: 26px; max-width: 360px; margin: 0 auto; }
  .crate { --tilt: 0deg !important; }
}

/* ============================================================================
   ABOUT
   ========================================================================== */
.about { padding: 92px 0; background: var(--cream-soft); }
.about-inner { display: grid; grid-template-columns: 0.85fr 1fr; gap: 56px; align-items: center; }
.photo-placeholder.tall { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.about-text .section-title { margin-bottom: 18px; }
.about-text p { color: var(--ink-soft); margin-bottom: 14px; font-size: 1.05rem; }
.about-points { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 12px; }
.about-points li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.about-points li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 1.1rem; }
.about-points strong { color: var(--ink); }
.link-arrow { font-weight: 700; color: var(--forest); }
.link-arrow:hover { color: var(--gold-deep); }

/* ============================================================================
   INQUIRY FORM
   ========================================================================== */
.inquire-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.inquire-lead { color: rgba(253,247,234,0.88); margin-top: 16px; font-size: 1.05rem; }
.inquire-perks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.inquire-perks li { position: relative; padding-left: 30px; color: rgba(253,247,234,0.9); }
.inquire-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

.inquiry-form { background: var(--paper); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.field .req { color: var(--barn); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid rgba(110, 82, 56, 0.24);
  border-radius: var(--radius-sm);
  background: var(--cream-soft);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.22);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input.invalid, .field select.invalid { border-color: var(--barn); box-shadow: 0 0 0 3px rgba(158, 59, 45, 0.15); }
.err { color: var(--barn); font-size: 0.82rem; font-weight: 600; min-height: 1em; }

.form-success {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px; padding: 18px 20px;
  background: var(--sage-soft);
  border: 1.5px solid var(--forest);
  border-radius: var(--radius-sm);
  color: var(--forest-deep);
}
.form-success .check { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; background: var(--forest); color: #fff; border-radius: 50%; font-weight: 800; }
.form-success p { font-weight: 600; }

/* ============================================================================
   VISIT / LOCATION
   ========================================================================== */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: stretch; }
.visit-details { display: grid; gap: 26px; align-content: start; }
.visit-block h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--forest); }
.visit-block p { color: var(--ink-soft); }
.visit-block .btn { margin-top: 14px; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; border-bottom: 1px dashed rgba(110,82,56,0.2); }
.hours li span:first-child { font-weight: 600; color: var(--ink); }
.hours li span:last-child { color: var(--ink-soft); }
.fine { font-size: 0.86rem; color: var(--ink-soft); margin-top: 10px; font-style: italic; }
.visit-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 340px; }
.map-placeholder { height: 100%; flex-direction: column; gap: 8px; text-align: center; padding: 24px; }
.map-placeholder small { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.8rem; }
.visit-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--forest-deep); color: rgba(253,247,234,0.82); padding-top: 62px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand .brand-mark { background: var(--gold); color: var(--forest-deep); box-shadow: none; }
.footer-name { font-family: var(--font-head); font-size: 1.3rem; color: #fff; font-weight: 600; }
.footer-tag { font-style: italic; font-family: var(--font-head); margin-top: 6px; color: rgba(253,247,234,0.7); font-size: 0.98rem; }
.footer-col h4 { color: var(--gold); font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col p { font-size: 0.96rem; margin-bottom: 10px; }
.footer-col a { color: rgba(253,247,234,0.82); }
.footer-col a:hover { color: var(--gold); }
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-bottom { border-top: 1px solid rgba(253,247,234,0.14); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 20px 24px; font-size: 0.85rem; }
.footer-bottom p { color: rgba(253,247,234,0.6); }
.credit a { color: var(--gold); font-weight: 600; }

/* ============================================================================
   FILL YOUR BASKET
   ========================================================================== */
.basket-status { text-align: center; color: var(--ink-soft); font-style: italic; padding: 20px 0; }
.basket-subhead {
  font-family: var(--font-head); font-size: 1.5rem; color: var(--forest);
  margin: 0 0 18px; text-align: center;
}
.prepacked { margin-bottom: 48px; }

/* Prepacked basket cards */
.prepacked-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prepack-card {
  background: var(--paper);
  border: 1px solid rgba(110,82,56,0.14);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.prepack-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prepack-body h4 { font-size: 1.2rem; margin-bottom: 6px; }
.prepack-body p { color: var(--ink-soft); font-size: 0.95rem; }
.prepack-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prepack-price { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--brown); }

/* Builder: shelf + basket */
.builder { display: grid; grid-template-columns: 1fr 330px; gap: 32px; align-items: start; }
.shelf-group { margin-bottom: 26px; }
.shelf-cat {
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 12px; padding-bottom: 6px;
  border-bottom: 2px solid rgba(200,169,106,0.35);
}
.shelf-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shelf-item {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: var(--paper);
  border: 1.5px solid rgba(110,82,56,0.16);
  border-radius: var(--radius-sm);
  padding: 14px 14px 13px;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: transform 0.15s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.shelf-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.shelf-item:active { transform: scale(0.97); }
.shelf-item-name { font-weight: 700; font-size: 0.98rem; color: var(--ink); line-height: 1.2; }
.shelf-item-price { font-family: var(--font-head); font-weight: 600; color: var(--brown); }
.prepack-price.tbd, .shelf-item-price.tbd, .bl-price.tbd {
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; font-style: italic;
  color: var(--ink-soft);
}
.shelf-add {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--forest); color: #fff; display: grid; place-items: center;
  font-size: 1.1rem; line-height: 1; font-weight: 700;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.shelf-item:hover .shelf-add { background: var(--gold-deep); transform: rotate(90deg); }

/* Basket panel */
.basket-panel {
  position: sticky; top: 96px;
  background: var(--paper);
  border: 1px solid rgba(110,82,56,0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex; flex-direction: column;
}
.basket-visual { text-align: center; position: relative; height: 56px; }
.basket-emoji { font-size: 3rem; display: inline-block; }
.basket-emoji.bump { animation: basket-bump 0.4s var(--ease); }
@keyframes basket-bump { 0%,100% { transform: scale(1); } 35% { transform: scale(1.28) rotate(-6deg); } }
.basket-count {
  position: absolute; top: -2px; right: calc(50% - 34px);
  min-width: 22px; height: 22px; padding: 0 5px;
  background: var(--barn); color: #fff; border-radius: 999px;
  font-weight: 700; font-size: 0.78rem; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.basket-panel-title { font-family: var(--font-head); font-size: 1.25rem; text-align: center; margin: 6px 0 14px; color: var(--forest); }
.basket-list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
.basket-empty { color: var(--ink-soft); font-style: italic; text-align: center; padding: 16px 0; font-size: 0.92rem; }
.basket-line { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed rgba(110,82,56,0.14); }
.bl-name { font-size: 0.92rem; font-weight: 600; }
.bl-qty { display: inline-flex; align-items: center; gap: 6px; }
.qty-btn { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--cream-soft); color: var(--brown); font-weight: 700; cursor: pointer; line-height: 1; }
.qty-btn:hover { background: var(--gold); color: #fff; }
.qty-n { min-width: 16px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.bl-price { font-family: var(--font-head); font-weight: 600; color: var(--brown); font-size: 0.95rem; }
.bl-remove { background: none; border: 0; color: var(--ink-soft); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 0 2px; }
.bl-remove:hover { color: var(--barn); }
.basket-foot { margin-top: auto; padding-top: 12px; }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin-bottom: 12px; }
.basket-fine { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }

/* Checkout + success */
.basket-checkout { max-width: 560px; margin: 0 auto; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.basket-checkout .opt { font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; }
.basket-back { display: block; width: 100%; text-align: center; margin-top: 12px; background: none; border: 0; color: var(--forest); font-weight: 600; cursor: pointer; font-family: var(--font-body); font-size: 0.95rem; }
.basket-back:hover { color: var(--gold-deep); }
.basket-form-error { background: rgba(158,59,45,0.1); border: 1px solid var(--barn); color: var(--barn); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.basket-success { max-width: 560px; margin: 0 auto; text-align: center; background: var(--sage-soft); border: 1.5px solid var(--forest); border-radius: var(--radius); padding: 36px 28px; }
.basket-success .basket-check { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.basket-success h3 { font-family: var(--font-head); font-size: 1.6rem; color: var(--forest-deep); margin-bottom: 8px; }
.basket-success p { color: var(--ink-soft); max-width: 420px; margin: 0 auto; }

/* Fly-to-basket chip */
.fly-chip {
  position: fixed; z-index: 9999; pointer-events: none;
  font-size: 1.6rem; transform: translate(-50%, -50%);
  transition: transform 0.6s cubic-bezier(0.5, -0.3, 0.4, 1), opacity 0.6s ease;
}

@media (max-width: 900px) {
  .prepacked-row { grid-template-columns: repeat(2, 1fr); }
  .builder { grid-template-columns: 1fr; }
  .basket-panel { position: sticky; bottom: 0; top: auto; box-shadow: 0 -8px 24px rgba(44,38,34,0.14); }
  .basket-list { max-height: 200px; }
}
@media (max-width: 460px) {
  .prepacked-row { grid-template-columns: 1fr; }
  .shelf-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .categories, .arrivals, .updates, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .featured, .seasonal { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .inquire-inner, .visit-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { height: 88px; }
  .brand-logo { width: 66px; height: 66px; }
  .nav {
    position: fixed; inset: 88px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream-soft);
    padding: 10px 24px 24px;
    border-bottom: 1px solid rgba(110,82,56,0.14);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
    max-height: calc(100vh - 88px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 4px; border-bottom: 1px solid rgba(110,82,56,0.1); font-size: 1rem; }
  .nav .nav-cta { margin-top: 12px; text-align: center; }
  .nav-toggle { display: flex; }
  .section { padding: 62px 0; }
  .about { padding: 62px 0; }
  .hero-inner { padding: 96px 22px 64px; }
  .hero-actions .btn { flex: 1 1 auto; }
  /* On phones the hero text is centered and tall, so the awning spot would
     cover the headline — tuck a smaller sign into the top-left corner instead. */
  .open-sign { width: 78px; top: 2%; left: 4%; }
  .open-sign__status { font-size: 0.6rem; padding: 3px 8px; }
  .form-row.two { grid-template-columns: 1fr; }
  .inquiry-form { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 460px) {
  .categories, .arrivals, .updates, .testimonials, .featured, .seasonal { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.15rem; }
  .hero-title { font-size: 2.4rem; }
}

/* ---- Motion-safety --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  /* Keep the sign still, but the OPEN glow (static filter) still shows. */
  .open-sign, .open-sign__board { animation: none !important; }
}
