/* =========================================================
   TC HEALTHCARE INTERNATIONAL
   T-MART — CART
========================================================= */

.mart-cart-page {
    background: #f7faf8;
    min-height: 60vh;
}

/* =========================================================
   CART HERO
========================================================= */

.mart-cart-hero {
    background: linear-gradient(
        135deg,
        #087443 0%,
        #0b8f52 55%,
        #f28c28 140%
    );
    color: #fff;
    padding: 70px 20px;
}

.mart-cart-hero-content {
    max-width: 850px;
}

.mart-cart-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: .95;
}

.mart-cart-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
    font-weight: 800;
}

.mart-cart-hero p {
    margin: 0;
    max-width: 650px;
    font-size: 17px;
    line-height: 1.7;
    opacity: .94;
}

/* =========================================================
   CART SECTION
========================================================= */

.mart-cart-section {
    padding-top: 55px;
    padding-bottom: 70px;
}

/* =========================================================
   ALERTS
========================================================= */

.mart-cart-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 600;
}

.mart-cart-alert-success {
    background: #eaf8f0;
    color: #087443;
    border: 1px solid #bfe7ce;
}

.mart-cart-alert-error {
    background: #fff1f1;
    color: #b42318;
    border: 1px solid #f3c2c2;
}

/* =========================================================
   CART LAYOUT
========================================================= */

.mart-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

/* =========================================================
   CART ITEMS
========================================================= */

.mart-cart-items {
    background: #fff;
    border: 1px solid #e4ebe7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
}

.mart-cart-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 25px;
    border-bottom: 1px solid #e8eeeb;
}

.mart-cart-items-header > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mart-cart-items-header h2 {
    margin: 0;
    color: #12372a;
    font-size: 22px;
    font-weight: 800;
}

.mart-cart-items-header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 28px;
    padding: 0 9px;
    border-radius: 20px;
    background: #eaf8f0;
    color: #087443;
    font-size: 12px;
    font-weight: 700;
}

.mart-cart-update-button {
    border: 0;
    background: #087443;
    color: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.mart-cart-update-button:hover {
    background: #065d35;
}

/* =========================================================
   INDIVIDUAL CART ITEM
========================================================= */

.mart-cart-item {
    display: grid;
    grid-template-columns: 105px minmax(180px, 1fr) 115px 125px 42px;
    gap: 18px;
    align-items: center;
    padding: 22px 25px;
    border-bottom: 1px solid #edf1ef;
}

.mart-cart-item:last-child {
    border-bottom: 0;
}

/* =========================================================
   PRODUCT IMAGE
========================================================= */

.mart-cart-item-image {
    width: 105px;
    height: 105px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f5f2;
    flex-shrink: 0;
}

.mart-cart-item-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mart-cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #087443;
    font-size: 32px;
}

/* =========================================================
   PRODUCT DETAILS
========================================================= */

.mart-cart-item-details {
    min-width: 0;
}

.mart-cart-item-category {
    display: block;
    margin-bottom: 5px;
    color: #f28c28;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mart-cart-item-details h3 {
    margin: 0 0 7px;
    color: #163b2d;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.mart-cart-item-sku {
    display: block;
    color: #7b8983;
    font-size: 12px;
    margin-bottom: 9px;
}

.mart-cart-item-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #087443;
}

.mart-cart-sale-price {
    color: #087443;
}

.mart-cart-old-price {
    color: #9aa6a1;
    font-size: 12px;
    text-decoration: line-through;
    font-weight: 600;
}

/* =========================================================
   QUANTITY
========================================================= */

.mart-cart-item-quantity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mart-cart-item-quantity label {
    margin-bottom: 7px;
    color: #596760;
    font-size: 11px;
    font-weight: 700;
}

.mart-cart-item-quantity input {
    width: 82px;
    height: 40px;
    padding: 0 9px;
    border: 1px solid #d6e0da;
    border-radius: 7px;
    background: #fff;
    color: #18392d;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    outline: none;
}

.mart-cart-item-quantity input:focus {
    border-color: #087443;
    box-shadow: 0 0 0 3px rgba(8, 116, 67, .1);
}

.mart-cart-item-quantity small {
    margin-top: 5px;
    color: #8a9690;
    font-size: 10px;
}

/* =========================================================
   ITEM TOTAL
========================================================= */

.mart-cart-item-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.mart-cart-item-total span {
    color: #7d8984;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mart-cart-item-total strong {
    color: #12372a;
    font-size: 15px;
    font-weight: 800;
}

/* =========================================================
   REMOVE BUTTON
========================================================= */

.mart-cart-item-remove {
    display: flex;
    justify-content: flex-end;
}

.mart-cart-item-remove button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #fff1f1;
    color: #c83232;
    cursor: pointer;
    transition: .2s ease;
}

.mart-cart-item-remove button:hover {
    background: #c83232;
    color: #fff;
}

/* =========================================================
   ORDER SUMMARY
========================================================= */

.mart-cart-summary {
    position: sticky;
    top: 20px;
}

.mart-cart-summary-card {
    background: #fff;
    border: 1px solid #e4ebe7;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
}

.mart-cart-summary-card h2 {
    margin: 0 0 22px;
    color: #12372a;
    font-size: 21px;
    font-weight: 800;
}

/* =========================================================
   SUMMARY ROWS
========================================================= */

.mart-cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    color: #63716a;
    font-size: 14px;
}

.mart-cart-summary-row strong {
    color: #263f34;
    font-weight: 800;
}

.mart-cart-delivery-note {
    max-width: 145px;
    color: #8b9691;
    font-size: 12px;
    text-align: right;
    line-height: 1.4;
}

