/* =========================================================
   CART PAGE
   Parent class : .bps-cart
   Rule         : sirf px units (no rem / em)
   Colors       : Orange #c55b1b | Cream #f8f6f0 | Dark #191b1f
========================================================= */

.bps-cart {
    width: 100%;
    padding: 30px 20px 80px;
    background: #f8f6f0;
    color: #222222;
    font-family:'Poppins', sans-serif;
    font-size: 14px;
    line-height: 22px;
    box-sizing: border-box;
}

h1
{
    font-family:'Poppins', sans-serif !important;
}

.bps-cart *,
.bps-cart *::before,
.bps-cart *::after {
    box-sizing: border-box;
}

.bps-cart img {
    max-width: 100%;
    display: block;
}

.bps-cart a {
    text-decoration: none;
}

.bps-cart button,
.bps-cart input {
    font-family: inherit;
}

.bps-cart .bps-cart__container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}


/* =========================================================
   HERO (top)
========================================================= */

.bps-cart .bps-cart__top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 24px;
    padding: 34px 40px;
    overflow: hidden;
    background: linear-gradient(135deg, #191b1f 0%, #2f3239 100%);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(25, 27, 31, 0.25);
}

.bps-cart .bps-cart__top::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 91, 27, 0.55) 0%, rgba(197, 91, 27, 0) 70%);
}

.bps-cart .bps-cart__top > div,
.bps-cart .bps-cart__top > a {
    position: relative;
    z-index: 1;
}

.bps-cart .bps-cart__heading {
    margin: 0;
    color: #ffffff;
    font-family:'Poppins', sans-serif;
    font-size: 38px;
    line-height: 46px;
    font-weight: 600;
}

.bps-cart .bps-cart__subheading {
    margin: 6px 0 0;
    color: #c9c9cf;
    font-size: 14px;
    line-height: 22px;
}

.bps-cart .bps-cart__continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e0d4bf;
    color: #333333;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bps-cart .bps-cart__continue:hover {
    background: #c55b1b;
    border-color: #c55b1b;
    color: #ffffff;
    transform: translateY(-2px);
}

/* hero ke andar wala button dark background par */
.bps-cart .bps-cart__top .bps-cart__continue {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.bps-cart .bps-cart__top .bps-cart__continue:hover {
    background: #c55b1b;
    border-color: #c55b1b;
}


/* =========================================================
   GUEST NOTE
========================================================= */

.bps-cart .bps-cart__guest-note {
    margin: 0 0 24px;
    padding: 14px 20px;
    background: linear-gradient(90deg, #fff4e8 0%, #ffffff 80%);
    border: 1px solid #eadfce;
    border-left: 5px solid #c55b1b;
    border-radius: 12px;
    color: #7a4a22;
    font-size: 13px;
    line-height: 21px;
    font-weight: 600;
}


/* =========================================================
   LAYOUT + CARDS
========================================================= */

.bps-cart .bps-cart__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(330px, 0.8fr);
    gap: 26px;
    align-items: start;
}

.bps-cart .bps-cart__card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eee6d8;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(120, 80, 30, 0.1);
}

