/* ============================================================
   Czech Drinks — Cart page styles
   ============================================================ */

main { padding-bottom: 80px; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.cart-crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-block: 18px 0; font-size: 12.5px; font-weight: 500; color: var(--ink-55); }
.cart-crumb a { color: var(--ink-55); transition: color .2s; text-decoration: none; }
.cart-crumb a:hover { color: var(--ink); }
.cart-crumb .sep  { color: rgba(28,26,23,.18); }
.cart-crumb .curr { color: var(--ink); font-weight: 600; }

/* ── Page title ───────────────────────────────────────────── */
.cart-h1 { font-family: var(--display); font-size: clamp(26px, 4vw, 40px); font-weight: 400; letter-spacing: -.015em; line-height: 1.04; margin: 20px 0 28px; }
.cart-count-badge { font-family: var(--sans); font-size: .52em; font-weight: 400; letter-spacing: 0; color: var(--ink-55); vertical-align: middle; }

/* ── 2-col layout ─────────────────────────────────────────── */
.cart-layout { display: block; padding-bottom: 32px; }

/* ── Cart item rows ───────────────────────────────────────── */
.cart-items { display: flex; flex-direction: column; }
.cart-item { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--ink-08); position: relative; }
.cart-item:first-child { border-top: 1px solid var(--ink-08); }
.cart-item-img { width: 84px; height: 84px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ink-08); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item-origin { font-size: 10.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-55); }
.cart-item-name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.cart-item-name a { color: inherit; text-decoration: none; }
.cart-item-variant { font-size: 12px; color: var(--ink-55); }
.cart-item-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }

/* Qty stepper */
.cqty { display: inline-flex; align-items: center; flex-shrink: 0; border: 1.5px solid var(--ink-15); border-radius: var(--radius); background: var(--paper-card); height: 44px; }
.cqty-btn { width: 44px; height: 100%; background: none; border: 0; font-size: 20px; font-weight: 300; color: var(--ink); display: grid; place-items: center; line-height: 1; transition: background .15s; cursor: pointer; }
.cqty-btn:hover { background: var(--ink-08); }
.cqty-val { width: 32px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-item-price { font-family: var(--display); font-size: 17px; font-weight: 400; color: var(--ink); margin-left: auto; }
.cart-item-del { position: absolute; top: 14px; right: -4px; background: none; border: 0; padding: 10px; color: var(--ink-40); cursor: pointer; transition: color .2s; display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; justify-content: center; }
.cart-item-del:hover { color: var(--burgundy); }
.cart-item-del svg { width: 15px; height: 15px; }

/* WC qty input override */
.woocommerce-cart-form .quantity input.qty { width: 40px; text-align: center; border: 0; background: transparent; font-size: 14px; font-weight: 600; padding: 0; }
.woocommerce-cart-form .quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--ink-15); border-radius: var(--radius); background: var(--paper-card); height: 44px; }

/* ── Discount code ────────────────────────────────────────── */
.cart-discount { padding: 16px 0 20px; }
.discount-toggle { background: none; border: 0; padding: 0; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--amber-deep); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--amber-deep); padding-bottom: 2px; }
.discount-reveal { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.discount-reveal.open { max-height: 80px; }
.discount-inner { display: flex; gap: 8px; padding-top: 12px; }
.discount-inner input { flex: 1; font-family: var(--sans); font-size: 14px; padding: 10px 13px; border: 1.5px solid var(--ink-15); border-radius: var(--radius); background: var(--paper-card); color: var(--ink); }
.discount-inner input:focus { outline: none; border-color: var(--ink); }
.discount-inner button { font-family: var(--sans); font-size: 13.5px; font-weight: 600; padding: 10px 16px; background: var(--ink); color: var(--paper); border: 0; border-radius: var(--radius); cursor: pointer; }

/* ── Summary column ───────────────────────────────────────── */
.cart-summary-col { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.cart-progress { background: var(--paper-card); border: 1px solid var(--ink-15); border-radius: var(--radius); padding: 14px 16px; }
.cart-progress.unlocked { border-color: var(--bottle); }
.cart-progress-msg { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.cart-progress-msg em { font-style: normal; color: var(--amber-deep); }
.cart-progress-track { height: 5px; background: var(--ink-08); border-radius: 999px; overflow: hidden; }
.cart-progress-fill  { height: 100%; border-radius: 999px; background: var(--amber); transition: width .6s var(--ease); }
.cart-progress.unlocked .cart-progress-fill { background: var(--bottle); }
.cart-progress-sub { font-size: 11px; color: var(--ink-55); margin: 7px 0 0; }
.cart-summary-box { background: var(--paper-card); border: 1px solid var(--ink-15); border-radius: var(--radius); overflow: hidden; }
.cart-summary-head { padding: 18px 20px 4px; font-family: var(--display); font-size: 19px; font-weight: 400; letter-spacing: -.01em; }
.cart-summary-lines { padding: 12px 20px; display: flex; flex-direction: column; gap: 9px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-70); }
.summary-row .val { font-weight: 500; white-space: nowrap; }
.summary-row.muted { font-size: 12px; color: var(--ink-55); }
.summary-row.total { font-size: 17px; font-weight: 700; color: var(--ink); padding-top: 11px; border-top: 1px solid var(--ink-15); }
.summary-row.total .val { font-family: var(--display); font-size: 1.25em; font-weight: 400; }
.free { color: var(--bottle); font-weight: 700; }
.cart-delivery { display: flex; align-items: center; gap: 9px; padding: 11px 20px; font-size: 12.5px; color: var(--ink-70); background: rgba(35,68,58,.05); border-top: 1px solid var(--ink-08); }
.cart-delivery svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--bottle); }
.cart-trust-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-55); font-weight: 500; padding: 10px 20px; border-top: 1px solid var(--ink-08); }
.cart-trust-row svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--bottle); }
.cart-trust-sep { color: var(--ink-15); }
.cart-pay-icons { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--ink-08); }
.pi { height: 21px; padding: 2px 7px; border: 1px solid var(--ink-15); border-radius: 3px; background: #fff; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: var(--ink-70); white-space: nowrap; }
.cart-cta-area { padding: 16px 20px 20px; border-top: 1px solid var(--ink-08); display: flex; flex-direction: column; gap: 10px; }
.cart-cta-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 16px 20px; font-family: var(--sans); font-size: 16px; font-weight: 700; background: var(--amber); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer; transition: background .22s var(--ease); text-decoration: none; }
.cart-cta-btn:hover { background: var(--amber-deep); }
.cart-ssl { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: var(--ink-55); }
.cart-continue { display: block; text-align: center; font-size: 13px; font-weight: 500; color: var(--ink-55); width: fit-content; margin: 0 auto; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.cart-continue:hover { color: var(--ink); border-color: var(--ink); }

/* ── Ship info tooltip ────────────────────────────────────── */
.ship-info-btn { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--ink-40); font-size: 10px; font-weight: 700; color: var(--ink-55); background: none; cursor: pointer; flex-shrink: 0; position: relative; vertical-align: middle; margin-left: 4px; }
.ship-tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 400; padding: 8px 12px; border-radius: var(--radius); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 20; line-height: 1.4; }
.ship-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.ship-info-btn:hover .ship-tooltip, .ship-info-btn:focus .ship-tooltip { opacity: 1; }

