/* ==================================================
   INDU PRATIBHA — CART PAGE STYLESHEET
   Built on Bootstrap 5. Relies on the CSS variables and
   shared header/footer/button/card rules defined in
   style.css (loaded before this file) — do not duplicate
   them here. Only Cart-page-specific additions live below.
   ================================================== */

/* ---- Nav links render in accent red on this page only (per mockup) ---- */
body.page-cart .ip-nav-list a {
    color: var(--ip-red);
}

body.page-cart .ip-nav-list a:hover {
    color: var(--ip-red-dark);
}

/*=========================
Cart Heading
=========================*/

.cart-page-heading-section{
    padding:20px 0 30px;
}

.cart-breadcrumb{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
    margin-bottom:18px;
}

.cart-breadcrumb a{
    color:#777;
    text-decoration:none;
    transition:.3s;
}

.cart-breadcrumb a:hover{
    color:var(--ip-red);
}

.cart-breadcrumb span{
    color:#999;
}

.cart-breadcrumb .active{
    color:var(--ip-red);
    font-weight:600;
}

.cart-heading-wrap{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.cart-page-heading{
    margin:0;
    font-size:48px;
    font-weight:700;
    line-height:1.1;
}

.cart-page-subtitle{
    margin-top:10px;
    color:#666;
    font-size:16px;
    max-width:520px;
}

.cart-heading-icon{
    width:80px;
    height:80px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    justify-content:center;
}

.cart-heading-icon i{
    font-size:34px;
    color:#f57c00;
}

.checkout-field-error {
    display: block;
    min-height: 0;
    margin-top: 4px;
    color: #b42318;
    font-size: 12px;
}

.checkout-field-error:empty {
    display: none;
}

.ip-form-control[aria-invalid="true"] {
    border-color: #b42318;
}

/* ==================================================
   CART CONTENT LAYOUT
   ================================================== */
.cart-content-section {
    padding-bottom: 3rem;
}

.cart-items-card:has(.ip-empty-cart) {
    max-height: none;
    overflow-y: hidden;
    overflow-x: hidden;
}

.cart-items-card:has(.ip-empty-cart) .ip-empty-cart {
    min-height: 370px;
    margin-top: 0;
    margin-bottom: 0;
}

/* ---- Cart items card (wraps the header row + all line items) ---- */
.cart-items-card {
    /* background: var(--ip-white); */
    border-radius: 14px;
    /* box-shadow: 0 10px 24px rgba(92, 16, 6, 0.07); */
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 1.25rem;
}

.cart-items-head {
    display: flex;
    align-items: center;
    background-color: #f3e8d3;
    margin: 0 -1.25rem 0;
    padding: 1rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ip-text);
}

.cart-col-product { flex: 0 0 44%; }
.cart-col-price { flex: 0 0 16%; text-align: center; }
.cart-col-qty { flex: 0 0 20%; text-align: center; }
.cart-col-total { flex: 0 0 20%; text-align: right; }

/* ---- Individual cart item row ---- */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 1.1rem 0;
    border-bottom: 1px solid #eee0c8;
}

.cart-item-last {
    border-bottom: none;
}

.cart-item-media {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.cart-item-name {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--ip-text);
    margin-bottom: 2px;
}

.cart-item-weight {
    font-size: 0.78rem;
    color: var(--ip-text-light);
    margin-bottom: 10px;
}

.cart-item-price {
    display: none;
    color: var(--ip-red);
    font-weight: 700;
    font-size: 1rem;
}

/* Empty Cart Wrapper */
.ip-empty-cart{
    width:100%;
    min-height:550px;
    margin-top:-80px;
    margin-bottom:-80px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.ip-empty-card{
    width:100%;
    max-width:700px;

    margin-left:auto;
    margin-right:auto;
}

/* Empty Card */
.ip-empty-card {
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: 18px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    border: 1px solid #f2f2f2;
    transition: .3s ease;
}

.ip-empty-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(0,0,0,.12);
}

.ip-empty-card i{
    font-size:70px;
    color:#f47a08;
    margin-bottom:20px;
}

.ip-empty-card h2{
    font-size:36px;
    font-weight:700;
    margin-bottom:12px;
}

.ip-empty-card p{
    color:#666;
    font-size:18px;
    margin-bottom:30px;
}

.cart-item-qty {
    display: none;
}

