/* =========================================================
   KMG CART
========================================================= */

.cart-page {
    padding: 30px 0 80px;
    background: #f7f8fb;
    min-height: 70vh;
}

.cart-container {
    width: calc(100% - 80px);
    max-width: 1440px;
    margin: 0 auto;
}

.cart-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    color: #6b7280;
    font-size: 14px;
}

.cart-breadcrumb a {
    color: #0c186a;
    text-decoration: none;
}

.cart-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.cart-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #F63D37;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

.cart-heading h1 {
    margin: 0;
    color: #09134F;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.cart-heading p {
    margin: 10px 0 0;
    color: #6b7280;
}

.cart-continue-link {
    color: #0c186a;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) 150px 150px;
    gap: 24px;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.cart-item-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #0c186a;
    font-weight: 700;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-name {
    display: inline-block;
    margin-bottom: 9px;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.cart-item-name:hover {
    color: #0c186a;
}

.cart-item-meta,
.cart-item-variant,
.cart-item-unit-price {
    margin-top: 6px;
    color: #6b7280;
    font-size: 14px;
}

.cart-item-unit-price strong {
    color: #111827;
}

.cart-quantity-control {
    display: inline-flex;
    height: 44px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
}

.cart-quantity-btn {
    width: 40px;
    border: 0;
    background: #fff;
    color: #0c186a;
    font-size: 20px;
    cursor: pointer;
}

.cart-quantity-btn:hover {
    background: #f3f4f6;
}

.cart-quantity-input {
    width: 54px;
    border: 0;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    outline: none;
    font-weight: 600;
    -moz-appearance: textfield;
}

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

.cart-item-total-wrap {
    text-align: right;
}

.cart-item-total {
    display: block;
    color: #F63D37;
    font-size: 19px;
    font-weight: 700;
}

.cart-remove-btn {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.cart-remove-btn:hover {
    color: #F63D37;
}

.cart-mobile-label {
    display: none;
}

.cart-summary {
    position: sticky;
    top: 105px;
    padding: 28px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(9, 19, 79, .06);
}

.cart-summary h2 {
    margin: 0 0 22px;
    color: #09134F;
    font-size: 22px;
}

.cart-summary-row,
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.cart-summary-row {
    padding-bottom: 18px;
    color: #6b7280;
}

.cart-summary-total {
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    color: #111827;
}

.cart-summary-total strong {
    color: #F63D37;
    font-size: 26px;
}

.cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 10px;
    padding: 13px 20px;
    border-radius: 10px;
    background: #F63D37;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: .2s ease;
}

.cart-checkout-btn:hover {
    transform: translateY(-1px);
    filter: brightness(.96);
}

.cart-summary-note {
    margin: 16px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.65;
}

.cart-empty {
    padding: 80px 30px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-align: center;
}

.cart-empty-icon {
    margin-bottom: 14px;
    font-size: 52px;
}

.cart-empty h2 {
    margin: 0;
    color: #09134F;
    font-size: 28px;
}

.cart-empty p {
    margin: 10px 0 24px;
    color: #6b7280;
}

.cart-empty-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 9px;
    background: #0c186a;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 1100px) {

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 110px minmax(0, 1fr) 140px 140px;
    }

    .cart-item-image {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 820px) {

    .cart-container {
        width: calc(100% - 32px);
    }

    .cart-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-item {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 16px;
    }

    .cart-item-image {
        width: 90px;
        height: 90px;
    }

    .cart-item-quantity,
    .cart-item-total-wrap {
        grid-column: 2;
    }

    .cart-item-total-wrap {
        text-align: left;
    }

    .cart-mobile-label {
        display: block;
        margin-bottom: 7px;
        color: #6b7280;
        font-size: 12px;
    }
}

@media (max-width: 520px) {

    .cart-page {
        padding-top: 20px;
    }

    .cart-item {
        grid-template-columns: 76px minmax(0, 1fr);
        padding: 15px;
    }

    .cart-item-image {
        width: 76px;
        height: 76px;
    }

    .cart-item-name {
        font-size: 16px;
    }

    .cart-summary {
        padding: 22px 18px;
    }
}