.cart-hero {
    background: linear-gradient(135deg, #0a5899 0%, #0a5899 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.cart-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cart-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.cart-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.item-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0a5899, #0a5899);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.item-details h5 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.item-parameters {
    color: #0a5899;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.item-features {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.feature-badge {
    background: #f0f8ff;
    color: #0a5899;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #0a5899;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #0a5899;
    background: white;
    color: #0a5899;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #0a5899;
    color: white;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    font-weight: 600;
}

.remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #f8d7da;
    color: #721c24;
}

.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-row.total {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
}

.promo-code {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.promo-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.promo-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.promo-input input[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
}

.promo-clear-btn {
    padding: 12px 15px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-clear-btn:hover {
    background: #c82333;
}

.promo-btn {
    padding: 12px 20px;
    background: #0a5899;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.promo-btn:hover {
    background: #0a5899;
}

.checkout-btn {
    width: 100%;
    background: #0a5899;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.checkout-btn:hover {
    background: #0a5899;
}

/* ===== Empty cart (launchpad themed) ===== */
.empty-cart-v2 {
    text-align: center;
    padding: 44px 24px 48px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    box-shadow: 0 6px 26px rgba(10, 88, 153, .06);
    /* keep the whole block centred on the page, not stretched edge to edge */
    max-width: 860px;
    margin: 0 auto;
}

/* starfield + rocket stage */
.ec-stage {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 170px;
    margin: 0 auto 22px;
    background: radial-gradient(circle at 50% 45%, #0d3b66 0%, #072a4d 55%, #04203c 100%);
    border-radius: 16px;
    overflow: hidden;
}
.ec-star {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    opacity: .25;
    animation: ecTwinkle 2.6s ease-in-out infinite;
    animation-delay: var(--d);
}
@keyframes ecTwinkle {
    0%, 100% { opacity: .2; transform: scale(1); }
    50%      { opacity: 1;  transform: scale(1.5); }
}
.ec-orbit {
    position: absolute;
    left: 50%;
    top: 58%;
    width: 210px;
    height: 62px;
    margin-left: -105px;
    border: 1px dashed rgba(255, 255, 255, .22);
    border-radius: 50%;
    transform: rotate(-8deg);
}
.ec-rocket {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    animation: ecFloat 3s ease-in-out infinite;
}
.ec-rocket i {
    font-size: 46px;
    color: #fff;
    transform: rotate(-45deg);
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}
.ec-flame {
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 10px;
    height: 18px;
    margin-left: -13px;
    background: linear-gradient(to bottom, #ffd166, #e43f5a);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    transform: rotate(-45deg);
    animation: ecFlame .35s ease-in-out infinite alternate;
}
@keyframes ecFloat {
    0%, 100% { transform: translate(-50%, -50%); }
    50%      { transform: translate(-50%, -62%); }
}
@keyframes ecFlame {
    from { transform: rotate(-45deg) scaleY(.75); opacity: .85; }
    to   { transform: rotate(-45deg) scaleY(1.2); opacity: 1; }
}

.ec-title { color: #16283d; font-weight: 700; font-size: 24px; margin: 0 0 8px; }
.ec-sub   { color: #6b7c93; font-size: 15px; max-width: 460px; margin: 0 auto 24px; line-height: 1.6; }

.ec-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ec-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ec-btn-primary { background: #0a5899; color: #fff; box-shadow: 0 4px 14px rgba(10, 88, 153, .28); }
.ec-btn-primary:hover { background: #074a80; color: #fff; transform: translateY(-2px); }
.ec-btn-ghost { background: #fff; color: #0a5899; border: 1.5px solid #cfe0ef; }
.ec-btn-ghost:hover { background: #f2f8fd; color: #0a5899; transform: translateY(-2px); }

/* popular products */
.ec-suggest { margin-top: 38px; }
.ec-suggest-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ec-suggest-line { flex: 1; height: 1px; background: #e8edf3; }
.ec-suggest-head h4 { margin: 0; font-size: 14px; font-weight: 700; color: #6b7c93; text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; }
.ec-suggest-head h4 i { color: #e43f5a; }
.ec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ec-card {
    display: block;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ec-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(10, 88, 153, .12); border-color: #cfe0ef; }
.ec-card-img { height: 120px; background: #f6f9fc; display: flex; align-items: center; justify-content: center; padding: 10px; }
.ec-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ec-card-body { padding: 10px 12px 14px; text-align: center; }
.ec-card-name { display: block; font-size: 13px; color: #16283d; font-weight: 600; line-height: 1.35; margin-bottom: 6px; min-height: 34px; }
.ec-card-price { display: block; font-size: 14px; font-weight: 700; color: #0a5899; }

@media (max-width: 768px) {
    .ec-grid { grid-template-columns: repeat(2, 1fr); }
    .ec-title { font-size: 20px; }
    .ec-stage { height: 150px; }
    .empty-cart-v2 { padding: 32px 16px 36px; }
}

.empty-cart {
    text-align: center;
    padding: 60px 0;
    background: white;
    border-radius: 12px;
}

.empty-cart i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: #333;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 30px;
}

.continue-shopping {
    background: #0a5899;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.continue-shopping:hover {
    background: #0a5899;
    color: white;
}

.empty-cart-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-cart-actions .continue-shopping {
    display: inline-flex;
    align-items: center;
    min-width: 160px;
    justify-content: center;
}

.security-badges {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 12px;
    color: #666;
}

.security-badges i {
    color: #0a5899;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-hero {
        padding: 40px 0;
    }

    .cart-hero h1 {
        font-size: 28px;
    }

    .cart-hero p {
        font-size: 16px;
    }

    .cart-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .item-image {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .item-details h5 {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .item-parameters {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .item-features {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
    }

    .feature-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .item-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .current-price {
        font-size: 18px;
    }

    .original-price {
        font-size: 14px;
    }

    .discount-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .quantity-controls {
        justify-content: flex-start;
        margin-top: 15px;
        gap: 8px;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .quantity-input {
        width: 50px;
        padding: 6px;
        font-size: 14px;
    }

    .remove-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
        margin-top: 10px !important;
    }

    /* Mobile delete button positioning */
    .d-md-none.remove-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        margin-top: 0 !important;
        z-index: 2;
        background: rgba(220, 53, 69, 0.1);
        border: 1px solid #dc3545;
    }

    .cart-summary {
        margin-top: 20px;
        padding: 20px;
        position: static;
    }

    .summary-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .summary-row {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .summary-row.total {
        font-size: 16px;
    }

    .promo-input {
        flex-direction: column;
        gap: 8px;
    }

    .promo-input input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .promo-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .checkout-btn {
        padding: 12px;
        font-size: 15px;
    }

    .security-badges {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        margin-top: 15px;
    }

    .empty-cart {
        padding: 40px 20px;
    }

    .empty-cart i {
        font-size: 48px;
    }

    .empty-cart h3 {
        font-size: 20px;
    }

    .empty-cart p {
        font-size: 14px;
    }

    .empty-cart-actions {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .empty-cart-actions .continue-shopping {
        width: 100%;
        max-width: 250px;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .cart-item {
        padding: 12px;
    }

    .cart-item .row {
        margin: 0;
    }

    .cart-item .col-3,
    .cart-item .col-9,
    .cart-item .col-6 {
        padding: 0 5px;
    }

    .item-image {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 0 auto;
    }

    .item-details h5 {
        font-size: 14px;
        line-height: 1.3;
    }

    .item-parameters {
        font-size: 11px;
    }

    .feature-badge {
        font-size: 9px;
        padding: 2px 4px;
    }

    .current-price {
        font-size: 16px;
    }

    .quantity-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .quantity-input {
        width: 45px;
        padding: 4px;
        font-size: 12px;
    }

    .remove-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
        position: absolute;
        top: 10px;
        right: 10px;
        margin-top: 0 !important;
    }

    .cart-summary {
        padding: 15px;
    }

    .summary-title {
        font-size: 16px;
    }

    .summary-row {
        font-size: 13px;
    }

    /* Mobile-specific improvements */
    .checkout-btn {
        position: sticky;
        bottom: 0;
        margin: 15px -15px -15px -15px;
        border-radius: 0;
        font-size: 16px;
        padding: 18px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    .promo-input button .fas {
        font-size: 14px;
    }

    .summary-title i {
        color: #0a5899;
    }
}

/* Tablet Responsive (768px to 992px) */
@media (min-width: 769px) and (max-width: 991px) {
    .cart-item {
        padding: 22px;
    }

    .item-image {
        width: 70px;
        height: 70px;
        font-size: 22px;
    }

    .item-details h5 {
        font-size: 17px;
    }

    .current-price {
        font-size: 22px;
    }

    .cart-summary {
        padding: 25px;
    }
}