:root {
  color-scheme: light;
  --bg: #f8faf7;
  --panel: #ffffff;
  --ink: #1e2722;
  --muted: #5f6b64;
  --line: #d9e2dc;
  --green: #16704f;
  --green-dark: #0f4b36;
  --gold: #c9892b;
  --shadow: 0 18px 46px rgba(30, 39, 34, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--green-dark);
  font-weight: 700;
}

.page-shell {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.intro {
  padding: 64px 0 34px;
  text-align: center;
}

.tagline {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.lead {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.14rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.button,
.btn-store,
.product-pay-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 11px 18px;
  background: var(--panel);
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.btn-kona {
  background: var(--green);
  color: #ffffff;
}

.btn-android {
  background: #ffffff;
}

.btn-ios {
  background: #f1f6f2;
}

.btn-kona {
  border-color: var(--green-dark);
}

.product-pay-link {
  min-height: 40px;
  border-color: var(--gold);
  color: #835311;
  white-space: nowrap;
}

.coffee-hero {
  padding-bottom: 20px;
}

.coffee-section,
.policy-section {
  margin: 28px 0;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 760px;
}

.section-heading p:not(.tagline) {
  color: var(--muted);
}

.coffee-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(280px, 1fr);
  gap: 20px;
  margin: 26px 0;
}

.coffee-photo {
  min-height: 320px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 31, 25, 0.08), rgba(20, 31, 25, 0.34)),
    url("assets/kona-coffee-farm-optimized.jpg")
      center / cover;
}

.product-list {
  display: grid;
  gap: 14px;
}

.product-order-form {
  margin: 0;
}

.product-card,
.delivery-box,
.order-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.product-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.product-card .product-quantity {
  grid-column: 1 / -1;
}

.product-quantity {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-quantity > span {
  font-weight: 800;
}

.product-image-wrap {
  position: relative;
  width: 92px;
  height: 116px;
}

.product-image {
  width: 92px;
  height: 116px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
}

.price-watermark {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: inline-flex;
  min-width: 56px;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 5px 8px;
  background: #16704f;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(22, 112, 79, 0.28);
}

.weight-watermark {
  position: absolute;
  left: -7px;
  top: -7px;
  display: inline-flex;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 5px 8px;
  background: #8a5a1f;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(138, 90, 31, 0.25);
}

.product-card h3,
.delivery-box h3,
.order-form h3 {
  margin-bottom: 8px;
}

.product-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-card strong {
  color: var(--gold);
  white-space: nowrap;
}

.delivery-box {
  padding: 22px;
}

.delivery-box ol,
.policy-section ul {
  margin: 0;
  padding-left: 22px;
}

.delivery-box li,
.policy-section li {
  margin-bottom: 10px;
}

.contact-line {
  display: grid;
  gap: 4px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.order-form {
  margin-top: 20px;
  padding: 22px;
}

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

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd8d0;
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(22, 112, 79, 0.16);
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  overflow: hidden;
  border: 1px solid #cbd8d0;
  border-radius: 8px;
  background: #ffffff;
}

.quantity-stepper input {
  border: 0;
  border-left: 1px solid #cbd8d0;
  border-right: 1px solid #cbd8d0;
  border-radius: 0;
  text-align: center;
  font-weight: 800;
}

.quantity-stepper input:focus {
  outline: 0;
}

.quantity-button {
  border: 0;
  background: #edf5ef;
  color: var(--green-dark);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
}

.quantity-button:active {
  background: #dbece1;
}

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

.coffee-quantity-list.wide {
  grid-column: 1 / -1;
}

.coffee-quantity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.coffee-quantity-row > span {
  font-weight: 800;
}

.checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-order-form .checkout-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfdfb;
}

.product-checkout,
.product-note,
.product-status {
  grid-column: 1 / -1;
}

.product-checkout {
  margin-top: 0;
}

.checkout-row span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.checkout-row strong {
  color: var(--green-dark);
  font-size: 1.8rem;
}

.small-note,
.form-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.policy-section p,
.policy-section li {
  color: var(--muted);
}

.site-footer {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 44px;
  color: var(--muted);
  text-align: center;
}

.site-footer span {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 760px) {
  body {
    background: #ffffff;
  }

  .page-shell,
  .site-footer {
    width: min(100% - 20px, 430px);
  }

  .intro {
    padding: 34px 0 18px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .lead {
    font-size: 1rem;
  }

  .actions {
    gap: 10px;
    margin-top: 20px;
  }

  .coffee-section,
  .policy-section {
    margin: 16px 0;
    padding: 18px;
    box-shadow: 0 12px 34px rgba(30, 39, 34, 0.09);
  }

  .coffee-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .coffee-layout {
    gap: 14px;
    margin: 18px 0;
  }

  .coffee-photo {
    min-height: 190px;
  }

  label.wide {
    grid-column: auto;
  }

  .coffee-quantity-list.wide {
    grid-column: auto;
  }

  .product-card,
  .checkout-row {
    align-items: flex-start;
  }

  .product-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    text-align: center;
  }

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

  .product-card p {
    font-size: 0.95rem;
  }

  .product-image-wrap {
    width: 100%;
    height: 230px;
  }

  .product-image {
    width: 100%;
    height: 230px;
    padding: 10px;
  }

  .price-watermark {
    right: 12px;
    bottom: 12px;
    min-width: 78px;
    padding: 7px 12px;
    font-size: 1rem;
  }

  .weight-watermark {
    left: 12px;
    top: 12px;
    min-width: 62px;
    padding: 7px 12px;
    font-size: 1rem;
  }

  .checkout-row {
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }

  .checkout-row strong {
    font-size: 2rem;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .quantity-stepper {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
  }

  .coffee-quantity-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .quantity-button {
    min-height: 52px;
    font-size: 1.45rem;
  }

  textarea {
    min-height: 112px;
  }

  .delivery-box,
  .order-form {
    padding: 16px;
  }

  .delivery-box ol {
    padding-left: 20px;
  }

  .small-note,
  .form-status {
    font-size: 0.88rem;
  }

  .button,
  .btn-store,
  .product-pay-link {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
  }

  .site-footer {
    padding: 18px 0 34px;
    font-size: 0.92rem;
  }
}
