:root {
  --ink: #111;
  --muted: #666;
  --line: #e6e6e6;
  --bg: #fff;
  --card: #f2f2f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* Announcement bar */
.announce { background: #000; color: #fff; text-align: center; font-size: 13px; font-weight: 500; padding: 10px 16px; }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.logo { font-weight: 900; font-size: 30px; letter-spacing: -1.5px; line-height: 1; }
nav { display: flex; gap: 28px; font-size: 14px; }
nav a { padding: 4px 0; color: #333; }
nav a.active { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--ink); }
nav a:hover { color: var(--ink); }
.icons { display: flex; justify-content: flex-end; align-items: center; gap: 20px; font-size: 13px; }
.icons svg { width: 20px; height: 20px; display: block; }
.icons button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; display: flex; align-items: center; gap: 4px; }

/* Hero */
/* Sized so the top half of the first row of listings shows on first load:
   screen height - (banner bar + header + badge + Shop All heading) - half a listing photo. */
.hero { position: relative; height: max(260px, calc(100svh - 250px - (min(100vw, 1400px) - 88px) / 6)); min-height: 260px; display: grid; place-items: center; overflow: hidden;
  background: #555 url("images/hero-bales-wide.jpg") center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.40); }
.hero h1 { position: relative; z-index: 1; color: #fff; font-size: clamp(32px, 5.2vw, 72px); font-weight: 800; letter-spacing: -2px; text-align: center; padding: 0 16px; line-height: 1.05; }

/* Founder badge */
.badge-row { display: flex; justify-content: center; margin-top: -22px; position: relative; z-index: 2; }
.badge { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 13px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #ddd; object-fit: cover; display: block; flex: none; }
.avatar.letter { background: #111; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.badge .user { display: inline-flex; align-items: center; gap: 8px; }
.badge .user:hover b { text-decoration: underline; }
.badge b { font-weight: 600; }
.tick { width: 14px; height: 14px; color: #1d9bf0; }
.badge .sep { color: #bbb; }
.badge .muted { color: var(--muted); }

/* Products */
.shop { padding-top: 56px; padding-bottom: 80px; }
.shop h2 { font-size: 28px; font-weight: 600; letter-spacing: -.5px; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 12px; }
.card { display: block; }
.img { position: relative; aspect-ratio: 1 / 1; background: var(--card); overflow: hidden; display: grid; place-items: center; }
.img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .img img { transform: scale(1.05); }
.sold { position: absolute; top: 12px; right: 12px; background: #fff; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; }
.add { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #fff; border: 0; border-radius: 6px; padding: 12px; font: 600 14px Inter, sans-serif; cursor: pointer; opacity: 0; transform: translateY(6px); transition: .2s; }
.card:hover .add { opacity: 1; transform: none; }
.card.is-sold .img { opacity: .85; }
.title { margin-top: 12px; font-size: 14px; }
.price { margin-top: 3px; font-size: 13px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--ink); padding: 48px 0 24px; }
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.foot .logo { font-size: 30px; margin-bottom: 24px; display: block; }
.foot h4 { font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.foot ul { list-style: none; display: grid; gap: 14px; font-size: 14px; }
.foot ul a:hover { text-decoration: underline; }
.signup { display: flex; gap: 8px; margin-top: 72px; }
.signup input { flex: 1; min-width: 0; border: 1px solid #ccc; border-radius: 8px; padding: 14px 16px; font: 14px Inter, sans-serif; }
.signup button { background: #000; color: #fff; border: 0; border-radius: 8px; padding: 0 24px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; justify-content: flex-end; }
.pay span { border: 1px solid var(--line); border-radius: 4px; font-size: 9px; font-weight: 700; padding: 5px 7px; min-width: 38px; text-align: center; color: #333; }
.copy { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .hero { height: max(260px, calc(100svh - 250px - (100vw - 76px) / 4)); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  nav { display: none; }
  .head { grid-template-columns: 1fr auto; }
}
@media (max-width: 600px) {
  .hero { height: max(260px, calc(100svh - 237px - (100vw - 44px) / 4)); }
  .wrap { padding: 0 16px; }
  .badge-row { padding: 0 16px; }
  .badge { border-radius: 20px; gap: 8px; }
  .foot { grid-template-columns: 1fr; }
  .signup { margin-top: 0; }
  .pay { justify-content: flex-start; }
  .icons .cur { display: none; }
  .add { opacity: 1; transform: none; padding: 9px; font-size: 13px; }
}

/* Product page */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; padding-top: 32px; padding-bottom: 72px; align-items: start; }
.pdp-img { position: relative; aspect-ratio: 1 / 1; background: var(--card); overflow: hidden; }
.pdp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp h1 { font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.pdp-price { font-size: 22px; font-weight: 500; margin-top: 14px; }
.buy-row { display: flex; gap: 12px; margin-top: 28px; }
.qty { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 8px; }
.qty button { width: 44px; height: 48px; background: none; border: 0; font-size: 18px; cursor: pointer; }
.qty span { min-width: 24px; text-align: center; font-size: 15px; }
.btn { flex: 1; height: 50px; border: 0; border-radius: 8px; font: 600 15px Inter, sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-dark { background: #000; color: #fff; }
.btn-alt { width: 100%; margin-top: 12px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn:disabled { background: #e4e4e4; color: #888; border-color: #e4e4e4; cursor: not-allowed; }
.stats { margin-top: 28px; background: #f6f6f6; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.stats small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stats strong { font-size: 22px; font-weight: 700; }
.stats strong.accent { color: #2563eb; }
.stats strong.tbc { color: #aaa; font-weight: 500; font-size: 16px; }
.stats .note { grid-column: 1 / -1; font-size: 11px; color: #999; line-height: 1.5; }
.dispatch { margin-top: 14px; background: #eef4ff; border: 1px solid #c9dafc; border-radius: 12px; padding: 14px 18px; font-size: 14px; display: flex; gap: 12px; align-items: center; }
.dispatch svg { width: 18px; height: 18px; color: #2563eb; flex: none; }
.tabs { margin-top: 28px; border-bottom: 1px solid var(--line); }
.tabs span { display: inline-block; padding: 10px 0; font-size: 14px; font-weight: 600; border-bottom: 2px solid var(--ink); margin-bottom: -1px; }
.pdp-info { margin-top: 16px; font-size: 14px; line-height: 1.65; color: #333; }
.related { padding-bottom: 80px; }
.related h2 { font-size: 26px; font-weight: 600; letter-spacing: -.5px; margin-bottom: 24px; }
.related .grid { grid-template-columns: repeat(4, 1fr); }
.missing { padding: 120px 0; text-align: center; }
.missing a { text-decoration: underline; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .related .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pdp h1 { font-size: 28px; }
}

/* Text pages: FAQ, policies, contact */
.page { max-width: 820px; padding-top: 48px; padding-bottom: 96px; }
.page h1 { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 16px; }
.page .lede { font-size: 15px; color: #333; line-height: 1.6; margin-bottom: 40px; }
.page h2 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; margin: 36px 0 10px; }
.page.faq h2 { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-top: 44px; }
.page h3 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; }
.page p, .page li { font-size: 15px; line-height: 1.65; color: #222; }
.page p + p { margin-top: 10px; }
.page ul { padding-left: 20px; margin-top: 8px; display: grid; gap: 6px; }
.page a { text-decoration: underline; }
.page .updated { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.page .callout { background: #f6f6f6; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-top: 16px; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #ccc; border-radius: 8px; padding: 14px 16px; font: 15px Inter, sans-serif; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form button { justify-self: start; background: #000; color: #fff; border: 0; border-radius: 8px; padding: 14px 32px; font: 600 15px Inter, sans-serif; cursor: pointer; }
.contact-details { margin-top: 40px; display: grid; gap: 4px; }

@media (max-width: 600px) {
  .page h1 { font-size: 34px; }
  .page.faq h2 { font-size: 26px; }
  .contact-form { grid-template-columns: 1fr; }
}
