.cart-page .header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    padding: 0 !important;
    background: var(--main-background);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .06);
    z-index: 3000;
}

.cart-page .header-section {
    padding-top: 76px;
}

.cart-page-section {
    padding: 24px 16px 80px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 60vh;
}

/* HEADER */
.cart-page-header {
    text-align: center;
    margin-bottom: 32px;
}

.cart-page-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--title-color);
    margin: 0 0 10px;
    font-weight: 400;
}

.cart-page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--regular-text-color);
}

.cart-page-breadcrumb a {
    color: var(--regular-text-color);
    text-decoration: none;
    transition: color .2s;
}

.cart-page-breadcrumb a:hover {
    color: var(--main-color);
}

.cart-page-breadcrumb .bc-sep {
    font-size: 10px;
}

.cart-page-breadcrumb span {
    color: var(--title-color);
}

/* EMPTY STATE */
.cart-page-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 70px 20px;
    text-align: center;
}

.cart-empty-illustration {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ccc;
}

.cart-page-empty h2 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--title-color);
    margin: 0;
}

.cart-page-empty p {
    font-size: 15px;
    color: var(--regular-text-color);
    margin: 0;
}

.cart-empty-btn {
    width: auto !important;
    padding: 0 32px !important;
    height: 48px !important;
    margin-top: 8px;
}

/* TABLE HEAD — mobile hidden */
.cart-table-head {
    display: none;
}

/* COLOR DOT */
.cart-color-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .15);
    flex-shrink: 0;
    vertical-align: middle;
}

/* CART ITEM — mobile */
.cart-page-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0 14px;
    padding: 20px 0;
    border-bottom: 1px solid #ebebeb;
    align-items: start;
}

.cart-page-item:last-child {
    border-bottom: none;
}

.cart-page-item-img {
    grid-column: 1;
    grid-row: 1;
    width: 90px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    background: #f5f5f5;
    align-self: start;
}

.cart-page-item-details {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-page-item-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.cart-page-item-name {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 400;
    color: var(--title-color);
    margin: 0;
    line-height: 1.3;
}

.cart-page-attr {
    font-size: 13px;
    color: var(--regular-text-color);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.cart-page-attr strong {
    color: var(--title-color);
    font-weight: 500;
}

/* Mobile price/qty/total row */
.cart-page-mobile-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.cart-page-item-price {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--title-color);
}

.cart-page-item-total {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--title-color);
}

.cart-page-qty {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 30px;
}

.cart-page-qty button {
    background: none;
    border: none;
    width: 28px;
    height: 100%;
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
    color: var(--title-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.cart-page-qty button:hover {
    background: #f5f5f5;
}

.cart-page-qty-num {
    min-width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost', sans-serif;
}

/* Mobile remove */
.cart-page-item-remove.mobile-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 14px;
    padding: 2px;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: color .2s, background .2s;
}

.cart-page-item-remove.mobile-remove:hover {
    color: #e53e3e;
    background: #fff0f0;
}

/* Desktop-only elements — hidden on mobile */
.cart-page-item-remove.desktop-remove {
    display: none;
}

.cart-desktop-price,
.cart-desktop-qty,
.cart-desktop-total {
    display: none;
}

/* SUMMARY */
.cart-page-summary {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
}

.cart-gift-wrap {
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cart-gift-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--regular-text-color);
    user-select: none;
}

.cart-gift-label input[type="checkbox"] {
    display: none;
}

.cart-gift-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    background: #fff;
}

.cart-gift-label input:checked~.cart-gift-checkbox {
    background: var(--main-color);
    border-color: var(--main-color);
}

.cart-gift-label input:checked~.cart-gift-checkbox::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -2px);
    display: block;
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: var(--title-color);
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.cart-subtotal-row span:last-child {
    font-weight: 700;
    font-size: 20px;
    font-family: 'Jost', sans-serif;
}

.cart-checkout-btn {
    width: 100% !important;
    height: 52px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .5px;
    border-radius: 4px;
}

body main section.subscribe {
    margin-top: 5px;
}

/* TABLET / DESKTOP */
@media (min-width: 768px) {
    .cart-page-section {
        padding: 44px 30px 90px;
    }

    .cart-page-title {
        font-size: 2.6rem;
    }

    /* Table head */
    .cart-table-head {
        display: block;
    }

    .cart-table-head-grid {
        display: grid;
        grid-template-columns: 110px 1fr 110px 150px 100px;
        padding: 12px 0;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--title-color);
        border-bottom: 2px solid #e0e0e0;
    }

    .th-product {
        grid-column: 1/3;
    }

    .th-price {
        grid-column: 3;
        text-align: center;
    }

    .th-qty {
        grid-column: 4;
        text-align: center;
    }

    .th-total {
        grid-column: 5;
        text-align: right;
    }

    /* Item — 5-column grid */
    .cart-page-item {
        grid-template-columns: 110px 1fr 110px 150px 100px;
        align-items: center;
        gap: 0;
    }

    .cart-page-item-img {
        width: 90px;
        height: 110px;
        align-self: center;
    }

    .cart-page-item-details {
        padding: 0 16px;
        gap: 4px;
    }

    /* Hide mobile, show desktop */
    .cart-page-item-remove.mobile-remove {
        display: none;
    }

    .cart-page-mobile-price-row {
        display: none;
    }

    .cart-page-item-remove.desktop-remove {
        display: flex;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 12px;
        color: var(--regular-text-color);
        text-decoration: underline;
        padding: 0;
        font-family: var(--font-main);
        transition: color .2s;
        margin-top: 6px;
        width: auto;
        height: auto;
        border-radius: 0;
    }

    .cart-page-item-remove.desktop-remove:hover {
        color: #e53e3e;
        text-decoration: none;
    }

    .cart-desktop-price {
        display: flex;
        align-items: center;
        justify-content: center;
        grid-column: 3;
        font-family: 'Jost', sans-serif;
        font-weight: 600;
        font-size: 15px;
        color: var(--title-color);
    }

    .cart-desktop-qty {
        display: flex;
        grid-column: 4;
        align-items: center;
        justify-content: center;
        height: 36px;
    }

    .cart-desktop-qty .cart-page-qty {
        height: 36px;
    }

    .cart-desktop-qty .cart-page-qty button {
        width: 34px;
        font-size: 18px;
    }

    .cart-desktop-qty .cart-page-qty-num {
        min-width: 36px;
    }

    .cart-desktop-total {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        grid-column: 5;
        font-family: 'Jost', sans-serif;
        font-weight: 700;
        font-size: 15px;
        color: var(--title-color);
    }

    .cart-page-summary {
        margin-top: 44px;
        max-width: 460px;
        margin-left: auto;
    }
}

@media (min-width: 1024px) {
    .cart-page-section {
        padding: 60px 0 110px;
    }

    .cart-page-title {
        font-size: 3rem;
    }

    .cart-page .header-section {
        padding-top: 0px;
        padding-bottom: 50px;
    }
}