/* ===== CART PAGE ===== */

.cart-hero {
    background: linear-gradient(135deg, #0f202d 0%, #1a3344 100%);
    padding: 50px 0 40px;
    padding-top: 110px;
    text-align: center;
}
.cart-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.cart-hero-sub {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
}

.cart-section {
    padding: 30px 0 60px;
    background: #f5f7fa;
}
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
}

/* Header Row */
.cart-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.cart-item-count {
    font-size: 1rem;
    font-weight: 600;
    color: #0f202d;
}
.cart-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #e53935;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.cart-clear-btn:hover {
    background: #fbe9e7;
    border-color: #e53935;
}

/* Empty State */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.cart-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 20px;
}
.cart-empty h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
}
.cart-empty p {
    color: #999;
    font-size: 0.88rem;
    margin-bottom: 20px;
}
.cart-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #2b5aa4;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.cart-browse-btn:hover {
    background: #cf080d;
    transform: translateY(-2px);
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    margin-bottom: 14px;
    position: relative;
    transition: box-shadow 0.2s;
}
.cart-item:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.cart-item-image {
    width: 120px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-details {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f202d;
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.3;
    transition: color 0.2s;
}
.cart-item-name:hover {
    color: #0f202d;
}
.cart-item-cat {
    display: inline-block;
    font-size: 0.72rem;
    color: #888;
    margin-bottom: 10px;
}
.cart-item-cat i {
    margin-right: 3px;
    color: #0f202d;
}
.cart-item-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #0f202d;
    background: #f0faf8;
    border: 1px solid #d0ece7;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 6px;
    margin-bottom: 10px;
    font-weight: 500;
}
.cart-item-date i {
    font-size: 0.7rem;
}
.cart-item-hotel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #0f202d;
    background: #e0f7fa;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 6px;
    margin-bottom: 10px;
    font-weight: 500;
}
.cart-item-hotel i {
    font-size: 0.7rem;
    color: #00bcd4;
}

/* Ticket Lines */
.cart-item-tickets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cart-ticket-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
}
.cart-tl-label {
    font-weight: 600;
    color: #555;
    min-width: 40px;
}
.cart-tl-unit {
    color: #999;
    white-space: nowrap;
}
.cart-qty-ctrl {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
.cart-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #f8f9fa;
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.cart-qty-btn:hover {
    background: #e8f8f5;
    color: #0f202d;
}
.cart-qty-val {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
}
.cart-tl-total {
    font-weight: 700;
    color: #0f202d;
    margin-left: auto;
    white-space: nowrap;
}

.cart-item-line-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    font-size: 0.88rem;
    color: #777;
}
.cart-item-line-total strong {
    font-size: 1rem;
    color: #0f202d;
}

.cart-item-remove {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.cart-item-remove:hover {
    background: #fbe9e7;
    color: #e53935;
}

/* Summary Card */
.cart-summary-col {
    position: sticky;
    top: 90px;
}
.cart-summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.cart-summary-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f202d;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}
.cart-sr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    gap: 12px;
}
.cart-sr-name {
    font-size: 0.82rem;
    color: #666;
    flex: 1;
    line-height: 1.35;
}
.cart-sr-amt {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}
.cart-summary-subline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.92rem;
    color: #475569;
}
.cart-summary-subline:first-of-type {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}
.cart-summary-subline span:last-child {
    font-weight: 700;
    color: #0f202d;
}
.cart-summary-vat small {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.78rem;
    margin-left: 4px;
}
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 2px solid #0f202d;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f202d;
}
.cart-summary-total span:last-child {
    color: #0f202d;
    font-size: 1.25rem;
}
.cart-payment-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cart-payment-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f202d;
    margin-bottom: 12px;
}

.cart-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-payment-option {
    cursor: pointer;
}

.cart-payment-option input[type="radio"] {
    display: none;
}

.cart-payment-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid #e0e4e8;
    border-radius: 10px;
    transition: all 0.2s;
    position: relative;
}

