@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&family=Kalam:wght@400;700&display=swap');

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* colors */
  --leaf-900: #1f3d2b;
  --leaf-700: #2b5738;
  --leaf-600: #3e7c4a;
  --leaf-100: #eaf3e4;
  --tomato-500: #e4572e;
  --tomato-600: #c9481f;
  --turmeric-400: #f2b705;
  --kraft-100: #f6f1e7;
  --soil-800: #3b2e23;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #e3d9c6;
  --danger: #c0392b;

  /* type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-tag: 'Kalam', cursive;

  /* layout */
  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(59, 46, 35, 0.08);
  --shadow-md: 0 10px 30px rgba(31, 61, 43, 0.12);
  --gap: 1.5rem;
}

/* ---------- 2. RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--kraft-100);
  color: var(--soil-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* long emails/addresses shouldn't be able to widen a phone screen */
  overflow-wrap: break-word;
}

/* Grid children default to min-width:auto, which lets wide content push a
   column past the viewport. Every multi-column layout on the site opts out. */
.hero-grid > *,
.cart-layout > *,
.checkout-layout > *,
.contact-layout > *,
.story-grid > *,
.footer-grid > * {
  min-width: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--leaf-900);
  line-height: 1.15;
}

:focus-visible {
  outline: 3px solid var(--turmeric-400);
  outline-offset: 2px;
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  display: block;
}

.section {
  padding: 4.5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section--alt {
  background: var(--leaf-100);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. TYPOGRAPHY HELPERS ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-tag);
  font-size: 1.05rem;
  color: var(--tomato-600);
  margin-bottom: .9rem;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: .75rem;
}

.section-head p {
  color: #5b4d3d;
  font-size: 1.05rem;
}

.section-head--left {
  text-align: left;
  margin: 0 0 2.5rem;
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--tomato-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--tomato-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--leaf-700);
  transform: translateY(-2px);
}

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

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

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: .55rem 1.1rem;
  font-size: .85rem;
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- 5. ANNOUNCEMENT BAR ---------- */
.announce {
  background: var(--leaf-900);
  color: var(--leaf-100);
  font-size: .85rem;
  text-align: center;
  padding: .5rem 1rem;
}

.announce a {
  color: var(--turmeric-400);
  font-weight: 600;
}

/* ---------- 6. HEADER / NAV ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 2px dashed var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--leaf-900);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.brand span {
  color: var(--tomato-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  font-size: .97rem;
  color: var(--soil-800);
  position: relative;
  padding: .25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--tomato-500);
  transition: width .2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--tomato-600);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--leaf-100);
  font-size: 1.25rem;
  transition: background .15s ease;
}

.icon-btn:hover {
  background: var(--turmeric-400);
}

.cart-badge {
  position: absolute;
  /* kept inside the button's box: a negative offset here pushed the badge
     past the right edge of the page and created a horizontal scrollbar */
  top: 0;
  right: 0;
  background: var(--tomato-500);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--font-body);
}

.cart-badge[hidden] {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--leaf-100);
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

@media (max-width:900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 2px dashed var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }

  .nav-links.open {
    max-height: 400px;
  }

  .nav-links a {
    width: 100%;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--line);
  }

  .nav-links a::after {
    display: none;
  }

  .nav {
    position: relative;
  }
}

/* ---------- 7. INK STAMP (signature element) ---------- */
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--tomato-500);
  border-radius: 50%;
  color: var(--tomato-600);
  font-family: var(--font-tag);
  text-transform: uppercase;
  letter-spacing: .03em;
  text-align: center;
  transform: rotate(-8deg);
  width: 96px;
  height: 96px;
  font-size: .72rem;
  padding: .4rem;
  line-height: 1.15;
}

.stamp--sm {
  width: 64px;
  height: 64px;
  font-size: .58rem;
  transform: rotate(-10deg);
}

.stamp--turmeric {
  border-color: var(--turmeric-400);
  color: #8a6a00;
}

