
.cart-page-main {
    background-color: #fbfbfd;
    padding-top: 80px;
    padding-bottom: 140px;
    padding-left: 24px;
    padding-right: 24px;
    min-height: 100vh;
    box-sizing: border-box;
    width: 100%;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}
.cart-container-main {
    max-width: 1300px;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}
.cart-page-title {
    font-size: 48px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 50px;
    margin-left: 0;
    margin-right: 0;
    font-family: 'Montserrat', sans-serif;
    color: #1d1d1f;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.empty-cart-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #ffffff;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 40px;
    padding-right: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.04);
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-style: solid;
    border-color: rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}
.empty-icon-wrapper {
    width: 140px;
    height: 140px;
    background-color: #f5f5f7;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
    margin-top: 0;
    margin-bottom: 40px;
    margin-left: 0;
    margin-right: 0;
}
.empty-cart-state h2 {
    font-size: 34px;
    font-weight: 800;
    color: #1d1d1f;
    margin-top: 0;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    letter-spacing: -0.01em;
}
.empty-cart-state p {
    font-size: 18px;
    color: #86868b;
    max-width: 600px;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 50px;
    margin-left: 0;
    margin-right: 0;
}
.empty-actions {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.btn-premium-large {
    padding-top: 22px;
    padding-bottom: 22px;
    padding-left: 48px;
    padding-right: 48px;
    background-color: #1d1d1f;
    color: #ffffff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    font-size: 17px;
    font-weight: 700;
    transition-property: all;
    transition-duration: 0.35s;
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-decoration-line: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}
.btn-premium-large:hover {
    background-color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.btn-outline-premium {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 48px;
    padding-right: 48px;
    background-color: transparent;
    color: #1d1d1f;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    font-size: 17px;
    font-weight: 700;
    border-top-width: 2px;
    border-bottom-width: 2px;
    border-left-width: 2px;
    border-right-width: 2px;
    border-style: solid;
    border-color: #1d1d1f;
    transition-property: all;
    transition-duration: 0.35s;
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration-line: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}
.btn-outline-premium:hover {
    background-color: #1d1d1f;
    color: #ffffff;
}
.cart-grid-layout {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 60px;
    align-items: flex-start;
    width: 100%;
}
.cart-items-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}
.cart-items-header {
    display: flex;
    padding-top: 0;
    padding-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #d2d2d7;
    font-size: 13px;
    font-weight: 700;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: 100%;
    box-sizing: border-box;
}
.h-prod {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
}
.h-qty {
    width: 140px;
    text-align: center;
}
.h-total {
    width: 180px;
    text-align: right;
    padding-right: 60px;
}
.cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
}
.cart-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #ffffff;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    padding-right: 30px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-style: solid;
    border-color: rgba(0,0,0,0.04);
    position: relative;
    gap: 30px;
    transition-property: transform, box-shadow;
    transition-duration: 0.4s;
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    width: 100%;
}
.cart-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.06);
}
.ci-img-wrapper {
    width: 140px;
    height: 140px;
    background-color: #f5f5f7;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}
.ci-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ci-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
}
.ci-title {
    font-size: 22px;
    font-weight: 800;
    color: #1d1d1f;
    margin-top: 0;
    margin-bottom: 8px;
    margin-left: 0;
    margin-right: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.ci-variant {
    font-size: 14px;
    color: #86868b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ci-qty-selector {
    display: flex;
    align-items: center;
    background-color: #f5f5f7;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 6px;
    padding-right: 6px;
    height: 54px;
    width: 130px;
    flex-shrink: 0;
    box-sizing: border-box;
}
.ci-qty-btn {
    width: 42px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    font-size: 22px;
    font-weight: 600;
    background-color: transparent;
    cursor: pointer;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    transition-property: background;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    border-top-width: 0;
    border-bottom-width: 0;
    border-left-width: 0;
    border-right-width: 0;
}
.ci-qty-btn:hover {
    background-color: rgba(0,0,0,0.06);
}
.ci-qty-input {
    width: 40px;
    text-align: center;
    border-top-width: 0;
    border-bottom-width: 0;
    border-left-width: 0;
    border-right-width: 0;
    background-color: transparent;
    font-size: 18px;
    font-weight: 800;
    color: #1d1d1f;
    outline-width: 0;
}
.ci-price-display {
    font-size: 24px;
    font-weight: 800;
    color: #1d1d1f;
    width: 180px;
    text-align: right;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    padding-right: 20px;
    box-sizing: border-box;
}
.ci-remove-btn {
    width: 44px;
    height: 44px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    background-color: #fff1f0;
    color: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition-property: all;
    transition-duration: 0.35s;
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
    border-top-width: 0;
    border-bottom-width: 0;
    border-left-width: 0;
    border-right-width: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.12);
}
.ci-remove-btn:hover {
    background-color: #ff3b30;
    color: #ffffff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 20px rgba(255, 59, 48, 0.3);
}
.cart-extra-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 10px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}
.extra-card {
    background-color: #ffffff;
    padding-top: 35px;
    padding-bottom: 35px;
    padding-left: 35px;
    padding-right: 35px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-style: solid;
    border-color: rgba(0,0,0,0.04);
    box-sizing: border-box;
}
.extra-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(244, 146, 1, 0.08);
    color: #f49201;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.extra-text strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 8px;
    margin-left: 0;
    margin-right: 0;
    color: #1d1d1f;
}
.extra-text p {
    font-size: 15px;
    color: #86868b;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
}
.cart-summary-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}
.summary-card-premium {
    background-color: #ffffff;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    padding-top: 45px;
    padding-bottom: 45px;
    padding-left: 45px;
    padding-right: 45px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-style: solid;
    border-color: rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}
