/* Product Detail Page Styles */

/* Promo save button and expiry */
.promo-expiry { display: block; margin-top: 6px; color: #6B7280; font-size: 13px; }
.promo-save-btn { cursor: pointer; }

/* ============================================
   Global Mobile Overflow Prevention
   ============================================ */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    body.mobile-product-view {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    /* Ensure all main sections don't overflow */
    body.mobile-product-view .product-detail-section,
    body.mobile-product-view .related-products-section,
    body.mobile-product-view .blog-section,
    body.mobile-product-view footer {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    body.mobile-product-view .container {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    body.mobile-product-view .product-detail-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* ============================================
   Mobile Floating Navbar (Shopee Style)
   ============================================ */
.mobile-floating-navbar {
    display: none; /* Hidden by default, shown on mobile */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 16px;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.mobile-floating-navbar.scrolled {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-floating-navbar.scrolled .floating-nav-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.mobile-floating-navbar.scrolled .floating-nav-title {
    opacity: 1;
    color: #333;
}

.floating-nav-left,
.floating-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.floating-nav-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.26);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.floating-nav-btn:hover {
    background: rgba(0, 0, 0, 0.4);
}

.floating-nav-btn:active {
    transform: scale(0.95);
}

.floating-nav-icon {
    width: 20px;
    height: 20px;
}

.floating-nav-icon-dots {
    width: 20px;
    height: 6px;
}

.floating-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #EE4D2D;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Action Bar - Hidden by default (desktop) */
.mobile-action-bar {
    display: none;
}

/* Mobile: Show floating navbar, hide regular header */
@media (max-width: 768px) {
    .mobile-floating-navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Hide regular header elements on mobile product page */
    body.mobile-product-view .header,
    body.mobile-product-view .announcement-bar,
    body.mobile-product-view .breadcrumb-container {
        display: none !important;
    }

    /* Full-width product image on mobile - image goes under the floating navbar */
    body.mobile-product-view .product-detail-section {
        padding-top: 0 !important;
        padding-bottom: 0;
        margin-top: 0 !important;
    }

    body.mobile-product-view .product-images {
        position: relative;
        top: 0;
        z-index: 1;
    }

    body.mobile-product-view .main-image-container {
        border-radius: 0;
        border: none;
        margin-bottom: 0;
        margin-top: 0;
        max-width: 100% !important;
        width: 100% !important;
        aspect-ratio: 3 / 4;
        overflow: hidden;
    }

    /* Ensure body and html start at top with no gap */
    body.mobile-product-view {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Make sure the product section is the first visible element */
    body.mobile-product-view .product-detail-section {
        position: relative;
    }

    /* Container should have no padding on sides for full-bleed image */
    body.mobile-product-view .product-detail-section > .container {
        padding: 0;
        max-width: 100%;
    }

    body.mobile-product-view .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }

    body.mobile-product-view .container {
        padding: 0;
    }

    body.mobile-product-view .product-info {
        padding: 16px;
        max-width: 100vw !important;
        width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
        word-wrap: break-word;
    }

    body.mobile-product-view .product-info-column .related-products-section.related-products-inline {
        padding: 16px 16px 8px;
    }

    /* Ensure all children of product-info don't overflow */
    body.mobile-product-view .product-info > * {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Product title mobile styling */
    body.mobile-product-view .product-title {
        font-size: 18px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100% !important;
    }

    /* Product price section mobile */
    body.mobile-product-view .product-price-section {
        padding: 12px;
        margin-bottom: 16px;
        max-width: 100% !important;
    }

    body.mobile-product-view .product-price {
        font-size: 24px;
    }

    /* Product meta mobile */
    body.mobile-product-view .product-meta {
        margin-bottom: 16px;
        padding-bottom: 16px;
        max-width: 100% !important;
    }

    body.mobile-product-view .meta-item {
        flex-wrap: wrap;
    }

    body.mobile-product-view .meta-label {
        min-width: 80px;
        font-size: 14px;
    }

    body.mobile-product-view .meta-value {
        font-size: 14px;
    }

    /* Quantity section mobile */
    body.mobile-product-view .quantity-section {
        margin-bottom: 16px;
        max-width: 100% !important;
    }

    /* Product actions mobile - IMPORTANT: force proper sizing */
    body.mobile-product-view .product-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.mobile-product-view .btn-add-to-cart,
    body.mobile-product-view .btn-buy-now {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
    }

    /* LINE actions mobile - IMPORTANT: force proper sizing */
    body.mobile-product-view .line-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 12px;
        padding-top: 12px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.mobile-product-view .btn-order-line,
    body.mobile-product-view .btn-share-line {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }

    /* Mobile Floating Action Bar for Add to Cart & Buy Now */
    .mobile-action-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        padding: 12px 16px !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 9999 !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100vw !important;
        box-sizing: border-box !important;
    }

    .mobile-action-btn {
        flex: 1 !important;
        padding: 14px 20px !important;
        border-radius: 8px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.3s !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    .mobile-action-btn .material-symbols-outlined {
        font-size: 20px !important;
    }

    .mobile-action-btn-add {
        background: white !important;
        color: #0070F4 !important;
        border: 2px solid #0070F4 !important;
    }

    .mobile-action-btn-add:active {
        background: #F0F9FF !important;
        transform: scale(0.98) !important;
    }

    .mobile-action-btn-buy {
        background: #0070F4 !important;
        color: white !important;
    }

    .mobile-action-btn-buy:active {
        background: #0056D2 !important;
        transform: scale(0.98) !important;
    }

    /* Add padding to product-info to prevent content being hidden behind mobile bar */
    body.mobile-product-view .product-info {
        padding-bottom: 80px !important;
    }

    /* Hide original desktop buttons on mobile */
    body.mobile-product-view .product-actions {
        display: none !important;
    }

    body.mobile-product-view .thumbnail-container {
        padding: 12px 16px;
        background: white;
    }

    /* Hide desktop elements on mobile */
    body.mobile-product-view .desktop-only {
        display: none !important;
    }

    /* Show mobile carousel */
    body.mobile-product-view .mobile-carousel {
        display: flex !important;
    }
}

/* ============================================
   Mobile Swipe Carousel
   ============================================ */
.mobile-carousel {
    display: block !important;
    position: relative;
    /* Fixed 3:4 aspect ratio container */
    aspect-ratio: 3 / 4;
    overflow: auto; /* allow horizontal native scrolling for snap fallback */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    background: #f5f5f5;
    touch-action: pan-x pan-y pinch-zoom;
    box-sizing: border-box;
    /* Force full-bleed to viewport */
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    z-index: 1;
}

/* Ensure track and slides fill full viewport width */
#mobileCarousel .carousel-track,
.mobile-carousel .carousel-track,
body.mobile-product-view #carouselTrack {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Width set by JS based on number of slides */
    height: 100% !important;
    transition: transform 0.3s ease;
    /* Ensure no conflicting positioning */
    position: relative !important;
}


/* Force mobile carousel to show on mobile when body has the class */
@media (max-width: 768px) {
    .mobile-carousel {
        display: block !important;
    }
}

/* Dragging state - disable transition */
#mobileCarousel .carousel-track.dragging,
.mobile-carousel .carousel-track.dragging {
    transition: none !important;
}

/* Override style.css absolute positioning - slides must be relative for flex row */
#mobileCarousel .carousel-slide,
.mobile-carousel .carousel-slide,
body.mobile-product-view .carousel-slide {
    box-sizing: border-box !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    /* CRITICAL: Override style.css position:absolute and opacity:0 */
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    float: none !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Disable the opacity transition from style.css */
    transition: none !important;
}

#mobileCarousel .carousel-slide img,
#mobileCarousel .carousel-slide video,
.mobile-carousel .carousel-slide img,
.mobile-carousel .carousel-slide video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    /* Use cover to avoid letterboxing and grey bands */
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    scroll-snap-align: start;
}

/* Visual loading state for slides while media loads */
.mobile-carousel .carousel-slide.is-loading {
    background: #F3F4F6; /* light gray placeholder background */
    position: relative;
}

/* Remove loading background once image loads */
.mobile-carousel .carousel-slide:not(.is-loading) {
    background: transparent !important;
}

/* Ensure placeholders (if any) stay under media */
.mobile-carousel .carousel-placeholder {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Z-index layering for carousel elements */
.mobile-carousel .carousel-track {
    position: relative;
    z-index: 1;
}
.mobile-carousel .carousel-slide {
    position: relative !important;
    z-index: 1;
}
.mobile-carousel .carousel-slide img,
.mobile-carousel .carousel-slide video {
    position: relative;
    z-index: 1;
    pointer-events: auto !important;
    cursor: pointer; /* indicate tappable */
}

/* Fullscreen viewer styles */
.mobile-fullscreen-viewer {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    -webkit-tap-highlight-color: transparent;
}
.mobile-fullscreen-viewer.active {
    display: flex;
}
.mobile-fullscreen-viewer .mobile-fullscreen-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mobile-fullscreen-viewer img {
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    will-change: transform;
    touch-action: none;
    user-select: none;
}
.mobile-fullscreen-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 100000;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
}
/* Carousel Indicators (dots) */
.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 200;
    pointer-events: none;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    width: 18px;
    border-radius: 3px;
}

/* Carousel Counter (e.g., "1 / 5") */
.carousel-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 200;
    pointer-events: none;
}

/* Desktop: Show main image container, hide carousel */
@media (min-width: 769px) {
    .mobile-carousel {
        display: none !important;
    }

    .desktop-only {
        display: block !important;
    }
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 2000;
    flex-direction: column;
}

.mobile-search-overlay.active {
    display: flex;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #E5E7EB;
}

.mobile-search-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    flex-shrink: 0;
}

.mobile-search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F3F4F6;
    border-radius: 8px;
    padding: 10px 14px;
}

