/* Wspólny wygląd ścieżki zakupowej: koszyk → podsumowanie → potwierdzenie → płatność.
   Minimalistycznie: biała strona, cienkie linie zamiast kart i teł. Style specyficzne dla
   danej strony (pozycje koszyka, formularze, wybór dostawy) zostają w jej <style>. */

/* ---------- Nagłówek strony ---------- */
.cart-head{ padding:28px var(--gutter) 0; }
.cart-head h1{ font-size:clamp(1.8rem, 1.5rem + 1.2vw, 2.3rem); }
.cart-head .note{ font-size:.85rem; color:var(--accent-4); padding-top:6px; }
.cart-count{ font-size:.9rem; color:var(--accent-4); font-weight:300; }
.steps{ display:flex; gap:8px; font-size:.85rem; color:var(--accent-4); padding-top:6px; }
.steps .current{ color:var(--contrast); font-weight:600; }

/* ---------- Układ: treść + podsumowanie 320px ---------- */
.cart-layout, .checkout-layout{ display:grid; grid-template-columns:1fr 320px; gap:64px; padding:20px var(--gutter) 88px; align-items:start; }
@media (max-width:900px){ .cart-layout, .checkout-layout{ grid-template-columns:1fr; gap:32px; } }

/* ---------- Sekcje ---------- */
.card{ border-top:1px solid var(--contrast); padding:20px 0 8px; margin-bottom:28px; }
.card h2{ font-size:1.05rem; font-weight:500; padding-bottom:12px; display:flex; justify-content:space-between; align-items:center; }
.card h2 a{ font-size:.85rem; font-weight:400; text-decoration:underline; color:var(--accent-4); }
.card h2 a:hover{ color:var(--contrast); }
.meta-row{ display:flex; justify-content:space-between; gap:16px; font-size:.9rem; padding:8px 0; border-bottom:1px solid #e4e2dd; }
.meta-row:last-child{ border-bottom:0; }
.meta-row span:first-child{ color:var(--accent-4); flex-shrink:0; }
.meta-row span:last-child{ text-align:right; }

/* ---------- Podsumowanie (prawa kolumna) ---------- */
.summary{ position:sticky; top:96px; height:fit-content; }
.summary .card{ margin-bottom:0; }
.summary > h2{ border-top:1px solid var(--contrast); padding-top:20px; font-size:1.05rem; font-weight:500; padding-bottom:12px; }
.summary-row{ display:flex; justify-content:space-between; gap:12px; font-size:.9rem; padding:5px 0; }
.summary-row span:last-child{ text-align:right; }
.summary-total{ display:flex; justify-content:space-between; gap:12px; font-size:1.1rem; font-weight:600; padding-top:14px; margin-top:10px; border-top:1px solid #e4e2dd; }
@media (max-width:900px){ .summary{ position:static; } }

/* ---------- Przyciski i komunikaty ---------- */
.btn-block{ display:block; width:100%; text-align:center; margin-top:22px; }
.btn-block[disabled]{ opacity:.5; cursor:not-allowed; }
.error{ background:#fdeceb; color:#b00020; padding:12px 16px; border-radius:6px; font-size:.9rem; margin-bottom:20px; }
