:root {
  --ink: #16231a;
  --muted: #5c685b;
  --forest: #245136;
  --leaf: #8fb331;
  --oxblood: #7d2f2a;
  --gold: #c2a14e;
  --cream: #f7f4df;
  --paper: #fffdf5;
  --stone: #1f2421;
  --line: #ddd7bd;
  --shadow: 0 20px 60px rgba(22, 35, 26, 0.13);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 184px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a,
.shop-tools a,
.row-actions a,
.row-actions button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 13px;
  color: var(--muted);
  background: transparent;
}

.main-nav a:hover,
.shop-tools a:hover,
.shop-tools a.active {
  border-color: var(--line);
  color: var(--forest);
  background: #fff;
}

.cart-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--oxblood);
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  background: #fff;
}

.hero {
  min-height: min(720px, calc(100vh - 80px));
  display: grid;
  align-items: center;
  padding: clamp(72px, 10vw, 140px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(15, 20, 17, 0.86), rgba(15, 20, 17, 0.56) 46%, rgba(15, 20, 17, 0.12)),
    url("../images/premium-meat-hero.png") center / cover;
  color: #fff;
}

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

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
}

.hero p:not(.eyebrow),
.page-hero p,
.delivery-panel p,
.prose p {
  color: inherit;
  font-size: 1.05rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions,
.section-heading,
.product-meta,
.summary-card div,
.admin-topbar,
.row-actions,
.inline-cart-form {
  display: flex;
  align-items: center;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  padding: 11px 18px;
  color: #fff;
  background: var(--forest);
  font-weight: 800;
  cursor: pointer;
}

.button:hover {
  background: #1a3d2a;
}

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

.hero .button-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.46);
}

.button-small {
  min-height: 38px;
  padding: 8px 12px;
}

.trust-strip,
.split-section,
.feature-band,
.product-grid,
.delivery-panel,
.page-hero,
.shop-tools,
.cart-layout,
.checkout-layout,
.info-grid,
.contact-layout,
.empty-state,
.prose.narrow,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: -44px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-strip article {
  background: #fff;
  padding: clamp(22px, 3vw, 34px);
}

.trust-strip h2,
.info-grid h2,
.contact-card h2,
.summary-card h2,
.admin-panel h2 {
  font-size: 1.12rem;
}

.trust-strip p,
.product-card p,
.small-note,
.info-grid p,
.contact-card p,
.admin-panel,
td span {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(300px, 1.25fr);
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(70px, 9vw, 118px) 0;
}

.split-section h2,
.feature-band h2,
.section-heading h2,
.delivery-panel h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.prose p {
  margin: 0 0 18px;
  color: #38433a;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(40px, 6vw, 70px);
  color: #fff;
  background: var(--stone);
}

.feature-band .prose p {
  color: rgba(255, 255, 255, 0.82);
}

.age-list {
  display: grid;
  gap: 12px;
  align-content: center;
}

.age-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.age-list strong {
  color: var(--gold);
  font-size: 1.3rem;
}

.section-heading {
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: clamp(62px, 8vw, 100px) auto 22px;
}

.section-heading a {
  color: var(--forest);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: clamp(58px, 8vw, 96px);
}

.product-card,
.summary-card,
.contact-card,
.info-grid article,
.admin-panel,
.login-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-card {
  overflow: hidden;
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
}

.product-media img,
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(22, 35, 26, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-body {
  padding: 20px;
}

.product-body h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.product-body p {
  min-height: 72px;
  margin: 0 0 14px;
}

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

.product-meta strong {
  color: var(--oxblood);
  font-size: 1.25rem;
}

.product-meta.large strong {
  font-size: 2rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.tags span {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--cream);
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 800;
}

.inline-cart-form {
  gap: 10px;
  margin-top: 16px;
}

.inline-cart-form label,
.detail-cart-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.inline-cart-form input,
.detail-cart-form input {
  width: 76px;
}

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

textarea {
  resize: vertical;
}

.delivery-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 340px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 72px;
  padding: clamp(30px, 5vw, 54px);
  background: var(--cream);
}

.contact-card {
  padding: 22px;
}

.contact-card a {
  color: var(--forest);
  font-weight: 800;
}

.page-hero {
  padding: clamp(52px, 8vw, 86px) 0 28px;
}

