/* ============================================================
   Shop — Cart & Checkout (WIN v2)
   ============================================================ */

.shop-main { padding-bottom: clamp(60px, 8vw, 110px); }

/* page head */
.shop-head { padding: clamp(28px, 4vw, 52px) 0 clamp(20px, 3vw, 34px); }
.crumb { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--text); }
.crumb svg { opacity: .5; }
.shop-h1 { font-size: clamp(38px, 5vw, 64px); margin: 0; }
.shop-h1 .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* steps indicator */
.steps { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.step .sdot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 13px; border: 1px solid var(--line-2); color: var(--muted); }
.step.on { color: #fff; }
.step.on .sdot { background: var(--grad); border-color: transparent; color: #fff; }
.step.done .sdot { background: rgba(168,85,247,.18); border-color: var(--violet); color: var(--violet); }
.step-sep { width: 28px; height: 1px; background: var(--line-2); }

/* ---- two-column shell ---- */
.shop-grid { display: grid; grid-template-columns: 1fr 392px; gap: clamp(22px, 3vw, 40px); align-items: start; }
.shop-aside { position: sticky; top: 96px; }

/* ---- generic panel ---- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.panel-h h2, .panel-h h3 { font-family: 'Saira Condensed', sans-serif; text-transform: uppercase; letter-spacing: .03em; font-size: 19px; margin: 0; }
.panel-h .count { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---- cart line items ---- */
.litem { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); transition: background .2s; }
.litem:last-child { border-bottom: none; }
.litem:hover { background: rgba(255,255,255,.015); }
.litem-thumb { width: 92px; height: 92px; border-radius: 16px; background: radial-gradient(120% 100% at 50% 0%, rgba(168,85,247,.16), transparent 65%), var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; padding: 12px; }
.litem-info { min-width: 0; }
.litem-name { font-family: 'Saira Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 20px; line-height: 1; margin: 0 0 8px; }
.litem-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.litem-brand { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.litem-unit { font-size: 13px; color: var(--muted); }
.litem-rm { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--faint); transition: color .2s; }
.litem-rm:hover { color: var(--magenta); }
.litem-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.litem-total { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 22px; white-space: nowrap; }

/* qty stepper */
.qty { display: inline-flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--text-2); transition: color .15s, background .15s; }
.qty button:hover { color: #fff; background: rgba(255,255,255,.06); }
.qty button:disabled { color: var(--faint); cursor: not-allowed; }
.qty .val { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }

/* coupon */
.coupon { display: flex; gap: 10px; padding: 20px 24px; }
.coupon input { flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 13px 20px; color: var(--text); outline: none; font-size: 14.5px; }
.coupon input:focus { border-color: var(--violet); }
.coupon input::placeholder { color: var(--faint); }
.coupon .btn-ghost { padding: 13px 22px; }

/* cart empty / continue */
.cart-continue { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; color: var(--text-2); font-weight: 600; }
.cart-continue:hover { color: #fff; }

/* ---- summary aside ---- */
.sum-rows { padding: 8px 24px; }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; font-size: 15px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.sum-row:last-child { border-bottom: none; }
.sum-row b { color: var(--text); font-weight: 700; white-space: nowrap; }
.sum-row.free b { color: var(--lime); }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 18px 24px; border-top: 1px solid var(--line-2); background: rgba(255,255,255,.015); }
.sum-total .lbl { font-family: 'Saira Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: 17px; }
.sum-total .val { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 32px; }
.sum-total .val small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.sum-cta { padding: 0 24px 24px; }
.sum-cta .btn { width: 100%; justify-content: center; padding: 16px; font-size: 16px; }
.sum-note { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.sum-trust { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 24px 22px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.sum-trust span { display: inline-flex; align-items: center; gap: 6px; }

/* free shipping progress */
.ship-bar { margin: 4px 24px 20px; }
.ship-bar p { font-size: 13px; color: var(--text-2); margin: 0 0 9px; }
.ship-bar p b { color: var(--lime); }
.ship-track { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ship-track i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .5s cubic-bezier(.2,.8,.2,1); }

/* ---- shipping / payment option lists ---- */
.opt-list { display: flex; flex-direction: column; padding: 10px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 14px; border: 1px solid transparent; cursor: pointer; transition: background .18s, border-color .18s; }
.opt:hover { background: rgba(255,255,255,.03); }
.opt.on { background: rgba(168,85,247,.08); border-color: rgba(168,85,247,.4); }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; transition: border-color .18s; }
.opt.on .radio { border-color: var(--violet); }
.opt.on .radio::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--grad); }
.opt-body { flex: 1; min-width: 0; }
.opt-title { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opt-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.opt-price { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 17px; white-space: nowrap; }
.opt-price.free { color: var(--lime); }
.carrier { font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; background: #FFCD00; color: #111; }

/* payment info note */
.pay-info { margin: 4px 16px 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* ---- checkout form ---- */
.form-sec-h { font-family: 'Saira Condensed', sans-serif; text-transform: uppercase; letter-spacing: .03em; font-size: 22px; margin: 0 0 4px; }
.form-sec-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--magenta); margin-left: 3px; }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; color: var(--text); outline: none; font: inherit; font-size: 15px;
  transition: border-color .18s, box-shadow .18s; width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168,85,247,.16); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%238A8A98' stroke-width='2'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.check { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; margin-bottom: 22px; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; transition: .18s; color: #fff; }
.check input:checked + .box { background: var(--grad); border-color: transparent; }
.check input:checked + .box svg { opacity: 1; }
.check .box svg { opacity: 0; transition: opacity .15s; }
.check span.t { font-weight: 600; font-size: 14.5px; }

/* checkout order summary mini lines */
.oitem { display: flex; align-items: center; gap: 13px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.oitem-thumb { width: 52px; height: 52px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; padding: 7px; flex-shrink: 0; position: relative; }
.oitem-qty { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.oitem-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.oitem-name small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.oitem-amt { font-family: 'Saira Condensed', sans-serif; font-weight: 800; font-size: 16px; white-space: nowrap; }

.privacy { font-size: 12.5px; color: var(--muted); line-height: 1.6; padding: 16px 24px; }
.privacy a { color: var(--violet); }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-aside { position: static; }
}
@media (max-width: 560px) {
  .litem { grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; }
  .litem-thumb { width: 72px; height: 72px; border-radius: 13px; padding: 9px; }
  .litem-name { font-size: 17px; }
  .litem-right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 4px; border-top: 1px dashed var(--line); }
  .coupon { flex-direction: column; }
  .coupon .btn-ghost { width: 100%; justify-content: center; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .sum-total .val { font-size: 27px; }
  .shop-aside .panel-h h3 { font-size: 17px; }
}
