/* Product pages, checkout, order confirmation and policy pages.
   Builds on styles.css (tokens, .field, .add, .cart__send, .card__*). */

.shop { padding: clamp(28px, 5vw, 60px) 16px clamp(56px, 7vw, 92px); }
.shop h1 { font-size: clamp(30px, 4.4vw, 46px); color: var(--brand); line-height: 1.15; margin: 0 0 14px; }

/* ---------- product page ---------- */

.pdp { max-width: var(--maxw); margin: 0 auto; }
.pdp__crumbs { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.pdp__crumbs a { color: var(--ink-soft); text-decoration: none; }
.pdp__crumbs a:hover { color: var(--brand); text-decoration: underline; }
.pdp__grid { display: grid; gap: clamp(24px, 4vw, 54px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.pdp__media img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); display: block; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.pdp__thumbs img { border-radius: var(--r); }
.pdp__info { display: grid; gap: 12px; align-content: start; }
.pdp__info > p { margin: 0; }
.pdp__weight { color: var(--ink-soft); font-weight: 600; }
.pdp__price { font-size: 30px; font-weight: 800; color: var(--ink); }
.pdp__price small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.pdp__stock { font-weight: 700; font-size: 15px; }
.pdp__stock.is-in { color: var(--wa); }
.pdp__stock.is-out { color: #a3412f; }
.pdp__buy .add { min-width: 220px; }
.pdp__facts { margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--ink-soft); }
.pdp__facts a { color: var(--brand); font-weight: 600; }

/* ---------- checkout + confirmation ---------- */

.co { max-width: 1040px; margin: 0 auto; }
.co__empty, .co__grid, .co__missing, .co__ok { display: none; }
.co[data-state="empty"] .co__empty,
.co[data-state="missing"] .co__missing,
.co[data-state="ok"] .co__ok { display: block; }
.co[data-state="full"] .co__grid { display: grid; }
.co__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }

.co__form { display: grid; gap: 18px; }
.co__form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.co__form fieldset[hidden] { display: none; }
.co__form legend { font-size: 19px; font-weight: 800; color: var(--brand); margin-bottom: 4px; padding: 0; }
.co__row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }

.co__opt {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; cursor: pointer;
}
.co__opt:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.co__opt:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.co__opt span { display: grid; line-height: 1.35; }
.co__opt small { color: var(--ink-soft); font-size: 13.5px; }
.co__opt em { font-style: normal; font-weight: 700; }

.co__pay { background: var(--panel); border-radius: var(--r); padding: 14px 16px; }
.co__pay b { display: block; color: var(--brand); font-size: 16.5px; }
.co__pay p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

.co__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.co__agree input { margin-top: 5px; }
.co__agree a { color: var(--brand); font-weight: 600; }
.co__hint { margin: 0; font-size: 13.5px; color: var(--ink-soft); text-align: center; }

.co__sum { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; position: sticky; top: 90px; }
.co__sumhead { display: flex; justify-content: space-between; align-items: center; }
.co__sumhead h2 { margin: 0; font-size: 21px; color: var(--brand); }
.co__edit { background: none; border: 0; font: inherit; font-size: 14px; color: var(--brand); text-decoration: underline; cursor: pointer; }

.co__lines { list-style: none; margin: 12px 0 0; padding: 0; }
.co__lines li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.co__lines img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.co__lines--plain li { grid-template-columns: 1fr auto; }

.co__totals { margin: 10px 0 0; }
.co__totals div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 15.5px; }
.co__totals dt, .co__totals dd { margin: 0; }
.co__grand { font-size: 19px !important; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px !important; }
.co__vat { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.co__eta { margin: 10px 0 0; font-weight: 700; color: var(--brand); }

.co--done { max-width: 640px; text-align: start; }
.co--done .cart__send { margin-top: 8px; }
.co__num { color: var(--ink-soft); margin: 0 0 16px; }
.co__box { border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px 12px; margin-bottom: 8px; }
.co__box p { margin: 8px 0 0; }
.co--done .co__pay { margin: 18px 0; }

/* honeypot for bots: off-screen, skipped by keyboard and screen readers */
.co__hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- policies ---------- */

.policy { max-width: 760px; margin: 0 auto; }
.policy h2 { font-size: 22px; color: var(--brand); margin: 1.4em 0 .4em; }
.policy p, .policy li { line-height: 1.75; }
.policy a { color: var(--brand); font-weight: 600; }

@media (max-width: 820px) {
  .pdp__grid, .co__grid { grid-template-columns: 1fr; }
  .co__sum { position: static; order: -1; }
  .co__row { grid-template-columns: 1fr; }
}
