/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Pulsing Header Button Animation */
@keyframes pulse-attention {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.7);
        /* Using primary pink hue */
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(244, 114, 182, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 114, 182, 0);
    }
}

.header-button-1 .button {
    animation: pulse-attention 2s infinite;
    transition: all 0.3s ease;
}

.header-button-1 .button:hover {
    animation: none;
    transform: scale(1.05);
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/

    #logo img {
        max-height: 40px !important;
        width: auto !important;
    }

    .header-main {
        height: 50px !important;
    }

    .header-inner {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 5px !important;
    }

    /* 1. Menu Icon (Left) */
    .flex-left {
        order: 1 !important;
        flex: 0 0 auto !important;
        margin-right: 5px !important;
        width: auto !important;
    }

    /* 2. Logo (Next to Menu) */
    #logo {
        order: 2 !important;
        flex: 0 1 auto !important;
        /* Allow shrinking */
        width: auto !important;
        max-width: 100px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #logo a {
        display: block !important;
        line-height: 0 !important;
    }

    #logo img {
        max-height: 35px !important;
        width: auto !important;
        margin: 0 !important;
    }

    /* 3. Right Group (Button + Cart) */
    .flex-right {
        order: 3 !important;
        flex: 1 1 auto !important;
        /* Take remaining space */
        justify-content: flex-end !important;
        margin-left: auto !important;
        width: auto !important;
    }

    /* Force inner nav to be row */
    .flex-right .nav {
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        gap: 5px !important;
    }

    /* Header Button Styles */
    .header-button-1 {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .header-button-1 .button {
        height: 30px !important;
        line-height: 30px !important;
        padding: 0 10px !important;
        font-size: 0.75rem !important;
        /* Very small font */
        margin: 0 !important;
        white-space: nowrap !important;
    }

    .header-button-1 .button span {
        display: inline !important;
    }

    /* Cart Icon */
    .cart-item {
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-cart-link {
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 0.9rem !important;
    }

    /* Reset Theme Styles */
    .logo-left .logo,
    .header-inner .logo,
    .medium-logo-center .logo {
        transform: none !important;
        left: auto !important;
        right: auto !important;
        position: static !important;
        text-align: left !important;
    }

    /* Action Bar Mobile: Horizontal Row, Smaller Buttons */
    .ui-action-bar {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.25rem !important;
        /* Minimized gap */
        flex-wrap: nowrap !important;
        width: 100% !important;
        justify-content: space-between !important;
    }

    .qty-control {
        width: auto !important;
        height: 42px !important;
        /* Slightly larger for touch */
        padding: 0 !important;
        flex-shrink: 0;
        margin-right: 0.25rem !important;
    }

    .qty-btn {
        width: 35px !important;
        /* Slightly larger targets */
        height: 100% !important;
    }

    .qty-display {
        width: 30px !important;
        font-size: 1rem !important;
        line-height: normal !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .book-btn {
        width: auto !important;
        flex: 1 1 auto !important;
        height: 42px !important;
        padding: 0 0.5rem !important;
        font-size: 0.85rem !important;
        /* Legible size */
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        max-width: none !important;
        /* Ensure it can grow */
        min-width: 0 !important;
        /* Allow shrinking below content size if absolutely necessary */
    }

    /* Ensure icon inside button doesn't take too much space */
    .book-btn i {
        font-size: 1rem !important;
        margin-right: 3px !important;
    }

    .book-btn span {
        display: inline !important;
    }

    h1.product-title {
        font-size: 1.4rem !important;
        line-height: 1.1;
        margin-bottom: 0.25rem !important;
        word-wrap: break-word;
        /* Prevent overflow */
    }

    /* Layout Adjustments */
    .xc-single-main-info {
        flex-direction: column !important;
    }

    .xc-single-information {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        /* display grid inherited, so just cols needed */
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .xc-single-gallery {
        margin-top: 2rem !important;
        padding: 1rem !important;
    }

    h2.section-title {
        font-size: 1.8rem !important;
    }

    .hero-left,
    .hero-right {
        flex: auto;
        width: 100% !important;
    }

    .glass-panel {
        width: 100% !important;
        margin: 0 !important;
    }

    .main-image-wrapper {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 4/3;
        /* Maintain some ratio */
    }

    .content-wrapper {
        padding: 20px 10px;
    }

    /* Contact Form Mobile Stack */
    .xc-form-inline {
        flex-direction: column;
    }

    .xc-submit-btn {
        width: 100%;
        height: 48px;
    }
}

/* =========================================
   XC SINGLE PRODUCT STYLES
   ========================================= */

/* Global Hiding Override */
.page-title,
.product-page-title,
.shop-page-title {
    display: none !important;
}

/* Scoped Styles for Dreamy Show */
.entry-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

:root {
    --primary-pink: #F472B6;
    --secondary-blue: #0EA5E9;
    --bg-light: #E0F2FE;
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --radius-lg: 1.5rem;
}

.xc-single-product {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #7dd3fc, #f472b6);
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
}

.xc-single-product * {
    box-sizing: border-box;
}

/* Background Effects */
.bg-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to bottom, #7dd3fc, #f472b6);
    opacity: 0.2;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 10s ease-in-out infinite;
}

.blob-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.6);
}