.cart-item-total {
    margin-left: auto;
    color: var(--ip-text);
    font-weight: 700;
    font-size: 0.98rem;
    white-space: nowrap;
    padding-top: 2px;
}

/* ---- Quantity stepper (shared: inline on mobile/tablet, own column on desktop) ---- */
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    background-color: var(--ip-red);
    color: var(--ip-white);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.qty-btn:hover {
    background-color: var(--ip-red-dark);
}

.qty-value {
    min-width: 14px;
    text-align: center;
    font-weight: 700;
    color: var(--ip-text);
    font-size: 0.95rem;
}

/* ==================================================
   ORDER SUMMARY CARD
   ================================================== */
.cart-summary-card {
    background: var(--ip-white);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(92, 16, 6, 0.07);
    padding: 1.75rem 1.5rem;
}

.cart-summary-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ip-text);
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--ip-text);
    display: inline-block;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--ip-text-light);
    margin-top: 1rem;
}

.cart-summary-value {
    color: var(--ip-text);
    font-weight: 600;
}

.cart-summary-divider {
    border-top: 1px solid #e6d8ac;
    margin: 1.25rem 0 0.75rem;
    opacity: 1;
}

.cart-summary-total {
    font-size: 1.05rem;
    color: var(--ip-text);
    font-weight: 700;
    margin-top: 0.4rem;
}

.cart-summary-total .cart-summary-value {
    font-size: 1.1rem;
}

/* ---- Coupon row ---- */
.coupon-row {
    display: flex;
    /* border-radius: 50px; */
    overflow: hidden;
    margin-top: 1.5rem;
}

.coupon-input {
    flex: 1 1 auto;
    background-color: var(--ip-tan);
    color: var(--ip-text);
    font-size: 0.85rem;
    padding: 0.75rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-apply-btn {
    flex: 0 0 auto;
    background-color: #1a1a1a;
    color: var(--ip-white);
    border: none;
    padding: 0.75rem 1.6rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.coupon-apply-btn:hover {
    background-color: #000;
}

/* ---- Checkout button ---- */
.cart-checkout-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1.25rem;
}

/* ==================================================
   YOU MAY ALSO LIKE
   ================================================== */
.cart-recommend-section {
    padding-top: 1rem;
}

.cart-recommend-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--ip-text);
    text-align: center;
    margin-bottom: 2rem;
}

.ip-product-card .ip-card-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
}

.ip-checkout-page {
    background: var(--ip-cream);
    padding: 2.5rem 0 4.5rem;
}

.ip-checkout-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.3rem;
    color: var(--ip-text);
    margin-bottom: 1.75rem;
}

/* ---- Form ---- */
.ip-checkout-form {
    margin-bottom: 2.5rem;
}

.ip-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
    margin-bottom: 1.1rem;
}

.ip-form-row.ip-two-col {
    grid-template-columns: 1fr 1fr;
}

.ip-form-control {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--ip-tan);
    border-radius: 8px;
    background: var(--ip-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ip-text);
}

.ip-form-control::placeholder {
    color: #9a8f7c;
}

.ip-form-control:focus {
    outline: none;
    border-color: var(--ip-red);
    box-shadow: 0 0 0 3px rgba(198, 53, 12, 0.1);
}

.ip-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23c6350c' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    padding-right: 2.4rem;
}

/* ---- Order table ---- */
.ip-checkout-subheading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ip-text);
    margin-bottom: 1.25rem;
}

.ip-order-table-wrap {
    background: var(--ip-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(92, 16, 6, 0.08);
}

.ip-order-table {
    width: 100%;
    border-collapse: collapse;
}

.ip-order-table thead th {
    background: var(--ip-cream-deep);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ip-text);
    text-align: left;
    padding: 1.1rem 1.4rem;
}

.ip-order-table thead th:nth-child(2),
.ip-order-table thead th:nth-child(3),
.ip-order-table thead th:nth-child(4) {
    text-align: center;
}

.ip-order-table tbody td {
    padding: 1.1rem 1.4rem;
    border-top: 1px solid var(--ip-cream-deep);
    vertical-align: middle;
}

.ip-order-table tbody tr:first-child td {
    border-top: none;
}

.ip-order-product-cell {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.ip-order-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.ip-order-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ip-text);
    margin: 0;
}

