/* =========================================
   CART PAGE (loaded on the cart page only)
   Everything is scoped under .cart-page so the
   account page, which reuses the cart classes,
   is unaffected.
========================================= */



/* ---------- Heading + steps ---------- */

.cart-page .cart-page-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cart-page .cart-heading {
    margin-bottom: 0;
}

.cart-page .cart-page-count {
    margin: 8px 0 0;
    color: #777777;
    font-size: 13px;
}

.cart-page .cart-page-count strong {
    color: #111111;
    font-weight: 600;
}

/* ---------- Free shipping bar ---------- */

.cart-shipping-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    border: 1px solid #f3dccb;
    border-left: 3px solid #db5c07;
    background: #fff8f3;
    font-size: 13px;
    color: #444444;
}

.cart-shipping-bar > i {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #db5c07;
    color: #ffffff;
    font-size: 16px;
}

.cart-shipping-text {
    flex: 1;
}

.cart-shipping-text strong {
    color: #111111;
    font-weight: 600;
}

.cart-shipping-progress {
    height: 5px;
    margin-top: 10px;
    background: #f1e2d6;
    overflow: hidden;
}

.cart-shipping-progress span {
    display: block;
    height: 100%;
    background: #db5c07;
    transition: width .4s ease;
}


/* ---------- Items ---------- */

.cart-page .cart-items-wrap {
    border-color: #ececec;
    box-shadow: 0 10px 30px rgba(17, 17, 17, .05);
}

.cart-page .cart-item {
    transition: background .2s ease;
}

.cart-page .cart-item:hover {
    background: #fcfaf8;
}

.cart-page .cart-product {
    gap: 18px;
}

.cart-page .cart-product-image {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
    border: 1px solid #eeeeee;
}

.cart-page .cart-product-image img {
    transition: transform .4s ease;
}

.cart-page .cart-item:hover .cart-product-image img {
    transform: scale(1.06);
}

.cart-page .cart-product-info a {
    margin-bottom: 4px;
    font-size: 15px;
}

.cart-page .cart-item-category {
    display: block;
    margin-bottom: 4px;
    color: #db5c07;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.cart-page .cart-product-info .cart-item-variant {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 10px;
    border-radius: 20px;
    background: #fdf0e7;
    color: #555555;
    font-size: 11px;
}

.cart-page .cart-product-info .cart-item-variant strong {
    color: #db5c07;
    font-weight: 600;
}

.cart-page .cart-item-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #2e8b57;
    font-size: 11px;
    font-style: normal;
}

.cart-page .cart-item-stock.low {
    color: #db5c07;
}

.cart-page .cart-price {
    font-size: 14px;
    font-weight: 500;
}

.cart-page .cart-price del {
    display: block;
    margin-top: 2px;
    color: #aaaaaa;
    font-size: 11px;
    font-weight: 400;
}

.cart-page .cart-subtotal {
    color: #111111;
    font-size: 15px;
}

/* Quantity stepper */