.bps-cart .bps-cart__card-head {
    padding: 22px 26px;
    background: linear-gradient(90deg, #fff7ee 0%, #ffffff 70%);
    border-bottom: 1px solid #f0e8da;
}

.bps-cart .bps-cart__card-head h2 {
    margin: 0;
    color: #222222;
    font-family:'Poppins', sans-serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
}

.bps-cart .bps-cart__card-head p {
    display: inline-block;
    margin: 8px 0 0;
    padding: 3px 12px;
    border-radius: 14px;
    background: #fff3e8;
    color: #9b4c17;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
}


/* =========================================================
   CART ITEMS
========================================================= */

.bps-cart .bps-cart__items {
    padding: 6px 26px;
}

.bps-cart .bps-cart__item {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px dashed #e8dfd0;
    transition: opacity 0.2s ease;
}

.bps-cart .bps-cart__item:last-child {
    border-bottom: 0;
}

.bps-cart .bps-cart__image-link {
    display: block;
    width: 100px;
    height: 100px;
    overflow: hidden;
    background: #f6f5f1;
    border: 1px solid #ece4d6;
    border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bps-cart .bps-cart__image-link:hover {
    border-color: #c55b1b;
    box-shadow: 0 8px 18px rgba(197, 91, 27, 0.2);
}

.bps-cart .bps-cart__image {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.bps-cart .bps-cart__item-info {
    min-width: 0;
}

.bps-cart .bps-cart__product-name {
    display: block;
    margin: 0;
    color: #222222;
    font-size: 16px;
    line-height: 23px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.bps-cart .bps-cart__product-name:hover {
    color: #c55b1b;
}

.bps-cart .bps-cart__sku {
    margin-top: 5px;
    color: #9a9a9a;
    font-family:'Poppins', sans-serif;
    font-size: 11px;
    line-height: 16px;
}

.bps-cart .bps-cart__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 8px;
}

.bps-cart .bps-cart__current-price {
    color: #b65317;
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
}

.bps-cart .bps-cart__old-price {
    color: #999999;
    font-size: 13px;
    line-height: 18px;
    text-decoration: line-through;
}

.bps-cart .bps-cart__stock {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 12px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.bps-cart .bps-cart__stock--available {
    background: #e8f5ee;
    color: #27834b;
}

.bps-cart .bps-cart__stock--low {
    background: #fff1de;
    color: #b45309;
}

.bps-cart .bps-cart__stock--out {
    background: #fdeaea;
    color: #c0392b;
}


/* ---------- right column ---------- */

.bps-cart .bps-cart__item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 150px;
}

.bps-cart .bps-cart__item-total {
    color: #222222;
    font-family:'Poppins', sans-serif;
    font-size: 21px;
    line-height: 28px;
    font-weight: 700;
    white-space: nowrap;
}

.bps-cart .bps-cart__quantity {
    display: inline-flex;
    align-items: center;
    height: 42px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e0d4bf;
    border-radius: 21px;
}

.bps-cart .bps-cart__qty-btn {
    width: 40px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #333333;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.bps-cart .bps-cart__qty-btn:hover {
    background: #c55b1b;
    color: #ffffff;
}

.bps-cart .bps-cart__qty-input {
    width: 48px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #222222;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

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

.bps-cart .bps-cart__remove {
    padding: 4px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #c0392b;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.bps-cart .bps-cart__remove:hover {
    background: #fdeaea;
    border-color: #f3c5c0;
}


/* ---------- actions row ---------- */

.bps-cart .bps-cart__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 26px;
    background: #fbf9f4;
    border-top: 1px solid #f0e8da;
}

.bps-cart .bps-cart__update {
    min-height: 44px;
    padding: 0 26px;
    border: 2px solid #c55b1b;
    border-radius: 22px;
    background: #ffffff;
    color: #b65317;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bps-cart .bps-cart__update:hover {
    background: #c55b1b;
    color: #ffffff;
    transform: translateY(-2px);
}

.bps-cart .bps-cart__update:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   ORDER SUMMARY
========================================================= */

.bps-cart .bps-cart__summary {
    position: sticky;
    top: 20px;
}

.bps-cart .bps-cart__summary-body {
    padding: 24px 26px 26px;
}

.bps-cart .bps-cart__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    color: #777777;
    font-size: 14px;
    line-height: 22px;
}

.bps-cart .bps-cart__summary-row strong {
    color: #222222;
    font-weight: 700;
    white-space: nowrap;
}

.bps-cart .bps-cart__summary-row--total {
    margin-top: 20px;
    margin-bottom: 0;
    padding-top: 18px;
    border-top: 2px dashed #e0d4bf;
    color: #222222;
    font-size: 17px;
    font-weight: 700;
}

.bps-cart .bps-cart__summary-row--total strong {
    color: #b65317;
    font-family:'Poppins', sans-serif;
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
}

.bps-cart .bps-cart__checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: 22px;
    border-radius: 27px;
    background: linear-gradient(135deg, #e0742a 0%, #b65317 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 12px 26px rgba(197, 91, 27, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bps-cart .bps-cart__checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(197, 91, 27, 0.5);
}

.bps-cart .bps-cart__secure {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #e8f5ee;
    color: #1f6b3d;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    text-align: center;
}


/* =========================================================
   EMPTY CART
========================================================= */

.bps-cart .bps-cart__empty {
    padding: 70px 26px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #e0cdb4;
    border-radius: 20px;
}


.bps-cart .bps-cart__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fff3e8;
    box-shadow: 0 0 0 10px rgba(197, 91, 27, 0.08);
    font-size: 40px;
}

.bps-cart .bps-cart__empty h2 {
    margin: 0;
    color: #222222;
    font-family:'Poppins', sans-serif;
    font-size: 28px;
    line-height: 36px;
    font-weight: 600;
}

.bps-cart .bps-cart__empty p {
    max-width: 480px;
    margin: 10px auto 0;
    color: #777777;
    font-size: 14px;
    line-height: 24px;
}

.bps-cart .bps-cart__shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 24px;
    padding: 0 34px;
    border-radius: 25px;
    background: linear-gradient(135deg, #e0742a 0%, #b65317 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(197, 91, 27, 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bps-cart .bps-cart__shop:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(197, 91, 27, 0.5);
}

.bps-cart .bps-cart__card .bps-cart__empty {
    border: 0;
    border-radius: 0;
}


/* =========================================================
   LOADING STATE
========================================================= */

.bps-cart .bps-cart__loading {
    opacity: 0.5;
    pointer-events: none;
}


/* =========================================================
   MOBILE CHECKOUT BAR (desktop par hidden)
========================================================= */

.bps-cart .bps-cart__mobile-bar {
    display: none;
}


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

@media (max-width: 1000px) {

    .bps-cart .bps-cart__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bps-cart .bps-cart__summary {
        position: static;
    }

}


@media (max-width: 800px) {

    .bps-cart {
        padding: 20px 14px 110px;
    }

    .bps-cart .bps-cart__top {
        padding: 26px 22px;
    }

    .bps-cart .bps-cart__heading {
        font-size: 32px;
        line-height: 40px;
    }

    /* Mobile par neeche sticky checkout bar */

    .bps-cart .bps-cart__mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 10px 14px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        background: #ffffff;
        border-top: 1px solid #eadfce;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
    }

    .bps-cart .bps-cart__mobile-total {
        flex: 0 0 auto;
    }

    .bps-cart .bps-cart__mobile-total small {
        display: block;
        color: #999999;
        font-size: 11px;
        line-height: 14px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .bps-cart .bps-cart__mobile-total strong {
        display: block;
        color: #b65317;
        font-family:'Poppins', sans-serif;
        font-size: 21px;
        line-height: 26px;
        font-weight: 700;
    }

    .bps-cart .bps-cart__mobile-checkout {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: center;
        height: 48px;
        border-radius: 24px;
        background: linear-gradient(135deg, #e0742a 0%, #b65317 100%);
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 8px 18px rgba(197, 91, 27, 0.4);
    }

}


@media (max-width: 650px) {

    .bps-cart .bps-cart__top {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .bps-cart .bps-cart__heading {
        font-size: 28px;
        line-height: 36px;
    }

    .bps-cart .bps-cart__subheading {
        font-size: 13px;
        line-height: 20px;
    }

    .bps-cart .bps-cart__card {
        border-radius: 16px;
    }

    .bps-cart .bps-cart__card-head {
        padding: 18px 18px;
    }

    .bps-cart .bps-cart__card-head h2 {
        font-size: 21px;
        line-height: 28px;
    }

    .bps-cart .bps-cart__items {
        padding: 4px 18px;
    }

    .bps-cart .bps-cart__item {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 14px;
        padding: 18px 0;
    }

    .bps-cart .bps-cart__image-link {
        width: 78px;
        height: 78px;
        border-radius: 12px;
    }

    .bps-cart .bps-cart__image {
        padding: 5px;
    }

    .bps-cart .bps-cart__product-name {
        font-size: 15px;
        line-height: 21px;
    }

    .bps-cart .bps-cart__item-right {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        width: 100%;
        min-width: 0;
        gap: 10px;
    }

    .bps-cart .bps-cart__item-total {
        order: 3;
        width: 100%;
        font-size: 19px;
        text-align: right;
    }

    .bps-cart .bps-cart__actions {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 18px;
    }

    .bps-cart .bps-cart__actions .bps-cart__continue {
        display: none;
    }

    .bps-cart .bps-cart__update {
        width: 100%;
    }

    .bps-cart .bps-cart__summary-body {
        padding: 20px 18px 22px;
    }

    .bps-cart .bps-cart__summary-row--total strong {
        font-size: 24px;
        line-height: 32px;
    }

    .bps-cart .bps-cart__checkout {
        display: none;
    }

    .bps-cart .bps-cart__empty {
        padding: 50px 18px;
    }

}


@media (max-width: 380px) {

    .bps-cart {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bps-cart .bps-cart__item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .bps-cart .bps-cart__image-link {
        width: 64px;
        height: 64px;
    }

    .bps-cart .bps-cart__mobile-total strong {
        font-size: 18px;
    }

}
