.cart-page {
    max-width: 100%;
    overflow-x: clip;
    background:
        radial-gradient(circle at top right, rgba(41, 124, 70, 0.08), transparent 24%),
        radial-gradient(circle at bottom left, rgba(255, 153, 51, 0.08), transparent 24%),
        linear-gradient(180deg, #f5f7f3 0%, #ffffff 34%, #f5f7f3 100%);
}

.cart-page .container,
.cart-hero-card,
.cart-order-card,
.cart-summary-card,
.cart-request-card,
.cart-layout,
.cart-stack,
.cart-sidebar,
.cart-order-table,
.cart-items,
.cart-item,
.cart-item-main {
    min-width: 0;
}

.cart-hero {
    padding-top: 46px;
}

.cart-hero-card,
.cart-order-card,
.cart-summary-card {
    border: 1px solid var(--border);
    border-radius: 32px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.cart-hero-card {
    padding: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 242, 235, 0.92) 100%);
}

.cart-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.cart-breadcrumbs a:hover {
    color: var(--green-dark);
}

.cart-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.cart-hero-copy h1 {
    font-size: clamp(40px, 5vw, 60px);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.cart-hero-text {
    max-width: 820px;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 18px;
}

.cart-hero-note {
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(145deg, #123a22 0%, #297c46 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.cart-note-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cart-hero-note strong {
    display: block;
    margin-top: 18px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    font-weight: 800;
}

.cart-hero-note p {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    line-height: 1.55;
}

.cart-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.cart-hero-point {
    padding: 18px 20px;
    border: 1px solid rgba(201, 211, 194, 0.8);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
}

.cart-hero-point span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cart-hero-point strong {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 22px;
    align-items: start;
}

.cart-stack,
.cart-sidebar {
    display: grid;
    gap: 22px;
}

.cart-order-card,
.cart-summary-card {
    padding: 28px;
}

.cart-section-head {
    align-items: flex-start;
}

.cart-section-text {
    max-width: 700px;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 16px;
}

.cart-inline-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.cart-order-table {
    display: grid;
    gap: 14px;
}

.cart-table-head {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 140px 150px 140px 48px;
    gap: 14px;
    padding: 0 18px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cart-items {
    display: grid;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 140px 150px 140px 48px;
    gap: 14px;
    align-items: start;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.cart-item-main {
    display: grid;
    gap: 12px;
}

.cart-item-title {
    font-size: 20px;
    line-height: 1.18;
    font-weight: 800;
}

.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cart-item-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
}

.cart-item-note {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.cart-item-col {
    display: grid;
    gap: 6px;
    align-content: start;
}

.cart-item-col span {
    display: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cart-item-col strong {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.cart-item-col small {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
}

.cart-qty-control button {
    width: 42px;
    height: 48px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 20px;
    line-height: 1;
}

.cart-qty-control span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 0 10px;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: normal;
}

.cart-qty-control input {
    width: 76px;
    height: 48px;
    border: 0;
    background: transparent;
    text-align: center;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    outline: none;
}

.cart-item-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.cart-item-remove:hover {
    transform: translateY(-2px);
    border-color: rgba(41, 124, 70, 0.36);
    color: var(--green-dark);
}

.cart-empty-state {
    display: grid;
    gap: 14px;
    justify-items: start;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(238, 242, 235, 0.78) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: var(--shadow-sm);
}

.cart-empty-state strong {
    font-size: 30px;
    line-height: 1.05;
    font-weight: 800;
}

.cart-empty-state p {
    max-width: 620px;
    color: var(--text-muted);
    font-size: 16px;
}

.cart-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cart-process-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.cart-process-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(41, 124, 70, 0.1);
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 800;
}

.cart-process-card h3 {
    margin-top: 18px;
    font-size: 22px;
    line-height: 1.14;
    font-weight: 800;
}

.cart-process-card p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.cart-summary-card {
    position: sticky;
    top: 108px;
}

.cart-card-label,
.cart-support-label {
    display: inline-block;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cart-summary-card h2 {
    margin-top: 12px;
    font-size: 32px;
    line-height: 1.02;
    font-weight: 800;
}

.cart-summary-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.cart-summary-row span {
    color: var(--text-muted);
    font-size: 15px;
}

.cart-summary-row strong {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 800;
}

.cart-summary-row-total strong {
    font-size: 28px;
}

.cart-summary-note {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.cart-summary-actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.cart-support-block {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cart-support-block a {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.cart-support-block p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.cart-services {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-soft);
}

.cart-services label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.cart-services select,
.cart-coupon-row input[type="text"] {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    outline: none;
}

.cart-coupon-row,
.cart-affiliate-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--white);
}

.cart-coupon-row label {
    display: grid;
    gap: 8px;
    min-width: min(100%, 280px);
}

.cart-coupon-row label span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cart-affiliate-row {
    color: var(--text-muted);
    font-size: 14px;
}

.cart-request-card {
    box-shadow: var(--shadow-md);
}

.cart-form-success {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(41, 124, 70, 0.18);
    border-radius: 22px;
    background: rgba(41, 124, 70, 0.08);
}

.cart-form-success strong {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.cart-form-success p {
    margin-top: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.cart-auth-banner,
.cart-form-block {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(245, 247, 243, 0.92);
}

.cart-auth-banner strong,
.cart-form-caption {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.cart-auth-banner p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.cart-auth-actions,
.cart-inline-grid,
.cart-choice-grid {
    display: grid;
    gap: 12px;
}

.cart-auth-actions,
.cart-inline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cart-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cart-choice-card {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white);
}

.cart-choice-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.cart-choice-card span {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
}

.cart-choice-card small {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.cart-request-card.is-disabled {
    opacity: 0.78;
}

.cart-request-card.is-disabled .site-form input,
.cart-request-card.is-disabled .site-form textarea {
    background: rgba(238, 242, 235, 0.82);
}

.cart-request-card .site-form button:disabled,
.cart-inline-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

@media (max-width: 1180px) {
    .cart-layout,
    .cart-hero-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary-card {
        position: static;
    }

    .cart-page {
        overflow-x: hidden;
    }
}

@media (max-width: 980px) {
    .cart-hero-meta,
    .cart-process-grid,
    .cart-choice-grid,
    .cart-auth-actions,
    .cart-inline-grid {
        grid-template-columns: 1fr;
    }

    .cart-table-head {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-col span {
        display: block;
    }

    .cart-item-remove {
        width: 100%;
        border-radius: 999px;
    }
}

@media (max-width: 760px) {
    .cart-hero-card,
    .cart-order-card,
    .cart-summary-card,
    .cart-process-card {
        padding: 22px;
    }

    .cart-hero-copy h1 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .cart-inline-actions,
    .cart-empty-actions {
        width: 100%;
    }

    .cart-inline-actions .btn,
    .cart-empty-actions .btn {
        width: 100%;
    }

    .cart-item-title {
        font-size: 18px;
    }

    .cart-summary-card h2 {
        font-size: 28px;
    }
}

@media print {
    .top-bar,
    .site-header,
    .cookie-banner,
    .mobile-menu-overlay,
    .shop-panel-backdrop,
    .shop-side-panel,
    .site-footer,
    .cart-summary-actions,
    .cart-support-block,
    .cart-process,
    .cart-inline-actions,
    .cart-request-card {
        display: none !important;
    }

    .cart-page {
        background: #fff;
    }

    .cart-hero,
    .cart-main {
        padding: 0;
    }

    .cart-hero-card,
    .cart-order-card,
    .cart-item {
        box-shadow: none;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }
}
