/* Top Crop Shop: forest green and harvest gold from the main site, on a warm paper background so product
   photos read true. Barlow / Barlow Condensed like topcrop.tv. */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  --forest: #14291e;
  --forest-2: #1d3a2a;
  --green: #31543b;
  --gold: #e4b860;
  --gold-deep: #c9952f;
  --paper: #f5f3ea;
  --card: #fffdf6;
  --ink: #1b2a20;
  --muted: #5d6b60;
  --line: #e2ddcb;
  --radius: 14px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body.shop {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 Barlow,
    Arial,
    sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#shop-app {
  flex: 1;
}
a {
  color: var(--green);
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
.eyebrow,
.btn,
.main-nav a,
.offer {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  letter-spacing: 0.01em;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.02;
  margin: 0 0 12px;
  font-weight: 800;
}
h2 {
  font-size: 1.8rem;
  line-height: 1.1;
  margin: 0 0 14px;
  font-weight: 800;
}
h3 {
  font-size: 1.35rem;
  margin: 0 0 6px;
  font-weight: 700;
}
:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
}
.eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--gold-deep);
  margin: 0 0 6px;
}
.small {
  font-size: 0.85rem;
  color: var(--muted);
}
.center {
  text-align: center;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.empty,
.shop-loading {
  color: var(--muted);
  padding: 30px 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s,
    border-color 0.15s;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn.gold {
  background: var(--gold);
  color: var(--forest);
}
.btn.gold:hover:not(:disabled) {
  background: #efc775;
}
.btn.line {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn.big {
  width: 100%;
  padding: 14px 22px;
  font-size: 1.2rem;
}
.btn.small {
  padding: 4px 12px;
  font-size: 0.85rem;
}

/* ---------- header / footer ---------- */
.shop-header {
  background: var(--forest);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 14px #0003;
}
.shop-header .bar {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 22px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold);
  font:
    800 1.1rem 'Barlow Condensed',
    sans-serif;
  letter-spacing: 0.2em;
}
.logo img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 6px 12px;
  border-radius: 999px;
}
.main-nav a:hover,
.main-nav a[aria-current] {
  background: #ffffff18;
}
.main-nav .savings-link {
  color: var(--gold);
}
.cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 6px 10px;
}
.cart-link b {
  background: var(--gold);
  color: var(--forest);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  padding: 0 6px;
}
.cart-link b[hidden] {
  display: none;
}
.notice {
  margin: 0;
  text-align: center;
  background: var(--gold);
  color: var(--forest);
  font-weight: 600;
  padding: 6px 16px;
  font-size: 0.95rem;
}
.shop-footer {
  background: var(--forest);
  color: #d9dccf;
  margin-top: 60px;
  padding: 40px 22px 26px;
}
.shop-footer .cols {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}
.shop-footer b {
  display: block;
  color: var(--gold);
  font:
    700 1.1rem 'Barlow Condensed',
    sans-serif;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.shop-footer a {
  display: block;
  color: #d9dccf;
  text-decoration: none;
  padding: 2px 0;
}
.shop-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.shop-footer .returns,
.shop-footer .fine {
  max-width: 1240px;
  margin: 22px auto 0;
  font-size: 0.85rem;
  color: #aab6a8;
}

/* ---------- layout ---------- */
.shop-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
}
.block {
  margin: 44px 0;
}
.block.narrow {
  max-width: 720px;
  margin: 50px auto;
}
.page-title {
  margin-top: 36px;
}
.crumbs {
  margin: 22px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted);
}

