/* NadPoint Cart — design tokens match checkout.css / account.css */
.cart-page {
    --ndp-primary: #c59b27;
    --ndp-primary-dark: #a07820;
    --ndp-danger: #ef4444;
    --ndp-success: #10b981;
    --ndp-text: #1b3022;
    --ndp-muted: #6b7280;
    --ndp-border: #e5e7eb;
    max-width: 1200px; margin: 30px auto 60px; padding: 0 20px;
}
.cart-page h1 { margin: 4px 0 20px; font-size: 1.7rem; color: var(--ndp-text); }
.ndp-breadcrumb { font-size: 0.82rem; color: var(--ndp-muted); margin-bottom: 8px; }
.ndp-breadcrumb a { color: var(--ndp-muted); text-decoration: none; }
.ndp-breadcrumb a:hover { color: var(--ndp-primary); }
.ndp-breadcrumb span { margin: 0 6px; }
.ndp-breadcrumb .is-current { color: var(--ndp-text); font-weight: 600; }

.cart-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 880px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-vendor-group { margin-bottom: 6px; }
.cart-vendor-heading {
    font-size: 0.82rem; font-weight: 700; color: var(--ndp-primary-dark); text-transform: uppercase;
    letter-spacing: 0.02em; padding: 12px 4px 8px; display: flex; align-items: center; gap: 8px;
}
.cart-vendor-heading a { color: inherit; text-decoration: none; }
.cart-vendor-heading a:hover { text-decoration: underline; }

.cart-item {
    display: grid; grid-template-columns: 72px 1fr auto auto auto auto; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--ndp-border); border-radius: 12px; padding: 14px; margin-bottom: 10px;
}
.cart-item.is-out-of-stock { opacity: 0.65; }
.item-image img, .item-image picture img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.item-image .no-image { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; border-radius: 8px; color: #ccc; font-size: 1.5rem; }
.item-info h4 { margin: 0 0 4px; font-size: 0.95rem; }
.item-info h4 a { color: var(--ndp-text); text-decoration: none; }
.item-info h4 a:hover { color: var(--ndp-primary); }
.cart-item-variation { display: block; font-size: 0.78rem; color: var(--ndp-muted); }
.cart-item-sale-badge { display: inline-block; background: #fef2f2; color: #dc2626; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-top: 4px; }
.cart-item-stock-warning { display: block; font-size: 0.76rem; color: #d97706; font-weight: 600; margin-top: 3px; }
.cart-item-stock-warning.is-out { color: var(--ndp-danger); }
.cart-item-inline-notice { display: block; font-size: 0.74rem; color: var(--ndp-danger); margin-top: 3px; }
.move-to-wishlist { border: none; background: none; color: var(--ndp-muted); font-size: 0.76rem; cursor: pointer; padding: 5px 0 0; display: inline-flex; align-items: center; gap: 5px; }
.move-to-wishlist:hover { color: #e63946; }

.item-qty { display: flex; align-items: center; border: 1px solid var(--ndp-border); border-radius: 8px; overflow: hidden; }
.item-qty button { width: 30px; height: 32px; border: none; background: #f9fafb; cursor: pointer; font-size: 1rem; color: var(--ndp-text); }
.item-qty button:hover { background: #f0f0f0; }
.item-qty .qty-input { width: 42px; height: 32px; border: none; border-left: 1px solid var(--ndp-border); border-right: 1px solid var(--ndp-border); text-align: center; font-size: 0.88rem; -moz-appearance: textfield; }
.item-qty .qty-input::-webkit-outer-spin-button, .item-qty .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.item-price { color: var(--ndp-muted); font-size: 0.88rem; white-space: nowrap; }
.item-total { font-weight: 700; color: var(--ndp-text); white-space: nowrap; }
.remove-item { border: none; background: none; color: #d1d5db; cursor: pointer; font-size: 0.95rem; padding: 8px; }
.remove-item:hover { color: var(--ndp-danger); }

@media (max-width: 640px) {
    .cart-item { grid-template-columns: 60px 1fr; grid-template-areas: "img info" "img qty" "img price"; row-gap: 8px; }
    .item-image { grid-area: img; }
    .item-info { grid-area: info; }
    .item-qty { grid-area: qty; }
    .item-price { grid-area: price; }
    .item-total { display: none; }
    .remove-item { position: absolute; top: 10px; right: 10px; }
    .cart-item { position: relative; }
}

.cart-vendor-notice { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 14px; margin: 6px 0 16px; flex-wrap: wrap; }

.cart-cross-sell { margin-top: 30px; }
.cart-cross-sell h3 { font-size: 1.05rem; margin-bottom: 14px; color: var(--ndp-text); }

.cart-summary { background: var(--ndp-cart-bg, #f8f9fa); border-radius: 14px; padding: 22px; }
.cart-summary.is-sticky { position: sticky; top: 20px; }
.ndp-signin-hint { font-size: 0.82rem; color: var(--ndp-muted); margin: 0 0 14px; }

.coupon-section, .coins-section { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.coupon-section input[type="text"], .coins-section input[type="number"] { flex: 1; min-width: 120px; padding: 9px 10px; border: 1.5px solid var(--ndp-border); border-radius: 8px; font-size: 0.85rem; }
.coupon-section button, .coins-section button { padding: 9px 14px; border: none; border-radius: 8px; background: var(--ndp-text); color: #fff; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.coupon-section button:hover, .coins-section button:hover { background: var(--ndp-primary); }
.coins-section label { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: #374151; width: 100%; cursor: pointer; }
#coins-amount-row { display: flex; gap: 8px; width: 100%; }
#coupon-message, #coins-message { font-size: 0.76rem; width: 100%; }

.cart-totals { border-top: 1px dashed var(--ndp-border); padding-top: 14px; }
.cart-totals > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; color: #374151; flex-wrap: wrap; gap: 4px; }
.cart-totals .total { border-top: 1.5px solid var(--ndp-text); margin-top: 8px; padding-top: 10px; font-size: 1.1rem; font-weight: 800; color: var(--ndp-text); }

.cart-min-total-notice { font-size: 0.78rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px; margin: 12px 0 0; }

.checkout-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px;
    background: linear-gradient(135deg, var(--ndp-primary), #d4af37); color: #fff; text-decoration: none;
    padding: 14px; border-radius: 10px; font-weight: 800; font-size: 1rem; box-shadow: 0 6px 18px rgba(197,155,39,0.3);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.checkout-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(197,155,39,0.4); color: #fff; }
.checkout-btn.is-disabled { opacity: 0.55; }
.continue-shopping-link { display: block; text-align: center; margin-top: 12px; font-size: 0.84rem; color: var(--ndp-muted); text-decoration: none; }
.continue-shopping-link:hover { color: var(--ndp-primary); }

.empty-cart { text-align: center; padding: 70px 20px; color: var(--ndp-muted); }
.empty-cart i { font-size: 3.4rem; color: #d1d5db; margin-bottom: 14px; }
.empty-cart h2 { color: var(--ndp-text); margin: 0 0 6px; }
.empty-cart .btn-shop { display: inline-block; margin-top: 16px; background: var(--ndp-primary); color: #fff; padding: 11px 24px; border-radius: 9px; text-decoration: none; font-weight: 700; }