/* =========================================================
   DIVIDER
========================================================= */

.mart-cart-summary-divider {
    height: 1px;
    background: #e8eeeb;
    margin: 12px 0 15px;
}

/* =========================================================
   TOTAL
========================================================= */

.mart-cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 5px 0 22px;
}

.mart-cart-total-row span {
    color: #263f34;
    font-size: 15px;
    font-weight: 800;
}

.mart-cart-total-row strong {
    color: #087443;
    font-size: 21px;
    font-weight: 900;
}

/* =========================================================
   CHECKOUT BUTTON
========================================================= */

.mart-cart-checkout-button {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 9px;
    background: #087443;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: .2s ease;
}

.mart-cart-checkout-button:hover {
    background: #065d35;
    color: #fff;
    transform: translateY(-1px);
}

/* =========================================================
   CONTINUE SHOPPING
========================================================= */

.mart-cart-continue-button {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    border: 1px solid #d6e1db;
    border-radius: 9px;
    background: #fff;
    color: #087443;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.mart-cart-continue-button:hover {
    border-color: #087443;
    background: #f1f9f5;
    color: #087443;
}

/* =========================================================
   SECURITY NOTE
========================================================= */

.mart-cart-security {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #edf1ef;
    color: #89958f;
    font-size: 11px;
    line-height: 1.5;
}

.mart-cart-security i {
    color: #087443;
    margin-top: 2px;
}

/* =========================================================
   CLEAR CART
========================================================= */

.mart-cart-clear-wrapper {
    text-align: center;
    padding-top: 14px;
}

.mart-cart-clear-button {
    border: 0;
    background: transparent;
    color: #a05252;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.mart-cart-clear-button:hover {
    color: #c83232;
    text-decoration: underline;
}

/* =========================================================
   EMPTY CART
========================================================= */

.mart-cart-empty {
    max-width: 650px;
    margin: 20px auto 0;
    padding: 65px 30px;
    background: #fff;
    border: 1px solid #e4ebe7;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
}

.mart-cart-empty-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf8f0;
    color: #087443;
    font-size: 34px;
}

.mart-cart-empty h2 {
    margin: 0 0 10px;
    color: #163b2d;
    font-size: 27px;
    font-weight: 800;
}

.mart-cart-empty p {
    margin: 0 auto 25px;
    max-width: 450px;
    color: #6d7973;
    font-size: 14px;
    line-height: 1.7;
}

.mart-cart-shop-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1100px) {

    .mart-cart-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 20px;
    }

    .mart-cart-item {
        grid-template-columns: 90px minmax(150px, 1fr) 100px 110px 38px;
        gap: 14px;
        padding: 20px;
    }

    .mart-cart-item-image {
        width: 90px;
        height: 90px;
    }

    .mart-cart-item-details h3 {
        font-size: 15px;
    }

    .mart-cart-item-total strong {
        font-size: 14px;
    }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .mart-cart-hero {
        padding: 55px 20px;
    }

    .mart-cart-layout {
        grid-template-columns: 1fr;
    }

    .mart-cart-summary {
        position: static;
    }

    .mart-cart-summary-card {
        max-width: 600px;
    }

    .mart-cart-item {
        grid-template-columns: 90px minmax(0, 1fr) 100px;
        gap: 15px;
    }

    .mart-cart-item-quantity {
        grid-column: 2;
        grid-row: 2;
    }

    .mart-cart-item-total {
        grid-column: 3;
        grid-row: 2;
    }

    .mart-cart-item-remove {
        grid-column: 3;
        grid-row: 1;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .mart-cart-hero {
        padding: 45px 16px;
    }

    .mart-cart-hero h1 {
        font-size: 34px;
    }

    .mart-cart-hero p {
        font-size: 14px;
    }

    .mart-cart-section {
        padding-top: 35px;
        padding-bottom: 50px;
    }

    .mart-cart-items-header {
        padding: 18px;
        align-items: flex-start;
        flex-direction: column;
    }

    .mart-cart-items-header > div {
        width: 100%;
        justify-content: space-between;
    }

    .mart-cart-update-button {
        width: 100%;
    }

    .mart-cart-item {
        grid-template-columns: 82px minmax(0, 1fr) 36px;
        gap: 12px;
        padding: 18px 15px;
    }

    .mart-cart-item-image {
        width: 82px;
        height: 82px;
        grid-column: 1;
        grid-row: 1;
    }

    .mart-cart-item-details {
        grid-column: 2;
        grid-row: 1;
    }

    .mart-cart-item-details h3 {
        font-size: 14px;
    }

    .mart-cart-item-sku {
        font-size: 10px;
    }

    .mart-cart-item-remove {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
    }

    .mart-cart-item-quantity {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    .mart-cart-item-total {
        grid-column: 2 / 4;
        grid-row: 2;
        align-items: flex-end;
    }

    .mart-cart-item-quantity input {
        width: 70px;
        height: 38px;
    }

    .mart-cart-summary-card {
        padding: 20px;
    }

    .mart-cart-total-row strong {
        font-size: 18px;
    }

    .mart-cart-empty {
        padding: 50px 20px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .mart-cart-hero h1 {
        font-size: 29px;
    }

    .mart-cart-item {
        grid-template-columns: 70px minmax(0, 1fr) 32px;
        padding: 15px 12px;
    }

    .mart-cart-item-image {
        width: 70px;
        height: 70px;
    }

    .mart-cart-item-details h3 {
        font-size: 13px;
    }

    .mart-cart-item-price {
        font-size: 12px;
    }

    .mart-cart-summary-card {
        padding: 17px;
    }
}