﻿.cart-page {
    margin-bottom: 30px;
}

.cart-header {
    background: linear-gradient(135deg, var(--avh-green) 0%, var(--avh-green-dark) 100%);
    color: #fff;
    border-radius: var(--avh-radius-lg);
    padding: 24px 28px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 12px 32px rgba(20, 139, 116, 0.28);
}

.cart-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .cart-header-icon svg {
        width: 28px;
        height: 28px;
        stroke: #fff;
        fill: none;
    }

.cart-header-text h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.cart-header-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.cart-empty {
    background: var(--avh-bg-soft);
    border: 1px dashed var(--avh-border);
    border-radius: var(--avh-radius-lg);
    padding: 60px 24px;
    text-align: center;
}

.cart-empty-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--avh-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--avh-green);
}

    .cart-empty-icon svg {
        width: 44px;
        height: 44px;
    }

.cart-empty h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--avh-ink);
    margin: 0 0 10px;
}

.cart-empty p {
    color: var(--avh-muted);
    font-size: 14.5px;
    line-height: 1.9;
    max-width: 460px;
    margin: 0 auto 20px;
}

.cart-invoice {
    background: #fff;
    border: 1px solid var(--avh-border);
    border-radius: var(--avh-radius-lg);
    overflow: hidden;
    box-shadow: var(--avh-shadow-sm);
}

.cart-invoice-head,
.cart-invoice-row {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr) 48px;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}

.cart-invoice-head {
    background: var(--avh-green-light);
    color: var(--avh-ink);
    font-weight: 800;
    font-size: 13.5px;
    border-bottom: 1px solid var(--avh-border);
}

.cart-invoice-row {
    border-bottom: 1px solid var(--avh-border);
    transition: background var(--avh-transition);
}

    .cart-invoice-row:hover {
        background: var(--avh-bg-soft);
    }

    .cart-invoice-row:last-of-type {
        border-bottom: none;
    }

.cart-cell {
    min-width: 0;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cart-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    border: 1px solid var(--avh-border);
    background: var(--avh-bg-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    cursor: pointer;
    transition: border-color var(--avh-transition), transform var(--avh-transition);
}

    .cart-thumb:hover {
        border-color: var(--avh-green);
        transform: scale(1.04);
    }

    .cart-thumb img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

.cart-info {
    min-width: 0;
}

    .cart-info h3 {
        margin: 0 0 4px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.5;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

        .cart-info h3 a {
            color: var(--avh-ink);
            text-decoration: none;
        }

            .cart-info h3 a:hover {
                color: var(--avh-green);
            }

.cart-discount-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: #7a2416;
    background: linear-gradient(135deg, #ffd9cc, #ffbfa8);
    border: 1px solid #ffc7b2;
    border-radius: 999px;
    padding: 2px 10px;
}

.cart-price-final {
    font-weight: 800;
    font-size: 14px;
    color: #b64535;
}

.cart-price-old {
    display: block;
    color: var(--avh-muted);
    font-size: 12px;
    margin-top: 2px;
}

.cart-price-call {
    font-weight: 700;
    font-size: 13px;
    color: #c98a00;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cart-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--avh-border);
    background: #fff;
    color: var(--avh-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--avh-transition), color var(--avh-transition), border-color var(--avh-transition);
    padding: 0;
}

    .cart-qty-btn:hover {
        background: var(--avh-green);
        color: #fff;
        border-color: var(--avh-green);
    }

.cart-qty-input {
    width: 54px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid var(--avh-border);
    border-radius: 8px;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--avh-ink);
    background: #fff;
    -moz-appearance: textfield;
}

    .cart-qty-input::-webkit-outer-spin-button,
    .cart-qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.cart-subtotal-value {
    font-weight: 800;
    color: var(--avh-green-dark);
    font-size: 14px;
}

.cart-actions {
    display: flex;
    justify-content: center;
}

.cart-remove-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #e74c3c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.22);
    transition: background var(--avh-transition), color var(--avh-transition), transform var(--avh-transition);
    padding: 0;
}

    .cart-remove-btn svg {
        width: 15px;
        height: 15px;
        display: block;
        stroke: currentColor;
        fill: none;
        pointer-events: none;
    }

    .cart-remove-btn:hover {
        background: #e74c3c;
        color: #fff;
        transform: scale(1.08);
    }

    .cart-remove-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.cart-invoice-foot {
    background: var(--avh-bg-soft);
    border-top: 1px solid var(--avh-border);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-total-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-total-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--avh-muted);
}

.cart-total-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--avh-green-dark);
}

