
/* =========================================================
   CART PAGE — CLEAN RESPONSIVE STYLES
   Keeps cart.php PHP / HTML / JavaScript unchanged
   ========================================================= */

/* ---------- INNER HERO ---------- */

.inner-hero {
    position: relative;
    max-width: 100%;
    padding: 42px 0 32px;
    margin-bottom: 8px;
    overflow: hidden;
}

.inner-hero .kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-bottom: 9px;
    color: #3977ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.inner-hero .kicker::before {
    content: "";
    width: 22px;
    height: 2px;
    margin-right: 8px;
    margin-left: 28px;
    border-radius: 999px;
    background: #3977ff;
}

.inner-hero h1 {
    position: relative;
    margin: 0 0 0 35px;
    color: #15223a;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -1.7px;
}

.inner-hero p {
    position: relative;
    max-width: 560px;
    margin: 10px 0 0 25px;
    color: #718097;
    font-size: 13px;
    line-height: 1.65;
}


/* ---------- CART SECTION ---------- */

.commerce-section {
    width: 100%;
    padding: 40px 4% 80px;
    box-sizing: border-box;
}


/* ---------- CART HEADER ---------- */

.commerce-section > .d-flex {
    gap: 20px;
    flex-wrap: wrap;
}

.commerce-section > .d-flex h1 {
    font-size: clamp(26px, 3vw, 36px);
}

.commerce-section .clear-cart {
    white-space: nowrap;
}


/* ---------- CART ITEM ---------- */

.commerce-section .cart-item {
    width: 100%;
    display: block;
    background: #fff;
    border: 1px solid #e5e5e5 !important;
    border-radius: 18px !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
    box-sizing: border-box;
}

.commerce-section .cart-item > .row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}


/* ---------- IMAGE ---------- */

.commerce-section .cart-product-image {
    display: block !important;
    width: 100% !important;
    max-width: 140px;
    height: 140px !important;
    object-fit: contain !important;
    object-position: center;
    background: #f7f7f7;
    border-radius: 14px;
    padding: 10px;
    margin: 0 auto;
    box-sizing: border-box;
}

.commerce-section .cart-item .col-4.col-md-2 {
    min-width: 0;
}


/* ---------- PRODUCT INFORMATION ---------- */

.commerce-section .cart-item .col-8.col-md-4 {
    min-width: 0;
}

.commerce-section .cart-product-name {
    display: block !important;
    color: #111 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.commerce-section .cart-product-name:hover {
    color: #555 !important;
}

.commerce-section .cart-product-price {
    color: #777;
    font-size: 15px;
}


/* ---------- QUANTITY ---------- */

.commerce-section .quantity-box {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 125px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background: #fff;
    overflow: hidden;
}

.commerce-section .quantity-box button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 38px;
}

.commerce-section .quantity-box button:hover {
    background: #f3f3f3;
}

.commerce-section .quantity-box input {
    display: block !important;
    width: 45px !important;
    min-width: 45px;
    height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    flex: 0 0 45px;
}

.commerce-section .quantity-box input::-webkit-inner-spin-button,
.commerce-section .quantity-box input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.commerce-section .quantity-box input[type="number"] {
    -moz-appearance: textfield;
}


/* ---------- ITEM TOTAL ---------- */

.commerce-section .cart-item-total {
    display: inline-block;
    color: #111;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}


/* ---------- DELETE ---------- */

.commerce-section .cart-delete {
    color: #777 !important;
    padding: 5px !important;
    border: 0;
    background: transparent;
}

.commerce-section .cart-delete:hover {
    color: #dc3545 !important;
}


/* ---------- SUMMARY ---------- */

.commerce-section .summary-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e5e5 !important;
    border-radius: 18px !important;
    padding: 25px !important;
    box-sizing: border-box;
    position: sticky;
    top: 25px;
}

.commerce-section .summary-card h4 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
}

.commerce-section .summary-card .btn {
    min-height: 52px;
}


