/* =========================================================
   CART PAGE
========================================================= */

.cart-page {
    padding: 80px 0;
    background: #f8f7f1;
    min-height: 70vh;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.cart-heading {
    margin-bottom: 50px;
}

.cart-small-title {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #8b6f32;
    margin-bottom: 10px;
}

.cart-heading h1 {
    font-family: "Playfair Display", serif;
    font-size: 46px;
    font-weight: 700;
    color: #263d2b;
    margin: 0 0 12px;
}

.cart-heading p {
    color: #777;
    font-size: 16px;
    margin: 0;
}


/* =========================================================
   CART BOX
========================================================= */

.cart-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 35px rgba(38, 61, 43, 0.08);
}

.cart-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9e9e9;
}

.cart-box-header h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 25px;
    color: #263d2b;
}

.cart-box-header span {
    font-size: 14px;
    color: #777;
}


/* =========================================================
   CART PRODUCT
========================================================= */

.cart-product {
    display: grid;
    grid-template-columns: 110px 1fr 100px 110px 35px;
    align-items: center;
    gap: 22px;
    padding: 25px 0;
    border-bottom: 1px solid #eeeeee;
}

.cart-product:last-child {
    border-bottom: none;
}


/* Product Image */

.cart-product-image {
    width: 110px;
    height: 110px;
    background: #f6f5ef;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}


/* Product Info */

.cart-product-info {
    min-width: 0;
}

.cart-category {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #8b6f32;
    margin-bottom: 7px;
}

.cart-product-info h4 {
    font-family: "Playfair Display", serif;
    font-size: 19px;
    line-height: 1.35;
    color: #263d2b;
    margin: 0 0 6px;
}

.cart-product-info p {
    font-size: 13px;
    color: #888;
    margin: 0 0 7px;
}

.cart-price {
    font-size: 16px;
    font-weight: 700;
    color: #263d2b;
}


/* =========================================================
   QUANTITY
========================================================= */

.cart-quantity label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}

.cart-quantity input {
    width: 75px;
    height: 42px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: 0.3s;
}

.cart-quantity input:focus {
    border-color: #617b4b;
    box-shadow: 0 0 0 3px rgba(97, 123, 75, 0.1);
}


/* =========================================================
   ITEM TOTAL
========================================================= */

.cart-item-total span {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
}

.cart-item-total strong {
    font-size: 16px;
    color: #263d2b;
}


/* =========================================================
   REMOVE BUTTON
========================================================= */

.cart-remove {
    text-align: right;
}

.cart-remove a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #b85c5c;
    background: #fff3f3;
    transition: 0.3s;
}

.cart-remove a:hover {
    background: #b85c5c;
    color: #ffffff;
}


/* =========================================================
   CART ACTIONS
========================================================= */

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
}

.continue-shopping {
    color: #263d2b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.continue-shopping i {
    margin-right: 7px;
}

.continue-shopping:hover {
    color: #8b6f32;
}

.cart-action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.update-cart-btn {
    border: none;
    background: #263d2b;
    color: #ffffff;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.update-cart-btn:hover {
    background: #3d5940;
}

.update-cart-btn i {
    margin-right: 5px;
}

.clear-cart-btn {
    color: #a34c4c;
    text-decoration: none;
    border: 1px solid #e1bcbc;
    padding: 10px 17px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.clear-cart-btn:hover {
    background: #a34c4c;
    color: #ffffff;
}


/* =========================================================
   ORDER SUMMARY
========================================================= */

.cart-summary {
    background: #263d2b;
    color: #ffffff;
    border-radius: 18px;
    padding: 30px;
    position: sticky;
    top: 30px;
    box-shadow: 0 8px 35px rgba(38, 61, 43, 0.15);
}

.cart-summary h3 {
    font-family: "Playfair Display", serif;
    font-size: 27px;
    margin: 0 0 28px;
    color: #ffffff;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    color: #d9ded9;
    font-size: 14px;
}

.summary-row strong {
    color: #ffffff;
    font-size: 15px;
}

.free-shipping {
    color: #d8b76a !important;
    font-weight: 700;
}


/* =========================================================
   SHIPPING NOTE
========================================================= */

.shipping-note {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 12px;
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.5;
    color: #e4e7e4;
}

.shipping-note i {
    color: #d8b76a;
    margin-right: 6px;
}


/* =========================================================
   DIVIDER
========================================================= */

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    margin: 18px 0;
}