.ip-order-weight {
    font-size: 0.82rem;
    color: var(--ip-text-light);
    margin: 0.1rem 0 0;
}

.ip-order-price {
    text-align: center;
    color: var(--ip-red);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.ip-order-qty {
    text-align: center;
}

.ip-qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.ip-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    background: var(--ip-red);
    color: var(--ip-white);
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.ip-qty-btn:hover {
    background: var(--ip-red-dark);
}

.ip-qty-value {
    min-width: 16px;
    text-align: center;
    font-weight: 600;
}

.ip-order-total {
    text-align: center;
    font-weight: 700;
    color: var(--ip-text);
    white-space: nowrap;
}

/* ---- Order summary sidebar ---- */
.ip-summary-card {
    background: var(--ip-white);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(92, 16, 6, 0.08);
    padding: 1.75rem 1.6rem;
    position: sticky;
    top: 1.5rem;
}

.ip-summary-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ip-text);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ip-cream-deep);
    margin-bottom: 1.25rem;
}

.ip-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--ip-text);
    margin-bottom: 0.85rem;
}

.ip-summary-card hr {
    border: none;
    border-top: 1px solid var(--ip-cream-deep);
    margin: 0.6rem 0 1rem;
}

.ip-summary-total {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1.4rem;
}

.ip-coupon-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--ip-cream-deep);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1.25rem;
}

.ip-coupon-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ip-text);
}

.ip-coupon-label img {
    width: 18px;
    height: 18px;
}

.ip-btn-coupon {
    background: var(--ip-maroon);
    color: var(--ip-white);
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.ip-btn-coupon:hover {
    background: var(--ip-maroon-deep);
    color: var(--ip-white);
}

.ip-btn-checkout {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
}

.checkout-product{
    display:flex;
    align-items:center;
    gap:15px;
}

.checkout-product img{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:10px;
    border:1px solid #eee;
    background:#fff;
}

.checkout-product-info h5{
    margin:0;
    font-size:16px;
    font-weight:600;
    color:#222;
}

.checkout-product-info small{
    color:#888;
    font-size:13px;
}

.checkout-qty{
    display:inline-block;
    min-width:34px;
    padding:4px 10px;
    border-radius:20px;
    background:#fff5ec;
    color:#f57c00;
    font-weight:600;
    text-align:center;
}

.ip-order-table{
    width:100%;
    border-collapse:collapse;
}

.ip-order-table th{
    background:#fff7ef;
    padding:16px;
    font-weight:600;
}

.ip-order-table td{
    padding:18px 16px;
    border-bottom:1px solid #eee;
    vertical-align:middle;
}

.checkout-summary-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 0;
    border-bottom:1px solid #eee;
}

.checkout-summary-img{
    width:60px;
    height:60px;
    object-fit:cover;
    border-radius:8px;
}

.checkout-summary-info{
    flex:1;
}

.checkout-summary-info h6{
    margin:0;
    font-size:15px;
    font-weight:600;
}

.checkout-summary-info small{
    color:#777;
}

.checkout-summary-items{
    max-height: 170px;   /* Approx 2 products */
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 15px;
    padding-right: 6px;

}

.checkout-summary-items::-webkit-scrollbar{
    width:6px;
}

.checkout-summary-items::-webkit-scrollbar-track{
    background:#f5f5f5;
    border-radius:10px;
}

.checkout-summary-items::-webkit-scrollbar-thumb{
    background:#f57c00;
    border-radius:10px;
}

.checkout-summary-items::-webkit-scrollbar-thumb:hover{
    background:#e56d00;
}