.summary-card-title {
    font-size: 26px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 35px;
    margin-left: 0;
    margin-right: 0;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}
.summary-details {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.summary-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    margin-bottom: 22px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}
.row-label {
    font-size: 17px;
    color: #86868b;
    font-weight: 500;
}
.row-value {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
}
.green-text {
    color: #ff5607 !important;
}
.summary-separator {
    height: 1px;
    background-color: #f2f2f7;
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}
.total-final {
    margin-top: 0;
    margin-bottom: 10px;
    margin-left: 0;
    margin-right: 0;
}
.total-final .row-label {
    font-size: 20px;
    font-weight: 800;
    color: #1d1d1f;
}
.total-final .row-value {
    font-size: 36px;
    font-weight: 900;
    color: #f49201;
    letter-spacing: -0.03em;
}
.btn-checkout-final {
    width: 100%;
    height: 72px;
    background-color: #1d1d1f;
    color: #ffffff;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    font-size: 19px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    transition-property: all;
    transition-duration: 0.4s;
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
    border-top-width: 0;
    border-bottom-width: 0;
    border-left-width: 0;
    border-right-width: 0;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.btn-checkout-final:hover {
    background-color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.secure-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    color: #86868b;
    font-size: 14px;
    font-weight: 600;
}
.payment-badges-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 35px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    opacity: 0.85;
    color: #1d1d1f;
}
.payment-badges-row svg {
    object-fit: contain;
}
.promo-box-premium {
    background-color: #ffffff;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    padding-top: 35px;
    padding-bottom: 35px;
    padding-left: 35px;
    padding-right: 35px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.03);
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-style: solid;
    border-color: rgba(0,0,0,0.04);
    width: 100%;
    margin-top: 0;
    box-sizing: border-box;
}
.promo-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    color: #1d1d1f;
}
.promo-input-group {
    display: flex;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.promo-input-group input {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
    height: 56px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-style: solid;
    border-color: #d2d2d7;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 15px;
    font-weight: 500;
    outline-width: 0;
    background-color: #fbfbfd;
    transition-property: border-color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
    box-sizing: border-box;
}
.promo-input-group input:focus {
    border-color: #f49201;
    box-shadow: 0 0 0 4px rgba(244, 146, 1, 0.1);
}
.promo-input-group button {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 30px;
    padding-right: 30px;
    background-color: #1d1d1f;
    color: #ffffff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    transition-property: background-color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
    border-top-width: 0;
    border-bottom-width: 0;
    border-left-width: 0;
    border-right-width: 0;
    cursor: pointer;
    box-sizing: border-box;
}
.promo-input-group button:hover {
    background-color: #333333;
}
.cross-sell-section {
    margin-top: 120px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: rgba(0,0,0,0.08);
    box-sizing: border-box;
}
.cross-sell-title {
    font-size: 34px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 50px;
    margin-left: 0;
    margin-right: 0;
    color: #1d1d1f;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
}
.cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}
.recommendation-card {
    background-color: #ffffff;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 30px;
    padding-right: 30px;
    text-align: center;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-style: solid;
    border-color: rgba(0,0,0,0.04);
    transition-property: transform, box-shadow;
    transition-duration: 0.4s;
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.recommendation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}
.rec-img {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 30px;
    margin-left: 0;
    margin-right: 0;
}
.rec-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.recommendation-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    margin-left: 0;
    margin-right: 0;
    color: #1d1d1f;
    line-height: 1.3;
}
.rec-price {
    display: block;
    font-size: 19px;
    color: #f49201;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 30px;
    margin-left: 0;
    margin-right: 0;
}
.btn-add-rec {
    width: 100%;
    height: 54px;
    background-color: #f5f5f7;
    color: #1d1d1f;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease;
    border-top-width: 0;
    border-bottom-width: 0;
    border-left-width: 0;
    border-right-width: 0;
    cursor: pointer;
    margin-top: auto;
}
.btn-add-rec:hover {
    background-color: #1d1d1f;
    color: #ffffff;
}

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

