:root {
  color-scheme: light;
  --ink: #1f2528;
  --muted: #667174;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #d8ded9;
  --forest: #24544a;
  --teal: #1f7a7a;
  --coral: #b9533f;
  --brass: #b58742;
  --charcoal: #101417;
  --shadow: 0 18px 40px rgba(16, 20, 23, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 650;
}

.main-nav a:hover {
  color: var(--forest);
}

.cart-trigger,
.button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
  font-weight: 800;
}

.cart-count {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  font-size: 0.82rem;
}

.hero {
  position: relative;
  min-height: min(740px, 76vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(16, 20, 23, 0.78), rgba(16, 20, 23, 0.36) 54%, rgba(16, 20, 23, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 32px));
  margin: 0 0 clamp(48px, 8vh, 92px) clamp(16px, 7vw, 96px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brass);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(3rem, 7rem, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero-actions,
.ops-actions,
.checkout-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1.1;
}

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

.button-secondary {
  background: var(--teal);
  color: #fff;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid rgba(31, 37, 40, 0.16);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.status-strip div {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px clamp(16px, 4vw, 48px);
  background: var(--surface);
}

.status-strip strong {
  font-size: 1.02rem;
}

.status-strip span,
.section-heading p,
.workflow p,
.ops-panel p,
.product-card p,
.checkout-message,
.empty-state,
.notice {
  color: var(--muted);
  line-height: 1.55;
}

.shop-section,
.workflow,
.ops-panel,
.legal-page,
.admin-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 86px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.2fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading h2,
.ops-panel h2,
.legal-page h1,
.admin-page h1 {
  margin: 0;
  font-size: clamp(2rem, 3.8rem, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 650px;
  margin: 0;
}

.shop-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--brass);
  background: #fff8ea;
  border-radius: var(--radius);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  min-height: 430px;
  display: grid;
  grid-template-rows: 184px 1fr auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 20, 23, 0.06);
}

.product-visual {
  position: relative;
  height: 184px;
  background: #e9ece7;
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(36, 84, 74, 0.16), rgba(185, 83, 63, 0.12)),
    repeating-linear-gradient(45deg, rgba(31, 37, 40, 0.06), rgba(31, 37, 40, 0.06) 8px, transparent 8px, transparent 18px);
  color: var(--forest);
  font-weight: 900;
  letter-spacing: 0;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 8px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.product-card p {
  margin: 0;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 1.35rem;
  font-weight: 900;
  white-space: nowrap;
}

.shipping-chip,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: #eef5f2;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 14px 14px;
}

.product-actions .button {
  min-height: 42px;
}

.product-actions .icon-button {
  width: 42px;
  min-height: 42px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: #eef1ed;
  color: var(--ink);
  font-weight: 900;
}

.workflow {
  border-top: 1px solid var(--line);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.workflow-grid article {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.workflow-grid span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 900;
}

.workflow h3 {
  margin: 0;
}

.ops-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: var(--charcoal);
  color: #fff;
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.site-footer span,
.site-footer a {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a:hover {
  color: #fff;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(16, 20, 23, 0.36);
}

.cart-drawer.is-open {
  display: grid;
  justify-items: end;
}

.cart-panel {
  width: min(480px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  overflow-y: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
}

.cart-items {
  padding: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.qty-control button {
  min-height: 34px;
  border: 0;
  background: #fff;
  cursor: pointer;
}

.qty-control span {
  text-align: center;
  font-weight: 850;
}

.cart-summary {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.cart-summary dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.cart-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cart-summary dd {
  margin: 0;
  font-weight: 850;
}

.cart-summary .total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.12rem;
}

.checkout-buttons {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0;
}

.product-dialog {
  width: min(720px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.sale-tax-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.pickup-info p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.sale-disclosure {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.sale-disclosure summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.terms-checkbox {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 400;
}

.terms-checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--forest);
}

.terms-checkbox a {
  text-decoration: underline;
}

.product-dialog::backdrop {
  background: rgba(16, 20, 23, 0.5);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(240px, 1.1fr);
}

.dialog-visual {
  min-height: 340px;
  background: #e9ece7;
}

.dialog-visual img,
.dialog-visual .product-fallback {
  width: 100%;
  height: 100%;
}

.dialog-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
}

.dialog-copy h2 {
  margin: 0;
  font-size: 1.8rem;
}

.dialog-copy p,
.dialog-copy ul {
  color: var(--muted);
  line-height: 1.55;
}

.dialog-copy ul {
  padding-left: 18px;
}

.legal-page,
.admin-page {
  max-width: 920px;
}

.admin-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-page article {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.legal-page h1 {
  font-size: 2rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.legal-page h2,
.admin-page h2 {
  margin: 18px 0 0;
}

.legal-page p,
.legal-page li,
.admin-page p,
.admin-page li {
  color: var(--muted);
  line-height: 1.6;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 18px;
}

.preview-box {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f3f4ef;
  color: var(--muted);
  text-align: center;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snippet-box {
  min-height: 240px;
  padding: 14px;
  overflow: auto;
  border-radius: var(--radius);
  background: #111719;
  color: #f2f6f4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  white-space: pre-wrap;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    margin-left: 16px;
    margin-right: 16px;
  }

  .status-strip,
  .section-heading,
  .shop-tools,
  .workflow-grid,
  .ops-panel,
  .dialog-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .legal-page h1 {
    font-size: 1.75rem;
  }

  .brand span:last-child {
    display: none;
  }

  .site-header {
    gap: 10px;
    min-height: 64px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .ops-actions,
  .site-footer {
    display: grid;
  }

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

  .field-row {
    grid-template-columns: 1fr;
  }
}
