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

/* Utility Helpers */
.fs-xs {
    font-size: 12px;
}

.fs-sm {
    font-size: 14px;
}

.cursor-pointer {
    cursor: pointer;
}

/* Page Header styles moved to components.css */

/* Cart Table */
.cart-table thead th {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.cart-table tbody td {
    border-bottom: 1px solid var(--border-light);
}

.cart-item-img-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

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

.cart-product-title {
    font-size: 14px;
    color: var(--dark);
    line-height: 1.3;
    max-width: 320px;
}

.remove-btn i {
    transition: color 0.2s;
}

.remove-btn:hover i {
    color: var(--dark) !important;
}

/* Quantity Control */
.quantity-control {
    width: auto;
    height: 30px;
    background-color: #f8f9fa;
}

.quantity-btn {
    width: 22px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--dark);
    transition: color 0.2s;
}

.quantity-btn:hover {
    color: var(--primary);
}

.quantity-input {
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    background: transparent;
}

.quantity-input:focus {
    box-shadow: none;
}

/* Coupon & Update */
.custom-update-btn {
    font-size: 12px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--dark);
    padding-bottom: 1px;
    transition: all 0.2s;
}

.custom-update-btn:hover {
    color: var(--primary) !important;
    border-color: var(--primary);
}

/* Features Box */
.features-box {
    background-color: #ffffff;
    border: 1px solid var(--border-light) !important;
}

.feature-item {
    transition: background-color 0.2s;
}

/* Sidebar */
.sidebar-totals {
    background-color: #f8fbff !important;
}

.form-check-input:checked {
    background-color: var(--dark);
    border-color: var(--dark);
}

.form-check-input:focus {
    box-shadow: none;
    border-color: var(--dark);
}

.btn-proceed {
    transition: all 0.2s;
}

.btn-proceed:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar-totals {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .cart-table {
        border-color: transparent !important;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody tr {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 15px;
        position: relative;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
        margin-bottom: 20px;
        border: 1px solid var(--border-light);
    }

    .cart-table tbody td {
        border: none;
        padding: 0;
        width: 100%;
        text-align: left !important;
        display: block;
    }

    .cart-item-img-box {
        margin: 0;
        width: 85px;
        height: 85px;
        background: #f8f9fa;
        border-radius: 8px;
        padding: 0px;
    }

    .cart-item-info {
        padding-left: 5px;
    }

    .cart-product-title {
        max-width: 90%;
        margin-top: 0;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
    }

    .cart-item-row .remove-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        background: #fef2f2;
        color: #ef4444 !important;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
    }

    .cart-item-row .remove-btn i {
        font-size: 16px;
        line-height: 1;
        margin-top: 0;
    }

    .feature-item {
        border-right: none !important;
        border-bottom: 1px solid var(--border-light);
    }

    .feature-item:last-child {
        border-bottom: none;
    }

    .d-flex.align-items-center.gap-3.text-start.h-100 {
        justify-content: flex-start;
    }

    /* Fixed Bottom Bar for Mobile Checkout */
    .mobile-checkout-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px 20px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 1050;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 20px 20px 0 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-checkout-details p {
        margin: 0;
        font-size: 12px;
        color: #6c757d;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-checkout-details h4 {
        margin: 0;
        font-size: 20px;
        color: var(--primary);
        font-weight: 800;
    }

    .mobile-checkout-btn {
        padding: 12px 32px !important;
        border-radius: 30px !important;
        font-size: 15px !important;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    }

    .cart-page-content {
        padding-bottom: 100px !important;
    }

    .sidebar-totals .btn-proceed {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .cart-coupon-form {
        max-width: 50%;
    }
}

/* Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Payment Icons */
.payment-icons img {
    width: auto !important;
    height: 35px !important;
    object-fit: contain;
    max-width: none;
}