@media (max-width: 1200px) {
    .cart-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cart-summary-column {
        position: relative;
        top: 0;
    }
    .cart-extra-info {
        grid-template-columns: 1fr 1fr;
    }
    .cross-sell-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Pe tabletă, summary-ul și promo-ul stau side by side */
    .summary-card-premium {
        padding: 36px 36px;
    }
}

/* ── Tabletă: layout orizontal pentru summary ── */
@media (min-width: 600px) and (max-width: 1200px) {
    .cart-summary-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }
    .promo-box-premium {
        margin-top: 0;
        align-self: start;
    }
}

@media (max-width: 768px) {
    /* ── Layout principal ── */
    .cart-page-main {
        padding-top: 24px;
        padding-bottom: 100px;
        padding-left: 16px;
        padding-right: 16px;
        background-color: #f5f5f7;
    }
    .cart-page-title {
        font-size: 26px;
        margin-bottom: 20px;
        letter-spacing: -0.02em;
    }
    .cart-items-header {
        display: none;
    }
    .cart-grid-layout {
        gap: 20px;
    }
    .cart-items-column {
        gap: 12px;
    }

    /* ── Cart item – card compact ── */
    .cart-item {
        display: grid;
        grid-template-columns: 72px 1fr auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "img details remove"
            "img bottom bottom";
        padding: 14px;
        border-radius: 18px;
        gap: 0;
        column-gap: 12px;
        row-gap: 10px;
        position: relative;
        align-items: start;
    }
    .cart-item:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    }
    .ci-img-wrapper {
        grid-area: img;
        width: 72px;
        height: 72px;
        border-radius: 12px;
        padding: 8px;
        align-self: center;
    }
    .ci-details {
        grid-area: details;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-right: 32px; /* spațiu pentru butonul remove */
    }
    .ci-title {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 4px;
        line-height: 1.35;
        word-break: break-word;
    }
    .ci-variant {
        font-size: 11px;
        letter-spacing: 0.04em;
    }

    /* Rândul de jos: qty + preț */
    .ci-qty-selector {
        grid-area: unset;
        order: 0;
        width: auto;
        height: 40px;
        padding: 4px;
        border-radius: 12px;
        flex-shrink: 0;
        align-self: center;
    }
    .ci-price-display {
        order: 0;
        font-size: 17px;
        font-weight: 800;
        text-align: right;
        padding-right: 0;
        align-self: center;
        flex: 1;
        width: auto;
    }
    /* Wrapper pt rândul de jos (qty + preț) */
    .cart-item > .ci-qty-selector,
    .cart-item > .ci-price-display {
        grid-column: 2 / -1;
    }
    /* Rearanjare cu flexbox în loc de grid pentru bottom row */
    .cart-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
    }
    .ci-img-wrapper {
        flex: 0 0 72px;
        align-self: flex-start;
        margin-top: 2px;
    }
    .ci-details {
        flex: 1;
        min-width: 0;
        padding-right: 34px;
        align-self: flex-start;
    }
    .ci-remove-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        background-color: transparent;
        color: #c0c0c5;
        box-shadow: none;
        border-radius: 8px;
        z-index: 2;
    }
    .ci-remove-btn:hover {
        background-color: #fff0ef;
        color: #ff3b30;
        transform: none;
    }
    .ci-remove-btn svg {
        width: 15px;
        height: 15px;
    }
    .ci-qty-selector {
        order: 10;
        width: auto;
        height: 40px;
        padding: 4px;
        flex: 0 0 auto;
        margin-left: 84px; /* aliniere sub imagine */
        margin-top: 0;
        border-radius: 12px;
    }
    .ci-price-display {
        order: 10;
        flex: 1;
        font-size: 18px;
        text-align: right;
        padding: 0;
        align-self: center;
        margin-top: 0;
    }
    .ci-qty-btn {
        width: 36px;
        height: 100%;
        min-width: 36px;
        font-size: 18px;
    }
    .ci-qty-input {
        width: 30px;
        font-size: 15px;
    }

    /* ── Carduri extra info – simplificate ── */
    .cart-extra-info {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .extra-card {
        padding: 16px;
        border-radius: 16px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    .extra-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        flex-shrink: 0;
    }
    .extra-text strong {
        font-size: 13px;
        margin-bottom: 3px;
        line-height: 1.3;
    }
    .extra-text p {
        display: none; /* ascundem textul lung pe mobil */
    }

    /* ── Stare coș gol ── */
    .empty-cart-state {
        padding: 60px 24px;
        border-radius: 24px;
    }
    .empty-icon-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
    }
    .empty-cart-state h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .empty-cart-state p {
        font-size: 14px;
        margin-bottom: 32px;
    }
    .empty-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .btn-premium-large, .btn-outline-premium {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 16px;
    }

    /* ── Summary card ── */
    .summary-card-premium {
        padding: 24px 20px;
        border-radius: 22px;
    }
    .summary-card-title {
        font-size: 18px;
        margin-bottom: 18px;
    }
    .row-label {
        font-size: 14px;
    }
    .row-value {
        font-size: 15px;
    }
    .total-final .row-label {
        font-size: 16px;
    }
    .total-final .row-value {
        font-size: 24px;
    }
    .summary-separator {
        margin-top: 16px;
        margin-bottom: 16px;
    }
    .summary-row-item {
        margin-bottom: 12px;
    }
    .secure-notice {
        font-size: 12px;
        margin-top: 16px;
    }
    .payment-badges-row {
        margin-top: 20px;
        gap: 16px;
    }

    /* ── Buton checkout – sticky ── */
    .btn-checkout-final {
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
        height: 58px;
        font-size: 16px;
        border-radius: 18px;
        margin-top: 0;
        z-index: 999;
        box-shadow: 0 8px 30px rgba(0,0,0,0.22);
        animation: checkoutPulse 3s ease-in-out 2s infinite;
    }
    .btn-checkout-final:hover {
        transform: none;
    }

    /* ── Promo box ── */
    .promo-box-premium {
        padding: 18px 16px;
        border-radius: 18px;
    }
    .promo-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    .promo-input-group input {
        height: 46px;
        font-size: 14px;
        border-radius: 14px;
    }
    .promo-input-group button {
        padding-left: 18px;
        padding-right: 18px;
        font-size: 14px;
        border-radius: 14px;
    }

    /* ── Cross-sell ── */
    .cross-sell-section {
        padding-top: 36px;
        margin-top: 36px;
    }
    .cross-sell-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .cross-sell-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        padding-bottom: 12px;
    }
    .cross-sell-grid::-webkit-scrollbar {
        display: none;
    }
    .recommendation-card {
        flex: 0 0 160px;
        width: 160px;
        scroll-snap-align: start;
        border-radius: 18px;
        padding: 18px 14px;
    }
    .recommendation-card:hover {
        transform: none;
        box-shadow: none;
    }
    .rec-img {
        height: 100px;
        margin-bottom: 12px;
    }
    .recommendation-card h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    .rec-price {
        font-size: 15px;
        margin-bottom: 12px;
    }
    .btn-add-rec {
        height: 40px;
        font-size: 13px;
        border-radius: 11px;
    }
}

