/* Basic Plugin Styles */
.car-container {
    max-width: 1100px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.car-step {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.car-category-heading {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.car-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.car-item-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.car-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.car-item-image {
    height: 327px;
    background-size: cover;
    background-position: center;
}

.car-item-details {
    padding: 15px;
}

.car-item-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.car-item-price {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* ===== Sale Price & Timer ===== */
.car-price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    font-weight: normal;
    margin-right: 8px;
}

.car-price-sale {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.15rem;
}

.car-price-large .car-price-original {
    font-size: 1rem;
}

.car-price-large .car-price-sale {
    font-size: 1.5rem;
}

.car-early-bird-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}

.car-countdown {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 10px;
}

.car-countdown-unit {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 6px 8px;
    border-radius: 5px;
    min-width: 42px;
    font-size: 0.75rem;
}

.car-countdown-unit .car-cd-num {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.2;
}

.car-countdown-unit .car-cd-label {
    display: block;
    font-size: 0.6rem;
    opacity: 0.8;
    text-transform: uppercase;
}

.car-countdown-expired {
    display: none;
}

.car-sale-discount-row {
    color: #27ae60;
    font-weight: 600;
}

.car-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.car-btn:hover {
    background: #005177;
}

.car-btn:disabled,
.car-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.car-back-btn {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    margin-bottom: 20px;
}

.car-back-btn:hover {
    text-decoration: underline;
}

/* Step 2 Specifics */
.car-step-2-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.car-item-full-image {
    flex: 1;
    min-width: 300px;
}

.car-item-full-image img {
    max-width: 100%;
    border-radius: 8px;
    height: auto;
}

.car-item-info {
    flex: 1;
    min-width: 300px;
}

.car-price-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.car-options-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.car-form-group {
    margin-bottom: 15px;
}

.car-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.car-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Step 3 specifics */
.car-form-row {
    display: flex;
    gap: 20px;
}

.car-form-row .half {
    flex: 1;
}

.car-checkout-summary {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.car-amount-due {
    font-size: 1.2rem;
}

/* Step 4 */
.car-success-message {
    text-align: center;
    padding: 40px 20px;
}

.car-check-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.car-ticket-preview {
    margin: 30px auto;
    padding: 20px;
    border: 2px dashed #ccc;
    display: inline-block;
    background: #fefefe;
}

.car-qr-preview {
    max-width: 200px;
    height: auto;
    margin-top: 15px;
}

/* Loading Overlay */
#car-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.car-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: car-spin 1s linear infinite;
}

@keyframes car-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .car-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ===== Cart Indicator (floating badge) ===== */
#car-cart-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    background: #0073aa;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, background 0.2s;
    font-size: 24px;
    border: none;
    opacity: 0;
    pointer-events: none;
}

#car-cart-indicator.has-items {
    opacity: 1;
    pointer-events: auto;
}

#car-cart-indicator:hover {
    transform: scale(1.1);
    background: #005177;
}

#car-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Cart Drawer ===== */
#car-cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 10000;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

#car-cart-drawer.open {
    right: 0;
}

.car-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.car-cart-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

#car-cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

#car-cart-close:hover {
    color: #333;
}

.car-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

#car-cart-empty-msg {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.car-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
}

.car-cart-item-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.car-cart-item-details {
    flex: 1;
    min-width: 0;
}

.car-cart-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-cart-item-opts {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

.car-cart-item-price {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.85rem;
    margin-top: 2px;
}

.car-cart-item-remove {
    background: none;
    border: none;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}

.car-cart-item-remove:hover {
    color: #e74c3c;
}

.car-cart-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.car-cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

#car-cart-checkout-btn {
    width: 100%;
}

/* ===== Cart Overlay ===== */
#car-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: none;
}

#car-cart-drawer.open~#car-cart-overlay {
    display: block;
}

/* ===== Toast Notification ===== */
#car-toast {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #2c3e50;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

#car-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Step 2: Two-Button Layout ===== */
.car-step2-buttons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.car-btn-secondary {
    background: #fff;
    color: #0073aa;
    border: 2px solid #0073aa;
}

.car-btn-secondary:hover {
    background: #f0f6fc;
}

.car-btn-secondary:disabled,
.car-btn-secondary.disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

/* ===== Order Summary Items ===== */
.car-summary-items {
    margin: 15px 0;
}

.car-summary-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.car-summary-item-row:last-child {
    border-bottom: none;
}

.car-summary-item-name {
    flex: 1;
}

.car-summary-item-opts {
    display: block;
    color: #888;
    font-size: 0.8rem;
}

.car-summary-item-price {
    font-weight: bold;
    white-space: nowrap;
    margin-left: 15px;
}

.car-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #ddd;
    font-size: 1.15rem;
}