/* =============================================
   CART PAGE – PRODUCTION VERSION
============================================= */

.cart-page {
    background: #f8fafc;
    padding: calc(var(--header-height) + 40px) 0 80px;
}

/* Title */
.cart-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* =============================================
   CART ITEM
============================================= */

.cart-item {
    display: flex;
    gap: 20px;
    background: #ffffff;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    position: relative;
    transition: 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(16,185,129,0.12);
}

.cart-item img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
}

/* Info */
.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.cart-price {
    font-weight: 600;
    font-size: 16px;
    color: #10b981;
    margin-bottom: 12px;
}

/* =============================================
   QUANTITY CONTROLS
============================================= */

.qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.qty-controls button {
    width: 38px;
    height: 38px;
    border: none;
    background: #10b981;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.qty-controls button:hover {
    background: #059669;
}

.qty-controls input {
    width: 55px;
    text-align: center;
    border: none;
    outline: none;
    font-weight: 600;
    font-size: 14px;
}

/* Remove Button */
.remove-item {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.remove-item:hover {
    background: #ef4444;
    color: #fff;
}

/* =============================================
   SUMMARY
============================================= */

.cart-summary {
    background: #ffffff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.cart-summary h3 {
    margin-bottom: 20px;
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 15px;
}

.summary-row.discount span:last-child {
    color: #ef4444;
}

.summary-total {
    font-size: 20px;
    font-weight: 700;
    margin-top: 12px;
}

/* Coupon */
.coupon-box {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.coupon-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}

.coupon-box button {
    padding: 10px 16px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

.coupon-box button:hover {
    background: #059669;
}

/* Checkout */
.checkout-btn {
    width: 100%;
    padding: 14px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    margin-top: 20px;
    transition: 0.2s ease;
}

.checkout-btn:hover {
    background: #059669;
}

/* =============================================
   SUGGESTIONS
============================================= */

.suggestion-section {
    margin-top: 80px;
}

.suggestion-section h2 {
    margin-bottom: 20px;
}

.suggestion-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.suggestion-card {
    min-width: 220px;
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s ease;
}

.suggestion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

.suggestion-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 10px;
}

.s-name {
    font-size: 14px;
    margin-bottom: 6px;
}

.s-price {
    font-weight: 600;
    margin-bottom: 8px;
}

.mini-add {
    background: #10b981;
    border: none;
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease;
}

.mini-add:hover {
    background: #059669;
}

/* =============================================
   EMPTY CART
============================================= */

.cart-page p {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

/* =============================================
   RESPONSIVE
============================================= */

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item img {
        width: 100%;
        height: auto;
    }

    .remove-item {
        top: 14px;
        right: 14px;
    }

    .suggestion-card {
        min-width: 180px;
    }
}

.hidden {
    display: none !important;
}

/* Coupon message */
.coupon-message {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
}

.coupon-message.success {
    color: #10b981;
}

.coupon-message.error {
    color: #ef4444;
}

/* Discount row styling */
.discount-row span:last-child {
    color: #ef4444;
    font-weight: 600;
}

/* Remove coupon button */
.remove-coupon-btn {
    margin-left: 8px;
    border: none;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.remove-coupon-btn:hover {
    background: #dc2626;
}

/* =============================
   CHECKOUT BUTTON (ANCHOR SAFE)
============================= */

.checkout-btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: #10b981;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16,185,129,0.25);
}

.checkout-btn:active {
    transform: translateY(0);
    box-shadow: none;
}


/* =============================================
   CART SUGGESTIONS (PRODUCT CARD STYLE)
============================================= */

.cart-page .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 30px;
}

/* Card */

.cart-page .product-card {
    background: #0f172a;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
    border: 1px solid rgba(34,197,94,0.4);
}

/* Hover */

.cart-page .product-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.12),
        0 0 0 2px rgba(34,197,94,0.5);
}

/* Image */

.cart-page .product-image-wrapper {
    background: #ffffff;
    padding: 30px 20px;
    text-align: center;
}

.cart-page .product-image-wrapper img {
    max-height: 140px;
    object-fit: contain;
}

/* Content */

.cart-page .product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Title */

.cart-page .product-title {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.35;
}

/* Price */

.cart-page .product-price .current-price {
    color: #4ade80;
    font-size: 18px;
    font-weight: 700;
}

/* Buttons */

.cart-suggestion-buttons {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.cart-suggestion-buttons .btn {
    flex: 1;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
}

/* Add to cart */

.cart-suggestion-buttons .btn-add-cart {
    background: #16a34a;
    color: #fff;
    border: none;
}

.cart-suggestion-buttons .btn-add-cart:hover {
    background: #15803d;
}

/* View details */

.cart-suggestion-buttons .btn-view-product {
    background: #fff;
    color: #16a34a;
    border: 2px solid #16a34a;
    text-align: center;
}

.cart-suggestion-buttons .btn-view-product:hover {
    background: #16a34a;
    color: #fff;
}

@media (max-width: 992px) {

.cart-page .products-grid {
grid-template-columns: repeat(2,1fr);
}

}

@media (max-width: 576px) {

.cart-page .products-grid {
grid-template-columns: repeat(2,1fr);
gap:18px;
}

}