/* ============ Page-specific styles: cart.html ============ */

body { background:#F4F5F7; }

/* ── BREADCRUMB ── */
.bc-bar { background:#fff; border-bottom:1px solid var(--border); }
.bc { display:flex; align-items:center; gap:6px; padding:12px 0; font-size:.78rem; color:var(--body); flex-wrap:wrap; }
.bc a { color:var(--body); transition:color .2s; } .bc a:hover { color:var(--accent); }
.bc .sep { color:#ccc; } .bc .cur { color:var(--heading); font-weight:500; }

/* ── CHECKOUT STEPS ── */
.co-steps { background:#fff; border-bottom:1px solid var(--border); padding:16px 0; }
.co-steps-inner { display:flex; align-items:center; justify-content:center; gap:0; max-width:560px; margin:0 auto; padding:0 20px; }
.cos { display:flex; align-items:center; gap:7px; flex:1; }
.cos-dot { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:700; flex-shrink:0; transition:all .3s; }
.cos-dot.active { background:var(--accent); color:#fff; }
.cos-dot.done { background:#16a34a; color:#fff; }
.cos-dot.idle { background:#F0F0F0; color:#aaa; }
.cos-lbl { font-size:.72rem; font-weight:600; }
.cos-lbl.active { color:var(--accent); } .cos-lbl.done { color:#16a34a); } .cos-lbl.idle { color:var(--body); }
.cos-line { flex:1; height:2px; background:#EAEAEA; margin:0 8px; }
.cos-line.done { background:#16a34a; }

/* ── LAYOUT ── */
.cart-page { padding:32px 0 64px; }
.cart-layout { display:grid; grid-template-columns:1fr 360px; gap:24px; align-items:start; }

/* ── CART ITEMS CARD ── */
.cart-card { background:#fff; border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.cart-card-hd { padding:16px 22px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.cart-card-title { font-family:var(--font-heading); font-size:.95rem; font-weight:700; color:var(--heading); }
.cart-clear { font-size:.75rem; color:#ef4444; font-weight:600; background:none; border:none; cursor:pointer; }
.cart-clear:hover { text-decoration:underline; }

/* cart item row */
.cart-item { display:flex; align-items:flex-start; gap:14px; padding:18px 22px; border-bottom:1px solid var(--border); transition:background .2s; }
.cart-item:last-child { border-bottom:none; }
.cart-item:hover { background:#FAFAFA; }
.ci-img-wrap { position:relative; width:82px; height:82px; flex-shrink:0; }
.ci-img { width:82px; height:82px; border-radius:10px; object-fit:cover; background:#F0F0F0; display:block; }
.ci-badge { position:absolute; top:-5px; left:-5px; background:var(--accent); color:#fff; font-size:.55rem; font-weight:800; padding:2px 6px; border-radius:4px; text-transform:uppercase; letter-spacing:.05em; }
.ci-body { flex:1; min-width:0; }
.ci-cat { font-size:.65rem; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--body); margin-bottom:3px; }
.ci-name { font-family:var(--font-heading); font-size:.9rem; font-weight:700; color:var(--heading); margin-bottom:5px; line-height:1.25; }
.ci-variant { font-size:.72rem; color:var(--body); margin-bottom:10px; }
.ci-variant span { background:#F0F0F0; padding:2px 8px; border-radius:4px; margin-right:5px; font-weight:500; }
.ci-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.ci-qty { display:flex; align-items:center; border:1.5px solid var(--border); border-radius:8px; overflow:hidden; }
.ci-qty button { width:32px; height:32px; display:flex; align-items:center; justify-content:center; font-size:1rem; color:var(--heading); transition:background .2s; }
.ci-qty button:hover { background:var(--bg-secondary); }
.ci-qty input { width:38px; height:32px; border:none; text-align:center; font-family:var(--font-heading); font-weight:700; font-size:.85rem; color:var(--heading); outline:none; background:none; }
.ci-link { font-size:.72rem; color:var(--body); cursor:pointer; display:flex; align-items:center; gap:4px; background:none; border:none; transition:color .2s; }
.ci-link:hover { color:var(--accent); }
.ci-link.remove:hover { color:#ef4444; }
.ci-price-col { display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex-shrink:0; }
.ci-price { font-family:var(--font-heading); font-size:.95rem; font-weight:800; color:var(--accent); }
.ci-price-old { font-size:.75rem; color:#aaa; text-decoration:line-through; }
.ci-price-save { font-size:.62rem; font-weight:700; color:var(--accent); background:#FEF0E8; padding:2px 7px; border-radius:20px; }

/* empty cart */
.cart-empty { text-align:center; padding:64px 20px; }
.cart-empty-ico { width:72px; height:72px; border-radius:50%; background:#FEF0E8; display:flex; align-items:center; justify-content:center; margin:0 auto 18px; }

/* ── ORDER SUMMARY ── */
.summary-card { background:#fff; border:1px solid var(--border); border-radius:14px; overflow:hidden; position:sticky; top:88px; }
.sc-hd { padding:16px 20px; border-bottom:1px solid var(--border); font-family:var(--font-heading); font-size:.95rem; font-weight:700; color:var(--heading); }
.sc-body { padding:18px 20px; }

/* coupon */
.coupon-wrap { display:flex; gap:8px; margin-bottom:18px; }
.coupon-inp { flex:1; padding:10px 13px; border:1.5px solid var(--border); border-radius:8px; font-family:var(--font-body); font-size:.84rem; color:var(--heading); outline:none; transition:border-color .2s; background:#fff; }
.coupon-inp:focus { border-color:var(--accent); }
.coupon-inp::placeholder { color:#C0C0C0; }
.coupon-btn { padding:10px 16px; background:var(--heading); color:#fff; border:none; border-radius:8px; font-size:.8rem; font-weight:700; cursor:pointer; transition:.2s; white-space:nowrap; }
.coupon-btn:hover { background:#333; }
.coupon-success { display:none; background:#F0FDF4; border:1px solid #bbf7d0; border-radius:8px; padding:10px 13px; font-size:.78rem; color:#16a34a; font-weight:600; margin-bottom:18px; align-items:center; gap:7px; }
.coupon-success.show { display:flex; }

/* price rows */
.sc-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:11px; font-size:.84rem; }
.sc-row .lbl { color:var(--body); }
.sc-row .val { font-weight:600; color:var(--heading); }
.sc-row.saving .val { color:#16a34a; font-weight:700; }
.sc-row.total { font-size:1rem; font-weight:700; margin-top:14px; padding-top:14px; border-top:1px solid var(--border); }
.sc-row.total .lbl { color:var(--heading); }
.sc-row.total .val { color:var(--accent); font-size:1.1rem; font-family:var(--font-heading); }
.sc-divider { height:1px; background:var(--border); margin:14px 0; }

/* checkout btn */
.checkout-btn { width:100%; padding:14px 20px; background:var(--accent); color:#fff; border:none; border-radius:10px; font-family:var(--font-body); font-size:.9rem; font-weight:700; cursor:pointer; transition:all .3s; display:flex; align-items:center; justify-content:center; gap:8px; box-shadow:0 4px 18px rgba(255,106,0,.28); margin-top:16px; }
.checkout-btn:hover { background:var(--accent-hover); transform:translateY(-2px); box-shadow:0 6px 24px rgba(255,106,0,.38); }
.checkout-btn:disabled { opacity:.5; pointer-events:none; }
.continue-btn { width:100%; padding:11px 20px; background:#fff; color:var(--heading); border:1.5px solid var(--border); border-radius:10px; font-family:var(--font-body); font-size:.84rem; font-weight:600; cursor:pointer; transition:.2s; margin-top:10px; }
.continue-btn:hover { border-color:var(--heading); }

/* trust badges */
.sc-trust { display:flex; flex-direction:column; gap:8px; margin-top:16px; padding-top:16px; border-top:1px solid var(--border); }
.sc-trust-item { display:flex; align-items:center; gap:8px; font-size:.72rem; color:var(--body); }
.sc-trust-item svg { color:var(--accent); flex-shrink:0; }

/* free shipping bar */
.free-ship-bar { background:#F0FDF4; border:1px solid #bbf7d0; border-radius:8px; padding:11px 14px; margin-bottom:16px; }
.fsb-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:7px; font-size:.75rem; }
.fsb-lbl { color:#16a34a; font-weight:600; display:flex; align-items:center; gap:5px; }
.fsb-amt { color:var(--body); }
.fsb-track { height:5px; background:#D1FAE5; border-radius:3px; overflow:hidden; }
.fsb-fill { height:100%; background:#16a34a; border-radius:3px; transition:width .6s ease; }

/* also bought */
.also-bought { margin-top:20px; }
.ab-title { font-size:.78rem; font-weight:700; color:var(--body); text-transform:uppercase; letter-spacing:.07em; margin-bottom:12px; }
.ab-grid { display:flex; flex-direction:column; gap:10px; }
.ab-item { display:flex; align-items:center; gap:10px; padding:10px; background:#FAFAFA; border:1px solid var(--border); border-radius:10px; cursor:pointer; transition:.2s; }
.ab-item:hover { border-color:var(--accent); background:#FEF8F5; }
.ab-img { width:44px; height:44px; border-radius:7px; object-fit:cover; background:#f0f0f0; flex-shrink:0; }
.ab-name { font-size:.78rem; font-weight:600; color:var(--heading); flex:1; min-width:0; line-height:1.3; }
.ab-price { font-family:var(--font-heading); font-size:.8rem; font-weight:700; color:var(--accent); flex-shrink:0; }
.ab-add { width:28px; height:28px; border-radius:50%; background:var(--accent); color:#fff; border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:.2s; flex-shrink:0; }
.ab-add:hover { background:var(--accent-hover); transform:scale(1.1); }

/* payment icons row */
.pay-icons { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin-top:12px; }
.pay-badge { background:#F5F5F5; border:1px solid var(--border); padding:4px 9px; border-radius:5px; font-size:.62rem; font-weight:700; color:var(--body); letter-spacing:.03em; }

/* responsive */
@media(max-width:900px) { .cart-layout { grid-template-columns:1fr; } .summary-card { position:static; } }
@media(max-width:580px) { .ci-img-wrap { width:66px; } .ci-img { width:66px; height:66px; } .cart-item { gap:10px; padding:14px 14px; } }