@media (max-width: 480px) {
    .cart-page-main {
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 90px;
    }
    .cart-page-title {
        font-size: 22px;
    }
    .ci-img-wrapper {
        width: 66px;
        height: 66px;
    }
    .ci-qty-selector {
        margin-left: 78px;
    }
    .ci-title {
        font-size: 13px;
        word-break: break-word;
    }
    .ci-price-display {
        font-size: 16px;
    }
    .recommendation-card {
        flex: 0 0 150px;
        width: 150px;
    }
    .btn-checkout-final {
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        height: 54px;
    }
    .extra-card {
        flex-direction: row;
        padding: 12px 14px;
        align-items: center;
    }
    .extra-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .extra-text strong {
        font-size: 12px;
    }
}
/* ========================================================
   ASCUNDERE MENIU CUMPĂRĂ/VINDE PE MOBIL (DOAR SUBPAGINI)
   ======================================================== */
@media (max-width: 1200px) {
    .trade-toggle-container {
        display: none !important;
    }
    .nav-menu-wrapper {
        top: 64px !important;
        height: calc(100vh - 64px) !important;
    }
    .main-content {
        padding-top: 64px !important;
    }
}

/* ========================================================
   OVERFLOW & BOX-SIZING GLOBAL MOBIL
   ======================================================== */
