/* ==========================================================================
   Cart
   ========================================================================== */
.cart { padding-block: 24px 120px; }
.cart__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.cart h1 { font-size: clamp(44px, 11vw, 72px); line-height: .98; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; border: var(--bw) solid var(--ink); align-self: flex-start; background: var(--surface); }
.steps li { padding: 9px 14px; font-size: 13px; font-weight: 700; }
.steps li + li { border-inline-start: var(--bw) solid var(--ink); }
.steps [aria-current="step"] { background: var(--ink); color: #fff; }

.cart__grid { display: grid; gap: 24px; }
.cart__items { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.shipcard { background: var(--surface); border: var(--bw) solid var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.shipcard > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.shipcard strong { font-size: 16px; }
.shipcard .muted { font-size: 14px; }
.progress--lg { height: 10px; background: var(--line); }

/* lines */
.ltable { border: var(--bw) solid var(--ink); background: var(--surface); }
.lrow--head { display: none; }
.line { border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
.line__main { display: grid; grid-template-columns: 80px 1fr auto; gap: 8px 14px; padding: 16px; align-items: start; }
.line__thumb { grid-row: span 2; width: 80px; height: 80px; background: var(--stage); position: relative; display: block; }
.line__thumb img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.line.is-oos .line__thumb img, .line.is-oos .line__qty { opacity: .45; }
.line__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.line__tier { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--ink-2); }
.line__name { font-size: 17px; line-height: 1.3; font-weight: 800; }
a.line__name:hover { text-decoration: underline; }
.line__meta { font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.line__rm { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.line__rm:hover { background: var(--ink); }
.line__rm:hover svg { stroke: #fff; }
.line__prod { display: contents; }
.line__qty { grid-column: 2; grid-row: 2; display: flex; align-items: center; }
.line__total { grid-column: 3; grid-row: 2; align-self: center; font-size: 18px; font-weight: 800; }
.line__rm { grid-column: 3; grid-row: 1; }
.line__oos { margin: 0 16px 16px; padding: 12px 14px; background: #FBF2DF; border-inline-start: 3px solid #C9A560; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.line__oos span { flex: 1; min-width: 200px; font-size: 14px; color: var(--warn); font-weight: 600; line-height: 1.5; }
.line__oos .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

.cart__tools { display: grid; gap: 16px; }
.toolbox { background: var(--surface); border: var(--bw) solid var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.toolbox__row { display: flex; }
.toolbox__row .field { flex: 1; min-width: 0; border-inline-end: 0; text-align: left; }
.toolbox select.field { border-radius: 0; }
.toolbox .muted { font-size: 14px; }
.toolbox .ok { font-size: 14px; font-weight: 700; }

.bundle { display: grid; grid-template-columns: 96px 1fr; gap: 0 16px; align-items: center; border: var(--bw) solid var(--ink); background: var(--accent); overflow: hidden; }
.bundle__img { grid-row: span 2; align-self: stretch; min-height: 120px; border-inline-end: var(--bw) solid var(--ink); position: relative; }
.bundle__img img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.bundle__txt { display: flex; flex-direction: column; gap: 3px; padding: 16px 0 4px; }
.bundle__txt strong { font-size: 19px; line-height: 1.25; }
.bundle__txt span:last-child { font-size: 14px; }
.bundle .btn { margin: 8px 16px 16px 0; margin-inline: 0 16px; background: var(--ink); color: #fff; }
.bundle .btn:hover { background: #fff; color: var(--ink); }

/* summary */
.summary { background: var(--surface); border: var(--bw) solid var(--ink); }
.summary__h { padding: 18px 20px; border-bottom: var(--bw) solid var(--ink); }
.summary__rows { margin: 0; padding: 6px 20px; font-size: 16px; }
.summary__rows > div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary__rows dd { margin: 0; font-weight: 700; }
.summary__rows .ok { color: var(--ok); }
.summary__rows .summary__vat { border-bottom: 0; font-size: 14px; color: var(--ink-2); }
.summary__vat dd { font-weight: 400; }
.summary__tot { padding: 16px 20px 20px; border-top: var(--bw) solid var(--ink); display: flex; flex-direction: column; gap: 12px; }
.summary__tot > div { display: flex; justify-content: space-between; align-items: baseline; }
.summary__tot > div strong { font-size: 36px; line-height: 1.1; letter-spacing: -.03em; }
.summary__tot .fine { font-size: 13px; line-height: 1.6; text-align: center; }
.summary .btn--lg { min-height: 60px; }

/* empty */
.empty-cart { border: var(--bw) solid var(--ink); display: grid; }
.empty-cart__txt { padding: 32px 20px; display: flex; flex-direction: column; gap: 16px; justify-content: center; align-items: flex-start; }
.empty-cart h2 { font-size: clamp(34px, 8vw, 56px); line-height: 1.05; }
.empty-cart__btns { display: flex; flex-wrap: wrap; }
.empty-cart__art { min-height: 220px; border-top: var(--bw) solid var(--ink); }
.empty-cart__art img { inset-inline-start: 50%; top: 50%; width: 70%; transform: translate(50%, -50%); }

/* mobile pay bar */
.paybar { position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-sticky); background: var(--surface); border-top: var(--bw) solid var(--ink); padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.paybar > div { display: flex; flex-direction: column; line-height: 1.2; }
.paybar strong { font-size: 24px; }
.paybar .btn { flex: 1; max-width: 220px; }

@media (min-width: 768px) {
  .cart { padding-block: 40px 96px; }
  .cart__head { flex-direction: row; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
  .steps li { padding: 10px 18px; font-size: 14px; }
  .cart__tools { grid-template-columns: 1fr 1fr; gap: 24px; }
  .toolbox { padding: 20px 22px; gap: 12px; }
  .bundle { grid-template-columns: 200px 1fr auto; min-height: 180px; }
  .bundle__img { grid-row: auto; min-height: 180px; }
  .bundle__txt { padding: 20px 0; }
  .bundle .btn { margin: 0 0 0 24px; margin-inline: 0 24px; }
  .empty-cart { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .empty-cart__txt { padding: 56px; }
  .empty-cart__art { border-top: 0; border-inline-start: var(--bw) solid var(--ink); }
  .lrow--head { display: grid; grid-template-columns: 1fr 140px 120px 48px; gap: 16px; padding: 12px 22px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
  .line__main { grid-template-columns: 1fr 140px 120px 48px; gap: 16px; padding: 18px 22px; align-items: center; }
  .line__prod { display: flex; gap: 18px; align-items: center; }
  .line__qty, .line__total, .line__rm { grid-column: auto; grid-row: auto; }
  .line__thumb { grid-row: auto; width: 104px; height: 104px; flex-shrink: 0; }
  .line__total { font-size: 19px; }
  .line__oos { margin: 0 22px 18px; }
}
@media (min-width: 1024px) {
  .cart__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .cart__items { grid-column: span 8; gap: 24px; }
  .summary { grid-column: span 4; position: sticky; top: 24px; }
  .paybar { display: none !important; }
}
