.page--cart {
    padding: 24px 0 72px;
    background: #fff;
}

.page--cart .container {
    max-width: 1280px;
}

.cart-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: #b0b7c3;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.cart-page__breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.cart-page__breadcrumb a:hover {
    color: #111827;
}

.cart-page__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef0f3;
}

.cart-page__eyebrow {
    margin: 0 0 4px;
    color: var(--color-brand, #b8935a);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cart-page__title {
    margin: 0;
    color: #1f2937;
    font-family: var(--font-sans);
    font-size: clamp(1.375rem, 2.1vw, 1.625rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.cart-page__subtitle {
    margin: 5px 0 0;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.cart-page__head-link {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.cart-page__head-link:hover {
    color: var(--color-brand, #b8935a);
}

.cart-page__notices {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    background: #fffbeb;
}

.cart-page__notices p {
    margin: 0;
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
}

.cart-page__empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 64px 28px;
    border: 1px solid #f0f2f5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .04);
    text-align: center;
}

.cart-page__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #f8f4ee;
    color: var(--color-brand, #b8935a);
}

.cart-page__empty h2 {
    margin: 10px 0 0;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
}

.cart-page__empty p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.cart-page__layout {
    display: grid;
    gap: 20px;
}

@media (min-width: 960px) {
    .cart-page__layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        align-items: start;
        gap: 28px;
    }
}

.cart-page__panel {
    border: 1px solid #f0f2f5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(17, 24, 39, .04);
}

.cart-page__panel--items {
    overflow: hidden;
}

.cart-page__toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f2f5;
    background: #fafbfc;
}

.cart-page__select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.cart-page__select-all input[type="checkbox"],
.cart-item__check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid #d8dce3;
    border-radius: 5px;
    background-color: #fff;
    background-image: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 8px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
    flex-shrink: 0;
}

.cart-page__select-all input[type="checkbox"]:hover,
.cart-item__check input[type="checkbox"]:hover {
    border-color: #c4a574;
}

.cart-page__select-all input[type="checkbox"]:checked,
.cart-item__check input[type="checkbox"]:checked {
    background-color: var(--color-brand, #b8935a);
    border-color: var(--color-brand, #b8935a);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1.5 5.2l2.8 2.8L10.5 1.8' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cart-page__select-all input[type="checkbox"]:indeterminate {
    background-color: var(--color-brand, #b8935a);
    border-color: var(--color-brand, #b8935a);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6h7' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 10px 10px;
}

.cart-page__select-all input[type="checkbox"]:focus-visible,
.cart-item__check input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 147, 90, .2);
}

.cart-page__toolbar-count {
    color: #6b7280;
    font-size: 13px;
}

.cart-page__table-head,
.cart-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 120px 110px 44px;
    align-items: center;
    gap: 14px;
}

.cart-page__table-head {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f2f5;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cart-page__col--price,
.cart-page__col--qty {
    text-align: center;
}

.cart-page__col--price {
    text-align: right;
}

.cart-page__items {
    display: grid;
}

.cart-item {
    padding: 18px 20px;
    border-top: 1px solid #f5f6f8;
    transition: background .15s ease;
}

.cart-item:first-child {
    border-top: none;
}

.cart-item.is-selected {
    background: #fff;
}

.cart-item:not(.is-selected) {
    background: #fafafa;
    opacity: .72;
}

.cart-item__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-item__product {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.cart-item__media {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 3 / 4;
    background: #f8f9fb;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .04);
}

.cart-item__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__info {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding-top: 2px;
}

.cart-item__name {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.cart-item__name:hover {
    color: var(--color-brand, #b8935a);
}

.cart-item__code {
    margin: 0;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.4;
}

.cart-item__code span {
    color: #6b7280;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cart-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.cart-item__tags li {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f8f9fb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.cart-qty__stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e8ebf0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.cart-qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: #fafafa;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.cart-qty__btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.cart-qty__input {
    width: 42px;
    height: 34px;
    border: none;
    border-left: 1px solid #e8ebf0;
    border-right: 1px solid #e8ebf0;
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.cart-qty.is-loading {
    opacity: .65;
    pointer-events: none;
}

.cart-item__price {
    margin: 0;
    color: var(--color-brand, #b8935a);
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cart-item__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #eceff3;
    border-radius: 8px;
    background: #fff;
    color: #9ca3af;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.cart-item__remove:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.cart-page__panel--summary {
    display: grid;
    gap: 14px;
    padding: 22px 22px 20px;
    position: sticky;
    top: 92px;
}

.cart-page__summary-eyebrow {
    margin: 0;
    color: var(--color-brand, #b8935a);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cart-page__summary-title {
    margin: -6px 0 0;
    color: #111827;
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-page__summary-card {
    display: grid;
    gap: 12px;
    padding: 16px 0 4px;
    border-top: 1px solid rgba(184, 147, 90, .14);
    border-bottom: 1px solid #f0f2f5;
}

.cart-page__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #374151;
    font-size: 14px;
}

.cart-page__summary-row strong {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cart-page__summary-row--total strong {
    font-size: 1.2rem;
}

.cart-page__summary-row--muted {
    color: #9ca3af;
    font-size: 13px;
}

.cart-page__summary-note {
    margin: 0;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.55;
}

.cart-page__summary-actions {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.cart-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}

.cart-page__btn--primary {
    border: none;
    background: var(--color-brand, #b8935a);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(184, 147, 90, .22);
}

.cart-page__btn--primary:hover {
    filter: brightness(1.05);
}

.cart-page__btn--primary.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.cart-page__btn--primary.is-loading {
    opacity: .75;
    pointer-events: none;
    cursor: wait;
}

.cart-page__btn--ghost {
    border: 1px solid #e8ebf0;
    background: #fff;
    color: #374151 !important;
}

.cart-page__btn--ghost:hover {
    border-color: #d7dce3;
    background: #fafafa;
}

@media (max-width: 959px) {
    .cart-page__table-head {
        display: none;
    }

    .cart-item {
        grid-template-columns: 34px 1fr 40px;
        grid-template-areas:
            "check product action"
            "check qty price";
        gap: 10px 12px;
        align-items: start;
    }

    .cart-page__col--check { grid-area: check; }
    .cart-page__col--product { grid-area: product; }
    .cart-page__col--qty { grid-area: qty; justify-self: start; }
    .cart-page__col--price { grid-area: price; justify-self: end; text-align: right; }
    .cart-page__col--action { grid-area: action; justify-self: end; }

    .cart-item__product {
        grid-template-columns: 80px minmax(0, 1fr);
    }
}

@media (max-width: 719px) {
    .cart-page__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-page__panel--summary {
        position: static;
    }
}
