/* Cart page — Wes mockup */

.page-cart {
    background: #fff;
}

.page-cart #main {
    padding-top: 0;
}

.page-cart .site-header.site-header--mockup {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #ece7df;
}

/* Hero */
.cart-hero {
    position: relative;
    min-height: clamp(220px, 32vh, 320px);
    display: flex;
    color: #fff;
}

.cart-hero__bg {
    position: absolute;
    inset: 0;
}

.cart-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 45%;
}

.cart-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.08) 100%);
}

.cart-hero__shell {
    position: relative;
    z-index: 1;
    width: var(--home-shell);
    margin-inline: auto;
    display: flex;
    align-items: center;
    padding: clamp(36px, 5vh, 56px) 0;
}

.cart-hero__content {
    max-width: 36rem;
}

.cart-hero__title {
    margin: 0 0 10px;
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    line-height: 1.05;
}

.cart-hero__subtitle {
    margin: 0;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.cart-shell {
    width: var(--home-shell);
    margin-inline: auto;
}

.cart-main {
    padding: clamp(32px, 4vw, 48px) 0 clamp(40px, 5vw, 56px);
    background: #fff;
}

.cart-flash {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #f3eefc;
    color: #4a4a4a;
    font-size: 0.875rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

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

.cart-items-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.cart-items-head__title {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.35rem);
}

.cart-items-head__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--home-ink, #1a1a1a);
    white-space: nowrap;
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
}

.cart-empty-state__text {
    margin: 0;
}

.cart-empty-state__cta {
    border-radius: 999px;
}

.cart-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-line {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid #ececec;
}

.cart-line:first-child {
    border-top: 1px solid #ececec;
}

.cart-line__thumb {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 1;
}

.cart-line__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-line__badge {
    margin: 0 0 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cart-accent, #8b6fd7);
}

.cart-line__meta--colors {
    line-height: 1.45;
}

.cart-line__title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 600;
}

.cart-line__title a {
    color: inherit;
    text-decoration: none;
}

.cart-line__meta {
    margin: 0 0 6px;
    font-size: 0.8125rem;
    color: #888;
}

.cart-line__price {
    margin: 0 0 14px;
    font-size: 0.9375rem;
    font-weight: 700;
}

.cart-line__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

.cart-line__remove-form {
    margin: 0;
    flex-shrink: 0;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
}

.cart-qty__btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

.cart-qty__btn:hover:not(:disabled) {
    background: #f0f0f0;
}

.cart-qty__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cart-qty__value {
    min-width: 2rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.cart-qty--readonly {
    justify-content: center;
    min-width: 2.75rem;
    padding: 0 12px;
    color: #666;
}

.cart-line--custom .cart-line__price {
    margin-bottom: 10px;
}

.cart-line__remove {
    border: none;
    background: transparent;
    padding: 6px;
    cursor: pointer;
    color: #888;
}

.cart-line__remove:hover {
    color: #1a1a1a;
}

/* Summary */
.cart-summary {
    padding: clamp(22px, 3vw, 28px);
    border-radius: 14px;
    background: #faf9f7;
    border: 1px solid #eceae6;
}

.cart-summary__title {
    margin: 0 0 20px;
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
}

.cart-summary__rows {
    margin: 0 0 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid #e8e4dc;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.875rem;
    color: #5c5c5c;
}

.cart-summary__row dd {
    margin: 0;
    text-align: right;
}

.cart-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.cart-summary__total-label {
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.cart-summary__total-value {
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.cart-summary__tax {
    margin: 0 0 18px;
    font-size: 0.75rem;
    color: #888;
}

a.cart-summary__checkout {
    text-decoration: none;
    text-align: center;
}

.cart-summary__checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 999px;
    background: #8f6bd9;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: not-allowed;
    opacity: 0.85;
}

.cart-summary__checkout:not(:disabled) {
    cursor: pointer;
    opacity: 1;
}

.cart-summary__checkout:not(:disabled):hover {
    background: #7559c9;
}

.cart-summary__checkout-hint {
    margin: 12px 0 20px;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #888;
}

.cart-summary__trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.cart-summary__trust li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.8125rem;
    color: #5c5c5c;
}

.cart-summary__trust svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: #666;
}

.cart-summary__trust strong {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
}

/* Recommendations */
.cart-recommendations {
    padding: 0 0 clamp(40px, 5vw, 56px);
    background: #fff;
}

.cart-recommendations__title {
    margin: 0 0 24px;
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    text-align: left;
}

.cart-recommendations__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* Custom banner */
.cart-custom-banner {
    padding: 0 0 clamp(56px, 6vw, 72px);
    background: #fff;
}

.cart-custom-banner__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: clamp(24px, 4vw, 32px);
    border-radius: 16px;
    background: #faf8f4;
    border: 1px solid #efeae2;
}

.cart-custom-banner__copy h2 {
    margin: 0 0 12px;
    font-size: clamp(1.65rem, 2.8vw, 2rem);
}

.cart-custom-banner__copy p {
    margin: 0 0 18px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #5c5c5c;
}

.cart-custom-banner__cta {
    display: inline-flex;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid #1a1a1a;
    background: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1a1a1a;
    text-decoration: none;
}

.cart-custom-banner__media {
    border-radius: 12px;
    overflow: hidden;
}

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

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-recommendations__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .cart-custom-banner__media {
        order: -1;
    }
}