@media (max-width: 768px) {
    /* ── Layout principal ── */
    .cart-page-main {
        padding-top: 24px;
        padding-bottom: 120px; /* Spațiu generos pentru butonul fix de checkout */
        padding-left: 16px;
        padding-right: 16px;
        background-color: #f5f5f7;
    }
    .cart-page-title {
        font-size: 28px;
        text-align: center; /* Centrat pentru simetrie */
        margin-bottom: 28px;
        letter-spacing: -0.02em;
    }
    .cart-items-header {
        display: none; /* Ascundem capul de tabel pe mobil */
    }
    .cart-grid-layout {
        gap: 24px;
    }
    .cart-items-column {
        gap: 16px;
    }

    /* ── Cart item – Noul layout curat cu Grid ── */
    .cart-item {
        display: grid;
        grid-template-columns: 85px 1fr auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "img details remove"
            "img qty price";
        padding: 16px;
        border-radius: 22px;
        gap: 12px;
        row-gap: 16px;
        align-items: center;
        background-color: #ffffff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    }
    .cart-item:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    }
    
    .ci-img-wrapper {
        grid-area: img;
        width: 85px;
        height: 85px;
        border-radius: 14px;
        padding: 8px;
        margin: 0; /* Resetăm marginile vechi */
        align-self: start;
    }
    
    .ci-details {
        grid-area: details;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        min-width: 0;
        align-self: start;
    }
    .ci-title {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 4px;
        line-height: 1.3;
        word-break: break-word;
    }
    .ci-variant {
        font-size: 12px;
        letter-spacing: 0.02em;
    }

    .ci-remove-btn {
        grid-area: remove;
        position: static; /* Anulăm poziția absolută */
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background-color: #fcfcfc;
        color: #c0c0c5;
        box-shadow: none;
        align-self: start;
        justify-self: end;
        border: 1px solid #f0f0f0;
    }
    .ci-remove-btn:hover, .ci-remove-btn:active {
        background-color: #fff0ef;
        color: #ff3b30;
        border-color: #fff0ef;
        transform: scale(0.95);
    }
    .ci-remove-btn svg {
        width: 16px;
        height: 16px;
    }

    .ci-qty-selector {
        grid-area: qty;
        width: 105px;
        height: 40px;
        padding: 4px;
        border-radius: 12px;
        margin: 0;
    }
    .ci-qty-btn {
        width: 32px;
        font-size: 18px;
    }
    .ci-qty-input {
        width: 30px;
        font-size: 15px;
    }

    .ci-price-display {
        grid-area: price;
        font-size: 17px;
        font-weight: 800;
        text-align: right;
        padding: 0;
        margin: 0;
        width: auto;
    }

    /* ── Carduri extra info – așezare pe un singur rând (coloană verticală) ── */
    .cart-extra-info {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
    }
    .extra-card {
        flex-direction: row;
        padding: 16px 20px;
        border-radius: 18px;
        gap: 16px;
        align-items: center;
    }
    .extra-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .extra-icon svg {
        width: 20px;
        height: 20px;
    }
    .extra-text strong {
        font-size: 14px;
        margin-bottom: 2px;
    }
    .extra-text p {
        font-size: 12px;
        display: block; /* Afișăm textul, dar mai mic și subtil */
        line-height: 1.4;
    }

    /* ── Stare coș gol ── */
    .empty-cart-state {
        padding: 60px 20px;
        border-radius: 24px;
    }
    .empty-cart-state h2 { font-size: 22px; }
    .empty-cart-state p { font-size: 15px; margin-bottom: 24px; }
    .btn-premium-large, .btn-outline-premium {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 16px;
    }

    /* ── Summary card (Sumar Comandă) ── */
    .summary-card-premium {
        padding: 24px;
        border-radius: 24px;
    }
    .summary-card-title {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    .row-label { font-size: 14px; }
    .row-value { font-size: 15px; }
    .total-final .row-label { font-size: 16px; }
    .total-final .row-value { font-size: 22px; }
    .summary-separator { margin: 16px 0; }
    .summary-row-item { margin-bottom: 14px; }
    .payment-badges-row { margin-top: 24px; gap: 16px; }

    /* ── Buton checkout – sticky și central ── */
    .btn-checkout-final {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        max-width: 400px; /* Să nu se lățească absurd pe tablete */
        height: 60px;
        font-size: 17px;
        border-radius: 20px;
        margin-top: 0;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
        animation: none; /* Am scos pulsul agresiv pe mobil */
    }
    .btn-checkout-final:active {
        transform: translateX(-50%) scale(0.96) !important;
    }

    /* ── Promo box ── */
    .promo-box-premium {
        padding: 20px;
        border-radius: 20px;
    }
    .promo-title { font-size: 15px; margin-bottom: 12px; }
    .promo-input-group input {
        height: 48px;
        font-size: 14px;
        border-radius: 14px;
    }
    .promo-input-group button {
        padding: 0 20px;
        font-size: 14px;
        border-radius: 14px;
    }

    /* ── Cross-sell (Produse recomandate) ── */
    .cross-sell-section {
        padding-top: 30px;
        margin-top: 30px;
    }
    .cross-sell-title { font-size: 22px; margin-bottom: 20px; }
    .cross-sell-grid {
        gap: 16px;
        padding-bottom: 16px;
    }
    .recommendation-card {
        flex: 0 0 160px;
        width: 160px;
        border-radius: 20px;
        padding: 16px;
    }
    .rec-img { height: 90px; margin-bottom: 12px; }
    .recommendation-card h4 { font-size: 13px; margin-bottom: 8px; }
    .rec-price { font-size: 15px; margin-bottom: 12px; }
    .btn-add-rec { height: 42px; font-size: 14px; border-radius: 12px; }
}

/* ========================================================
   ANIMAȚII PAGINĂ COȘ
   ======================================================== */

/* ── 1. Keyframes ── */

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pricePop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.18); color: #f49201; }
    100% { transform: scale(1); }
}

