/* Carnivore Soaps — site styles */
:root {
  --tallow: #f4ecdc;
  --tallow-deep: #e9dcc2;
  --paper: #fbf7ef;
  --ink: #1f1b17;
  --ink-soft: #4a423a;
  --muted: #7a6f63;
  --rust: #9a3b1e;
  --rust-dark: #7a2d15;
  --line: #d9cbb0;
  --radius: 14px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); }
a:hover { color: var(--rust-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  letter-spacing: 0.01em; color: var(--ink); text-decoration: none;
}
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--rust); }

/* Announcement */
.announce {
  background: var(--ink); color: var(--tallow);
  text-align: center; font-size: 14px; padding: 8px 16px;
}

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.1fr 1fr; } }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 0 0 16px;
}
.hero p { font-size: 19px; color: var(--ink-soft); margin: 0 0 24px; max-width: 34ch; }
.hero img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--rust); color: #fff; text-decoration: none;
  font: 600 16px/1 var(--sans); padding: 15px 24px; border-radius: 999px;
}
.btn:hover { background: var(--rust-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn[aria-disabled="true"] { background: var(--muted); cursor: not-allowed; }

/* Sections */
section { padding: 48px 0; }
.section-title { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; }
.section-lead { color: var(--ink-soft); margin: 0 0 28px; }
.band { background: var(--tallow); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Product grid */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.card:hover { border-color: var(--ink-soft); }
.card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.card-body { padding: 16px 18px 20px; }
.card h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 4px; }
.card .tag { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.card .price { font-weight: 600; }

/* Feature list */
.features { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--ink-soft); }

/* Product page */
.product { padding: 32px 0 56px; }
.product .wrap { display: grid; gap: 36px; }
@media (min-width: 900px) { .product .wrap { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.gallery-main { border-radius: var(--radius); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--tallow); }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.product h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 48px); margin: 0 0 6px; line-height: 1.1; }
.product .tag { color: var(--muted); margin: 0 0 18px; }
.product .desc p { margin: 0 0 14px; }
.ingredients { font-size: 15px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; }

/* Purchase box */
.buy {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--tallow);
  padding: 18px; margin: 22px 0;
}
.option {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
  cursor: pointer; margin-bottom: 10px;
}
.option:has(input:checked) { border-color: var(--ink); }
.option input { margin-top: 5px; accent-color: var(--rust); }
.option .label { font-weight: 600; }
.option .sub { font-size: 14px; color: var(--muted); }
.option .amount { margin-left: auto; font-weight: 600; white-space: nowrap; }
.freq { margin: 8px 0 0; display: none; }
.option:has(input:checked) .freq { display: block; }
.freq select {
  font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.buy .btn { width: 100%; text-align: center; margin-top: 6px; }
.fineprint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.qty-field { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin: 4px 0 12px; }
.qty-field input {
  width: 72px; font: inherit; font-weight: 400; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.note { font-size: 14px; margin: 10px 0 0; }
.note:empty, .error:empty { display: none; }
.error { font-size: 14px; color: var(--rust-dark); margin: 10px 0 0; }

/* Cart */
.cart-page { padding: 40px 0 64px; min-height: 50vh; }
.cart-page .wrap { max-width: 760px; }
.empty { color: var(--ink-soft); }
.line {
  display: grid; grid-template-columns: 72px 1fr auto auto; gap: 8px 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.line-info { display: flex; flex-direction: column; }
.line-info a { color: var(--ink); font-weight: 600; text-decoration: none; }
.line-info span { font-size: 14px; color: var(--muted); }
.line-total { font-weight: 600; min-width: 64px; text-align: right; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button, .remove {
  font: inherit; cursor: pointer; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
}
.qty button { width: 32px; height: 32px; font-size: 18px; line-height: 1; }
.remove { grid-column: 2; justify-self: start; font-size: 13px; padding: 4px 10px; color: var(--muted); }
.cart-summary {
  margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tallow);
}
.cart-summary .row { display: flex; justify-content: space-between; padding: 4px 0; }
.cart-summary .total { font-weight: 700; font-size: 19px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.cart-summary .btn { width: 100%; text-align: center; margin-top: 12px; }
@media (max-width: 520px) {
  .line { grid-template-columns: 56px 1fr auto; }
  .line img { width: 56px; height: 56px; }
  .line-total { grid-column: 3; grid-row: 1; }
  .qty { grid-column: 2; }
  .remove { grid-column: 3; justify-self: end; }
}

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); }

@media (max-width: 520px) {
  .nav { gap: 14px; font-size: 14px; }
  .brand { font-size: 19px; }
}
