/* Waldart main stylesheet — base / components / sections / pages.
   All values come from tokens.css; no raw colors below this line. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
.np a:hover { color: var(--brand); }
.np :is(h1, h2, h3, p) { margin: 0 0 var(--space-3); }
.np { line-height: 1.55; }
.h-2xl { font-size: var(--h-2xl); line-height: 1.1; font-weight: 700; }
.h-xl { font-size: var(--h-xl); line-height: 1.15; font-weight: 700; }
.h-lg { font-size: var(--h-lg); line-height: 1.2; font-weight: 700; }
.h-md { font-size: var(--h-md); font-weight: 700; }
.h-sm { font-size: var(--h-sm); font-weight: 700; }
.h-xs { font-size: var(--h-xs); font-weight: 700; }
.text-lg { font-size: var(--t-lg); } .text-sm { font-size: var(--t-sm); }
.text-xs { font-size: var(--t-xs); }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
.narrow { max-width: 760px; }
.section { padding: var(--space-6) 0; }
.section--tint { background: var(--surface-tint); }
.section--dark { background: var(--gray-900); color: var(--gray-100); }
.section--dark .h-lg { color: #fff; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; }

/* ---------- components ---------- */
.btn {
  display: inline-block; border: 1.5px solid transparent; cursor: pointer;
  border-radius: var(--radius-pill); padding: .8rem 1.8rem;
  font: 700 var(--t-sm)/1 var(--font); letter-spacing: .06em;
  text-transform: uppercase; transition: background .15s, color .15s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--green-600); color: #fff; }
.btn--dark { background: var(--gray-900); color: #fff; }
.btn--outline { border-color: var(--border); background: var(--surface); }
.btn--sm { padding: .55rem 1.2rem; font-size: var(--t-xs); }
.btn--block { display: block; width: 100%; text-align: center; }
.btn[disabled] { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; }

.input {
  width: 100%; padding: .7rem .9rem; font: var(--t-md) var(--font);
  border: 1px solid var(--gray-300); border-radius: 8px; background: var(--surface);
  color: var(--text-primary);
}
.input:focus { outline: 2px solid var(--green-300); border-color: var(--brand); }
.field { margin-bottom: var(--space-3); }
.field label { display: block; font-size: var(--t-sm); margin-bottom: var(--space-1); }
.field-row { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-3); }
.error { color: var(--red-700); background: var(--red-50); border-radius: 8px; padding: .6rem .9rem; }
.success { color: var(--green-700); background: var(--green-50); border-radius: 8px; padding: .6rem .9rem; }

.chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); padding: .45rem 1rem; cursor: pointer;
  font: var(--t-sm) var(--font);
}
.chip[aria-pressed="true"] { border-color: var(--brand); outline: 2px solid var(--green-200); }
.chip--swatch { padding: 4px; border-radius: 50%; line-height: 0; }
.chip--swatch img { border-radius: 50%; object-fit: cover; width: 34px; height: 34px; }

.iconbtn { background: none; border: 0; font-size: 1.6rem; cursor: pointer; line-height: 1; color: var(--text-primary); }

.placeholder--moss {
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, var(--green-300), transparent),
    radial-gradient(ellipse 50% 60% at 70% 60%, var(--green-600), transparent),
    var(--green-800);
}

/* ---------- sections ---------- */

.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4); border-bottom: 1px solid var(--border); }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--space-4); }
.drawer__foot { padding: var(--space-4); border-top: 1px solid var(--border); }
.drawer__total { display: flex; justify-content: space-between; margin-bottom: var(--space-3); }
.cartline { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.cartline__thumb { width: 56px; height: 56px; border-radius: 8px; }
.cartline__qty { display: inline-flex; align-items: center; gap: var(--space-2); }
.cartline__qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.cart__actions { max-width: 420px; margin-top: var(--space-4); }

/* ---------- PDP ---------- */
.pdp { padding-top: var(--space-4); }
.breadcrumb { margin-bottom: var(--space-4); }
.pdp__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-6); }
.pdp__main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.pdp__main img, .card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp__price { color: var(--text-primary); }
.pdp__usps { list-style: none; padding: 0; color: var(--text-muted); }
.pdp__usps li::before { content: "✓ "; color: var(--brand); font-weight: 700; }
.pdp__option { margin: var(--space-3) 0; }

/* ---------- checkout ---------- */
.checkout__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6); align-items: start; }
.checkout__summary { background: var(--surface-tint); border-radius: var(--radius); padding: var(--space-4); position: sticky; top: var(--space-4); }
.sumline { display: flex; justify-content: space-between; padding: var(--space-2) 0; border-bottom: 1px solid var(--border); font-size: var(--t-sm); }
.sumline--total { border-bottom: 0; font-size: var(--t-md); }
.paymethods { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3); }
.paymethod { border: 1px solid var(--border); border-radius: 8px; padding: .7rem .9rem; cursor: pointer; }
.stripe-box { margin: var(--space-3) 0; }

/* coupon / discount code (checkout summary) */
.checkout-coupon { margin: var(--space-3) 0; }
.checkout-coupon > label { display: block; margin-bottom: 6px; color: var(--muted, #535862); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { flex: 1; text-transform: uppercase; }
.coupon-row .btn { white-space: nowrap; }
.coupon-msg { margin-top: 6px; }
.coupon-msg.is-ok { color: #5A8F26; }
.coupon-msg.is-err { color: #B42318; }

/* ---------- text pages ---------- */
.textpage__lede { max-width: 620px; margin: 0 auto var(--space-5); }
.textpage__body { max-width: 720px; margin: 0 auto; }
.textpage__body h2 { font-size: var(--h-xs); margin-top: var(--space-4); }
.empty { padding: var(--space-6) 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid--cards, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pdp__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .grid--cards, .grid--4 { grid-template-columns: 1fr; }
  /* one column on phones — form first, order summary below */
  .checkout__grid { grid-template-columns: 1fr; }
  .checkout__summary { position: static; top: auto; }
  .field-row { grid-template-columns: 1fr; }
  .cartline { grid-template-columns: 48px 1fr auto; }
}
  