/* =========================================================
   TOTAL
========================================================= */

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.summary-total span {
    font-size: 16px;
    color: #ffffff;
}

.summary-total strong {
    font-size: 25px;
    color: #ffffff;
}


/* =========================================================
   CHECKOUT BUTTON
========================================================= */

.checkout-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #d39a3b;
    color: #ffffff;
    padding: 15px 18px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.checkout-btn:hover {
    background: #b9812d;
    color: #ffffff;
    transform: translateY(-2px);
}

.checkout-btn i {
    font-size: 14px;
}


/* =========================================================
   SECURE ORDER
========================================================= */

.secure-order {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.secure-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d8b76a;
}

.secure-order strong {
    display: block;
    font-size: 13px;
    color: #ffffff;
    margin-bottom: 3px;
}

.secure-order p {
    margin: 0;
    color: #c5cbc5;
    font-size: 11px;
}


/* =========================================================
   EMPTY CART
========================================================= */

.empty-cart {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    padding: 70px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 35px rgba(38, 61, 43, 0.08);
}

.empty-cart-icon {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: #eef2e9;
    color: #617b4b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
}

.empty-cart h2 {
    font-family: "Playfair Display", serif;
    color: #263d2b;
    font-size: 30px;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #777;
    margin-bottom: 25px;
}

.btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #263d2b;
    color: #ffffff;
    padding: 13px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-shop:hover {
    background: #3d5940;
    color: #ffffff;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 991px) {

    .cart-page {
        padding: 60px 0;
    }

    .cart-heading h1 {
        font-size: 40px;
    }

    .cart-product {
        grid-template-columns: 90px 1fr 90px;
        gap: 15px;
    }

    .cart-product-image {
        width: 90px;
        height: 90px;
    }

    .cart-item-total {
        text-align: right;
    }

    .cart-remove {
        grid-column: 3;
        text-align: right;
    }

    .cart-summary {
        position: static;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 767px) {

    .cart-page {
        padding: 45px 0;
    }

    .cart-heading {
        margin-bottom: 30px;
    }

    .cart-heading h1 {
        font-size: 34px;
    }

    .cart-heading p {
        font-size: 14px;
    }

    .cart-box {
        padding: 18px;
        border-radius: 14px;
    }

    .cart-box-header h3 {
        font-size: 21px;
    }

    .cart-product {
        display: grid;
        grid-template-columns: 80px 1fr 30px;
        gap: 12px;
        position: relative;
        padding: 20px 0;
    }

    .cart-product-image {
        width: 80px;
        height: 80px;
    }

    .cart-product-info h4 {
        font-size: 16px;
        padding-right: 5px;
    }

    .cart-product-info p {
        font-size: 12px;
    }

    .cart-category {
        font-size: 9px;
    }

    .cart-remove {
        grid-column: 3;
        grid-row: 1;
        text-align: right;
    }

    .cart-quantity {
        grid-column: 2;
        grid-row: 2;
    }

    .cart-item-total {
        grid-column: 3;
        grid-row: 2;
        text-align: right;
    }

    .cart-item-total span {
        display: none;
    }

    .cart-item-total strong {
        font-size: 14px;
    }

    .cart-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cart-action-buttons {
        width: 100%;
        flex-direction: column;
    }

    .update-cart-btn,
    .clear-cart-btn {
        width: 100%;
        text-align: center;
    }

    .continue-shopping {
        text-align: center;
    }

    .cart-summary {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .cart-summary h3 {
        font-size: 24px;
    }

    .summary-total strong {
        font-size: 22px;
    }

    .empty-cart {
        padding: 50px 20px;
    }

    .empty-cart h2 {
        font-size: 26px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .cart-heading h1 {
        font-size: 29px;
    }

    .cart-product {
        grid-template-columns: 70px 1fr 28px;
    }

    .cart-product-image {
        width: 70px;
        height: 70px;
    }

    .cart-product-info h4 {
        font-size: 14px;
    }

    .cart-price {
        font-size: 14px;
    }

    .cart-quantity input {
        width: 65px;
    }
}