:root {
  --ink: #171514;
  --muted: #675f5a;
  --paper: #f7f1e8;
  --panel: #ffffff;
  --line: #e8ded1;
  --berry: #8e2f4d;
  --berry-dark: #642238;
  --coral: #dc7655;
  --green: #426b53;
  --gold: #efc85b;
  --deep: #241f1c;
  --shadow: 0 26px 70px rgba(36, 31, 28, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fffaf5;
  line-height: 1.5;
}

body:has(.cart-drawer.is-open) {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 245, 0.94);
  border-bottom: 1px solid rgba(232, 222, 209, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.site-footer,
.product-top,
.cart-head,
.cart-summary > div,
.cart-controls {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 950;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--berry);
  border-radius: 50%;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.site-nav {
  justify-content: end;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 850;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--berry);
}

.cart-toggle,
.icon-button {
  border: 0;
  cursor: pointer;
  font-weight: 950;
}

.cart-toggle {
  display: inline-flex;
  justify-self: end;
  gap: 9px;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  padding: 10px 14px;
  color: #fff;
  background: var(--deep);
  border-radius: 999px;
}

.cart-toggle span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  color: var(--deep);
  background: var(--gold);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
  min-height: auto;
  padding: clamp(36px, 6vw, 68px) clamp(20px, 5vw, 72px) clamp(28px, 5vw, 54px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, #fff6ea, #edf5ef);
}

.hero-copy {
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.18;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 950;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--berry);
}

.button-secondary {
  color: var(--berry);
  background: #fff;
  border-color: var(--line);
}

.button-dark,
.button-product {
  color: #fff;
  background: var(--deep);
}

.hero-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--deep);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  gap: 3px;
  padding: 18px;
  color: #fff;
  background: rgba(23, 21, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.category-strip {
  padding: 28px clamp(20px, 5vw, 72px) 34px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rail-heading,
.market-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.rail-heading h2,
.market-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.rail-heading span {
  color: var(--muted);
  font-weight: 900;
}

.category-rail,
.featured-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.category-tile {
  display: grid;
  gap: 9px;
  min-width: 170px;
  padding: 0 0 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  scroll-snap-align: start;
}

.category-tile img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(36, 31, 28, 0.08);
}

.category-tile strong {
  font-size: 1rem;
}

.category-tile span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-note span {
  color: rgba(255, 255, 255, 0.78);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px clamp(20px, 5vw, 72px);
  background: #fffaf5;
  border-bottom: 1px solid var(--line);
}

.quick-stats article {
  min-height: 96px;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-stats span {
  display: block;
  color: var(--berry);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 950;
  line-height: 1;
}

.quick-stats p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.farm-panel,
.shop,
.order-flow,
.faq {
  padding: clamp(52px, 8vw, 90px) clamp(20px, 5vw, 72px);
}

.farm-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(36, 31, 28, 0.84), rgba(66, 107, 83, 0.86)),
    url("/assets/custom-swag-table.jpg") center / cover;
}

.farm-panel .eyebrow {
  color: var(--gold);
}

.farm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.farm-actions p {
  flex-basis: 100%;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin-bottom: 30px;
}

.market-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.section-heading > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.shop-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 14px;
  margin-bottom: 18px;
}

.featured-rail {
  grid-auto-columns: minmax(260px, 320px);
  margin: 20px 0 30px;
}

.deal-card {
  display: grid;
  grid-template-rows: 220px minmax(0, 1fr) auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(36, 31, 28, 0.08);
  scroll-snap-align: start;
}

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

.deal-card div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.deal-card h3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.deal-card p,
.deal-card span {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.deal-card strong {
  color: var(--green);
  font-size: 1.12rem;
}

.deal-card button {
  margin: 0 14px 14px;
  min-height: 40px;
  color: #fff;
  background: var(--deep);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 950;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

label span {
  color: var(--muted);
  font-size: 0.82rem;
}

input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  padding: 12px 14px;
  resize: vertical;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.flow-grid article,
details,
.cart-line,
.cart-empty,
.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  overflow: hidden;
  padding: 0 0 14px;
  border-color: #e5d9cd;
  box-shadow: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(36, 31, 28, 0.1);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--paper);
}