/* @media (min-width: 992px) {
    .cart-page-heading {
        font-size: 2.2rem;
    }

    .cart-items-card {
        padding: 0 1.75rem;
    }

    .cart-items-head {
        margin: 0 -1.75rem 0;
        padding: 1rem 1.75rem;
    }

    .cart-item {
        align-items: center;
        padding: 1.5rem 0;
        gap: 5px;
    }

    .cart-item-media {
        width: 76px;
        height: 76px;
    }

    .cart-item-body {
        flex: 0 0 34%;
    }

    .cart-item-weight {
        margin-bottom: 0;
    }

    .cart-item-price {
        display: flex;
        flex: 0 0 16%;
        justify-content: center;
    }

    .cart-item-qty {
        display: flex;
        flex: 0 0 20%;
        justify-content: center;
    }

    .cart-item-total {
        flex: 0 0 20%;
        text-align: right;
        margin-left: 0;
        font-size: 1.1rem;
    }

    .cart-recommend-heading {
        font-size: 1.9rem;
    }

.ip-form-row.ip-two-col { grid-template-columns: 1fr; }

    .ip-order-table-wrap { box-shadow: none; background: transparent; }
    .ip-order-table thead { display: none; }
    .ip-order-table, .ip-order-table tbody, .ip-order-table tr, .ip-order-table td { display: block; width: 100%; }

    .ip-order-table tbody tr {
        background: var(--ip-white);
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(92, 16, 6, 0.08);
        padding: 1.1rem;
        margin-bottom: 1rem;
        position: relative;
    }

    .ip-order-table tbody td {
        border: none;
        padding: 0.25rem 0;
    }

    .ip-order-price { display: none; }

    .ip-order-qty {
        text-align: left;
        padding-left: 76px !important;
        margin-top: 0.4rem;
    }

    .ip-order-total {
        position: absolute;
        top: 1.1rem;
        right: 1.1rem;
        text-align: right;
    }

    .ip-summary-card { position: static; }
}


@media (max-width: 575.98px) {
    .cart-items-card {
        padding: 0 0.9rem;
    }

    .coupon-row {
        flex-wrap: nowrap;
    }

    .coupon-apply-btn {
        padding: 0.75rem 1.1rem;
    }

.ip-checkout-title { font-size: 1.85rem; }
    .ip-form-control { padding: 0.8rem 1rem; }
} */

/* =========================================================
   CART RESPONSIVE
   ========================================================= */

/* ---------------------------------------------------------
   COMMON CART SCROLL
   Header stays fixed, only products scroll
   --------------------------------------------------------- */

/* Cart products scroll after 3 products */
.cart-items-card {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
}

.cart-items-card::-webkit-scrollbar {
    width: 6px;
}

.cart-items-card::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.cart-items-card::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.cart-items-card::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.cart-items-card::-webkit-scrollbar {
    width: 6px;
}

.cart-items-card::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items-card::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.cart-items-head {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f5e8d0;
}



/* =========================================================
   1200px+
   ========================================================= */

@media (min-width: 1200px) {

    .cart-page-heading {
        font-size: 2.2rem;
    }

    .cart-items-card {
        padding: 0 1.75rem;
    }

    .cart-items-head {
        margin: 0 -1.75rem;
        padding: 1rem 1.75rem;
    }

    .cart-products {
        max-height: 390px;
    }

    .cart-item {
        display: flex;
        align-items: center;

        padding: 1.5rem 0;
        gap: 5px;
    }

    .cart-item-media {
        width: 76px;
        height: 76px;
        flex: 0 0 76px;
    }

    .cart-item-body {
        flex: 1 1 34%;
        min-width: 0;
    }

    .cart-item-weight {
        margin-bottom: 0;
    }

    .cart-item-price {
        display: flex;
        flex: 0 0 16%;
        justify-content: center;
    }

    .cart-item-qty {
        display: flex;
        flex: 0 0 20%;
        justify-content: center;
    }

    .cart-item-total {
        flex: 0 0 20%;
        margin-left: 0;

        text-align: right;
        font-size: 1.1rem;
    }

    .cart-recommend-heading {
        font-size: 1.9rem;
    }
}


/* =========================================================
   992px - 1199px
   Same layout as desktop / 1024
   ========================================================= */

@media (min-width: 992px) and (max-width: 1199.98px) {

    .cart-page-heading {
        font-size: 2.1rem;
    }

    .cart-items-card {
        padding: 0 1.4rem;
    }

    .cart-items-head {
        margin: 0 -1.4rem;
        padding: 1rem 1.4rem;
    }

    .cart-products {
        max-height: 390px;
    }

    .cart-item {
        display: flex;
        align-items: center;

        padding: 1.35rem 0;
        gap: 8px;
    }

    .cart-item-media {
        width: 70px;
        height: 70px;
        flex: 0 0 70px;
    }

    .cart-item-body {
        flex: 1 1 32%;
        min-width: 0;
    }

    .cart-item-price {
        display: flex;
        flex: 0 0 16%;
        justify-content: center;
    }

    .cart-item-qty {
        display: flex;
        flex: 0 0 20%;
        justify-content: center;
    }

    .cart-item-total {
        flex: 0 0 18%;

        margin-left: 0;
        text-align: right;
    }

    .cart-summary-card {
        width: 100%;
    }

    .coupon-row {
        width: 100%;
        flex-wrap: nowrap;
    }

    .coupon-input {
        flex: 1 1 auto;
        min-width: 0;
    }

    .coupon-apply-btn {
        flex: 0 0 auto;
    }
}