.stamp--leaf {
  border-color: var(--leaf-600);
  color: var(--leaf-700);
}

/* ---------- 8. HERO ---------- */
.hero {
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 1.1rem;
}

.hero p.lead {
  font-size: 1.1rem;
  color: #5b4d3d;
  max-width: 480px;
  margin-bottom: 1.8rem;
}

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

.hero-crate {
  background: var(--leaf-900);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  transform: rotate(2deg);
  box-shadow: var(--shadow-md);
}

.hero-crate div {
  background: var(--paper);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  aspect-ratio: 1;
  transform: rotate(-2deg);
}

.hero-crate div:nth-child(3n) {
  transform: rotate(3deg);
}

.hero-crate div:nth-child(2n) {
  transform: rotate(-4deg);
}

@media (max-width:860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-crate {
    transform: none;
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ---------- 9. TRUST STRIP ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--paper);
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
  padding: 2rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  justify-content: center;
  text-align: left;
}

.trust-item .ico {
  font-size: 1.8rem;
}

.trust-item strong {
  display: block;
  font-size: .95rem;
}

.trust-item span {
  font-size: .82rem;
  color: #7a6a56;
}

@media (max-width:760px) {
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 10. CATEGORY CARDS ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.cat-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  border: 2px solid transparent;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--turmeric-400);
}

.cat-card .ico {
  font-size: 2.6rem;
  margin-bottom: .8rem;
}

.cat-card h3 {
  font-size: 1.05rem;
  margin-bottom: .3rem;
}

.cat-card span {
  font-size: .82rem;
  color: #7a6a56;
}

@media (max-width:760px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 11. PRODUCT GRID / CARD ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.product-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  border-top: 6px solid var(--leaf-600);
}

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

.product-media {
  background: var(--leaf-100);
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.6rem;
  position: relative;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.product-card .stamp {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 58px;
  height: 58px;
  font-size: .55rem;
  z-index: 2;
  /* sits on top of a photo now, so it needs its own backdrop to stay legible */
  background: rgba(255, 253, 248, .93);
  box-shadow: 0 2px 8px rgba(59, 46, 35, .18);
  font-weight: 700;
}

.product-body {
  padding: 1.1rem 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}

.product-cat {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--leaf-600);
  font-weight: 700;
}

.product-body h3 {
  font-size: 1.05rem;
  color: var(--soil-800);
  font-family: var(--font-body);
  font-weight: 700;
}

.product-desc {
  font-size: .83rem;
  color: #7a6a56;
  flex: 1;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .4rem;
}

.price-tag {
  font-family: var(--font-tag);
  font-size: 1.35rem;
  color: var(--tomato-600);
  transform: rotate(-2deg);
  display: inline-block;
}

.price-old {
  font-size: .85rem;
  color: #a99;
  text-decoration: line-through;
  margin-right: .4rem;
}

.unit {
  font-size: .75rem;
  color: #9a8b78;
}

.add-to-cart-btn {
  margin-top: .7rem;
  background: var(--leaf-900);
  color: #fff;
  border-radius: 999px;
  padding: .65rem 1rem;
  font-weight: 600;
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: background .15s ease, transform .15s ease;
}

.add-to-cart-btn:hover {
  background: var(--tomato-500);
  transform: translateY(-2px);
}

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

@media (max-width:700px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:460px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .product-media {
    height: 140px;
    font-size: 2.8rem;
  }
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #7a6a56;
}

.empty-state .ico {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ---------- 12. SHOP TOOLBAR ---------- */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.2rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: .6rem 1.1rem;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: .92rem;
  /* fills the pill so the whole control is tappable, not just the text line */
  align-self: stretch;
  min-height: 30px;
  min-width: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.chip {
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--leaf-600);
  color: var(--leaf-700);
  font-weight: 600;
  font-size: .85rem;
  background: transparent;
  transition: all .15s ease;
}

.chip.active,
.chip:hover {
  background: var(--leaf-600);
  color: #fff;
}

