:root {
  --ink: #17210f;
  --muted: #62705b;
  --line: #d9dfcf;
  --paper: #fbfaf3;
  --panel: #ffffff;
  --sage: #355916;
  --sage-dark: #213c0b;
  --gold: #c9892a;
  --blue: #123f71;
  --soft: #eef2e5;
  --shadow: 0 22px 60px rgba(37, 53, 22, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 243, .9);
  border-bottom: 1px solid rgba(53, 89, 22, .12);
  backdrop-filter: blur(16px);
}

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

.brand sup,
.trust-strip sup,
.success-card sup {
  font-size: .58em;
  line-height: 0;
  vertical-align: super;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.cart-button strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: clamp(28px, 6vw, 76px) clamp(18px, 4vw, 56px);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: .95;
}

h2 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.hero-copy > p:not(.eyebrow),
.split p,
.detail-copy p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
}

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

.secondary {
  background: #fff;
  border-color: var(--line);
}

.full {
  width: 100%;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-strip span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-media {
  overflow: hidden;
  border-radius: 8px;
  background: #f3ead4;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: auto;
}

.selectors label,
.promo {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

.section {
  padding: clamp(50px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 28px;
}

.feature-band {
  padding: 0 clamp(18px, 4vw, 56px);
}

.feature-band img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-band.narrow img {
  max-height: 470px;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

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

.routine-list article,
.review-grid article {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.routine-list strong,
.review-grid strong {
  font-size: 20px;
}

.routine-list span,
.review-grid p,
.review-grid span,
.faq p {
  color: var(--muted);
  line-height: 1.5;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 480px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.gallery-main {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumbs button {
  width: 64px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft) center / cover no-repeat;
  background-image: var(--thumb-image);
  cursor: pointer;
}

.selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 14px;
}

.fine-print {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.payment-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.payment-status[data-tone="warn"] {
  color: #8a4d10;
}

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

.customer-reviews {
  overflow: hidden;
  padding-inline: 0;
}

.customer-reviews .section-heading {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 60px);
}

.review-marquee {
  position: relative;
  margin-top: 26px;
  overflow: hidden;
}

.review-marquee::before,
.review-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(80px, 12vw);
  content: "";
  pointer-events: none;
}

.review-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), rgba(251, 250, 243, 0));
}

.review-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper), rgba(251, 250, 243, 0));
}

.review-track {
  display: flex;
  width: max-content;
  gap: 16px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: review-scroll 64s linear infinite;
  backface-visibility: hidden;
}

.review-marquee:hover .review-track {
  animation-play-state: paused;
}

.review-card {
  display: grid;
  flex: 0 0 min(330px, 84vw);
  align-content: start;
  min-height: 230px;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(45, 61, 43, .06);
  contain: layout paint;
}

.review-card .stars {
  color: #9a6a19;
  font-size: 15px;
  letter-spacing: 0;
}

.review-card strong {
  color: var(--ink);
  font-size: 21px;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@keyframes review-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-50% - 8px), 0, 0);
  }
}

.faq {
  padding-top: 30px;
}

details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.site-footer a {
  color: var(--sage);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  justify-content: end;
  background: rgba(11, 16, 8, .42);
}

.cart-drawer.open {
  display: flex;
}

.cart-panel {
  width: min(100%, 430px);
  min-height: 100%;
  overflow: auto;
  background: var(--panel);
  padding: 22px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .24);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-head h2 {
  font-size: 36px;
}

.cart-head button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

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

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.promo span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.promo button {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 0 14px;
  font-weight: 850;
}

.shipping-form {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.shipping-form strong {
  font-size: 15px;
}

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

.shipping-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.shipping-grid .wide {
  grid-column: 1 / -1;
}

.shipping-grid input,
.shipping-grid select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.shipping-rates {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.shipping-rate {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.shipping-rate.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(33, 46, 39, .12);
}

.shipping-rate strong {
  white-space: nowrap;
}

.totals {
  margin: 18px 0;
  border-top: 1px solid var(--line);
}

.totals p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.grand {
  font-size: 19px;
}

.checkout-result {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--paper);
}

.checkout-result section {
  width: min(100%, 560px);
  text-align: center;
}

.checkout-result h1 {
  margin: 10px 0 14px;
}

.checkout-result p {
  color: var(--muted);
}

.admin-shell {
  min-height: 100vh;
  padding: 34px clamp(18px, 4vw, 56px);
  background: var(--paper);
}

.admin-header,
.admin-auth,
.order-head,
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-header {
  margin-bottom: 22px;
}

.admin-header h1 {
  margin: 0;
}

.admin-auth {
  align-items: end;
  justify-content: start;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.admin-auth label {
  display: grid;
  gap: 8px;
  width: min(100%, 420px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-auth input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
}

.orders-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.order-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
}

.order-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.order-card dl,
.order-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.order-card dl div,
.order-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.order-card dt {
  color: var(--muted);
  font-weight: 800;
}

.order-card dd {
  margin: 0;
  text-align: right;
}

.order-card li {
  list-style: none;
}

.admin-actions {
  justify-content: start;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    height: auto;
  }

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

  .customer-reviews .section-heading {
    padding-inline: 20px;
  }
}

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

  .nav-links {
    display: none;
  }

  .admin-header,
  .admin-auth,
  .order-head,
  .order-card dl div,
  .order-card li {
    align-items: stretch;
    flex-direction: column;
  }

  .routine-list,
  .selectors,
  .shipping-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 44px;
  }

  .feature-band {
    padding-inline: 0;
  }

  .feature-band img {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-track {
    animation: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: auto;
    padding-inline: 20px;
    scroll-snap-type: x proximity;
  }

  .review-card {
    scroll-snap-align: start;
  }
}
