/* Custom Luxury Theme Overrides for Union Plazza */
body {
    background-color: #0D0D0D !important;
    color: #E5E5E5 !important;
}

.font-serif-title, h1, h2, h3 {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif !important;
    letter-spacing: -0.01em;
}

/* --- FIX 1: COMPACT GRID SPACING (NO HUGE SPACES) --- */
#productsGrid {
    gap: 0.75rem !important; /* Tight 12px grid gap */
}

@media (min-width: 768px) {
    #productsGrid {
        gap: 1rem !important; /* 16px grid gap on desktop */
    }
}

/* Distinct Dark Product Cards */
#productsGrid > div, 
.category-scroll-track > div {
    background-color: #161616 !important;
    border: 1px solid #282828 !important;
    border-radius: 12px !important;
    padding: 0.75rem !important; /* Reduces internal whitespace padding */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
    margin-bottom: 0 !important;
}

#productsGrid > div:hover {
    transform: translateY(-3px) !important;
    border-color: #D4AF37 !important;
}

/* Product Image Ratio inside Cards */
#productsGrid > div img,
.category-scroll-track > div img {
    cursor: pointer;
    width: 100%;
    height: 180px !important;
    object-fit: contain !important;
    background-color: #1F1F1F !important;
    border-radius: 8px !important;
    padding: 6px !important;
}

/* --- FIX 2: FORCE PRODUCT TITLE & PRICE VISIBILITY --- */
#productsGrid div h3,
#productsGrid div h4,
#productsGrid div a,
#productsGrid div .product-title,
#productsGrid div font,
#productsGrid div span {
    color: #FFFFFF !important; /* Force crisp white text for titles */
}

#productsGrid div .price,
#productsGrid div .product-price,
#productsGrid div [class*="text-amber"],
#productsGrid div [class*="text-[#D4AF37]"] {
    color: #D4AF37 !important; /* Force gold text for prices */
    font-weight: 700 !important;
}

/* Light grey for strike-through original prices */
#productsGrid div .line-through,
#productsGrid div del,
#productsGrid div s {
    color: #9CA3AF !important;
}

/* --- FIX 3: ORDER SUMMARY & CHECKOUT VISIBILITY --- */
/* Force all text inside the Checkout Order Summary panel to be bright white & gold */
#cartItems,
#cartItems * {
    color: #F3F4F6 !important;
}

#cartItems .cart-item-title,
#cartItems h4,
#cartItems h5,
#cartItems p {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

#cartItems .cart-item-price,
#cartItems .text-amber-400,
#cartItems .text-gold {
    color: #D4AF37 !important;
    font-weight: 700 !important;
}

/* Fix Checkout Form Inputs & Selection Dropdowns */
#cartModal input, 
#cartModal select,
#cartModal input[type="text"],
#cartModal input[type="tel"],
#cartModal input[type="email"] {
    background-color: #1F1F1F !important;
    color: #FFFFFF !important;
    border: 1px solid #374151 !important;
    -webkit-text-fill-color: #FFFFFF !important; /* Fixes browser autofill white text bug */
}

#cartModal input::placeholder {
    color: #9CA3AF !important;
    -webkit-text-fill-color: #9CA3AF !important;
}

/* Full-screen image viewer */
.image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.image-lightbox .close-lightbox {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    background: transparent;
    border: none;
    font-size: 36px;
    cursor: pointer;
}

/* Prevent horizontal scrolling */
html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}