/* =========================================================
   BELOVED SKINCARE
   CART PAGE
========================================================= */


/* =========================================================
   CART PAGE VARIABLES
========================================================= */

.cart-page {

    --cart-cream: #f8eee3;
    --cart-cream-dark: #f3e4d3;
    --cart-card: rgba(255, 249, 241, 0.78);
    --cart-border: rgba(166, 121, 61, 0.38);
    --cart-gold: #b07a24;
    --cart-gold-light: #d6a04c;
    --cart-olive: #4b4d1c;
    --cart-olive-dark: #363812;
    --cart-text: #211d15;
    --cart-muted: #594d3e;

}


/* =========================================================
   MAIN CART BACKGROUND
========================================================= */

.cart-main {

    min-height: 100vh;

    background:
        linear-gradient(180deg,
            #f8eee4 0%,
            #f5e8da 100%);

    color: var(--cart-text);

    overflow: hidden;

}


/* =========================================================
   CART HEADING SECTION
========================================================= */

.cart-heading-section {

    position: relative;

    min-height: 188px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        42px 20px 25px;

    overflow: hidden;

}


/* =========================================================
   DECORATIVE LEAVES
========================================================= */

.cart-decoration {

    position: absolute;

    top: -10px;

    width: 185px;

    height: 175px;

    background-repeat: no-repeat;

    background-position: center;

    background-size: contain;

    pointer-events: none;

    opacity: 0.92;

    z-index: 0;

}


.cart-decoration-left {

    left: -4px;

    background-image:
        url("../assets/images/decorative-leaves-left.png");

}


.cart-decoration-right {

    right: -4px;

    background-image:
        url("../assets/images/decorative-leaves-right.png");

}


/* =========================================================
   CART HEADING CONTENT
========================================================= */

.cart-heading-content {

    position: relative;

    z-index: 2;

    width: 100%;

    text-align: center;

}


/* =========================================================
   TITLE ORNAMENT
========================================================= */

.cart-title-ornament {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    margin-bottom: 3px;

}


.cart-title-ornament span {

    display: block;

    width: 72px;

    height: 1px;

    background: var(--cart-gold);

}


.cart-title-symbol {

    width: 31px;

    height: 31px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--cart-gold);

    font-size: 22px;

}


/* =========================================================
   YOUR CART TITLE
========================================================= */

.cart-heading-content h1 {

    margin: 0;

    color: #30291d;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(42px, 5vw, 58px);

    font-weight: 600;

    letter-spacing: 2px;

    line-height: 0.95;

}


.cart-item-count {

    margin-top: 5px;

    color: #17140f;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 16px;

    font-weight: 500;

}


/* =========================================================
   HEADING BOTTOM ORNAMENT
========================================================= */

.cart-heading-line {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    margin-top: 10px;

}


.cart-heading-line span {

    width: 70px;

    height: 1px;

    background: var(--cart-gold);

}


.cart-heading-line i {

    color: var(--cart-gold);

    font-size: 13px;

}


/* =========================================================
   CART ITEMS SECTION
========================================================= */

.cart-items-section {

    width:
        min(calc(100% - 70px),
            990px);

    margin: 0 auto;

}


/* =========================================================
   CART ITEMS CONTAINER
========================================================= */

.cart-items {

    border:
        1.5px solid var(--cart-border);

    border-radius: 16px;

    overflow: hidden;

    background:
        rgba(255,
            249,
            241,
            0.48);

    box-shadow:
        0 4px 14px rgba(76,
            49,
            24,
            0.045);

}


/* =========================================================
   CART ITEM
========================================================= */

.cart-item {

    position: relative;

    min-height: 158px;

    display: grid;

    grid-template-columns:
        135px minmax(260px, 1fr) 155px 145px 50px;

    align-items: center;

    column-gap: 24px;

    padding:
        12px 24px 12px 20px;

    background:
        rgba(255,
            250,
            244,
            0.58);

}


.cart-item+.cart-item {

    border-top:
        1px solid rgba(166,
            121,
            61,
            0.32);

}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.cart-item-image {

    position: relative;

    width: 135px;

    height: 135px;

    border-radius: 12px;

    overflow: hidden;

    background: #eee0cf;

    border:
        1px solid rgba(166,
            121,
            61,
            0.15);

}


.cart-item-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

}


/* =========================================================
   BESTSELLER RIBBON
========================================================= */