.cart-payment-option input:checked + .cart-payment-card {
    border-color: #0f202d;
    background: #f0faf8;
}

.cart-payment-card i {
    font-size: 1.1rem;
    color: #888;
    width: 24px;
    text-align: center;
}

.cart-payment-option input:checked + .cart-payment-card i {
    color: #0f202d;
}

.cart-payment-card span {
    font-size: 0.88rem;
    font-weight: 500;
    color: #333;
}

.cart-payment-soon {
    margin-left: auto;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: #aab;
    padding: 2px 8px;
    border-radius: 10px;
}

.cart-payment-disabled { cursor: not-allowed; }
.cart-payment-disabled .cart-payment-card {
    opacity: 0.55;
    background: #f7f7f8;
    pointer-events: none;
}
.cart-payment-disabled input { pointer-events: none; }

/* Save 3% banner */
.cart-save-banner {
    position: relative;
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7e6 0%, #fff1c2 50%, #ffe4a3 100%);
    background-size: 200% 200%;
    border: 1px solid #f4c869;
    box-shadow: 0 4px 14px rgba(244, 200, 105, 0.35);
    overflow: hidden;
    animation: cartSaveGradient 4s ease-in-out infinite;
}
.cart-save-banner.show {
    display: flex;
    animation: cartSaveGradient 4s ease-in-out infinite, cartSaveSlideIn .4s ease-out;
}
.cart-save-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: cartSaveShine 3s ease-in-out infinite;
    pointer-events: none;
}
.cart-save-spark {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #c8851a;
    box-shadow: 0 2px 8px rgba(200, 133, 26, 0.25);
    animation: cartSaveBounce 1.6s ease-in-out infinite;
}
.cart-save-spark i { font-size: 1.05rem; }
.cart-save-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #5b3a02;
    line-height: 1.35;
    z-index: 1;
}
.cart-save-text strong {
    font-weight: 700;
    color: #3a2400;
}
.cart-save-pct {
    display: inline-block;
    font-weight: 800;
    color: #b6121a;
    background: #fff;
    padding: 1px 7px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(182, 18, 26, 0.18);
    animation: cartSavePulse 1.4s ease-in-out infinite;
}
.cart-save-banner.shake {
    animation: cartSaveGradient 4s ease-in-out infinite, cartSaveShake .6s ease-in-out;
}
@keyframes cartSaveGradient {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes cartSaveShine {
    0%       { left: -75%; }
    60%      { left: 125%; }
    100%     { left: 125%; }
}
@keyframes cartSaveBounce {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50%      { transform: translateY(-3px) rotate(6deg); }
}
@keyframes cartSavePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
@keyframes cartSaveSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes cartSaveShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

.cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 12px;
    background: #0f202d;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
}
.cart-checkout-btn:hover {
    background: #cf080d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 32, 45,0.35);
}
.cart-checkout-btn i {
    font-size: 1.2rem;
}
.cart-summary-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
}
.cart-summary-note i {
    color: #0f202d;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .cart-hero {
        padding: 35px 0 28px;
    }
    .cart-hero-title {
        font-size: 1.5rem;
    }
    .cart-section {
        padding: 16px 0 40px;
    }
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cart-summary-col {
        position: static;
    }
    .cart-item {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    .cart-item-image {
        width: 100%;
        height: 140px;
    }
    .cart-ticket-line {
        flex-wrap: wrap;
        gap: 6px;
    }
    .cart-tl-total {
        width: 100%;
        text-align: right;
    }
    .cart-item[data-cart-id] {
        grid-template-columns: 80px 1fr !important;
        grid-template-rows: auto auto !important;
    }
    .cart-item[data-cart-id] > div:last-child {
        grid-column: 1 / -1 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
}

@media (max-width: 480px) {
    .cart-hero { padding: 28px 0 22px; }
    .cart-hero-title { font-size: 1.3rem; }
    .cart-summary-card { padding: 16px; }
}