.mobile-search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #111827;
    outline: none;
}

.mobile-search-input-wrapper input::placeholder {
    color: #9CA3AF;
}

/* Language Menu Show State */
.language-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Breadcrumb */
.breadcrumb-container {
    background: #F9FAFB;
    padding: 16px 0;
    border-bottom: 1px solid #E5E7EB;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item:hover {
    color: #0070F4;
}

.breadcrumb-item.active {
    color: #111827;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #9CA3AF;
}

/* Product Detail Section */
.product-detail-section {
    padding: 40px 0;
    background: white;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-info-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 100px;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 3 / 4; /* changed to 3:4 to match related products */
    background: #F9FAFB;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    margin-bottom: 16px;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill and crop to container */
    -webkit-object-fit: cover;
    object-position: center center;
    cursor: zoom-in;
}

/* Video in main container: force cover on iOS Safari */
.main-image-container video.main-product-image {
    object-fit: cover !important;
    -webkit-object-fit: cover !important;
    object-position: center center;
}

.thumbnail-container {
    width: 100%;
    overflow: hidden;
}

.thumbnail-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
}

.thumbnail-scroll::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-scroll::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

.thumbnail-scroll::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    cursor: zoom-in;
    transition: all 0.3s;
    flex-shrink: 0;
    position: relative;
}