/* ---------- EMPTY CART ---------- */

.commerce-section .empty-cart {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #fafafa;
    border-color: #e5e5e5 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .commerce-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .commerce-section .summary-card {
        position: static;
    }

    .commerce-section .cart-product-image {
        max-width: 150px;
        height: 150px !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .inner-hero {
        padding: 30px 20px 24px;
    }

    .inner-hero .kicker::before {
        margin-left: 0;
    }

    .inner-hero h1 {
        margin-left: 0;
        font-size: clamp(30px, 9vw, 40px);
        letter-spacing: -1px;
    }

    .inner-hero p {
        margin: 9px 0 0;
        max-width: 100%;
        font-size: 13px;
    }

    .commerce-section {
        padding: 25px 16px 60px;
    }

    .commerce-section > .d-flex {
        align-items: flex-start !important;
        margin-bottom: 20px !important;
    }

    .commerce-section > .d-flex .clear-cart {
        padding: 8px 14px;
        font-size: 13px;
    }

    .commerce-section .cart-item {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .commerce-section .cart-product-image {
        max-width: 105px;
        height: 105px !important;
        padding: 7px;
    }

    .commerce-section .cart-product-name {
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    .commerce-section .cart-product-price {
        font-size: 13px;
    }

    .commerce-section .quantity-box {
        min-width: 110px;
        height: 38px;
    }

    .commerce-section .quantity-box button {
        width: 32px;
        height: 38px;
        flex-basis: 32px;
        font-size: 18px;
    }

    .commerce-section .quantity-box input {
        width: 38px !important;
        min-width: 38px;
        height: 38px !important;
        flex-basis: 38px;
        font-size: 14px;
    }

    .commerce-section .cart-item-total {
        font-size: 15px;
    }

    .commerce-section .summary-card {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    .commerce-section .summary-card h4 {
        font-size: 19px;
    }

    .commerce-section .summary-card .btn {
        min-height: 50px;
    }

    .commerce-section .empty-cart {
        min-height: 280px;
        padding: 35px 20px !important;
    }

    .commerce-section .empty-cart .fa-4x {
        font-size: 3em;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .commerce-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .commerce-section > .d-flex {
        gap: 12px;
    }

    .commerce-section > .d-flex h1 {
        font-size: 26px;
    }

    .commerce-section > .d-flex .clear-cart {
        font-size: 12px;
        padding: 7px 11px;
    }

    .commerce-section .cart-item {
        padding: 11px !important;
    }

    .commerce-section .cart-product-image {
        max-width: 88px;
        height: 88px !important;
    }

    .commerce-section .cart-product-name {
        font-size: 14px !important;
    }

    .commerce-section .cart-product-price {
        font-size: 12px;
    }

    .commerce-section .quantity-box {
        min-width: 100px;
        height: 36px;
    }

    .commerce-section .quantity-box button {
        width: 28px;
        height: 36px;
        flex-basis: 28px;
        font-size: 17px;
    }

    .commerce-section .quantity-box input {
        width: 34px !important;
        min-width: 34px;
        height: 36px !important;
        flex-basis: 34px;
        font-size: 13px;
    }

    .commerce-section .cart-item-total {
        font-size: 14px;
    }

    .commerce-section .summary-card {
        padding: 17px !important;
    }
}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 360px) {

    .commerce-section {
        padding-left: 9px;
        padding-right: 9px;
    }

    .commerce-section .cart-item {
        padding: 9px !important;
    }

    .commerce-section .cart-product-image {
        max-width: 76px;
        height: 76px !important;
    }

    .commerce-section .cart-product-name {
        font-size: 13px !important;
    }

    .commerce-section .quantity-box {
        min-width: 92px;
    }

    .commerce-section .quantity-box button {
        width: 25px;
        flex-basis: 25px;
    }

    .commerce-section .quantity-box input {
        width: 30px !important;
        min-width: 30px;
        flex-basis: 30px;
    }
}
