:root {
  --paper: #f7f1e8;
  --paper-deep: #eadcc8;
  --ink: #152421;
  --muted: #68736d;
  --line: #d3c4ad;
  --teal: #16635b;
  --ochre: #b86b1b;
  --coral: #c84d32;
  --white: #fffaf2;
  --shadow: 0 18px 50px rgba(37, 31, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Aptos, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgba(247, 241, 232, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

main {
  padding: 0 clamp(18px, 5vw, 56px) 56px;
}

.hero {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 36px;
  padding: 70px 0 42px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(247, 241, 232, 0.96), rgba(247, 241, 232, 0.4)),
    url("https://images.unsplash.com/photo-1523381210434-271e8be1f52b?auto=format&fit=crop&w=1800&q=80")
      center / cover;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, Cambria, serif;
  line-height: 1.02;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 82px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.hero-copy p:last-child {
  max-width: 620px;
  color: #39443f;
  font-size: 18px;
  line-height: 1.6;
}

.hero-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 280px;
  padding: 26px;
  color: var(--white);
  background: rgba(21, 36, 33, 0.88);
  box-shadow: var(--shadow);
}

.hero-panel span {
  color: #f0bd75;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  margin: 10px 0;
  font-family: Georgia, serif;
  font-size: 32px;
}

.hero-panel p {
  margin-bottom: 0;
  color: #e8dfd2;
  line-height: 1.5;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: 34px;
  align-items: start;
  padding-top: 44px;
}

.section-heading {
  margin-bottom: 22px;
}

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

.product-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(37, 31, 22, 0.08);
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: var(--paper-deep);
}

.product-body {
  padding: 18px;
}

.product-category {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-body h3 {
  margin: 8px 0;
  font-size: 22px;
}

.product-body p {
  min-height: 48px;
  color: var(--muted);
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.product-price {
  font-size: 20px;
}

.add-button,
.qty-button {
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--teal);
  cursor: pointer;
}

.add-button {
  min-width: 84px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
}

.add-button:hover,
.qty-button:hover {
  background: #0f4f49;
}

.checkout-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.empty-cart,
.payment-status {
  color: var(--muted);
  line-height: 1.5;
}

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

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  color: var(--muted);
  font-size: 13px;
}

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

.qty-button {
  width: 34px;
  height: 34px;
  border-radius: 0;
}

.qty-count {
  text-align: center;
  font-weight: 800;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 18px 0;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  font-size: 20px;
}

.checkout-form {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.checkout-form input:focus {
  outline: 3px solid rgba(22, 99, 91, 0.18);
  border-color: var(--teal);
}

.payment-status {
  min-height: 48px;
  padding: 12px;
  background: #f2eadc;
  border-radius: 6px;
}

.payment-status.is-error {
  color: #7a1d0f;
  background: #ffe1d8;
}

.payment-status.is-success {
  color: #145343;
  background: #dff3ec;
}

.paypal-buttons {
  margin-top: 14px;
  min-height: 54px;
}

.ops-section,
.receipts-section {
  padding-top: 54px;
}

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

.ops-grid article,
.receipt-item {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ops-grid h3 {
  margin-bottom: 8px;
}

.ops-grid p,
.receipt-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.receipt-list {
  display: grid;
  gap: 12px;
}

.receipt-item {
  display: grid;
  gap: 6px;
}

.receipt-item code {
  overflow-wrap: anywhere;
  color: var(--coral);
}

@media (max-width: 980px) {
  .hero,
  .store-layout,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    position: static;
  }
}

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

  .top-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

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