/*
 Theme Name: Codiux Digital Child
 Description:  FIFA Football World Cup Ticket Booking Theme
 Author:       Codiux Digital
 Author URI:   http://codiuxdigital.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra
*/

/* Reset & Base */
body {
    background-color: #f4f7f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* Boxed Layout Container */
.product-container {
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header Section */
.product-main-header {
    margin-bottom: 30px;
}

.product-main-header h1.product_title {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0;
    color: #111;
    letter-spacing: -0.02em;
}

.event-info-bar {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-weight: 600;
}

.event-info-bar span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #045694;
    font-size: 0.95rem;
}

.event-info-bar .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.social-proof-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #e63946;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 2px 0;
}

.social-proof-bar i {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.product-meta-header {
    margin-top: 15px;
    color: #666;
    font-size: 1.05rem;
}

/* 50/50 Column Split */
.product-columns-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-left-column {
    flex: 0 0 50%;
    max-width: 50%;
}

.product-sticky-wrapper {
    position: sticky;
    top: 20px;
}

.product-right-sidebar {
    flex: 0 0 46%;
    max-width: 46%;
}



/* Left Column Visuals */
.product-visual-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Sidebar Styling */
.sidebar-header {
    background: #fff;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.listing-count {
    background: #e6f0f9;
    color: #045694;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.sidebar-header-filters {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    white-space: nowrap;
}

.global-qty-filter,
.ticket-sort-filter {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 5px 30px 5px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: #fff;
    width: 100%;
}

.category-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cheapest-badge {
    background: #4caf50;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.variation-thumbnail {
    position: relative;
    cursor: pointer;
}

.view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 8px;
}

.variation-thumbnail:hover .view-overlay {
    opacity: 1;
}

.view-overlay i {
    color: #fff;
    font-size: 20px;
}



.variation-cards-list {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    overflow-y: auto;
    padding: 15px;
    /* Fixed height for scrollable list */
}


/* Variation Card Styling */
.variation-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.variation-card:last-child {
    border-bottom: none;
}

.variation-card:hover {
    border-color: #045694;
    background-color: #fafafa;
}

.card-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.variation-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.variation-main-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.variation-category {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111;
}

.variation-subtext {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.variation-subtext .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #4caf50;
    /* Green for "Official/Verified" feel */
}


.variation-custom-details {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.custom-meta-row {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.meta-label {
    font-weight: 600;
    color: #333;
}

.meta-value {
    color: #045694;
}

.scarcity-badge {
    color: #e63946;
    /* Changed to red for more urgency */
    font-size: 0.8rem;
    font-weight: 700;
    background: #fff1f2;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 6px rgba(230, 57, 70, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

.variation-trust-badges {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

.trust-badge i {
    color: #4caf50;
    font-size: 16px;
}

.card-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
}

.variation-price {
    font-weight: 800;
    font-size: 1.25rem;
    color: #111;
    line-height: 1.2;
}

.total-price-wrapper {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #eee;
}

.total-label {
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
}

.total-price-value {
    font-size: 1rem;
    font-weight: 800;
    color: #045694;
}

.fee-info {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}


/* Variation Actions (Qty + Buy) */
.variation-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qty-input {
    width: 50px;
    height: 42px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

/* Buy Button Styling */
.buy-button {
    background-color: #045694 !important;
    color: #fff !important;
    border: none !important;
    padding: 0 25px !important;
    height: 42px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    white-space: nowrap;
}

.buy-button:hover {
    background-color: #034678 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 86, 148, 0.2);
}


/* Mobile Responsiveness */
@media (max-width: 991px) {
    .product-columns-wrapper {
        flex-direction: column;
    }

    .product-left-column,
    .product-right-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        position: static;
    }

    .product-right-sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 600px) {
    .variation-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .card-right {
        width: 100%;
        text-align: left;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .buy-button {
        width: auto;
    }
}

/* Checkout Urgency Timer - Localized Alert */
#checkout-urgency-timer {
    background-color: #fff1f2;
    color: #e63946;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #fee2e2;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    display: block;
}

#checkout-urgency-timer .timer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#checkout-urgency-timer .timer-text {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

#checkout-urgency-timer .timer-text .dashicons {
    color: #e63946;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

#checkout-urgency-timer .timer-clock {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    background: #e63946;
    padding: 3px 10px;
    border-radius: 4px;
    min-width: 65px;
    text-align: center;
    line-height: 1.2;
}


/* Mobile adjustments */
@media (max-width: 480px) {
    #checkout-urgency-timer .timer-container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}