/* =========================================
   ZIELONE DRZEWKO - KOSZYK PRO 2026
========================================= */

.cart-pro-page {
    background:
        radial-gradient(circle at 15% 15%, rgba(125, 150, 19, 0.08), transparent 26%),
        linear-gradient(180deg, #f8faf4 0%, #ffffff 52%, #f3f7ed 100%);
    padding: 34px 0 74px;
}

.cart-pro-container {
    width: min(1320px, calc(100% - 36px));
    margin: 0 auto;
}

.cart-pro-hero {
    min-height: 150px;
    padding: 34px 38px;
    border: 1px solid #dce4cf;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(239, 244, 231, 0.96), rgba(255, 255, 252, 0.92)),
        url("/assets/img/leaf-pattern.svg");
    background-position: right center;
    background-repeat: no-repeat;
    box-shadow: 0 22px 60px rgba(26, 42, 24, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.cart-pro-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: #7f9512;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.cart-pro-hero h1,
.cart-pro-empty h2 {
    margin: 0;
    color: #102018;
    font-size: clamp(2rem, 3.2vw, 3.6rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.cart-pro-hero p,
.cart-pro-empty p {
    margin: 12px 0 0;
    color: #5f6c5f;
    font-size: 1.03rem;
    line-height: 1.7;
}

.cart-pro-btn,
.cart-pro-checkout-btn {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 16px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.97rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cart-pro-btn:hover,
.cart-pro-checkout-btn:hover {
    transform: translateY(-1px);
}

.cart-pro-btn-light {
    color: #102018;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #bfca9e;
}

.cart-pro-btn-primary,
.cart-pro-checkout-btn {
    color: #fff;
    background: linear-gradient(135deg, #7f9713 0%, #6f850f 100%);
    box-shadow: 0 18px 32px rgba(111, 133, 15, 0.24);
}

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

.cart-pro-main {
    min-width: 0;
}

.cart-pro-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 0 14px;
    color: #7f9512;
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.cart-pro-section-head strong {
    color: #132219;
}

.cart-pro-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-pro-item {
    position: relative;
    display: grid;
    grid-template-columns: 128px minmax(220px, 1fr) 150px 132px 130px 48px;
    gap: 20px;
    align-items: center;
    min-height: 150px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid #dce4cf;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 46px rgba(28, 42, 24, 0.055);
}

.cart-pro-item-image {
    width: 128px;
    height: 112px;
    border-radius: 18px;
    background: #f0f3e8;
    overflow: hidden;
    border: 1px solid #e0e6d4;
    display: block;
}

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

.cart-pro-item-label,
.cart-pro-price-box span,
.cart-pro-qty-box span,
.cart-pro-line-total span {
    display: block;
    color: #7f9512;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 7px;
}

.cart-pro-item-info h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.15;
    letter-spacing: -0.035em;
    font-weight: 900;
    color: #122018;
}

.cart-pro-item-info h2 a {
    color: inherit;
    text-decoration: none;
}

.cart-pro-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 12px;
    margin-top: 9px;
    color: #647064;
    font-size: 0.92rem;
    line-height: 1.4;
}

.cart-pro-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #506415;
    font-weight: 700;
}

.cart-pro-stock i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7f9713;
}

.cart-pro-price-box strong,
.cart-pro-line-total strong {
    color: #122018;
    font-size: 1.08rem;
    font-weight: 900;
}

.cart-pro-qty {
    display: inline-grid;
    grid-template-columns: 38px 42px 38px;
    min-height: 42px;
    border: 1px solid #d6dec9;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.cart-pro-qty form {
    margin: 0;
}

.cart-pro-qty button,
.cart-pro-qty strong {
    width: 100%;
    height: 42px;
    border: 0;
    background: #fff;
    color: #132219;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.cart-pro-qty button {
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-pro-qty button:hover:not(:disabled) {
    background: #eef3e6;
}

.cart-pro-qty button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cart-pro-qty strong {
    border-left: 1px solid #d6dec9;
    border-right: 1px solid #d6dec9;
}

.cart-pro-remove {
    margin: 0;
}

.cart-pro-remove button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #d8dfcf;
    background: #fff;
    color: #102018;
    font-weight: 800;
    cursor: pointer;
}

.cart-pro-remove button:hover {
    background: #fff1f1;
    border-color: #e7b8b8;
    color: #a73737;
}

.cart-pro-delivery-progress {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid #dce4cf;
    background: linear-gradient(135deg, #f4f7ed, #ffffff);
    box-shadow: 0 18px 46px rgba(28, 42, 24, 0.045);
}

.cart-pro-progress-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: #e8eedc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.cart-pro-progress-content h3 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 900;
    color: #132219;
}

.cart-pro-progress-content p {
    margin: 5px 0 12px;
    color: #647064;
    line-height: 1.55;
}

.cart-pro-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: #dce4cf;
    overflow: hidden;
}

.cart-pro-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7f9713, #9ab82b);
}

.cart-pro-delivery-progress > strong {
    color: #132219;
    white-space: nowrap;
}

.cart-pro-summary {
    position: sticky;
    top: 24px;
}

.cart-pro-summary-card {
    border-radius: 26px;
    border: 1px solid #dce4cf;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 60px rgba(28, 42, 24, 0.08);
    padding: 26px;
}

.cart-pro-summary-card h2 {
    margin: 0 0 20px;
    color: #132219;
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.cart-pro-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dce4cf;
}

.cart-pro-summary-rows div,
.cart-pro-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
}