.cart-bestseller {

    position: absolute;

    top: -1px;

    left: 8px;

    z-index: 3;

    width: 53px;

    min-height: 69px;

    padding:
        8px 4px 7px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    background:
        linear-gradient(180deg,
            #e5bd65,
            #c58e30);

    color: #34240d;

    text-align: center;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 10px;

    font-weight: 700;

    line-height: 0.95;

    clip-path:
        polygon(0 0,
            100% 0,
            100% 100%,
            50% 88%,
            0 100%);

}


.cart-bestseller i {

    margin-top: 5px;

    font-size: 10px;

}


/* =========================================================
   PRODUCT DETAILS
========================================================= */

.cart-item-details {

    min-width: 0;

    align-self: center;

}


.cart-item-name {

    margin: 0;

    color: #211d15;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 26px;

    font-weight: 600;

    line-height: 1.05;

}


.cart-item-category {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 8px;

    color: #3d3d22;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 17px;

    font-weight: 500;

}


.cart-item-category i {

    color: #596029;

    font-size: 13px;

}


.cart-item-price {

    margin-top: 24px;

    color: #15140e;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 23px;

    font-weight: 600;

}


/* =========================================================
   QUANTITY CONTROL
========================================================= */

.cart-quantity {

    display: flex;

    align-items: center;

    justify-content: center;

}


.quantity-control {

    width: 145px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border:
        1px solid rgba(176,
            122,
            36,
            0.48);

    border-radius: 28px;

    background:
        rgba(255,
            250,
            244,
            0.42);

}


.quantity-button {

    width: 45px;

    height: 46px;

    border: 0;

    outline: 0;

    background: transparent;

    color: #594820;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 25px;

    font-weight: 400;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.quantity-button:hover {

    color: #9b6b20;

}


.quantity-value {

    min-width: 28px;

    text-align: center;

    color: #211d15;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 21px;

    font-weight: 500;

}


/* =========================================================
   ITEM TOTAL
========================================================= */

.cart-item-total {

    text-align: right;

    color: #15140e;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 22px;

    font-weight: 600;

    white-space: nowrap;

}


/* =========================================================
   DELETE BUTTON
========================================================= */

.cart-delete-button {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    outline: 0;

    background: transparent;

    color: #65552b;

    cursor: pointer;

    font-size: 20px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;

}


.cart-delete-button:hover {

    color: #9a6a1e;

    transform: scale(1.08);

}


/* =========================================================
   SUMMARY
========================================================= */

.cart-summary-section {

    width:
        min(calc(100% - 70px),
            990px);

    margin:
        13px auto 0;

    padding:
        21px 38px 20px;

    border:
        1.5px solid var(--cart-border);

    border-radius: 16px;

    background:
        rgba(255,
            249,
            241,
            0.58);

    box-shadow:
        0 4px 14px rgba(76,
            49,
            24,
            0.045);

}


/* =========================================================
   SUMMARY ROW
========================================================= */

.summary-row {

    display: grid;

    grid-template-columns: 1fr auto;

    align-items: center;

    min-height: 34px;

    font-family:
        "Montserrat",
        sans-serif;

}


.summary-row span {

    color: #191713;

    font-size: 17px;

    font-weight: 500;

}


.summary-row strong {

    color: #171510;

    font-size: 17px;

    font-weight: 600;

}


.discount-row strong {

    color: #a62925;

}


/* =========================================================
   SUMMARY DIVIDER
========================================================= */

.summary-divider {

    width: 100%;

    margin:
        8px 0 9px;

    border-top:
        1px dashed rgba(176,
            122,
            36,
            0.42);

}


/* =========================================================
   GRAND TOTAL
========================================================= */

.grand-total-row {

    display: grid;

    grid-template-columns: 1fr auto;

    align-items: center;

}


.grand-total-row span {

    color: #211d15;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 27px;

    font-weight: 600;

}


.grand-total-row strong {

    color: #a06b1b;

    font-family:
        "Montserrat",
        serif;

    font-size: 31px;

    font-weight: 600;

}


/* =========================================================
   CHECKOUT BUTTON
========================================================= */

.checkout-button {

    position: relative;

    width: calc(100% - 70px);

    min-height: 56px;

    margin:
        10px auto 0;

    border:
        2px solid #c79337;

    border-radius: 30px;

    outline: 0;

    background:
        linear-gradient(180deg,
            #4c4e1c 0%,
            #353711 100%);

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    cursor: pointer;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 16px;

    font-weight: 600;

    letter-spacing: 0.7px;

    box-shadow:
        inset 0 1px 0 rgba(255,
            255,
            255,
            0.18),
        0 4px 10px rgba(60,
            44,
            15,
            0.16);

    transition:
        transform 0.25s ease,
        filter 0.25s ease;

}


.checkout-button:hover {

    filter: brightness(1.08);

    transform: translateY(-2px);

}


.checkout-button>i {

    color: #e7b84f;

    font-size: 22px;

}


.checkout-decoration {

    position: absolute;

    top: 50%;

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #d7a244;

    font-size: 19px;

    transform:
        translateY(-50%);

}


.checkout-decoration.left {

    left: -18px;

}


.checkout-decoration.right {

    right: -18px;

    transform:
        translateY(-50%) rotate(180deg);

}


/* =========================================================
   SCAN & PAY
========================================================= */

.scan-pay-section {
    width: min(990px, calc(100% - 30px));
    margin: 14px auto 35px;
    padding: 13px 18px 18px;

    border: 1.5px solid rgba(166, 121, 61, 0.24);
    border-radius: 16px;

    background: rgba(255, 249, 241, 0.52);

    box-sizing: border-box;
}


/* =========================================================
   SCAN PAY HEADING
========================================================= */

.scan-pay-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    margin-bottom: 10px;

    box-sizing: border-box;
}

.scan-pay-heading span {
    width: clamp(25px, 7vw, 56px);
    height: 1px;

    flex: 0 1 auto;

    background: var(--cart-gold);
}

.scan-pay-heading i {
    flex: 0 0 auto;

    color: var(--cart-gold);
    font-size: 12px;
}

.scan-pay-heading h2 {
    margin: 0 4px;

    color: #30291d;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(21px, 4vw, 25px);
    font-weight: 600;
    letter-spacing: 1px;

    white-space: nowrap;
}


/* =========================================================
   PAYMENT CARD
========================================================= */

.payment-card {
    width: 100%;
    min-height: 340px;

    display: grid;

    /*
       minmax(0, 1fr) prevents grid children
       from forcing the card wider than the viewport.
    */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);

    border: 1px solid rgba(166, 121, 61, 0.35);
    border-radius: 16px;

    overflow: hidden;

    background: rgba(255, 250, 244, 0.42);

    box-sizing: border-box;
}


/* =========================================================
   PAYMENT INFORMATION
========================================================= */

.payment-information {
    position: relative;

    min-width: 0;

    padding: clamp(20px, 3vw, 26px) clamp(18px, 3.5vw, 34px);

    border-right: 1px solid rgba(166, 121, 61, 0.30);

    box-sizing: border-box;
}

.payment-label {
    margin: 0;

    color: #171510;

    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.payment-total {
    margin-top: 4px;

    color: #a06b1b;

    font-family: "Montserrat", serif;
    font-size: clamp(30px, 4vw, 37px);
    font-weight: 600;

    /*
       Prevent a long amount from breaking
       the layout.
    */
    overflow-wrap: anywhere;
}

.scan-description {
    margin-top: 13px;

    color: #25211b;

    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   UPI PAYMENT LOGOS
========================================================= */

.upi-logos {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;

    gap: 12px 18px;

    margin-top: 14px;
    min-height: 32px;

    box-sizing: border-box;
}

.upi-logo {
    display: block;

    width: auto;
    max-width: 100%;
    height: 40px;

    object-fit: contain;
}

.gpay-logo {
    height: 40px;
}

.phonepe-logo {
    height: 25px;
}

.paytm-logo {
    height: 40px;
}

.bhim-logo {
    height: 40px;
}


/* =========================================================
   UPI ID
========================================================= */

.upi-label {
    margin-top: 22px;
    margin-bottom: 5px;

    color: #171510;

    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.upi-id-row {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 8px;

    box-sizing: border-box;
}

.upi-id-row span {
    min-width: 0;

    color: #28231c;

    font-family: "Montserrat", sans-serif;
    font-size: 13px;

    /*
       Allows the UPI ID to wrap instead of
       pushing the button/card outside.
    */
    overflow-wrap: anywhere;
    word-break: break-word;
}

.upi-id-row button {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    border: 0;
    outline: 0;

    background: transparent;
    color: #413a2b;

    cursor: pointer;

    font-size: 17px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   PAYMENT NOTE
========================================================= */

.payment-note {
    width: 100%;
    max-width: 240px;

    margin-top: 24px;

    color: #51483c;

    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   QR PAYMENT AREA
========================================================= */

.qr-payment-area {
    min-width: 0;

    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: clamp(18px, 3vw, 30px);

    box-sizing: border-box;
}


/* =========================================================
   PAYMENT TYPE SELECTOR
========================================================= */

.payment-type-selector {
    width: 100%;
    max-width: 430px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    margin-bottom: 13px;

    box-sizing: border-box;
}


/* =========================================================
   PAYMENT TYPE LABEL
========================================================= */

.payment-type-label {
    margin: 0 0 8px;

    color: #30291d;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;

    text-align: center;
}


/* =========================================================
   PAYMENT TYPE OPTIONS
========================================================= */

.payment-type-options {
    width: 100%;

    display: flex;
    align-items: stretch;
    justify-content: center;

    gap: 8px;

    box-sizing: border-box;
}


/* =========================================================
   PAYMENT TYPE BUTTON
========================================================= */

.payment-type-option {
    /*
       No fixed 125px width.
       Buttons share the available width.
    */
    flex: 1 1 0;

    min-width: 0;
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 10px;

    border: 1px solid rgba(166, 121, 61, 0.35);
    border-radius: 8px;

    background: rgba(255, 250, 244, 0.70);
    color: #51483c;

    cursor: pointer;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(9px, 1.2vw, 11px);
    font-weight: 600;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;

    box-sizing: border-box;
}

.payment-type-option i {
    flex: 0 0 auto;
    font-size: 14px;
}


/* =========================================================
   HOVER
========================================================= */

.payment-type-option:hover {
    border-color: rgba(166, 121, 61, 0.65);
    transform: translateY(-1px);
}


/* =========================================================
   ACTIVE PAYMENT TYPE
========================================================= */

.payment-type-option.active {
    background: linear-gradient(180deg,
            #595b24,
            #414317);

    border-color: #414317;
    color: #ffffff;
}


/* =========================================================
   QR WRAPPER
========================================================= */

.qr-wrapper {
    /*
       Fluid QR size.
       It can shrink all the way down on narrow devices
       without overflowing the card.
    */
    width: min(310px, 100%);

    aspect-ratio: 1 / 1;

    height: auto;

    padding: clamp(8px, 2vw, 12px);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(166, 121, 61, 0.35);
    border-radius: 13px;

    background: #fffaf3;

    box-sizing: border-box;
}

.qr-wrapper img {
    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================================================
   PAYMENT COMPLETED BUTTON
========================================================= */

.payment-completed-button {
    width: 100%;
    max-width: 370px;

    min-height: 46px;

    margin-top: 13px;

    border: 0;
    outline: 0;

    border-radius: 9px;

    background: linear-gradient(180deg,
            #595b24,
            #414317);

    color: #fff;

    cursor: pointer;

    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;

    box-sizing: border-box;
}

.payment-completed-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}


/* =========================================================
   SECURE PAYMENT
========================================================= */

.secure-payment {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 13px;

    color: #292820;

    font-family: "Montserrat", sans-serif;
    font-size: 13px;

    text-align: center;
}

.secure-payment i {
    flex: 0 0 auto;

    color: #62652a;
    font-size: 17px;
}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 800px) {

    .scan-pay-section {
        width: calc(100% - 24px);
        padding: 12px 14px 16px;
    }

    .payment-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .payment-information {
        padding: 22px 20px;
    }

    .qr-payment-area {
        padding: 20px 18px;
    }

    .qr-wrapper {
        width: min(280px, 100%);
    }

}


/* =========================================================
   MOBILE
   IMPORTANT:
   We STACK the card instead of hiding anything.
========================================================= */

@media (max-width: 650px) {

    .scan-pay-section {
        width: calc(100% - 20px);

        margin-top: 12px;
        margin-bottom: 25px;

        padding: 11px 10px 14px;

        border-radius: 14px;
    }

    .scan-pay-heading {
        gap: 6px;
        margin-bottom: 9px;
    }

    .scan-pay-heading span {
        width: clamp(22px, 10vw, 45px);
    }

    .scan-pay-heading h2 {
        margin: 0 2px;
        font-size: 22px;
    }

    .payment-card {
        /*
           Stack both areas.
           Nothing is hidden.
        */
        grid-template-columns: 1fr;

        min-height: 0;

        border-radius: 14px;
    }

    .payment-information {
        width: 100%;

        padding: 20px 18px;

        border-right: 0;
        border-bottom: 1px solid rgba(166, 121, 61, 0.30);
    }

    .payment-total {
        font-size: 32px;
    }

    .scan-description {
        font-size: 12px;
    }

    .upi-logos {
        justify-content: center;
        gap: 10px 15px;
    }

    .upi-label {
        margin-top: 18px;
    }

    .payment-note {
        max-width: none;
        margin-top: 18px;
    }

    .qr-payment-area {
        width: 100%;

        padding: 20px 14px 22px;
    }

    .payment-type-selector {
        width: 100%;
        max-width: 430px;
    }

    .payment-type-options {
        width: 100%;
        gap: 6px;
    }

    .payment-type-option {
        min-height: 40px;
        padding: 8px 7px;

        font-size: 10px;
    }

    .payment-type-option i {
        font-size: 13px;
    }

    .qr-wrapper {
        /*
           QR automatically becomes smaller than the
           available mobile card width.
        */
        width: min(280px, 100%);
    }

    .payment-completed-button {
        width: min(370px, 100%);
    }

}


/* =========================================================
   VERY SMALL PHONES
   iPhone SE / 320px - 375px class devices
========================================================= */

@media (max-width: 380px) {

    .scan-pay-section {
        width: calc(100% - 12px);

        padding-left: 7px;
        padding-right: 7px;

        border-radius: 12px;
    }

    .scan-pay-heading {
        gap: 4px;
    }

    .scan-pay-heading span {
        width: 20px;
    }

    .scan-pay-heading h2 {
        font-size: 20px;
        letter-spacing: 0.7px;
    }

    .payment-information {
        padding: 18px 14px;
    }

    .payment-label {
        font-size: 14px;
    }

    .payment-total {
        font-size: 29px;
    }

    .scan-description {
        font-size: 11.5px;
        line-height: 1.5;
    }

    .upi-logos {
        gap: 9px 11px;
    }

    .gpay-logo,
    .paytm-logo,
    .bhim-logo {
        height: 34px;
    }

    .phonepe-logo {
        height: 22px;
    }

    .upi-id-row {
        gap: 5px;
    }

    .upi-id-row span {
        font-size: 11.5px;
    }

    .upi-id-row button {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 15px;
    }

    .qr-payment-area {
        padding: 18px 10px 20px;
    }

    /*
       Three payment buttons remain visible,
       but become compact enough for a 320px screen.
    */
    .payment-type-options {
        gap: 4px;
    }

    .payment-type-option {
        min-height: 38px;

        padding: 7px 4px;

        gap: 4px;

        font-size: 8.5px;
    }

    .payment-type-option i {
        font-size: 11px;
    }

    .qr-wrapper {
        /*
           Available width on an iPhone SE is used
           automatically without horizontal overflow.
        */
        width: min(250px, 100%);

        padding: 8px;

        border-radius: 11px;
    }

    .payment-completed-button {
        min-height: 44px;

        margin-top: 12px;

        font-size: 12px;
    }

    .secure-payment {
        gap: 6px;
        font-size: 11px;
    }

    .secure-payment i {
        font-size: 15px;
    }

}


/* =========================================================
   EXTRA NARROW DEVICES
   280px - 320px
========================================================= */

@media (max-width: 320px) {

    .scan-pay-section {
        width: calc(100% - 8px);

        padding-left: 5px;
        padding-right: 5px;
    }

    .scan-pay-heading h2 {
        font-size: 18px;
    }

    .payment-information {
        padding-left: 12px;
        padding-right: 12px;
    }

    .payment-total {
        font-size: 27px;
    }

    .upi-logos {
        gap: 8px;
    }

    .payment-type-option {
        font-size: 7.5px;
        padding-left: 3px;
        padding-right: 3px;
    }

    .payment-type-option i {
        font-size: 10px;
    }

    .qr-payment-area {
        padding-left: 7px;
        padding-right: 7px;
    }

    .qr-wrapper {
        width: min(230px, 100%);
    }

}


/* =========================================================
   LANDSCAPE MOBILE
========================================================= */

@media (max-width: 800px) and (orientation: landscape) {

    .payment-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .payment-information {
        border-right: 1px solid rgba(166, 121, 61, 0.30);
        border-bottom: 0;
    }

    .qr-wrapper {
        width: min(230px, 70vw);
    }

}


/* =========================================================
   ACCESSIBILITY / TOUCH DEVICES
========================================================= */

@media (hover: none) {

    .payment-type-option:hover,
    .payment-completed-button:hover {
        transform: none;
        filter: none;
    }

}


/* =========================================================
   BOX SIZING SAFETY
========================================================= */

.scan-pay-section *,
.scan-pay-section *::before,
.scan-pay-section *::after {
    box-sizing: border-box;
}

/* =========================================================
   EMPTY CART
========================================================= */

.empty-cart {

    width:
        min(calc(100% - 40px),
            600px);

    margin:
        30px auto 80px;

    padding:
        55px 25px;

    text-align: center;

    border:
        1.5px solid var(--cart-border);

    border-radius: 18px;

    background:
        rgba(255,
            249,
            241,
            0.65);

}


.empty-cart-icon {

    width: 70px;

    height: 70px;

    margin:
        0 auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: var(--cart-gold);

    background:
        rgba(176,
            122,
            36,
            0.09);

    font-size: 30px;

}


.empty-cart h2 {

    margin: 0;

    color: #30291d;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 30px;

    font-weight: 600;

}


.empty-cart p {

    margin-top: 8px;

    color: #5b5042;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 13px;

}


.continue-shopping-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 44px;

    margin-top: 20px;

    padding:
        0 24px;

    border-radius: 24px;

    background:
        linear-gradient(180deg,
            #4c4e1c,
            #353711);

    color: #fff;

    text-decoration: none;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 12px;

    font-weight: 600;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .cart-items-section,
    .cart-summary-section,
    .scan-pay-section {

        width:
            calc(100% - 40px);

    }


    .cart-item {

        grid-template-columns:
            110px minmax(180px, 1fr) 125px 110px 35px;

        column-gap: 14px;

        padding:
            10px 16px;

    }


    .cart-item-image {

        width: 110px;

        height: 110px;

    }


    .cart-item-name {

        font-size: 22px;

    }


    .cart-item-category {

        font-size: 15px;

    }


    .cart-item-price {

        margin-top: 15px;

        font-size: 19px;

    }


    .quantity-control {

        width: 120px;

    }


    .cart-item-total {

        font-size: 18px;

    }


    .checkout-button {

        width:
            calc(100% - 45px);

    }


    .payment-card {

        grid-template-columns:
            1fr 1fr;

    }


}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .cart-decoration {

        width: 120px;

        height: 120px;

        top: -5px;

    }


    .cart-decoration-left {

        left: -18px;

    }


    .cart-decoration-right {

        right: -18px;

    }


    .cart-title-ornament span {

        width: 48px;

    }


    .cart-title-symbol {

        width: 26px;

        height: 26px;

        font-size: 18px;

    }


    .cart-heading-content h1 {

        font-size: 39px;

        letter-spacing: 1px;

    }


    .cart-item-count {

        font-size: 12px;

    }


    .cart-heading-line {

        margin-top: 8px;

    }


    .cart-heading-line span {

        width: 48px;

    }


    .cart-items-section,
    .cart-summary-section,
    .scan-pay-section {

        width:
            calc(100% - 24px);

    }


    /* =============================================
       CART ITEM
    ============================================= */

    .cart-items {

        border-radius: 12px;

    }


    .cart-item {

        min-height: 0;

        display: grid;

        grid-template-columns:
            92px minmax(0, 1fr);

        grid-template-rows:
            auto auto;

        column-gap: 13px;

        row-gap: 10px;

        padding: 12px;

    }


    .cart-item-image {

        width: 92px;

        height: 92px;

        grid-row:
            1 / 3;

        border-radius: 9px;

    }


    .cart-bestseller {

        width: 37px;

        min-height: 51px;

        left: 4px;

        padding:
            5px 2px;

        font-size: 7px;

    }


    .cart-bestseller i {

        font-size: 7px;

        margin-top: 4px;

    }


    .cart-item-details {

        align-self: start;

    }


    .cart-item-name {

        font-size: 18px;

        line-height: 1.05;

    }


    .cart-item-category {

        margin-top: 5px;

        font-size: 12px;

    }


    .cart-item-category i {

        font-size: 9px;

    }


    .cart-item-price {

        margin-top: 7px;

        font-size: 16px;

    }


    .cart-quantity {

        grid-column: 2;

        justify-content: flex-start;

    }


    .quantity-control {

        width: 105px;

        height: 34px;

    }


    .quantity-button {

        width: 32px;

        height: 32px;

        font-size: 19px;

    }


    .quantity-value {

        font-size: 14px;

    }


    .cart-item-total {

        position: absolute;

        right: 46px;

        bottom: 17px;

        font-size: 15px;

    }


    .cart-delete-button {

        position: absolute;

        right: 7px;

        bottom: 10px;

        width: 32px;

        height: 32px;

        font-size: 15px;

    }


    /* =============================================
       SUMMARY
    ============================================= */

    .cart-summary-section {

        margin-top: 10px;

        padding:
            16px 14px 15px;

        border-radius: 12px;

    }


    .summary-row {

        min-height: 28px;

    }


    .summary-row span,
    .summary-row strong {

        font-size: 12px;

    }


    .summary-divider {

        margin:
            5px 0 7px;

    }


    .grand-total-row span {

        font-size: 21px;

    }


    .grand-total-row strong {

        font-size: 25px;

    }


    .checkout-button {

        width:
            calc(100% - 30px);

        min-height: 45px;

        margin-top: 9px;

        gap: 8px;

        font-size: 10px;

        letter-spacing: 0.35px;

    }


    .checkout-button>i {

        font-size: 15px;

    }


    .checkout-decoration {

        font-size: 14px;

    }


    /* =============================================
       SCAN PAY
    ============================================= */

    .scan-pay-section {

        margin-top: 10px;

        padding:
            11px 9px 12px;

        border-radius: 12px;

    }


    .scan-pay-heading {

        gap: 5px;

        margin-bottom: 8px;

    }


    .scan-pay-heading span {

        width: 30px;

    }


    .scan-pay-heading h2 {

        font-size: 18px;

        margin: 0 2px;

    }


    .scan-pay-heading i {

        font-size: 9px;

    }


    .payment-card {

        display: grid;

        grid-template-columns:
            1fr;

        border-radius: 11px;

    }


    .payment-information {

        padding:
            18px 18px 20px;

        border-right: 0;

        border-bottom:
            1px solid rgba(166,
                121,
                61,
                0.30);

    }


    .payment-label {

        font-size: 12px;

    }


    .payment-total {

        font-size: 31px;

    }


    .scan-description {

        margin-top: 9px;

        font-size: 11px;

    }


    .upi-logos {

        gap: 11px;

        margin-top: 10px;

    }


    .upi-label {

        margin-top: 16px;

        font-size: 11px;

    }


    .upi-id-row span {

        font-size: 11px;

    }


    .upi-id-row button {

        width: 26px;

        height: 26px;

        font-size: 14px;

    }


    .payment-note {

        margin-top: 15px;

        font-size: 9px;

    }


    .qr-payment-area {

        padding:
            17px 16px 18px;

    }


    .payment-completed-button {

        min-height: 42px;

        margin-top: 10px;

        font-size: 10px;

    }


    .secure-payment {

        margin-top: 10px;

        font-size: 10px;

    }


    .secure-payment i {

        font-size: 14px;

    }


    .empty-cart {

        padding:
            40px 18px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .cart-decoration {

        width: 95px;

        height: 100px;

    }


    .cart-heading-content h1 {

        font-size: 34px;

    }


    .cart-item {

        grid-template-columns:
            78px minmax(0, 1fr);

        column-gap: 10px;

        padding: 9px;

    }


    .cart-item-image {

        width: 78px;

        height: 78px;

    }


    .cart-item-name {

        font-size: 16px;

    }


    .cart-item-category {

        font-size: 10px;

    }


    .cart-item-price {

        font-size: 14px;

    }


    .quantity-control {

        width: 94px;

        height: 31px;

    }


    .quantity-button {

        width: 29px;

        height: 29px;

        font-size: 17px;

    }


    .quantity-value {

        font-size: 13px;

    }


    .cart-item-total {

        right: 40px;

        bottom: 14px;

        font-size: 13px;

    }


    .cart-delete-button {

        right: 4px;

        bottom: 7px;

    }


    .grand-total-row span {

        font-size: 19px;

    }


    .grand-total-row strong {

        font-size: 22px;

    }


    .checkout-button {

        width:
            calc(100% - 18px);

        font-size: 8.5px;

    }

}


/* =========================================================
   FINAL MOBILE CART TITLE FIX
   ---------------------------------------------------------
   IMPORTANT:
   This section intentionally comes LAST.
   It overrides only the cart heading on mobile.
   No cart item/payment/summary layout is changed.
========================================================= */

@media (max-width: 700px) {

    /*
     * Create an independent stacking context.
     * This prevents decorative elements, parent
     * stacking contexts or other page elements
     * from covering the title.
     */
    .cart-heading-section {

        position: relative;

        display: flex;

        align-items: center;

        justify-content: center;

        min-height: 180px;

        height: 180px;

        padding:
            42px 10px 24px;

        overflow: hidden;

        isolation: isolate;

    }


    /*
     * Decorative leaves stay behind the heading.
     */
    .cart-decoration {

        position: absolute;

        z-index: -1;

        pointer-events: none;

    }


    /*
     * Independent heading layer.
     */
    .cart-heading-content {

        position: relative;

        z-index: 5;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        width: 100%;

        height: auto;

        min-height: 1px;

        text-align: center;

        visibility: visible;

        opacity: 1;

    }


    /*
     * Top ornament.
     */
    .cart-title-ornament {

        position: relative;

        z-index: 6;

        display: flex;

        flex-shrink: 0;

        align-items: center;

        justify-content: center;

        width: 100%;

        height: 27px;

        margin: 0 0 4px;

        visibility: visible;

        opacity: 1;

    }


    .cart-title-ornament span {

        display: block;

        flex-shrink: 0;

        width: 42px;

        height: 1px;

        visibility: visible;

        opacity: 1;

    }


    .cart-title-symbol {

        position: relative;

        z-index: 7;

        display: flex;

        flex-shrink: 0;

        align-items: center;

        justify-content: center;

        width: 25px;

        height: 25px;

        color: var(--cart-gold);

        font-size: 17px;

        visibility: visible;

        opacity: 1;

    }


    /*
     * FINAL TITLE FIX.
     *
     * The title is deliberately given its own
     * independent rendering box.
     */
    .cart-heading-content h1 {

        position: relative;

        z-index: 20;

        display: block;

        flex: 0 0 auto;

        width: 100%;

        height: auto;

        min-height: 42px;

        max-height: none;

        margin: 0;

        padding: 0;

        overflow: visible;

        color: #30291d;

        font-family:
            "Cormorant Garamond",
            serif;

        font-size: 39px;

        font-weight: 600;

        line-height: 1.08;

        letter-spacing: 1px;

        text-align: center;

        white-space: nowrap;

        text-indent: 0;

        transform: none;

        clip: auto;

        clip-path: none;

        visibility: visible;

        opacity: 1;

        -webkit-text-fill-color: #30291d;

    }


    /*
     * Item count remains directly underneath.
     */
    .cart-item-count {

        position: relative;

        z-index: 20;

        display: block;

        flex: 0 0 auto;

        width: auto;

        height: auto;

        margin:
            5px 0 0;

        padding: 0;

        color: #17140f;

        font-family:
            "Montserrat",
            sans-serif;

        font-size: 12px;

        font-weight: 500;

        line-height: 1.3;

        text-align: center;

        white-space: nowrap;

        visibility: visible;

        opacity: 1;

    }


    /*
     * Bottom ornament.
     */
    .cart-heading-line {

        position: relative;

        z-index: 20;

        display: flex;

        flex: 0 0 auto;

        align-items: center;

        justify-content: center;

        width: 100%;

        height: 15px;

        margin:
            7px 0 0;

        padding: 0;

        visibility: visible;

        opacity: 1;

    }


    .cart-heading-line span {

        display: block;

        flex-shrink: 0;

        width: 45px;

        height: 1px;

        visibility: visible;

        opacity: 1;

    }


    .cart-heading-line i {

        position: relative;

        z-index: 21;

        display: block;

        color: var(--cart-gold);

        font-size: 11px;

        visibility: visible;

        opacity: 1;

    }

}


/* =========================================================
   FINAL SMALL IPHONE TITLE FIX
========================================================= */

@media (max-width: 380px) {

    .cart-heading-section {

        min-height: 165px;

        height: 165px;

        padding:
            38px 8px 22px;

    }


    .cart-heading-content h1 {

        width: 100%;

        min-height: 37px;

        font-size: 34px;

        line-height: 1.08;

        letter-spacing: 0.5px;

    }


    .cart-title-ornament {

        height: 24px;

        margin-bottom: 3px;

    }


    .cart-title-ornament span {

        width: 34px;

    }


    .cart-title-symbol {

        width: 23px;

        height: 23px;

        font-size: 15px;

    }


    .cart-item-count {

        margin-top: 4px;

        font-size: 11px;

    }


    .cart-heading-line {

        height: 13px;

        margin-top: 6px;

    }


    .cart-heading-line span {

        width: 36px;

    }

}

/* =========================================================
   EMPTY CART - CLEAN STATE
========================================================= */

.empty-cart {
    width: min(calc(100% - 40px), 600px);
    min-height: 55vh;
    margin: 0 auto;
    padding: 80px 25px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border: 0;
    background: transparent;
    box-shadow: none;
}

.empty-cart h2 {
    margin: 0;
    color: #30291d;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: 1px;
}

.empty-cart .continue-shopping-button {
    margin-top: 25px;
}

/* =========================================================
   FINAL CART PAGE HEADER SPACING FIX
   ---------------------------------------------------------
   Purpose:
   Prevent the fixed/sticky site header from covering
   the YOUR CART heading.

   IMPORTANT:
   Only vertical top spacing is changed.
   Cart items, summary, payment and empty-cart layouts
   are NOT changed.
========================================================= */

.cart-main {
    padding-top: 90px;
}


/* =========================================================
   MOBILE CART HEADER SPACING
========================================================= */

@media (max-width: 700px) {

    .cart-main {
        padding-top: 105px;
    }

}


/* =========================================================
   SMALL MOBILE / IPHONE
========================================================= */

@media (max-width: 380px) {

    .cart-main {
        padding-top: 100px;
    }

}