.page-hero.compact {
  max-width: 880px;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
}

.shop-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.8fr);
  gap: clamp(30px, 5vw, 64px);
  width: min(1180px, calc(100% - 36px));
  margin: clamp(48px, 7vw, 86px) auto;
}

.detail-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
}

.detail-copy {
  align-self: center;
}

.detail-copy h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.detail-copy > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.detail-cart-form {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 24px;
}

.notice {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
}

.notice.success {
  border-color: #a4c786;
  background: #f3faee;
}

.notice.error {
  border-color: #d59a96;
  background: #fff1ef;
}

.notice.warning {
  border-color: #d9be6b;
  background: #fff8df;
}

.cart-layout,
.checkout-layout,
.contact-layout,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
  margin-bottom: 72px;
}

.cart-table,
.checkout-form {
  display: grid;
  gap: 14px;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 100px;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.cart-row > div,
td {
  display: grid;
  gap: 3px;
}

.cart-row span,
.small-note {
  font-size: 0.9rem;
}

.summary-card {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.summary-card div {
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.summary-card .total {
  border: 0;
  font-size: 1.2rem;
}

.summary-card .button {
  width: 100%;
  margin-top: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-form label,
.form-panel label,
.login-card label,
.mini-form label {
  display: grid;
  gap: 6px;
  color: #344037;
  font-weight: 700;
}

.payment-options {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.payment-options legend {
  padding: 0 6px;
  color: var(--forest);
  font-weight: 900;
}

.payment-options label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
}

.payment-options input {
  width: auto;
  margin-top: 3px;
}

.payment-options small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.collection-summary {
  display: none !important;
}

.checkout-layout.collection-selected .stripe-summary {
  display: none !important;
}

.checkout-layout.collection-selected .collection-summary {
  display: flex !important;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 72px;
}

.info-grid article {
  padding: 24px;
}

.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card.large {
  padding: clamp(24px, 4vw, 40px);
}

.contact-card.large p {
  display: grid;
  gap: 4px;
}

.empty-state,
.prose.narrow {
  padding: clamp(52px, 8vw, 92px) 0;
}

.empty-state {
  text-align: center;
}

.empty-state h1,
.empty-state h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 42px 0;
}

.site-footer h2 {
  font-size: 1rem;
}

.site-footer p {
  margin: 6px 0;
  color: var(--muted);
}

.site-footer a {
  color: var(--forest);
  font-weight: 700;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(15, 20, 17, 0.85), rgba(15, 20, 17, 0.55)),
    url("../images/premium-meat-hero.png") center / cover;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.admin-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: #f4f2e7;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 22px;
  background: #fff;
}

.admin-brand {
  display: block;
  margin-bottom: 28px;
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar a {
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--muted);
}

.admin-sidebar a:hover {
  background: var(--cream);
  color: var(--forest);
}

.admin-main {
  padding: clamp(20px, 4vw, 38px);
}

.admin-topbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-topbar h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-stats article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.admin-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
}

.admin-panel {
  padding: 22px;
}

.admin-grid {
  width: 100%;
  margin: 0;
}

.form-panel {
  display: grid;
  gap: 16px;
}

.wide-form {
  max-width: 980px;
}

.setup-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--cream);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #344037;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.row-actions {
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.row-actions button {
  cursor: pointer;
}

.mini-form {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.order-list td:nth-child(3) span {
  display: block;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}

.checkbox-label input {
  width: auto;
}

code {
  border-radius: 5px;
  padding: 2px 5px;
  background: #eee9d4;
}

@media (max-width: 960px) {
  .trust-strip,
  .product-grid,
  .info-grid,
  .site-footer,
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .feature-band,
  .delivery-panel,
  .product-detail,
  .cart-layout,
  .checkout-layout,
  .contact-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    min-height: 620px;
    background:
      linear-gradient(180deg, rgba(15, 20, 17, 0.9), rgba(15, 20, 17, 0.62)),
      url("../images/premium-meat-hero.png") center / cover;
  }

  .trust-strip,
  .product-grid,
  .field-grid,
  .info-grid,
  .site-footer,
  .admin-stats,
  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

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

  .detail-cart-form,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-cart-form {
    flex-wrap: wrap;
  }
}