/* ---------- 13. PAGE HEADER (inner pages) ---------- */
.page-hero {
  background: var(--leaf-900);
  color: var(--leaf-100);
  padding: 3.2rem 0;
  text-align: center;
  border-bottom: 6px solid var(--turmeric-400);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.page-hero p {
  color: var(--leaf-100);
  margin-top: .6rem;
  opacity: .9;
}

.breadcrumb {
  font-size: .82rem;
  color: var(--turmeric-400);
  margin-bottom: .6rem;
}

.breadcrumb a {
  color: var(--leaf-100);
  display: inline-block;
  padding: .4rem .15rem;
}

/* ---------- 14. CART PAGE ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cart-table th {
  text-align: left;
  background: var(--leaf-100);
  color: var(--leaf-900);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .9rem 1rem;
}

.cart-table td {
  padding: 1rem;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

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

.cart-item-emoji {
  width: 52px;
  height: 52px;
  background: var(--leaf-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-emoji img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info strong {
  display: block;
  font-size: .95rem;
}

.cart-item-info span {
  font-size: .78rem;
  color: #7a6a56;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty-control button {
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  color: var(--leaf-700);
}

.qty-control button:hover {
  background: var(--leaf-100);
}

.qty-control span {
  width: 32px;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
}

.remove-btn {
  color: var(--danger);
  font-size: .82rem;
  font-weight: 600;
}

.remove-btn:hover {
  text-decoration: underline;
}

.summary-box {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--tomato-500);
}

.summary-box h3 {
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .92rem;
  padding: .5rem 0;
  color: #5b4d3d;
}

.summary-row.total {
  border-top: 2px dashed var(--line);
  margin-top: .5rem;
  padding-top: 1rem;
  font-weight: 700;
  color: var(--soil-800);
  font-size: 1.05rem;
}

.summary-note {
  font-size: .78rem;
  color: #8a7a63;
  margin-top: .8rem;
}

@media (max-width:860px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

/* Below ~640px the 4-column cart table no longer fits (it needs ~470px), so
   each row becomes a stacked card instead of a sideways-scrolling table. */
@media (max-width:640px) {

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .7rem .8rem;
    padding: 1rem;
    border-top: 1px solid var(--line);
  }

  .cart-table tr:first-child {
    border-top: none;
  }

  .cart-table td {
    padding: 0;
    border: none;
    width: auto;
  }

  /* item photo + name spans the full width, then qty / line-total sit on one
     row, with Remove underneath */
  .cart-table td:nth-child(1) {
    grid-column: 1 / -1;
  }

  .cart-table td:nth-child(2) {
    justify-self: start;
  }

  .cart-table td:nth-child(3) {
    justify-self: end;
    font-size: 1.05rem;
  }

  .cart-table td:nth-child(4) {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .qty-control button {
    width: 38px;
    height: 38px;
  }

  .remove-btn {
    padding: .5rem 0;
    min-height: 34px;
  }
}

/* ---------- 15. CHECKOUT ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.form-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.1rem;
}

.form-group.full {
  grid-column: 1/-1;
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--soil-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  background: var(--white);
  transition: border-color .15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--leaf-600);
  outline: none;
}

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

.form-error {
  font-size: .76rem;
  color: var(--danger);
  min-height: 1em;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: .7rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  cursor: pointer;
}

.payment-option:has(input:checked) {
  border-color: var(--leaf-600);
  background: var(--leaf-100);
}

.order-line {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  padding: .4rem 0;
  color: #5b4d3d;
}

.order-success {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--leaf-600);
}

.order-success .ico {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.order-success h2 {
  margin-bottom: .6rem;
}

.order-success p {
  color: #5b4d3d;
  margin-bottom: 1.5rem;
}

@media (max-width:860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

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

/* ---------- 16. STATS ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stats-band .stat h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--tomato-500);
}

.stats-band .stat span {
  font-size: .85rem;
  color: #7a6a56;
}

@media (max-width:760px) {
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* ---------- 17. TESTIMONIALS ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testi-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.testi-card .stars {
  color: var(--turmeric-400);
  margin-bottom: .7rem;
  letter-spacing: .15em;
}

.testi-card p {
  font-size: .92rem;
  color: #5b4d3d;
  margin-bottom: 1rem;
}

.testi-card .who {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.testi-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--leaf-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.testi-card strong {
  font-size: .88rem;
  display: block;
}

.testi-card small {
  color: #9a8b78;
}

@media (max-width:860px) {
  .testi-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 18. ABOUT / VALUES / SERVICES CARDS ---------- */
.value-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.value-card,
.service-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--leaf-600);
}