/* ---------- hero ---------- */
.hero {
  margin: 0 -22px;
  padding: 70px 22px 76px;
  color: var(--paper);
  background:
    linear-gradient(100deg, #14291ef2 30%, #14291e99 70%, #14291e55),
    url('/assets/farm-opening-wide.webp') center 60% / cover,
    var(--forest);
}
.hero.slim {
  padding: 50px 22px 54px;
}
.hero-in {
  max-width: 1196px;
  margin: 0 auto;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p {
  max-width: 560px;
  font-size: 1.1rem;
  color: #e6e8dc;
}
.hero .eyebrow {
  color: var(--gold);
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 4px;
  scrollbar-width: thin;
}
.cats a {
  flex: none;
  text-decoration: none;
  color: var(--forest);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
}
.cats a:hover {
  border-color: var(--gold-deep);
}

/* ---------- product grid ---------- */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.chips button {
  font:
    600 0.95rem Barlow,
    sans-serif;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.chips button[aria-pressed='true'] {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.card {
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px #14291e1f;
}
.card .photo {
  aspect-ratio: 1;
  background: #eeeadb;
  display: block;
}
.card .photo img,
.ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph {
  background: linear-gradient(135deg, #e9e4d1, #ddd6bd);
}
.card .info {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card small {
  color: var(--gold-deep);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.card b {
  font-weight: 600;
  line-height: 1.3;
}
.card .price {
  color: var(--green);
  font-weight: 700;
  margin-top: 4px;
}

/* ---------- product page ---------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 44px;
  margin-top: 18px;
}
.gallery {
  display: grid;
  gap: 12px;
  align-content: start;
}
.gallery > img {
  border-radius: var(--radius);
  background: #eeeadb;
}
.gallery > img + img {
  display: none;
}
.main-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: #eeeadb;
}
.thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.thumbs button {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  width: 72px;
  height: 72px;
  background: #eeeadb;
  cursor: pointer;
}
.thumbs button[aria-pressed='true'] {
  border-color: var(--forest);
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.buy .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 18px;
}
.picker fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
.picker legend {
  font-weight: 600;
  margin-bottom: 8px;
}
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.opt {
  font:
    600 0.95rem Barlow,
    sans-serif;
  min-width: 52px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  cursor: pointer;
}
.opt[aria-pressed='true'] {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper);
}
.opt:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}
.add-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin: 22px 0;
}
.qty {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.qty input {
  width: 64px;
  font: inherit;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
}
.add-row .btn {
  flex: 1;
}
.desc {
  color: #34433a;
}
.assure {
  list-style: none;
  padding: 16px 0 0;
  margin: 10px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.assure li::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 700;
}

/* ---------- cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
}
.lines {
  display: grid;
  gap: 12px;
}
.line {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.order .line {
  grid-template-columns: auto 1fr auto;
}
.line .thumb {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  background: #eeeadb;
  display: block;
}
.order .line .thumb {
  width: 64px;
  height: 64px;
}
.line .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.line a {
  color: inherit;
  text-decoration: none;
}
.line small {
  display: block;
  color: var(--muted);
}
.line .price {
  display: block;
  font-weight: 700;
  color: var(--green);
}
.qty-step {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
}
.qty-step button {
  border: 0;
  background: none;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
}
.qty-step span {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}
.remove {
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.checkout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 90px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fields label,
.unlock label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  font-size: 0.92rem;
}
.fields .wide {
  grid-column: 1 / -1;
}
.fields i,
.unlock i {
  font-weight: 400;
  color: var(--muted);
}
.fields small {
  font-weight: 400;
  color: var(--muted);
}
input,
select {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input:focus,
select:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px #31543b33;
}
.ship-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 0 0;
}
.ship-opts {
  margin: 16px 0;
}
.ship-opts h3 {
  font-size: 1.2rem;
}
.ship {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
}
.ship:has(input:checked) {
  border-color: var(--forest);
  background: #f1efe3;
}
.ship input {
  width: auto;
}
.ship span {
  flex: 1;
}
.ship small {
  display: block;
  color: var(--muted);
}
.ship em {
  font-style: normal;
  font-weight: 700;
}
.totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.totals dt,
.totals dd {
  margin: 0;
}
.totals dd {
  text-align: right;
  font-weight: 600;
}
.totals .total {
  font-size: 1.25rem;
  font-weight: 800;
  padding-top: 6px;
}
.form-error {
  background: #fbe9e4;
  color: #8a2a12;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
}
.form-error[hidden] {
  display: none;
}

/* ---------- order ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
  margin: 22px 0;
}
.steps li {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: #e9e5d6;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.steps li.done {
  background: var(--forest);
  color: var(--paper);
}
.tracking {
  padding-left: 18px;
}

/* ---------- Sponsor Savings ---------- */
.savings-teaser {
  background: var(--forest);
  color: var(--paper);
  border-radius: 22px;
  padding: 34px;
}
.savings-teaser:empty {
  display: none;
}
.teaser-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.teaser-head p {
  color: #d7dccd;
  margin: 0;
}
.teaser-head .eyebrow {
  color: var(--gold);
}
.deals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.deal {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.deal::before {
  content: 'TOP CROP EXCLUSIVE';
  position: absolute;
  top: 14px;
  right: -36px;
  transform: rotate(35deg);
  background: var(--gold);
  color: var(--forest);
  font:
    800 0.62rem 'Barlow Condensed',
    sans-serif;
  letter-spacing: 0.1em;
  padding: 3px 40px;
}
.deal-logo {
  height: 56px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.deal-logo img {
  max-height: 56px;
  max-width: 160px;
  object-fit: contain;
}
.offer {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin: 4px 0;
}
.deal p {
  margin: 0 0 6px;
}
.deal .how {
  color: var(--muted);
  font-size: 0.92rem;
}
.deal-cta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.reveal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 2px dashed var(--gold-deep);
  background: #fff8e6;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 0;
}
.code span {
  font:
    800 1.4rem 'Barlow Condensed',
    monospace;
  letter-spacing: 0.08em;
}
.more-h {
  margin-top: 40px;
}
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.partner-strip a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  height: 70px;
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.partner-strip img {
  max-height: 48px;
  max-width: 130px;
  object-fit: contain;
}

/* ---------- dialog and toast ---------- */
.shop-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(440px, calc(100vw - 24px));
  box-shadow: 0 24px 60px #0006;
}
.shop-dialog::backdrop {
  background: #0b1710b3;
}
.unlock {
  padding: 26px;
  display: grid;
  gap: 12px;
  position: relative;
}
.unlock h2 {
  margin: 0;
}
.unlock p {
  margin: 0;
}
.unlock .check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.unlock .check input {
  width: auto;
}
.unlock .x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
}
.shop-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 140%);
  background: var(--forest);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 30px #0005;
  transition: transform 0.25s;
  z-index: 50;
}
.shop-toast.show {
  transform: translate(-50%, 0);
}
.shop-toast a {
  color: var(--gold);
  font-weight: 700;
  margin-left: 6px;
}

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .product,
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .checkout {
    position: static;
  }
  .shop-footer .cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .shop-header .bar {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 14px;
  }
  .logo img {
    height: 32px;
  }
  .main-nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .main-nav a {
    flex: none;
    font-size: 0.95rem;
  }
  .cart-link {
    margin-left: auto;
  }
  .cart-link span {
    display: none;
  }
  .shop-main {
    padding: 0 14px;
  }
  .hero {
    margin: 0 -14px;
    padding: 44px 18px 50px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .line {
    grid-template-columns: auto 1fr;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .savings-teaser {
    padding: 22px 18px;
    margin-left: -6px;
    margin-right: -6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.deal.focus {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