/* ── Mastercard icon pieces ───────────────────────────────── */
.mc-r { width: 13px; height: 13px; border-radius: 50%; background: #eb001b; opacity: .85; }
.mc-l { width: 13px; height: 13px; border-radius: 50%; background: #f79e1b; opacity: .85; margin-left: -6px; }

/* ── Empty cart state ─────────────────────────────────────── */
.cart-empty { display: none; text-align: center; padding: 64px 24px 80px; }
.cart-empty.show { display: block; }
.cart-empty-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--paper-deep, var(--paper-card)); border: 1px solid var(--ink-15); display: grid; place-items: center; margin: 0 auto 24px; color: var(--ink-40); }
.cart-empty-icon svg { width: 32px; height: 32px; }
.cart-empty h2 { font-size: clamp(22px, 4vw, 32px); margin-bottom: 10px; }
.cart-empty p { color: var(--ink-55); max-width: 34ch; margin: 0 auto 28px; }
.cart-empty-cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--amber); color: #fff; border: 0; border-radius: var(--radius); text-decoration: none; font-family: var(--sans); font-size: 15px; font-weight: 700; transition: background .2s; }
.cart-empty-cta:hover { background: var(--amber-deep); }

/* ── Cross-sell ───────────────────────────────────────────── */
.cart-crosssell { padding-top: 52px; border-top: 1px solid var(--ink-15); margin-top: 12px; }
.cart-xhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.cart-xhead h2 { font-size: clamp(20px, 3vw, 26px); margin: 0; }
.cart-xhead a { font-size: 13.5px; font-weight: 600; color: var(--amber-deep); border-bottom: 1.5px solid var(--amber-deep); padding-bottom: 1px; white-space: nowrap; text-decoration: none; }
.cart-xgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 560px) { .cart-xgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .cart-xgrid { grid-template-columns: 1fr; } }

/* ── Sticky mobile bar ────────────────────────────────────── */
.cart-sticky-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--paper-card); box-shadow: 0 -2px 16px rgba(28,26,23,.12); border-top: 1px solid var(--ink-15); padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom)); align-items: center; gap: 12px; }
.cart-sticky-total { flex: 1; }
.cart-sticky-total-label { font-size: 11px; color: var(--ink-55); font-weight: 500; }
.cart-sticky-total-amount { font-family: var(--display); font-size: 20px; line-height: 1.1; }
.cart-sticky-cta { display: inline-flex; align-items: center; gap: 7px; padding: 13px 20px; background: var(--amber); color: #fff; border: 0; border-radius: var(--radius); font-family: var(--sans); font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.cart-sticky-cta:hover { background: var(--amber-deep); }

/* ── Desktop ≥ 860px ──────────────────────────────────────── */
@media (min-width: 860px) {
  .cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 4vw, 64px); align-items: start; }
  .cart-summary-col { margin-top: 0; position: sticky; top: 92px; }
}
@media (max-width: 859px) {
  .cart-sticky-bar { display: flex; }
  main { padding-bottom: 100px; }
}
