/* ==========================================
   CART PAGE
========================================== */

.cart-section {
    padding: 100px 0;
    background: #080808;
    min-height: 80vh;
    color: #fff;
}


/* ==========================================
   CART HEADER
========================================== */

.cart-header {
    text-align: center;
    margin-bottom: 55px;
}

.cart-subtitle {
    display: block;
    color: #D4AF37;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.cart-header h1 {
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    color: #fff;
}

.cart-header p {
    margin: 12px 0 0;
    color: #999;
}


/* ==========================================
   CART ITEMS
========================================== */

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-item {
    display: flex;
    gap: 22px;
    padding: 20px;
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 14px;
    transition: 0.3s ease;
}

.cart-item:hover {
    border-color: rgba(212, 175, 55, 0.45);
}


/* ==========================================
   IMAGE
========================================== */

.cart-item-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ==========================================
   DETAILS
========================================== */

.cart-item-details {
    flex: 1;
    padding: 4px 0;
}

.cart-item-category {
    color: #D4AF37;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.cart-item-details h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.cart-item-details h3 a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease;
}

.cart-item-details h3 a:hover {
    color: #D4AF37;
}


/* ==========================================
   PRICE
========================================== */

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-old-price {
    color: #777;
    font-size: 14px;
    text-decoration: line-through;
}

.cart-sale-price {
    color: #D4AF37;
    font-size: 19px;
    font-weight: 700;
}


/* ==========================================
   BOTTOM
========================================== */

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
}


/* ==========================================
   QUANTITY
========================================== */

.cart-quantity {
    display: flex;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 6px;
    overflow: hidden;
}

.cart-quantity button {
    width: 38px;
    height: 36px;
    border: 0;
    background: #181818;
    color: #D4AF37;
    cursor: pointer;
}

.cart-quantity button:hover {
    background: #D4AF37;
    color: #111;
}

.cart-quantity input {
    width: 45px;
    height: 36px;
    border: 0;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    background: #111;
    color: #fff;
    text-align: center;
    outline: none;
}


.cart-item-total {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}


/* ==========================================
   REMOVE
========================================== */

.remove-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    color: #888;
    font-size: 12px;
    text-decoration: none;
}

.remove-item:hover {
    color: #dc3545;
}


/* ==========================================
   CART ACTIONS
========================================== */

.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
}

.continue-shopping,
.update-cart-btn {
    height: 45px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
}

.continue-shopping {
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.continue-shopping:hover {
    background: #D4AF37;
    color: #111;
}

.update-cart-btn {
    border: 1px solid #D4AF37;
    background: #D4AF37;
    color: #111;
    font-weight: 700;
    cursor: pointer;
}


/* ==========================================
   SUMMARY
========================================== */

.cart-summary {
    padding: 30px;
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    margin: 0 0 25px;
    color: #fff;
    font-size: 24px;
}


/* ==========================================
   SUMMARY ROW
========================================== */

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    color: #999;
    font-size: 14px;
}

.summary-row strong {
    color: #fff;
}

.discount-row span,
.discount-row strong {
    color: #D4AF37;
}

.free-shipping {
    color: #D4AF37 !important;
}


/* ==========================================
   COUPON
========================================== */

.coupon-section {
    margin: 20px 0 12px;
}

.coupon-section label {
    display: block;
    margin-bottom: 8px;
    color: #D4AF37;
    font-size: 13px;
    font-weight: 600;
}

.coupon-input-row {
    display: flex;
    gap: 8px;
}

.coupon-input-row input {
    min-width: 0;
    flex: 1;
    height: 45px;
    padding: 0 12px;
    background: #080808;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    color: #fff;
    outline: none;
}

.coupon-input-row input:focus {
    border-color: #D4AF37;
}

.coupon-input-row input::placeholder {
    color: #666;
}

.coupon-input-row button {
    height: 45px;
    padding: 0 15px;
    border: 1px solid #D4AF37;
    border-radius: 6px;
    background: #D4AF37;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.coupon-input-row button:hover {
    background: transparent;
    color: #D4AF37;
}


/* ==========================================
   COUPON MESSAGE
========================================== */

.coupon-success {
    margin-top: 10px;
    color: #D4AF37;
    font-size: 12px;
}

.coupon-error {
    margin-top: 10px;
    color: #dc3545;
    font-size: 12px;
}


/* ==========================================
   DIVIDER
========================================== */

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 15px 0;
}


/* ==========================================
   TOTAL
========================================== */

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 20px;
}

.summary-total span {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.summary-total strong {
    color: #D4AF37;
    font-size: 26px;
}


/* ==========================================
   CHECKOUT
========================================== */

.checkout-btn {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 7px;
    background: #D4AF37;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
}

.checkout-btn:hover {
    background: #fff;
    color: #111;
}


/* ==========================================
   CLEAR CART
========================================== */

.clear-cart {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #777;
    font-size: 12px;
    text-decoration: none;
}

.clear-cart:hover {
    color: #dc3545;
}


/* ==========================================
   EMPTY CART
========================================== */

.empty-cart {
    max-width: 600px;
    margin: 0 auto;
    padding: 70px 30px;
    text-align: center;
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 16px;
}

.empty-cart-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    color: #D4AF37;
    font-size: 34px;
}

.empty-cart h2 {
    margin: 0 0 10px;
    color: #fff;
}

.empty-cart p {
    margin: 0 0 25px;
    color: #888;
}

.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 6px;
    background: #D4AF37;
    color: #111;
    text-decoration: none;
    font-weight: 700;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 991px) {

    .cart-section {
        padding: 70px 0;
    }

    .cart-header h1 {
        font-size: 36px;
    }

    .cart-summary {
        position: static;
    }

}


@media (max-width: 576px) {

    .cart-section {
        padding: 55px 0;
    }

    .cart-header {
        margin-bottom: 35px;
    }

    .cart-header h1 {
        font-size: 30px;
    }

    .cart-item {
        gap: 14px;
        padding: 14px;
    }

    .cart-item-image {
        width: 95px;
        height: 110px;
    }

    .cart-item-details h3 {
        font-size: 16px;
    }

    .cart-item-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .cart-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .continue-shopping,
    .update-cart-btn {
        justify-content: center;
    }

    .cart-summary {
        padding: 22px;
    }

}