@keyframes badgeBounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.45); }
    60%  { transform: scale(0.88); }
    80%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes checkoutPulse {
    0%   { box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
    50%  { box-shadow: 0 10px 35px rgba(29,29,31,0.35), 0 0 0 6px rgba(29,29,31,0.08); }
    100% { box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
}

@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

@keyframes emptyFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

@keyframes spinIn {
    from { opacity: 0; transform: rotate(-180deg) scale(0.5); }
    to   { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes ripple {
    0%   { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ── 2. Intrare pagină ── */

.cart-page-title {
    animation: fadeSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cart-items-header {
    animation: fadeIn 0.5s ease 0.2s both;
}

.empty-cart-state {
    animation: scaleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.empty-icon-wrapper {
    animation: emptyFloat 3.5s ease-in-out 0.8s infinite;
}

.empty-icon-wrapper svg {
    animation: spinIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.cart-summary-column {
    animation: slideInRight 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.summary-card-premium {
    animation: scaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.promo-box-premium {
    animation: fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}


/* ── 3. Cart items – intrare secvențiată ── */

.cart-item {
    animation: fadeSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cart-item:nth-child(1) { animation-delay: 0.05s; }
.cart-item:nth-child(2) { animation-delay: 0.13s; }
.cart-item:nth-child(3) { animation-delay: 0.21s; }
.cart-item:nth-child(4) { animation-delay: 0.29s; }
.cart-item:nth-child(5) { animation-delay: 0.37s; }
.cart-item:nth-child(n+6) { animation-delay: 0.45s; }


/* ── 4. Extra info cards ── */

.extra-card {
    animation: fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.extra-card:nth-child(1) { animation-delay: 0.3s; }
.extra-card:nth-child(2) { animation-delay: 0.42s; }


/* ── 5. Buton cantitate – press effect ── */

.ci-qty-btn {
    transition: transform 0.12s ease, background 0.2s ease;
}
.ci-qty-btn:active {
    transform: scale(0.82);
    background-color: rgba(0,0,0,0.1) !important;
}


/* ── 6. Animație preț la schimbare cantitate ── */

.ci-price-display.price-updated {
    animation: pricePop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ci-qty-input.qty-updated {
    animation: pricePop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ── 7. Buton remove – hover mai expresiv ── */

.ci-remove-btn {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}
.ci-remove-btn::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 59, 48, 0.4);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.ci-remove-btn:active::after {
    animation: ripple 0.5s ease-out forwards;
    margin-top: -4px;
    margin-left: -4px;
}


/* ── 8. Checkout button – puls periodic ── */

.btn-checkout-final {
    animation: checkoutPulse 3s ease-in-out 2s infinite;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.btn-checkout-final::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}
.btn-checkout-final:hover::before {
    left: 150%;
}
.btn-checkout-final:active {
    transform: scale(0.97) translateY(1px) !important;
}


/* ── 9. Cart badge bounce ── */

.cart-badge {
    transition: all 0.3s ease;
}
.cart-badge.badge-bump {
    animation: badgeBounce 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ── 10. Cross-sell cards ── */

.cross-sell-title {
    animation: fadeSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.recommendation-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    animation: fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.recommendation-card:nth-child(1) { animation-delay: 0.1s; }
.recommendation-card:nth-child(2) { animation-delay: 0.2s; }
.recommendation-card:nth-child(3) { animation-delay: 0.3s; }
.recommendation-card:nth-child(4) { animation-delay: 0.4s; }


/* ── 11. Buton "Adaugă" din cross-sell ── */

.btn-add-rec {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.btn-add-rec:active {
    transform: scale(0.95);
}


/* ── 12. Promo input focus ── */

.promo-input-group input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.promo-input-group input:focus {
    transform: translateY(-1px);
}

.promo-input-group button {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.promo-input-group button:active {
    transform: scale(0.95);
}


/* ── 13. Summary rows – highlight la actualizare totals ── */

#summary-subtotal,
#summary-total {
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
#summary-subtotal.total-updated,
#summary-total.total-updated {
    animation: pricePop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ── 14. Shimmer loading pe imagini ── */

.ci-img-wrapper img {
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.ci-img-wrapper img:not([src]),
.ci-img-wrapper img[src=""] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Pe desktop, imaginea se mărește la hover pe card */
@media (min-width: 769px) {
    .cart-item:hover .ci-img-wrapper img {
        transform: scale(1.06);
    }
    .ci-img-wrapper {
        overflow: hidden;
    }
}

@media (max-width: 400px) {
    .cart-item {
        grid-template-columns: 70px 1fr auto;
        gap: 10px;
        padding: 14px;
    }
    .ci-img-wrapper {
        width: 70px;
        height: 70px;
    }
    .ci-title { font-size: 14px; }
    .ci-price-display { font-size: 16px; }
    .ci-qty-selector { width: 95px; }
    .extra-card { padding: 12px 14px; }
}

/* ========================================================
   FIX SUPRAPUNERE PRET SI BUTON MOBIL (Pus la final)
   ======================================================== */
@media (max-width: 768px) {
    .summary-card-premium .total-final {
        margin-bottom: 35px !important; 
    }
    
    .summary-card-premium .btn-checkout-final {
        position: relative !important; 
        width: 100% !important;
        margin-top: 10px !important; 
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        animation: none !important; /* Oprește efectul de puls care aglomera ecranul */
    }
}



.cart-page-main {
    padding-top: 120px !important;
}

@media (max-width: 768px) {
    .cart-page-main {
        padding-top: 145px !important;
    }
}