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

.cart-page {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 0 60px;
}


/* BREADCRUMB */

.cart-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.cart-breadcrumb a {
    text-decoration: none;
    color: #555;
}


/* HEADING */

.cart-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.cart-heading-row h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 30px;
}

.cart-heading-row h1 i {
    font-size: 27px;
}

#cartItemCount {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.continue-shopping {
    text-decoration: none;
    color: #2874f0;
    font-weight: 600;
    padding: 10px;
}


/* CART LAYOUT */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
}


/* LEFT CART BOX */

.cart-items-box {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 0 20px;
}


/* PRODUCT */

.cart-item {
    display: grid;
    grid-template-columns:
        130px
        minmax(0, 1fr)
        auto
        auto;

    gap: 20px;

    align-items: center;

    min-height: 180px;

    padding: 20px 5px;

    border-bottom: 1px solid #eeeeee;
}

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


/* IMAGE */

.cart-item-image {
    width: 125px;
    height: 140px;

    background: #f7f7f7;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 8px;
}


/* DETAILS */

.cart-item-info h3 {
    margin: 0 0 8px;

    font-size: 18px;
}

.cart-item-info p {
    margin: 6px 0;

    color: #666;

    font-size: 14px;
}


/* STOCK */

.stock {
    display: inline-block;

    background: #eaf8ef;

    color: #138a42 !important;

    padding: 5px 8px;

    border-radius: 5px;

    font-weight: 600;
}


/* PRICE */

.price-row {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 12px !important;
}

.current-price {
    font-size: 21px !important;

    font-weight: 800;

    color: #111 !important;
}

.old-price {
    color: #888 !important;

    text-decoration: line-through;
}

.discount {
    background: #eaf8ef;

    color: #138a42 !important;

    padding: 4px 7px;

    border-radius: 4px;

    font-weight: 700;
}


/* QUANTITY */

.quantity-box {
    display: flex;

    align-items: center;

    border: 1px solid #ddd;

    border-radius: 7px;

    overflow: hidden;
}

.quantity-box button {
    width: 34px;
    height: 34px;

    border: none;

    background: white;

    font-size: 18px;

    cursor: pointer;
}

.quantity-box button:hover {
    background: #f4f4f4;
}

.quantity-box span {
    width: 35px;

    text-align: center;

    font-weight: 700;
}


/* REMOVE */

.remove-btn {
    border: none;

    background: transparent;

    color: #e53935;

    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;
}

.remove-btn:hover {
    color: #b71c1c;
}


/* ORDER SUMMARY */

.order-summary {
    background: white;

    border: 1px solid #e5e5e5;

    border-radius: 12px;

    padding: 22px;

    position: sticky;

    top: 20px;
}

.order-summary h2 {
    margin: 0 0 20px;

    font-size: 23px;
}


/* SUMMARY ROW */

.summary-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin: 15px 0;

    color: #444;
}

.discount-row span:last-child {
    color: #138a42;

    font-weight: 600;
}

.delivery-row span:last-child {
    color: #138a42;

    font-weight: 700;
}


/* DIVIDER */

.summary-divider {
    border: 0;

    border-top: 1px solid #eeeeee;

    margin: 20px 0;
}


/* TOTAL */

.total-row {
    display: flex;

    justify-content: space-between;

    font-size: 20px;

    font-weight: 800;
}

.savings {
    color: #138a42;

    font-size: 14px;

    margin: 10px 0 18px;
}


/* CHECKOUT */

.checkout-btn {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 8px;

    background: #ff5a00;

    color: white;

    font-size: 17px;

    font-weight: 700;

    cursor: pointer;
}

.checkout-btn:hover {
    background: #e64f00;
}


/* BENEFITS */

.benefits {
    margin-top: 20px;

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.benefit {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px;

    background: #f5fbf7;

    border-radius: 8px;
}

.benefit i {
    font-size: 21px;
}

.benefit strong {
    display: block;

    font-size: 14px;

    margin-bottom: 3px;
}

.benefit span {
    color: #666;

    font-size: 12px;
}


/* EMPTY CART */

.empty-cart {
    text-align: center;

    background: white;

    border: 1px solid #eee;

    border-radius: 12px;

    padding: 80px 20px;
}

.empty-cart i {
    font-size: 60px;

    color: #bbb;

    margin-bottom: 20px;
}

.empty-cart h2 {
    margin-bottom: 8px;
}

.empty-cart p {
    color: #666;

    margin-bottom: 25px;
}

.shop-now-btn {
    display: inline-block;

    text-decoration: none;

    background: #ff5a00;

    color: white;

    padding: 12px 25px;

    border-radius: 7px;

    font-weight: 700;
}







/* =========================================
   CART CURRENT HTML FIX
========================================= */

.cart-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.cart-heading > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-heading h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 30px;
}