/* =========================================================
   820px - 991px
   SAME 1024 STYLE
   ========================================================= */

@media (min-width: 820px) and (max-width: 991.98px) {

    .cart-page-heading {
        font-size: 2rem;
    }

    .cart-items-card {
        width: 100%;
        padding: 0 1rem;
    }

    .cart-items-head {
        margin: 0 -1rem;
        padding: 0.9rem 1rem;

        display: flex;
        align-items: center;
    }

    .cart-products {
        max-height: 390px;
    }

    .cart-item {
        display: flex;
        align-items: center;

        width: 100%;
        min-width: 0;

        padding: 1.1rem 0;
        gap: 7px;
    }

    .cart-item-media {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
    }

    .cart-item-body {
        flex: 1 1 auto;
        min-width: 0;
    }

    .cart-item-price {
        display: flex;

        flex: 0 0 80px;
        justify-content: center;

        white-space: nowrap;
    }

    .cart-item-qty {
        display: flex;

        flex: 0 0 85px;
        justify-content: center;
    }

    .cart-item-total {
        flex: 0 0 90px;

        margin-left: 0;
        text-align: right;

        white-space: nowrap;
    }

    .qty-stepper {
        gap: 8px;
    }

    .qty-btn {
        width: 28px;
        height: 28px;
    }

    .cart-summary-card {
        width: 100%;
    }

    .coupon-row {
        width: 100%;
        flex-wrap: nowrap;
    }

    .coupon-input {
        flex: 1 1 auto;
        min-width: 0;
    }

    .coupon-apply-btn {
        flex: 0 0 auto;
    }
}


/* =========================================================
   540px - 819px
   SAME 1024 STYLE — ONLY COMPACT
   ========================================================= */

