/* ===== CART PAGE — Clean v3 ===== */

/* Cart Banner */
.cart-page-banner {
    background: var(--dark-200);
    padding: var(--sp-xl) 0;
    position: relative;
}
.cart-page-banner-content {
    position: relative; z-index: 1;
    max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-md);
}
.cart-page-banner-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}
.cart-page-banner-content p { color: rgba(255,255,255,0.45); font-size: 14px; }

/* Cart Container */
.cart-container {
    max-width: 1280px;
    margin: var(--sp-xl) auto var(--sp-2xl);
    padding: 0 var(--sp-md);
}
.cart-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--sp-gap);
    align-items: start;
}

/* Cart Items */
.cart-items {
    background: var(--white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    overflow: hidden;
}
.cart-items-header {
    background: var(--off-white);
    padding: var(--sp-sm) var(--sp-md);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.cart-items-header h2 {
    font-size: 18px; font-weight: 600;
    color: var(--text-dark);
}
.cart-items-body { padding: var(--sp-sm); }

/* Empty Cart */
.empty-cart {
    text-align: center; padding: 80px 24px;
}
.empty-cart-icon { font-size: 72px; margin-bottom: 20px; opacity: 0.3; }
.empty-cart p {
    font-size: 20px; font-weight: 600;
    color: var(--text-muted); margin-bottom: 6px;
}
.empty-cart span {
    font-size: 14px; color: var(--text-light);
    display: block; margin-bottom: 28px;
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: var(--sp-sm);
    align-items: center;
    padding: var(--sp-sm);
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--r-md);
    margin-bottom: var(--sp-md);
    transition: var(--t);
}
.cart-item:last-child { margin-bottom: 0; }
.cart-item:hover {
    border-color: #d0d0d0;
    box-shadow: var(--shadow-sm);
}
.cart-item-image {
    width: 88px; height: 88px;
    border-radius: var(--r-sm);
    background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}
.cart-item-details h3 {
    font-size: 15px; font-weight: 600;
    color: var(--text-dark); margin-bottom: 4px;
}
.cart-item-details p {
    color: var(--text-light); font-size: 11px;
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 12px;
}

/* Quantity Control */
.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
    width: fit-content;
}
.quantity-control button {
    width: 34px; height: 34px;
    background: var(--off-white);
    border: none;
    cursor: pointer;
    font-size: 16px; font-weight: 600;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: var(--t-fast);
}
.quantity-control button:hover { background: #eee; color: var(--text-dark); }
.quantity-control input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--white);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    margin: 0 !important; padding: 0 !important; height: 34px;
}
.quantity-control input:focus { outline: none; }

/* Cart Item Actions */
.cart-item-actions {
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 10px;
}
.cart-item-price {
    font-size: 18px; font-weight: 700;
    color: var(--text-dark); white-space: nowrap;
}
.remove-btn {
    background: transparent;
    color: #dc3545;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    font-size: 12px; font-weight: 500;
    font-family: 'Outfit', sans-serif;
    transition: var(--t);
    text-decoration: underline;
}
.remove-btn:hover { color: #a71d2a; }

/* Cart Summary */
.cart-summary {
    background: var(--white);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky; top: 88px;
}
.cart-summary-header {
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-sm) var(--sp-md);
}
.cart-summary h2 {
    font-size: 18px; font-weight: 600;
    color: var(--text-dark);
}
.cart-summary-body { padding: var(--sp-md); }

/* Summary Rows */
.summary-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; font-size: 14px; color: var(--text-muted);
}
.summary-row span:last-child {
    font-weight: 600; color: var(--text-dark); font-size: 14px;
}
.total-row {
    border-top: 1px solid var(--border);
    padding-top: 14px; margin-top: 4px;
    font-size: 15px; color: var(--text-dark); font-weight: 600;
}
.total-row span:last-child {
    font-size: 22px; font-weight: 800; color: var(--text-dark);
}
.discount-row span:last-child { color: var(--success-color) !important; }

/* Coupon */
.coupon-section {
    border: 1px dashed var(--border);
    border-radius: var(--r-sm);
    padding: 14px;
    margin: 20px 0;
    display: flex; gap: 8px;
    background: var(--off-white);
    transition: var(--t);
}
.coupon-section:focus-within { border-color: var(--gold-500); background: var(--white); }
.coupon-section input {
    flex: 1;
    padding: 8px 12px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-xs) !important;
    font-size: 13px !important;
    background: var(--white) !important;
    margin-bottom: 0 !important;
}
.coupon-section button {
    padding: 8px 16px;
    background: var(--dark-200);
    color: var(--white);
    border: none; border-radius: var(--r-xs);
    cursor: pointer; font-size: 13px; font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: var(--t); white-space: nowrap;
}
.coupon-section button:hover { background: var(--dark-100); }

/* Checkout Buttons */
.btn-checkout {
    width: 100%; margin-bottom: 10px;
    border-radius: var(--r-sm); padding: 14px 24px; font-size: 15px;
}

/* Trust Seals */
.cart-trust {
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.cart-trust-item {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 500;
    color: var(--text-muted);
    background: var(--off-white);
    padding: 4px 8px;
    border-radius: var(--r-xs);
}

/* Responsive */
@media (max-width: 960px) {
    .cart-content { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}
@media (max-width: 600px) {
    .cart-item { grid-template-columns: 72px 1fr; gap: 12px; }
    .cart-item-image { width: 72px; height: 72px; font-size: 28px; }
    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row; justify-content: space-between; align-items: center;
        margin-top: 8px;
    }
}
@media (max-width: 480px) {
    .cart-page-banner { padding: var(--sp-md) 0; }
    .cart-container { margin: var(--sp-md) auto; }
}