.thumbnail::after {
    content: '🔍';
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.thumbnail:hover::after {
    opacity: 1;
}

.thumbnail:hover {
    border-color: #0070F4;
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: #0070F4;
    box-shadow: 0 0 0 1px #0070F4;
}

/* Product Info */
.product-info {
    padding: 20px 0;
}


.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    line-height: 1.3;
}

.product-price-section {
    background: #F9FAFB;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.price-label {
    font-size: 16px;
    color: #6B7280;
    font-weight: 500;
}

.product-price {
    font-size: 36px;
    font-weight: 700;
    color: #DC2626;
}

/* Product Description - Full Width Section (modern Style) */
.product-description-full {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E5E7EB;
}

.related-products-inline + .product-description-full {
    margin-top: 32px;
}

.product-description-full .description-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.product-description-full .description-content {
    font-size: 15px;
    color: #4B5563;
    line-height: 1.7;
    max-height: none;
    overflow: visible;
}

.product-description-full .description-content p {
    margin-bottom: 12px;
}

.product-description-full .description-content p:last-child {
    margin-bottom: 0;
}

.product-description-full .description-content strong {
    color: #111827;
    font-weight: 600;
}

.product-description-full .description-content ul,
.product-description-full .description-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

/* Product Meta */
.product-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #E5E7EB;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-label {
    font-size: 15px;
    color: #6B7280;
    font-weight: 500;
    min-width: 120px;
}