.cart-heading h1 i {
    font-size: 27px;
}

#cartItemCount {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.cart-items-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 0 20px;
}

.cart-summary {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 22px;
    position: sticky;
    top: 20px;
}

.cart-summary h2 {
    margin: 0 0 20px;
    font-size: 23px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
}

.cart-security {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    background: #f5fbf7;
    border-radius: 9px;
}

.cart-security i {
    font-size: 24px;
}

.cart-security strong {
    display: block;
}

.cart-security p {
    margin: 4px 0 0;
    color: #666;
    font-size: 13px;
}

.cart-benefits {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-benefits .benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f7faf8;
    border-radius: 8px;
}

.cart-benefits .benefit p {
    margin: 3px 0 0;
    color: #666;
    font-size: 13px;
}

.cart-benefits .benefit i {
    font-size: 20px;
}







/* =========================================
   YOU MAY ALSO LIKE
========================================= */

.recommendation-section {
    width: 100%;
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 20px;
}

.recommendation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.recommendation-header h2 {
    margin: 0;
    font-size: 23px;
}

.recommendation-header h2 i {
    color: #ffb000;
    margin-right: 6px;
}

.recommendation-view-all {
    text-decoration: none;
    color: #2874f0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}


/* =========================================
   WRAPPER
========================================= */

.recommendation-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.recommendation-window {
    width: 100%;
    overflow: hidden;
}

.recommendation-track {
    display: flex;
    gap: 14px;
    transition: transform 0.35s ease;
}


/* =========================================
   PRODUCT CARD
========================================= */

.recommendation-card {
    flex: 0 0 calc((100% - 70px) / 6);

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 10px;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.recommendation-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);
}


/* IMAGE */

.recommendation-image {
    width: 100%;
    height: 170px;

    background: #f7f7f7;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.recommendation-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 10px;
}


/* DETAILS */

.recommendation-details {
    padding: 12px;
}

.recommendation-name {
    font-size: 15px;
    font-weight: 700;

    margin: 0 0 8px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommendation-rating {
    font-size: 13px;
    color: #138a42;

    margin-bottom: 8px;
}

.recommendation-price {
    margin: 0 0 5px;

    font-size: 17px;
    font-weight: 800;
}

.recommendation-old-price {
    color: #888;

    text-decoration: line-through;

    font-size: 13px;

    margin-left: 5px;
}

.recommendation-discount {
    display: inline-block;

    background: #eaf8ef;

    color: #138a42;

    padding: 4px 6px;

    border-radius: 4px;

    font-size: 11px;

    font-weight: 700;
}


/* ADD TO CART */

.recommendation-add-btn {
    width: 100%;

    margin-top: 12px;

    padding: 10px;

    background: #fff;

    border: 1px solid #ff5a00;

    border-radius: 6px;

    color: #ff5a00;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s ease;
}

.recommendation-add-btn:hover {
    background: #ff5a00;

    color: #fff;
}


/* =========================================
   ARROWS
========================================= */

.recommendation-arrow {
    position: absolute;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    border: 1px solid #ddd;

    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 5;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.12);
}

.recommendation-arrow:hover {
    background: #f7f7f7;
}

.recommendation-arrow.prev {
    left: -18px;
}

.recommendation-arrow.next {
    right: -18px;
}



































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

@media (max-width: 1100px) {

    .recommendation-card {
        flex: 0 0 calc((100% - 42px) / 4);
    }


    .continue-shopping{
        text-align: center;
        justify-content: center;
        border: 2px solid rgb(35, 95, 226);
        border-radius: 8px;
    }
    .continue-shopping, a:hover{
        background-color: blue;
        color: white;
    }
}

@media (max-width: 750px) {

    .recommendation-section {
        padding: 15px;
    }

    .recommendation-card {
        flex: 0 0 calc((100% - 14px) / 2);
    }

    .recommendation-image {
        height: 140px;
    }
}

@media (max-width: 450px) {

    .recommendation-card {
        flex: 0 0 100%;
    }

    .recommendation-header h2 {
        font-size: 19px;
    }

    .recommendation-view-all {
        font-size: 13px;
    }
}





















































/* RESPONSIVE */

@media (max-width: 900px) {

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}


@media (max-width: 650px) {

    .cart-heading-row {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }

    .cart-item {
        grid-template-columns: 90px 1fr;

        gap: 12px;
    }

    .cart-item-image {
        width: 85px;
        height: 100px;
    }

    .quantity-box {
        grid-column: 2;
        width: fit-content;
    }

    .remove-btn {
        grid-column: 2;

        justify-self: start;
    }

    .cart-heading-row h1 {
        font-size: 24px;
    }

}