.blob-2 {
    bottom: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: rgba(244, 114, 182, 0.4);
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Content Layout */
.content-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Typography */
h1.product-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #F472B6, #9333EA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

h2.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* XC SINGLE MAIN INFO (Hero Grid) */
.xc-single-main-info {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: stretch;
}

.hero-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.hero-right {
    flex: 0.8;
    display: flex;
    flex-direction: column;
}

/* Images */
.main-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    flex-grow: 1;
    height: 100%;
    min-height: 500px;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}

.main-image-wrapper:hover img {
    transform: scale(1.05);
}

.date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ticket Selection */
.ticket-selector {
    margin-top: 2rem;
}

.ticket-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-option:hover {
    background: white;
    border-color: var(--primary-pink);
}

.ticket-option.selected {
    background: white;
    border-color: var(--primary-pink);
    box-shadow: 0 5px 15px rgba(244, 114, 182, 0.2);
}

.ticket-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ticket-details {
    display: flex;
    flex-direction: column;
}

.ticket-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    text-transform: capitalize;
}

.ticket-price {
    font-weight: 700;
    color: var(--primary-pink);
    font-size: 1.2rem;
}

/* Action Bar */
.ui-action-bar {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
    flex-wrap: nowrap;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 99px;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
    height: 54px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.qty-btn {
    width: 40px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    padding: 0;
    margin: 0;
}

.qty-display {
    width: 50px !important;
    text-align: center !important;
    font-weight: bold !important;
    border: none !important;
    background: transparent !important;
    color: var(--text-dark) !important;
    opacity: 1 !important;
    padding: 0 !important;
    height: 100% !important;
    line-height: normal !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
    margin: 0 !important;
    font-size: 1.2rem !important;
    display: inline-block;
}

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

.book-btn {
    flex: 1;
    background: var(--primary-pink);
    color: white;
    border: none;
    border-radius: 99px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(244, 114, 182, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 54px;
    box-sizing: border-box;
    margin: 0;
    line-height: 1;
}

.book-btn:hover {
    background: #ec4899;
    transform: translateY(-2px);
}

.variations {
    visibility: hidden;
    position: absolute;
    height: 0;
    overflow: hidden;
}

/* XC SINGLE INFORMATION (Grid) */
.xc-single-information {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 4rem 0;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-icon-box {
    background: rgba(255, 255, 255, 0.5);
    padding: 0.75rem;
    border-radius: 0.75rem;
    color: var(--primary-pink);
}

.stage-placeholder {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-gray);
}

/* XC SINGLE DETAIL (Long Desc) */
.xc-single-detail {
    margin-bottom: 4rem;
}

/* Gallery */
.xc-single-gallery {
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 1rem;
    overflow: hidden;
    /* Removed box-shadow */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* XC SINGLE FORM */
.xc-single-form {
    text-align: center;
    padding: 4rem;
    color: white;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    border-radius: var(--radius-lg);
}

/* CF7 Style Overrides */
.xc-form-inline {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    /* Stretch to match height */
    max-width: 600px;
    margin: 2rem auto 0;
}

.xc-form-inline p,
.xc-form-inline br {
    display: none !important;
    margin: 0;
    padding: 0;
}

.xc-field-group {
    flex: 1;
    display: flex;
}

.xc-field-group p {
    display: block !important;
    width: 100%;
    margin: 0;
}

.xc-field-group .wpcf7-form-control-wrap {
    width: 100%;
    display: block;
}

/* TARGET CF7 INPUTS SPECIFICALLY */
.wpcf7-form-control-wrap input.xc-phone-input,
input.xc-phone-input {
    width: 100% !important;
    padding: 0 2rem !important;
    border-radius: 99px !important;
    border: 2px solid white !important;
    background: white !important;
    color: var(--text-dark) !important;
    font-weight: bold !important;
    outline: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s !important;
    height: 54px !important;
    margin: 0 !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
}

.xc-phone-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.xc-phone-input::placeholder {
    color: var(--text-gray);
    font-weight: normal;
}

.xc-submit-btn {
    background: white;
    color: var(--primary-pink);
    border: none;
    padding: 0 2rem;
    border-radius: 99px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    height: 54px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.xc-submit-btn:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
}

.xc-danh-sach-loai-ghe {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    /* Reduced as requested */
}

.loai-ghe__list {
    list-style: none !important;
    /* Ensure override */
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loai-ghe__item {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 10px 12px;
    /* Reduced padding */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    min-height: 60px;
    margin-left: 0 !important;
    /* Remove Flatsome default margin */
}

.loai-ghe__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.loai-ghe__item--vip {
    border-left: 6px solid #ff9800;
    background: #fff8e1;
}

.loai-ghe__item--nhua {
    border-left: 6px solid #2196f3;
}

.loai-ghe__item--go {
    border-left: 6px solid #4caf50;
}

.loai-ghe__ten {
    font-size: 1.25rem;
    font-weight: 700;
    min-width: 120px;
    color: #111;
}

.loai-ghe__quyen-loi {
    flex: 1;
    font-size: 0.98rem;
    line-height: 1.4;
    color: #444;
    padding: 0 16px;
}

.loai-ghe__gia {
    font-size: 1.35rem;
    font-weight: 800;
    color: #d32f2f;
    min-width: 110px;
    text-align: right;
}

/* Mobile: xếp dọc gọn */
@media (max-width: 640px) {
    .loai-ghe__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px;
    }

    .loai-ghe__ten,
    .loai-ghe__gia {
        width: 100%;
        text-align: left;
    }

    .loai-ghe__quyen-loi {
        padding: 0;
    }

    .loai-ghe__gia {
        font-size: 1.45rem;
    }
}