.meta-value {
    font-size: 15px;
    color: #111827;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.stock-badge.in-stock {
    background: #D1FAE5;
    color: #065F46;
}

.stock-badge.out-of-stock {
    background: #FEE2E2;
    color: #991B1B;
}

/* Quantity Section */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.quantity-label {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    color: #6B7280;
}

.quantity-btn:hover {
    background: #F3F4F6;
    color: #111827;
}

.quantity-btn:active {
    background: #E5E7EB;
}

.quantity-btn .material-symbols-outlined {
    font-size: 20px;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 2px solid #E5E7EB;
    border-right: 2px solid #E5E7EB;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    outline: none;
}

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

.stock-available {
    font-size: 14px;
    color: #6B7280;
}

.mto-warning {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #FEF3C7;
    color: #92400E;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid #FDE68A;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 16px;
}

.btn-add-to-cart,
.btn-buy-now {
    flex: 1;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart {
    background: white;
    color: #0070F4;
    border: 2px solid #0070F4;
}

.btn-add-to-cart:hover {
    background: #F0F9FF;
}

.btn-buy-now {
    background: #0070F4;
    color: white;
}

.btn-buy-now:hover {
    background: #0056D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 244, 0.3);
}

.btn-add-to-cart:active,
.btn-buy-now:active {
    transform: translateY(0);
}

.btn-add-to-cart .material-symbols-outlined,
.btn-buy-now .material-symbols-outlined {
    font-size: 20px;
}

/* Related Products Section */
.related-products-section {
    padding: 60px 0;
    background: #F9FAFB;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.related-products-section.related-products-inline {
    padding: 24px 0 8px;
    background: transparent;
    border-top: 1px solid #E5E7EB;
    margin-top: 24px;
}

.product-info-column .related-products-section.related-products-inline {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.related-products-inline .section-header {
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.related-products-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.related-products-toggle {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.related-products-toggle:hover {
    border-color: #0070F4;
    color: #0070F4;
    background: #F0F9FF;
}

.related-products-toggle:active {
    transform: scale(0.98);
}

/* Related Products Horizontal Row */
.related-products-row {
    display: grid;
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    grid-auto-columns: calc((100% - 36px) / 4);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.related-products-row::-webkit-scrollbar {
    height: 6px;
}

.related-products-row::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

.related-products-row::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.related-products-row .product-card-wrapper {
    scroll-snap-align: start;
}

.related-products-row .loading-spinner {
    min-width: 100%;
}

.related-products-drawer .related-products-grid {
    margin-top: 8px;
}

.related-products-drawer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.related-products-drawer.open {
    max-height: 2000px;
    opacity: 1;
    margin-top: 16px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #0070F4;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.view-all-link:hover {
    gap: 8px;
}

.view-all-link .material-symbols-outlined {
    font-size: 20px;
}

/* Related Products Grid - modern Style (matching category page) */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    transition: opacity 0.2s ease;
}

/* Product Card Styles - modern Design (matching category page) */
.related-products-grid .product-card,
.related-products-row .product-card {
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
    border: none;
    padding: 0;
    aspect-ratio: auto !important;
    min-height: 0;
    max-height: none;
    height: auto !important;
}

.related-products-grid .product-card:hover,
.related-products-row .product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Product Image Container */
.related-products-grid .product-image,
.related-products-row .product-image {
    position: relative;
    width: 100% !important;
    margin-bottom: 0;
    background: #F3F4F6;
    transition: transform 0.3s ease;
    border: 1px solid #E5E8EA;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 9 / 16 !important;
    height: auto !important;
    max-height: none !important;
    flex-shrink: 0;
}

.related-products-grid .product-image img,
.related-products-row .product-image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
}

.related-products-grid .product-card:hover .product-image,
.related-products-row .product-card:hover .product-image {
    transform: scale(1.02);
}

/* Product Details */
.related-products-grid .product-details,
.related-products-row .product-details {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-products-grid .product-name,
.related-products-row .product-name {
    font-size: 14px;
    color: #1F2937;
    margin: 0 10px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    font-weight: 400;
    white-space: normal;
}

.related-products-grid .product-price,
.related-products-row .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 8px;
}

.related-products-grid .price-current,
.related-products-row .price-current {
    font-size: 16px;
    font-weight: 600;
    color: #DC2626;
}

/* Product Footer - price and button in same row */
.related-products-grid .product-footer,
.related-products-row .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 10px 10px;
}

/* Product Button - modern Style */
.related-products-grid .product-button,
.related-products-row .product-button {
    width: auto;
    padding: 8px 12px;
    background-color: white;
    color: #2563EB;
    border: 1.5px solid #2563EB;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.related-products-grid .product-button:hover,
.related-products-row .product-button:hover {
    background-color: #2563EB;
    color: white;
}

.related-products-grid .product-button:active,
.related-products-row .product-button:active {
    transform: scale(0.98);
}

/* Mobile Responsive Styles for Product Cards */
@media (max-width: 767px) {
    .related-products-grid .product-image,
    .related-products-row .product-image {
        margin-bottom: 0;
    }

    .related-products-grid .product-details,
    .related-products-row .product-details {
        padding: 0;
    }

    .related-products-grid .product-name,
    .related-products-row .product-name {
        font-size: 10px;
        margin: 0 0 2px 0;
        line-height: 1.2;
    }

    .related-products-grid .price-current,
    .related-products-row .price-current {
        font-size: 11px;
    }

    .related-products-grid .product-price,
    .related-products-row .product-price {
        margin: 0 0 4px 0;
    }

    .related-products-grid .product-button,
    .related-products-row .product-button {
        font-size: 10px;
        padding: 4px;
        gap: 2px;
        width: calc(100% - 8px);
        margin: 0 4px 4px;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #E5E7EB;
    border-top-color: #0070F4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    margin-top: 16px;
    color: #6B7280;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail-wrapper {
        gap: 40px;
    }

    .product-title {
        font-size: 28px;
    }

    .product-price {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-images {
        position: static;
    }

    .main-image-container {
        max-width: 400px;
        margin: 0 auto 16px auto;
    }

    body.mobile-product-view .main-image-container video.main-product-image {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        -webkit-object-fit: cover !important;
        object-position: center center;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 28px;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-add-to-cart,
    .btn-buy-now {
        width: 100%;
    }

    .product-description-full {
        margin-top: 32px;
        padding-top: 24px;
    }

    .product-description-full .description-title {
        font-size: 16px;
    }

    .product-description-full .description-content {
        font-size: 14px;
    }

    .related-products-section.related-products-inline {
        margin-top: 16px;
        padding: 16px 0 4px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .product-detail-section {
        padding: 24px 0;
    }

    .product-title {
        font-size: 20px;
    }

    .product-price {
        font-size: 24px;
    }

    .quantity-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Related Products Responsive Grid - Matching Category Page */
/* Extra tiny screens - 2 columns */
@media (max-width: 359px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .related-products-row {
        grid-auto-columns: calc((100% - 12px) / 2);
    }
}

/* Tiny phones - 2 columns */
@media (min-width: 360px) and (max-width: 479px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .related-products-row {
        grid-auto-columns: calc((100% - 12px) / 2);
    }
}

/* Small phones - 3 columns */
@media (min-width: 480px) and (max-width: 767px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .related-products-row {
        grid-auto-columns: calc((100% - 24px) / 3);
    }
}

/* Tablets - 3 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .related-products-row {
        grid-auto-columns: calc((100% - 24px) / 3);
    }
}

/* Desktop - 4 columns */
@media (min-width: 1024px) {
    .related-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* Products Grid - modern Layout (matching category page) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    transition: opacity 0.2s ease;
}

/* Product Card Wrapper */
.product-card-wrapper {
    width: 100%;
    min-width: 0; /* Prevent overflow */
}

/* Product Card Styles - modern Design */
.product-card {
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
    border: none;
    padding: 0;
    aspect-ratio: 2 / 3; /* Match other files for consistent height */
    min-height: 0;
    max-height: none;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Product Image - 1:1 Square Container (modern Style) */
.product-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    aspect-ratio: unset;
    height: 66.666%; /* 2/3 of card height, so image is still prominent */
    max-height: none;
    object-fit: cover !important; /* Fill entire card without gaps */
    object-position: center center;
    margin: 0;
    padding: 0;
    background: transparent;
    transition: transform 0.3s ease;
    border: none;
    display: block;
    border-radius: 8px 8px 0 0; /* Round top corners to match card */
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product Info */
.product-name {
    font-size: 14px;
    color: #1F2937;
    margin: 0 10px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    font-weight: 400;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.price-current {
    font-size: 16px;
    font-weight: 600;
    color: #DC2626;
}

/* Product Footer - price and button in same row */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 10px 10px;
}

/* Product Button - modern Style */
.product-button {
    width: auto;
    margin: 0;
    padding: 12px 16px;
    background-color: #ffffff; /* restore white */
    color: #2563EB; /* restore blue */
    border: 1.5px solid #2563EB;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.16s ease;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px; /* adjusted for row layout */
}

.product-button:hover {
    background-color: #2563EB;
    color: white;
}

.product-button:active {
    transform: scale(0.98);
}

/* Responsive Grid - modern Style (1-5 columns) */
/* Extra tiny screens - 1 column */
@media (max-width: 359px) {
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }
}

/* Tiny phones - 2 columns */
@media (min-width: 360px) and (max-width: 479px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Small phones - 3 columns */
@media (min-width: 480px) and (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .products-section .container {
        padding: 0 8px 40px;
    }

    .product-image {
        margin-bottom: 4px;
        height: 100%;
    }

    .product-name {
        font-size: 10px;
        margin: 0 4px 2px;
        line-height: 1.2;
    }

    .price-current {
        font-size: 11px;
    }

    .product-price {
        margin: 0 4px 4px;
    }

    .product-button {
        font-size: 10px;
        padding: 4px 4px;
        width: auto !important;
        margin: 0 4px 4px;
        gap: 2px;
        max-width: 100%;
    }

    .product-button .material-symbols-outlined {
        font-size: 12px;
    }
}

/* Tablets - 4 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

/* Desktop - 5 columns */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

/* Products Section Container */
.products-section {
    background-color: #FAFAFA;
    min-height: 60vh;
}

.products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Mobile responsive for products section */
@media (max-width: 767px) {
    .products-section .container {
        padding: 0 8px 40px;
    }
}

/* LINE Integration Buttons */
.line-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
}

.btn-order-line,
.btn-share-line {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-order-line {
    background: #06C755;
    color: white;
}

.btn-order-line:hover {
    background: #05B04D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.btn-order-line:active {
    transform: translateY(0);
}

.btn-share-line {
    background: #F4F6F8;
    color: #212B36;
    border: 1px solid #DFE3E8;
}

.btn-share-line:hover {
    background: #E5E8EB;
    border-color: #C4CDD5;
}

.btn-share-line:active {
    background: #DFE3E8;
}

/* LINE button icons */
.btn-order-line svg,
.btn-share-line .material-symbols-outlined {
    flex-shrink: 0;
}

/* Mobile responsive for LINE buttons */
@media (max-width: 768px) {
    .line-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-order-line,
    .btn-share-line {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .btn-order-line,
    .btn-share-line {
        font-size: 13px;
        padding: 10px 16px;
    }
}
/* ========================================
   IMAGE GALLERY LIGHTBOX MODAL
   ======================================== */

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-modal-content {
    position: relative;
    width: 1000px;
    max-width: 90vw;
    height: 700px;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

/* Close Button */
.gallery-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10003;
}

.gallery-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.gallery-close .material-symbols-outlined {
    color: #333;
    font-size: 28px;
}

/* Product Title in Gallery */
.gallery-title {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    max-width: 60%;
    text-align: left;
    z-index: 10001;
}

/* Gallery Layout - Main container with image on left, thumbnails on right */
.gallery-layout {
    display: flex;
    gap: 20px;
    flex: 1;
    overflow: hidden;
    width: 100%;
    height: 100%;
    align-items: center;
}

/* Main image section with navigation arrows */
.gallery-main-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

/* Main Image Container */
.gallery-main-image-container {
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image,
.gallery-main-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Navigation Arrows - Inside main section */
.gallery-nav-btn {
    position: absolute;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.gallery-nav-btn svg {
    display: block;
}

.gallery-nav-btn svg path {
    stroke: #333;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 140px;
}

/* Thumbnails Container - Right side vertical panel */
.gallery-thumbnails-container {
    width: 120px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
}

.gallery-thumbnails-scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px;
    scroll-behavior: smooth;
    flex: 1;
}

.gallery-thumbnails-scroll::-webkit-scrollbar {
    width: 6px;
}

.gallery-thumbnails-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.gallery-thumbnails-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.gallery-thumbnails-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.gallery-thumbnail {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.gallery-thumbnail:hover {
    border-color: #999;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.gallery-thumbnail img,
.gallery-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnail .video-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.gallery-thumbnail .video-indicator .material-symbols-outlined {
    font-size: 14px;
}

/* Mobile Responsive - Thumbnails move to bottom */
@media (max-width: 768px) {
    .gallery-modal-content {
        width: 95vw;
        height: 95vh;
    }

    .gallery-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .gallery-close .material-symbols-outlined {
        font-size: 28px;
    }

    .gallery-title {
        font-size: 14px;
        padding: 8px 16px;
        max-width: 70%;
    }

    /* Change layout to column on mobile */
    .gallery-layout {
        flex-direction: column;
        gap: 12px;
    }

    .gallery-main-section {
        flex: 1;
        width: 100%;
    }

    .gallery-main-image,
    .gallery-main-video {
        max-height: 60vh;
    }

    .gallery-nav-btn {
        width: 44px;
        height: 44px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    /* Thumbnails at bottom on mobile */
    .gallery-thumbnails-container {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 8px;
    }

    .gallery-thumbnails-scroll {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: 80px;
    }

    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   Mobile Fullscreen Image Viewer
   ============================================ */
.mobile-fullscreen-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.mobile-fullscreen-viewer.active {
    display: flex;
}

.mobile-fullscreen-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pinch-zoom;
}

.mobile-fullscreen-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.mobile-fullscreen-close:active {
    background: rgba(255, 255, 255, 0.3);
}