.cart-foot-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .cart-invoice-head {
        display: none;
    }

    .cart-invoice-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px;
    }

    .cart-cell {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

        .cart-cell::before {
            content: attr(data-label);
            font-size: 12.5px;
            font-weight: 700;
            color: var(--avh-muted);
        }

    .cart-product {
        justify-content: flex-start;
    }

        .cart-product::before {
            display: none;
        }

    .cart-actions {
        justify-content: flex-end;
    }

        .cart-actions::before {
            display: none;
        }

    .cart-invoice-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-foot-actions {
        justify-content: space-between;
    }
}
.cart-checkout {
display: grid;
grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
gap: 20px;
align-items: start;
}
.cart-checkout-main {
background: #fff;
border: 1px solid var(--avh-border);
border-radius: var(--avh-radius-lg);
padding: 22px;
box-shadow: var(--avh-shadow-sm);
}
.checkout-field {
margin-bottom: 14px;
}
.checkout-field label {
display: block;
font-size: 13.5px;
font-weight: 700;
color: var(--avh-ink);
margin-bottom: 6px;
}
.checkout-input {
width: 100%;
max-width: 100%;
padding: 11px 14px;
border: 1.5px solid var(--avh-border);
border-radius: 10px;
font-family: inherit;
font-size: 14px;
line-height: 1.8;
color: var(--avh-ink);
background: var(--avh-bg-soft);
box-sizing: border-box;
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.checkout-input:focus {
outline: none;
border-color: var(--avh-green);
background: #fff;
box-shadow: 0 0 0 4px rgba(20, 139, 116, 0.12);
}
.checkout-textarea {
min-height: 84px;
resize: vertical;
}
.checkout-discount-row {
display: flex;
gap: 8px;
align-items: stretch;
}
.checkout-discount-row .checkout-input {
flex: 1 1 auto;
}
.checkout-discount-btn {
flex: 0 0 auto;
padding: 0 22px;
background: var(--avh-green);
color: #fff;
border: none;
border-radius: 10px;
font-family: inherit;
font-size: 14px;
font-weight: 700;
cursor: pointer;
transition: background 0.2s ease;
}
.checkout-discount-btn:hover {
background: var(--avh-green-dark);
}
.checkout-discount-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.checkout-discount-message {
font-size: 12.5px;
margin-top: 6px;
min-height: 18px;
font-weight: 600;
}
.checkout-discount-message.ok {
color: var(--avh-green-dark);
}
.checkout-discount-message.err {
color: #c0392b;
}
.checkout-submit {
display: block;
width: 100%;
padding: 14px 20px;
margin-top: 12px;
background: linear-gradient(135deg, var(--avh-green), var(--avh-green-dark));
color: #fff;
border: none;
border-radius: 12px;
font-family: inherit;
font-size: 15px;
font-weight: 800;
cursor: pointer;
box-shadow: 0 8px 22px rgba(20, 139, 116, 0.35);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.checkout-submit:hover {
transform: translateY(-2px);
box-shadow: 0 12px 28px rgba(20, 139, 116, 0.45);
}
.checkout-back {
display: inline-block;
margin-top: 12px;
color: var(--avh-muted);
font-size: 13.5px;
font-weight: 600;
text-decoration: none;
}
.checkout-back:hover {
color: var(--avh-green);
}
.checkout-validation {
background: #f8d7da;
border: 1px solid #dc3545;
border-radius: 10px;
padding: 12px 16px;
margin-bottom: 16px;
color: #7a2416;
font-size: 13.5px;
}
.checkout-validation ul {
margin: 6px 0 0;
padding-right: 20px;
}
.cart-checkout-side {
background: #fff;
border: 1px solid var(--avh-border);
border-radius: var(--avh-radius-lg);
padding: 20px;
box-shadow: var(--avh-shadow-sm);
position: sticky;
top: 90px;
}
.cart-checkout-side h3 {
font-size: 16px;
font-weight: 800;
color: var(--avh-ink);
padding-right: 10px;
border-right: 4px solid var(--avh-green);
line-height: 1.3;
margin: 0 0 14px;
}
.checkout-summary-list {
max-height: 320px;
overflow-y: auto;
padding-left: 4px;
margin-bottom: 12px;
}
.checkout-summary-item {
display: grid;
grid-template-columns: 1fr auto auto;
gap: 8px;
align-items: center;
padding: 8px 0;
border-bottom: 1px dashed var(--avh-border);
font-size: 13px;
color: var(--avh-ink);
}
.checkout-summary-item:last-child {
border-bottom: none;
}
.checkout-summary-title {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 600;
}
.checkout-summary-qty {
color: var(--avh-muted);
font-size: 12px;
}
.checkout-summary-price {
font-weight: 700;
color: var(--avh-green-dark);
font-size: 13px;
}
.checkout-summary-totals {
border-top: 1px solid var(--avh-border);
padding-top: 12px;
}
.checkout-summary-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 0;
font-size: 13.5px;
color: var(--avh-ink);
}
.checkout-summary-discount {
color: #c0392b;
}
.checkout-summary-final {
border-top: 1px solid var(--avh-border);
margin-top: 6px;
padding-top: 10px;
font-size: 15px;
font-weight: 800;
color: var(--avh-green-dark);
}
.payment-status {
display: inline-block;
padding: 8px 20px;
border-radius: 999px;
font-weight: 800;
font-size: 13.5px;
margin-bottom: 16px;
}
.payment-status-unpaid {
background: #fff6e0;
color: #8a5b00;
}
.payment-status-paid {
background: #e8f4f1;
color: var(--avh-green-dark);
}
.payment-status-cancelled {
background: #f5f5f5;
color: #6c757d;
}
.payment-actions {
margin-top: 20px;
text-align: center;
}
.payment-note {
font-size: 13.5px;
color: var(--avh-muted);
margin-bottom: 12px;
}
.payment-form {
display: inline-block;
}
.payment-success-message {
margin-top: 20px;
padding: 16px 20px;
background: #e8f4f1;
color: var(--avh-green-dark);
border-radius: 10px;
font-weight: 700;
text-align: center;
}
.payment-cancelled-message {
margin-top: 20px;
padding: 16px 20px;
background: #f5f5f5;
color: #6c757d;
border-radius: 10px;
font-weight: 700;
text-align: center;
}
@media (max-width: 900px) {
.cart-checkout {
grid-template-columns: 1fr;
}
.cart-checkout-side {
position: static;
}
}
.checkout-wallet {
background: var(--avh-green-light);
border: 1px solid var(--avh-border);
border-radius: 10px;
padding: 14px 16px;
margin-bottom: 14px;
}
.checkout-wallet .form-check-label {
font-size: 13.5px;
font-weight: 700;
color: var(--avh-ink);
}
.wallet-balance-card {
background: linear-gradient(135deg, var(--avh-green), var(--avh-green-dark));
color: #fff;
border-radius: var(--avh-radius-lg);
padding: 22px 26px;
margin-bottom: 18px;
display: flex;
flex-direction: column;
gap: 6px;
box-shadow: 0 12px 32px rgba(20, 139, 116, 0.28);
}
.wallet-balance-label {
font-size: 13.5px;
opacity: 0.9;
font-weight: 600;
}
.wallet-balance-value {
font-size: 26px;
font-weight: 800;
}
.wallet-amount-credit {
color: var(--avh-green-dark);
font-weight: 800;
}
.wallet-amount-debit {
color: #c0392b;
font-weight: 800;
}
.payment-wallet-warning {
display: inline-block;
padding: 10px 18px;
background: #fff6e0;
color: #8a5b00;
border-radius: 10px;
font-weight: 700;
font-size: 13.5px;
margin-bottom: 12px;
}
@media (max-width: 576px) {
.wallet-balance-value {
font-size: 20px;
}
}
.wallet-timeline {
background: #fff;
border: 1px solid var(--avh-border);
border-radius: var(--avh-radius-lg);
padding: 20px 24px;
box-shadow: var(--avh-shadow-sm);
}
.wallet-timeline-item {
position: relative;
padding: 14px 0 14px 34px;
border-bottom: 1px dashed var(--avh-border);
}
.wallet-timeline-item:last-child {
border-bottom: none;
}
.wallet-timeline-dot {
position: absolute;
right: 0;
top: 22px;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--avh-green);
box-shadow: 0 0 0 4px var(--avh-green-light);
}
.wallet-timeline-item.is-debit .wallet-timeline-dot {
background: #e74c3c;
box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15);
}
.wallet-timeline-head {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 6px;
}
.wallet-timeline-title {
font-weight: 800;
font-size: 14px;
color: var(--avh-ink);
}
.wallet-timeline-date {
color: var(--avh-muted);
font-size: 12px;
margin-right: auto;
}
.wallet-timeline-desc {
font-size: 13.5px;
color: var(--avh-muted);
line-height: 1.7;
margin-bottom: 6px;
}
.wallet-timeline-amount {
font-weight: 800;
font-size: 15px;
}
.wallet-timeline-link {
display: inline-block;
margin-top: 6px;
font-size: 12.5px;
color: var(--avh-green);
text-decoration: none;
font-weight: 700;
}
.wallet-timeline-link:hover {
text-decoration: underline;
}