.value-card .ico,
.service-card .ico {
  font-size: 2.2rem;
  margin-bottom: .8rem;
}

.value-card h3,
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
}

.value-card p,
.service-card p {
  font-size: .88rem;
  color: #5b4d3d;
}

@media (max-width:860px) {

  .value-grid,
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:600px) {

  .value-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-grid p {
  margin-bottom: 1rem;
  color: #5b4d3d;
}

@media (max-width:860px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--leaf-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin: 0 auto 1rem;
  border: 3px dashed var(--turmeric-400);
}

.team-card strong {
  display: block;
}

.team-card span {
  font-size: .82rem;
  color: #7a6a56;
}

@media (max-width:700px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 19. DELIVERY INFO TABLE ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table th,
.info-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}

.info-table th {
  background: var(--leaf-900);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

.info-table tr:last-child td {
  border-bottom: none;
}

/* ---------- 20. CTA BAND ---------- */
.cta-band {
  background: var(--leaf-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: .6rem;
}

.cta-band p {
  color: var(--leaf-100);
  margin-bottom: 1.5rem;
}

/* ---------- 21. NEWSLETTER ---------- */
.newsletter-band {
  background: var(--turmeric-400);
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.newsletter-band h3 {
  margin-bottom: .3rem;
}

.newsletter-band p {
  font-size: .9rem;
  color: #5b4600;
}

.newsletter-form {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: .8rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--soil-800);
  min-width: 240px;
}

/* ---------- 22. CONTACT PAGE ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-card .row {
  display: flex;
  gap: .8rem;
  margin-bottom: 1.3rem;
}

.contact-info-card .row .ico {
  font-size: 1.3rem;
}

.contact-info-card .row strong {
  display: block;
  font-size: .9rem;
}

.contact-info-card .row span {
  font-size: .85rem;
  color: #7a6a56;
}

.map-box {
  margin-top: 1rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 2rem 1rem;
  text-align: center;
  color: #9a8b78;
  font-size: .85rem;
  background: var(--leaf-100);
}

.social-row {
  display: flex;
  gap: .7rem;
  margin-top: 1.2rem;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--leaf-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.social-row a:hover {
  background: var(--turmeric-400);
}

@media (max-width:900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- 23. FAQ ACCORDION ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.faq-item {
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.4rem;
  font-weight: 600;
  text-align: left;
  font-size: .98rem;
  color: var(--leaf-900);
}

.faq-question .plus {
  font-size: 1.3rem;
  color: var(--tomato-500);
  transition: transform .2s ease;
}

.faq-item.open .faq-question .plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.faq-answer p {
  padding: 0 1.4rem 1.3rem;
  font-size: .9rem;
  color: #5b4d3d;
}

/* ---------- 24. LEGAL / ARTICLE PAGES ---------- */
.article {
  max-width: 800px;
  margin: 0 auto;
  background: var(--paper);
  padding: 2.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article h2 {
  font-size: 1.3rem;
  margin: 2rem 0 .8rem;
}

.article h2:first-child {
  margin-top: 0;
}

.article p,
.article li {
  color: #4a3d2f;
  margin-bottom: .9rem;
  font-size: .95rem;
}

.article ul {
  padding-left: 1.3rem;
  list-style: disc;
}

.article .updated {
  font-size: .82rem;
  color: #9a8b78;
  margin-bottom: 2rem;
  display: block;
}

/* ---------- 25. FOOTER ---------- */
.site-footer {
  background: var(--leaf-900);
  color: var(--leaf-100);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand span {
  color: var(--turmeric-400);
}

.footer-brand p {
  font-size: .87rem;
  margin: 1rem 0;
  opacity: .85;
  max-width: 280px;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1.1rem;
}

.site-footer ul li {
  margin-bottom: .65rem;
}

.site-footer ul li a {
  font-size: .88rem;
  opacity: .85;
}

.site-footer ul li a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-contact li {
  font-size: .88rem;
  opacity: .85;
  margin-bottom: .7rem;
  display: flex;
  gap: .5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .8rem;
  opacity: .75;
}

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

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

/* ---------- 26. TOAST ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--leaf-900);
  color: #fff;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 200;
  transition: transform .3s ease;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---------- 27. RESPONSIVE HERO/GRID FIXES ---------- */
@media (max-width:860px) {

  .cat-grid,
  .value-grid,
  .service-grid,
  .testi-grid,
  .stats-band {
    gap: 1.2rem;
  }
}

/* ---------- 28. TABLET REFINEMENTS ---------- */
@media (max-width:900px) {

  /* the mobile menu grows with its content instead of clipping at a fixed
     height, and scrolls if a phone is in landscape */
  .nav-links.open {
    max-height: 70vh;
    overflow-y: auto;
  }

  /* footer links are ~16px tall by default — too small to tap reliably */
  .site-footer ul li a,
  .footer-bottom a {
    display: inline-block;
    padding: .35rem 0;
  }

  .site-footer ul li {
    margin-bottom: .35rem;
  }
}

/* ---------- 29. PHONE REFINEMENTS ---------- */
@media (max-width:600px) {

  /* buy back ~16px of horizontal room on every page */
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section--tight {
    padding: 2rem 0;
  }

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

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .page-hero {
    padding: 2.2rem 0;
  }

  /* generous desktop padding leaves too little room for text on a phone */
  .article {
    padding: 1.5rem 1.25rem;
  }

  .form-card,
  .contact-info-card,
  .summary-box,
  .testi-card,
  .value-card,
  .service-card {
    padding: 1.3rem;
  }

  .cta-band {
    padding: 2rem 1.25rem;
  }

  .newsletter-band {
    padding: 1.6rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form {
    width: 100%;
  }

  .newsletter-form input {
    min-width: 0;
    flex: 1 1 100%;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  /* search fills the row, filters become one swipeable strip rather than
     wrapping onto three lines */
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    /* the base rule sets flex-wrap:wrap; left on, a *column* container wraps
       into extra columns sized by content, which stretched the search box and
       chip strip to 490px and scrolled the whole page sideways */
    flex-wrap: nowrap;
    gap: .9rem;
    min-width: 0;
  }

  .search-box {
    max-width: none;
    min-width: 0;
  }

  /* min-width:0 is what actually lets the chip strip scroll — without it the
     flex item grows to its content width and pushes the page sideways */
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .3rem;
    scrollbar-width: none;
    min-width: 0;
  }

  .filter-chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
  }

  .info-table th,
  .info-table td {
    padding: .75rem .8rem;
    font-size: .85rem;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    max-width: none;
    transform: translateY(160%);
    justify-content: center;
    text-align: center;
  }

  .toast.show {
    transform: translateY(0);
  }
}

@media (max-width:380px) {

  /* one product per row below this: two columns leaves ~130px per card */
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    height: 180px;
  }
}

/* The crate is a fixed 3x3 arrangement. `repeat(3, 1fr)` (rather than an
   auto-fit minmax) is what lets it shrink all the way down to a 320px
   phone instead of forcing a min-content width and scrolling the page. */
.hero-crate {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  min-width: 0;
}

.hero-crate div {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f2f2f2;
  min-width: 0;
}

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

@media (max-width: 480px) {
  .hero-crate {
    gap: 8px;
    padding: 10px;
  }
}