.product-image {
  width: 100%;
  height: 100%;
}

.heart-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 950;
}

.product-top {
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 0;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  color: var(--berry);
  background: #faedf1;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 950;
}

.product-top strong {
  white-space: nowrap;
  color: var(--green);
}

.rating {
  white-space: nowrap;
  color: var(--deep);
  font-size: 0.86rem;
  font-weight: 900;
}

.stock-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  color: var(--green);
  background: #edf5ef;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
  margin: 0 14px;
}

.stock-pill.low-stock,
.stock-pill.backorder {
  color: #80550f;
  background: #fff4d5;
}

.stock-pill.out-of-stock {
  color: #8b1e2f;
  background: #fde8ed;
}

.product-card p,
.flow-grid p,
.faq p,
.cart-line p,
.cart-summary p,
.cart-empty p,
.empty-state p {
  color: var(--muted);
}

.product-card p {
  margin: 0 14px;
  overflow: hidden;
  display: -webkit-box;
  min-height: 42px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.94rem;
}

.product-card h3 {
  margin: 0 14px;
  overflow: hidden;
  display: -webkit-box;
  min-height: 42px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1rem;
}

.listing-price {
  margin: 0 14px;
  color: var(--green);
  font-size: 1.24rem;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 14px;
}

.option-list span {
  padding: 5px 8px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-card .button {
  align-self: end;
  width: calc(100% - 28px);
  margin-top: auto;
  margin-right: 14px;
  margin-left: 14px;
  min-height: 42px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.cart-line.is-disabled {
  opacity: 0.62;
}

.order-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1.25fr);
  gap: clamp(30px, 7vw, 90px);
  color: #fff;
  background: var(--berry);
}

.order-flow .eyebrow {
  color: var(--gold);
}

.flow-grid {
  display: grid;
  gap: 14px;
}

.flow-grid article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.flow-grid article span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--berry-dark);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 950;
}

.flow-grid article p {
  grid-column: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.faq {
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

details {
  padding: 20px 22px;
  background: var(--paper);
}

summary {
  cursor: pointer;
  font-weight: 950;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  justify-items: end;
  pointer-events: none;
  background: rgba(23, 21, 20, 0);
  transition: background 180ms ease;
}

.cart-drawer.is-open {
  pointer-events: auto;
  background: rgba(23, 21, 20, 0.36);
}

.cart-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(560px, 100%);
  height: 100svh;
  padding: 24px;
  overflow: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-head {
  justify-content: space-between;
  gap: 16px;
}

.cart-head h2 {
  font-size: 2rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--deep);
  border-radius: 50%;
}

.cart-items {
  display: grid;
  gap: 12px;
  align-content: start;
}

.cart-line,
.cart-empty,
.empty-state {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.cart-line h3 {
  font-size: 1rem;
}

.cart-line p {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.cart-controls {
  justify-content: space-between;
  gap: 12px;
}

.cart-controls label {
  max-width: 110px;
}

.cart-controls button {
  padding: 8px 10px;
  color: var(--berry);
  background: #faedf1;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.line-notes {
  grid-column: 1 / -1;
}

.cart-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-summary > div {
  justify-content: space-between;
}

.cart-summary p {
  margin: 0;
  font-size: 0.9rem;
}

.checkout-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 850;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1160px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero,
  .farm-panel,
  .order-flow {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img {
    min-height: 480px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: start;
    flex-wrap: wrap;
  }

  .cart-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-media,
  .hero-media img {
    min-height: 360px;
  }

  .quick-stats,
  .shop-tools,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid article {
    grid-template-columns: 1fr;
  }

  .flow-grid article p {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