.cart-page .cart-quantity {
    position: relative;
    height: 44px;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(17, 17, 17, .05);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cart-page .cart-quantity:hover,
.cart-page .cart-quantity:focus-within {
    border-color: #db5c07;
    box-shadow: 0 4px 14px rgba(219, 92, 7, .12);
}

.cart-page .cart-quantity .qty-btn {
    width: 40px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f5f3;
    color: #333333;
    transition: background .2s ease, color .2s ease;
}

.cart-page .cart-quantity .qty-btn i {
    font-size: 10px;
    transition: transform .15s ease;
}

.cart-page .cart-quantity .qty-btn:hover:not(:disabled) {
    background: #db5c07;
    color: #ffffff;
}

.cart-page .cart-quantity .qty-btn:active:not(:disabled) i {
    transform: scale(.8);
}

.cart-page .cart-quantity .qty-btn:disabled {
    background: #fbfbfb;
    color: #cfcfcf;
    cursor: not-allowed;
}

.cart-page .cart-quantity input {
    width: 48px;
    height: 42px;
    border-left: 1px solid #eeeeee;
    border-right: 1px solid #eeeeee;
    color: #111111;
    font-size: 15px;
    font-weight: 600;
    cursor: default;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.cart-page .cart-quantity input.qty-bump {
    animation: qtyBump .25s ease;
}

@keyframes qtyBump {
    50% {
        transform: scale(1.2);
        color: #db5c07;
    }
}

.cart-page .qty-limit {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    color: #db5c07;
    font-size: 10px;
    letter-spacing: .3px;
    text-align: center;
    white-space: nowrap;
}

.cart-page .cart-remove {
    width: 35px;
    height: 35px;
    border: 1px solid #eeeeee;
    background: #ffffff;
    color: #999999;
    transition: all .2s ease;
}

.cart-page .cart-remove:hover {
    border-color: #d93025;
    background: #d93025;
    color: #ffffff;
}

.cart-page .cart-bottom {
    background: #fafafa;
}

.cart-bottom-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-clear-btn {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e3e3e3;
    background: #ffffff;
    color: #666666;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}

.cart-clear-btn:hover {
    border-color: #d93025;
    color: #d93025;
}


/* ---------- Summary ---------- */

.cart-page .cart-free {
    color: #2e8b57;
}

.cart-page .summary-total strong {
    font-size: 24px;
}

.cart-savings {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 11px 14px;
    background: #edf7f1;
    color: #2e8b57;
    font-size: 13px;
}

.cart-savings strong {
    font-weight: 700;
}

.cart-page .cart-coupon label i {
    color: #db5c07;
    margin-right: 4px;
}

.cart-payments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.cart-payments span {
    padding: 4px 9px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    color: #555555;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
}


/* ---------- Empty state ---------- */

.cart-empty {
    max-width: 620px;
    margin: 10px auto 0;
    padding: 60px 30px;
    border: 1px solid #ececec;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(17, 17, 17, .05);
    text-align: center;
}

.cart-empty-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff3ea;
    color: #db5c07;
    font-size: 36px;
}

.cart-empty h3 {
    margin: 0 0 10px;
    color: #111111;
    font-family: "Libre Baskerville", serif;
    font-size: 24px;
    font-weight: 400;
}

.cart-empty p {
    max-width: 420px;
    margin: 0 auto 28px;
    color: #777777;
    font-size: 14px;
    line-height: 1.7;
}

.cart-page .cart-empty-btn {
    display: inline-flex;
    width: auto;
    padding: 0 34px;
}

.cart-empty-categories {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid #f0f0f0;
}

.cart-empty-categories > span {
    display: block;
    margin-bottom: 14px;
    color: #999999;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cart-empty-categories > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.cart-empty-categories a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid #e8e8e8;
    color: #333333;
    font-size: 12px;
    transition: all .2s ease;
}

.cart-empty-categories a:hover {
    border-color: #db5c07;
    background: #db5c07;
    color: #ffffff;
}

.cart-empty-categories a i {
    color: #db5c07;
    transition: color .2s ease;
}

.cart-empty-categories a:hover i {
    color: #ffffff;
}


/* ---------- Responsive ---------- */


@media (max-width: 767px) {
    .cart-page .cart-page-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .cart-page .cart-product-image {
        flex-basis: 75px;
        width: 75px;
        height: 75px;
    }

    .cart-page .cart-price {
        text-align: left;
    }

    .cart-page .cart-quantity {
        height: 40px;
    }

    .cart-page .cart-quantity .qty-btn,
    .cart-page .cart-quantity input {
        height: 38px;
    }

    .cart-page .cart-quantity .qty-btn {
        width: 36px;
    }

    .cart-page .cart-quantity input {
        width: 42px;
    }

    .cart-page .cart-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-bottom-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-clear-btn {
        justify-content: center;
    }

    .cart-empty {
        padding: 44px 20px;
    }
}


/* ---------- In-place updates ---------- */

.cart-page .cart-items-wrap,
.cart-page .cart-summary {
    transition: opacity .2s ease;
}

.cart-page.is-updating .cart-summary,
.cart-page.is-updating .cart-subtotal {
    opacity: .55;
}

.cart-page .cart-item.is-removing {
    opacity: .35;
    pointer-events: none;
}


/* ---------- Lighter table header + summary to match checkout ---------- */

.cart-page .cart-table-head {
    background: #faf6f3;
    color: #555555;
    border-bottom: 2px solid #db5c07;
}

.cart-page .cart-summary-heading h3 {
    font-size: 24px;
}