.cart-pro-summary-rows span,
.cart-pro-summary-total span {
    color: #4f5e52;
    font-size: 1rem;
}

.cart-pro-summary-rows strong {
    color: #132219;
    font-weight: 900;
}

.cart-pro-summary-total {
    padding: 20px 0;
}

.cart-pro-summary-total strong {
    font-size: 2rem;
    color: #132219;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.cart-pro-coupon {
    margin-bottom: 18px;
}

.cart-pro-coupon label {
    display: block;
    margin-bottom: 8px;
    color: #132219;
    font-weight: 800;
}

.cart-pro-coupon div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.cart-pro-coupon input {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #d6dec9;
    outline: none;
    font-weight: 700;
}

.cart-pro-coupon input:focus {
    border-color: #7f9713;
    box-shadow: 0 0 0 4px rgba(127, 151, 19, 0.12);
}

.cart-pro-coupon button {
    min-height: 48px;
    padding: 0 15px;
    border-radius: 14px;
    border: 0;
    background: #edf2e4;
    color: #132219;
    font-weight: 900;
    cursor: pointer;
}

.cart-pro-checkout-btn {
    width: 100%;
    min-height: 58px;
    justify-content: center;
    margin-bottom: 18px;
}

.cart-pro-trust-list {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #dce4cf;
    background: #f2f6eb;
}

.cart-pro-trust-list > div {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid #dce4cf;
}

.cart-pro-trust-list > div:last-child {
    border-bottom: 0;
}

.cart-pro-trust-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-pro-trust-list strong {
    display: block;
    color: #132219;
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.cart-pro-trust-list p {
    margin: 0;
    color: #647064;
    font-size: 0.9rem;
    line-height: 1.55;
}

.cart-pro-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: 54px 38px;
    border-radius: 30px;
    border: 1px solid #dce4cf;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 22px 60px rgba(28, 42, 24, 0.07);
    text-align: center;
}

.cart-pro-empty-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: #eef3e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.cart-pro-empty .cart-pro-btn {
    margin-top: 22px;
}

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

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

    .cart-pro-item {
        grid-template-columns: 112px minmax(0, 1fr) 130px 118px;
    }

    .cart-pro-line-total,
    .cart-pro-remove {
        grid-column: auto;
    }
}

@media (max-width: 860px) {
    .cart-pro-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 22px;
    }

    .cart-pro-item {
        grid-template-columns: 96px 1fr;
        gap: 16px;
    }

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

    .cart-pro-price-box,
    .cart-pro-qty-box,
    .cart-pro-line-total,
    .cart-pro-remove {
        grid-column: 1 / -1;
    }

    .cart-pro-remove button {
        width: 100%;
        border-radius: 14px;
    }

    .cart-pro-delivery-progress {
        grid-template-columns: 1fr;
    }

    .cart-pro-delivery-progress > strong {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .cart-pro-container {
        width: min(100% - 24px, 1320px);
    }

    .cart-pro-hero h1,
    .cart-pro-empty h2 {
        font-size: 2.05rem;
    }

    .cart-pro-summary-card {
        padding: 20px;
    }

    .cart-pro-coupon div {
        grid-template-columns: 1fr;
    }
}