.shopping-cart-section {
    margin-top: 200px;
}

@media (max-width:991px) {
    .shopping-cart-section {
        margin-top: 120px !important;
    }
}

.cart-page-title {
    font-size: 2.2rem;
    /* Adjust as needed */
    font-weight: 700;
    color: #253D4E;
    /* Dark blue/grey */
    margin-bottom: 30px;
}

/* Cart Table Styles */
.cart-table-wrapper {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--green);
    padding: 10px;
}

.cart-table thead th {
    background-color: #F3F4F7;
    /* Light grey for table header */
    color: #7E7E7E;
    /* Grey text for header */
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: none;
    /* Remove default bootstrap border */
    padding: 12px 15px;
    text-align: left;
}

.cart-table tbody td {
    vertical-align: middle;
    padding: 20px 15px;
    font-size: 0.95rem;
    border-top: 1px solid #e9ecef;
    /* Separator line between items */
}

.cart-table tbody tr:first-child td {
    border-top: none;
    /* No top border for the first item */
}


.cart-product-info {
    display: flex;
    align-items: center;
}

.cart-product-info img {
    width: 70px;
    /* Adjust as needed */
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-right: 15px;
}

.cart-product-details .product-name-cart {
    font-weight: 600;
    color: #253D4E;
    display: block;
    margin-bottom: 3px;
    text-decoration: none;
    font-size: 0.95rem;
}

.cart-product-details .product-name-cart:hover {
    color: #3BB77E;
}

.cart-product-details .product-size-cart {
    font-size: 0.8rem;
    color: #7E7E7E;
}

.unit-price-cart .old-price-cart {
    font-size: 0.8rem;
    color: #ADADAD;
    text-decoration: line-through;
    display: block;
}

.unit-price-cart .current-price-cart {
    font-weight: 600;
    color: #253D4E;
    font-size: 1rem;
}

.quantity-selector-cart {
    display: flex;
    align-items: center;
    border: 1px solid #3BB77E;
    /* Green border */
    border-radius: 5px;
    max-width: 100px;
    /* Limit width */
}

.quantity-selector-cart .quantity-input-cart {
    width: 40px;
    text-align: center;
    border: none;
    padding: 0.4rem 0.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #253D4E;
    -moz-appearance: textfield;
}

.quantity-selector-cart .quantity-input-cart::-webkit-outer-spin-button,
.quantity-selector-cart .quantity-input-cart::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-selector-cart .btn-quantity-modifier-cart {
    background: transparent;
    border: none;
    color: #3BB77E;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    font-size: 0.7rem;
}

.quantity-selector-cart .btn-quantity-modifier-cart:hover {
    color: #253D4E;
}

.quantity-selector-cart .btn-quantity-modifier-cart.decrease {
    /* border-right: 1px solid #3BB77E; */
}

.quantity-selector-cart .btn-quantity-modifier-cart.increase {
    /* border-left: 1px solid #3BB77E; */
}

.total-price-cart {
    font-weight: 700;
    color: #3BB77E;
    /* Green for total */
    font-size: 1rem;
}

.btn-remove-cart-item {
    background: transparent;
    border: none;
    color: #ADADAD;
    font-size: 1.1rem;
}

.btn-remove-cart-item:hover {
    color: #dc3545;
    /* Red on hover */
}

.cart-actions-footer {
    padding-top: 20px;

    /* Space above continue shopping button */
}

.btn-continue-shopping {
    background-color: #253D4E !important;
    color: white !important;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-continue-shopping:hover {
    background-color: #2f9a6a !important;
    color: white;
}

.btn-continue-shopping i {
    margin-right: 8px;
}


/* Cart Summary (Right Sidebar) */
.cart-summary-sidebar {
    background-color: #253D4E;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.cart-summary-sidebar .summary-label {
    font-size: 0.95rem;
    color: #fff;
}

.cart-summary-sidebar .summary-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3BB77E;
}

.cart-summary-sidebar .you-saved-text {
    font-size: 0.85rem;
    color: #3BB77E;
    font-weight: 500;
    text-align: right;
    margin-top: -10px;
    /* Pull it closer to subtotal */
    margin-bottom: 20px;
}

.cart-summary-sidebar .taxes-note {
    font-size: 0.75rem;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.btn-proceed-checkout {
    background-color: #3BB77E !important;
    color: white !important;
    border: none;
    padding: 10px !important;
    border-radius: 5px;
    font-weight: 600;
    font-size: 18px !important;
    width: 100%;
    display: flex;
    /* For icon alignment */
    justify-content: center;
    align-items: center;
}

.btn-proceed-checkout i {
    margin-left: 10px;
}


/* Responsive */
@media (max-width: 991.98px) {

    /* Tablet */
    .cart-summary-sidebar {
        margin-top: 30px;
        /* Space above summary when stacked */
    }
}

@media (max-width: 767.98px) {

    /* Mobile */
    .cart-page-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .cart-table thead {
        display: none;
        /* Hide table header on mobile, use data-labels */
    }

    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
    }

    .cart-table tr {
        margin-bottom: 20px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 10px;
    }

    .cart-table td {
        border: none;
        border-bottom: 1px dashed #f0f0f0;
        padding: 10px 0;
        text-align: right;
        /* Align content to right */
        position: relative;
        padding-left: 50%;
        /* Space for label */
    }

    .cart-table td:last-child {
        border-bottom: none;
    }

    .cart-table td::before {
        /* Add data-labels for mobile view */
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: #253D4E;
        text-align: left;
    }

    .cart-table td.product-col-cart,
    .cart-table td.quantity-col-cart {
        text-align: left;
        padding-left: 0;
    }

    /* No data-label needed for product and quantity if they are self-explanatory */
    .cart-table td.product-col-cart::before {
        display: none;
    }

    .cart-table td.quantity-col-cart::before {
        content: "Quantity:";
    }

    /* Or keep if needed */
    .cart-table .quantity-selector-cart {
        margin-left: auto;
        /* Align quantity to right */
    }

    .cart-actions-footer {
        text-align: center;
    }
}