@media (min-width: 540px) and (max-width: 819.98px) {

    .cart-page-heading {
        font-size: 1.9rem;
    }

    .cart-page-subtitle {
        font-size: 0.95rem;
    }

    .cart-items-card {
        width: 100%;
        padding: 0 0.9rem;
    }

    .cart-items-head {
        margin: 0 -0.9rem;
        padding: 0.85rem 0.9rem;

        display: flex;
        align-items: center;

        font-size: 0.85rem;
    }

    .cart-products {
        max-height: 390px;
    }

    .cart-item {
        display: flex;
        align-items: center;

        width: 100%;
        min-width: 0;

        padding: 1rem 0;
        gap: 5px;
    }

    .cart-item-media {
        width: 58px;
        height: 58px;
        flex: 0 0 58px;
    }

    .cart-item-body {
        flex: 1 1 auto;
        min-width: 0;
    }

    .cart-item-name {
        font-size: 0.85rem;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cart-item-weight {
        font-size: 0.72rem;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cart-item-price {
        display: flex;

        flex: 0 0 70px;
        justify-content: center;

        font-size: 0.85rem;
        white-space: nowrap;
    }

    .cart-item-qty {
        display: flex;

        flex: 0 0 75px;
        justify-content: center;
    }

    .cart-item-total {
        flex: 0 0 80px;

        margin-left: 0;
        text-align: right;

        font-size: 0.85rem;
        white-space: nowrap;
    }

    .qty-stepper {
        gap: 5px;
    }

    .qty-btn {
        width: 26px;
        height: 26px;
    }

    .qty-value {
        font-size: 0.85rem;
    }

    .coupon-row {
        width: 100%;
        flex-wrap: nowrap;
    }

    .coupon-input {
        flex: 1 1 auto;
        min-width: 0;
    }

    .coupon-apply-btn {
        flex: 0 0 auto;
        padding: 0.75rem 1rem;
    }
}


/* =========================================================
   BELOW 540px
   SAME PRODUCT / PRICE / QTY / TOTAL LAYOUT
   ========================================================= */

@media (max-width: 539.98px) {

    .cart-page-heading {
        font-size: 1.75rem;
    }

    .cart-page-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .cart-items-card {
        width: 100%;
        padding: 0 0.7rem;
    }

    .cart-items-head {
        margin: 0 -0.7rem;
        padding: 0.75rem 0.7rem;

        display: flex;
        align-items: center;

        font-size: 0.72rem;
    }

    .cart-products {
        max-height: 380px;
    }

    .cart-item {
        display: flex;
        align-items: center;

        width: 100%;
        min-width: 0;

        padding: 0.9rem 0;
        gap: 4px;
    }

    .cart-item-media {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
    }

    .cart-item-body {
        flex: 1 1 auto;
        min-width: 0;
    }

    .cart-item-name {
        font-size: 0.78rem;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cart-item-weight {
        font-size: 0.65rem;
        margin-bottom: 0;
    }

    .cart-item-price {
        display: flex;

        flex: 0 0 58px;
        justify-content: center;

        font-size: 0.75rem;
        white-space: nowrap;
    }

    .cart-item-qty {
        display: flex;

        flex: 0 0 62px;
        justify-content: center;
    }

    .cart-item-total {
        flex: 0 0 70px;

        margin-left: 0;
        text-align: right;

        font-size: 0.75rem;
        white-space: nowrap;
    }

    .qty-stepper {
        gap: 3px;
    }

    .qty-btn {
        width: 24px;
        height: 24px;

        font-size: 0.8rem;
    }

    .qty-value {
        min-width: 12px;
        font-size: 0.75rem;
    }

    .coupon-row {
        width: 100%;
        flex-wrap: nowrap;
    }

    .coupon-input {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }

    .coupon-apply-btn {
        flex: 0 0 auto;
        padding: 0.7rem 0.9rem;
    }

    .cart-checkout-btn {
        width: 100%;
    }
}


/* =========================================================
   GLOBAL OVERFLOW PROTECTION
   ========================================================= */

.cart-page-heading-section,
.cart-content-section,
.cart-items-card,
.cart-summary-card {
    max-width: 100%;
}

.cart-items-card,
.cart-items-head,
.cart-item {
    box-sizing: border-box;
}

.cart-item,
.cart-item-body,
.cart-item-price,
.cart-item-qty,
.cart-item-total {
    min-width: 0;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}


/*====================================
CHECKOUT FORM
====================================*/

.checkout-card{
    background:#fff;
    border-radius:20px;
    padding:35px;
    box-shadow:0 15px 35px rgba(0,0,0,.06);
}

.checkout-card-title{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:24px;
    font-weight:700;
    margin-bottom:30px;
    color:#222;
    font-family:var(--font-heading);
}

.checkout-card-title i{
    width:46px;
    height:46px;
    background:#fff4eb;
    color:#f57c00;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:20px;
}

.checkout-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:22px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group label{
    margin-bottom:8px;
    font-size:14px;
    font-weight:600;
    color:#555;
}

.full-width{
    grid-column:1/-1;
}

.ip-form-control{
    height:56px;
    border-radius:12px;
    border:1px solid #ead9bf;
    background:#fff;
    transition:.3s;
    box-shadow:none;
}

.ip-form-control:focus{
    border-color:#f57c00;
    box-shadow:0 0 0 4px rgba(245,124,0,.10);
}

.ip-form-select{
    cursor:pointer;
}

/*==========================
Tablet
==========================*/

@media(max-width:991px){

.checkout-card{
    padding:28px;
}

.checkout-grid{
    grid-template-columns:1fr;
}

.full-width{
    grid-column:auto;
}
.cart-page-heading{
    font-size:38px;
}

.cart-heading-icon{
    width:65px;
    height:65px;
}

}

/*==========================
Mobile
==========================*/

@media(max-width:576px){

.checkout-card{
    padding:20px;
    border-radius:16px;
}

.checkout-card-title{
    font-size:20px;
    margin-bottom:20px;
}

.checkout-card-title i{
    width:40px;
    height:40px;
    font-size:18px;
}

.ip-form-control{
    height:52px;
    font-size:15px;
}

.cart-heading-wrap{
    flex-direction:column;
    align-items:flex-start;
}

.cart-page-heading{
    font-size:32px;
}

.cart-page-subtitle{
    font-size:14px;
}

.cart-heading-icon{
    display:none;
}

.cart-breadcrumb{
    font-size:13px;
}

}
