/* 1. DESKTOP ALIGNMENT (Restores the Table Structure) */
.woocommerce div.product form.cart table.variations {
    display: table !important;
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0 15px; /* Adds space between rows without breaking alignment */
}

.woocommerce div.product form.cart table.variations tr {
    display: table-row !important;
}

.woocommerce div.product form.cart table.variations th.label,
.woocommerce div.product form.cart table.variations td.value {
    display: table-cell !important;
    vertical-align: middle;
    padding: 10px 0;
}

/* 2. FONTS & BOXES */
.variations th.label label {
    font-family: 'Century Gothic', sans-serif !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.15em;
}

.woocommerce div.product form.cart .variations select {
    border: 1px solid #333 !important;
    padding: 10px !important;
    font-family: 'Century Gothic', sans-serif !important;
    width: 100%;
}

.header__main-menu- ul li a {
    font-family: 'Bitter', serif !important;
}

/* 3. MOBILE FIX (Prevents Overlapping Frame Options) */
@media screen and (max-width: 768px) {
    /* Ensure the table doesn't hide the 3rd row */
    .woocommerce div.product form.cart table.variations {
        overflow: visible !important;
        height: auto !important;
    }

    /* Move the Price/Add to Cart block DOWN so it cannot cover Frame Options */
    .single_variation_wrap {
        display: block !important;
        clear: both !important;
        margin-top: 40px !important; 
        position: relative !important;
        z-index: 10;
    }

    /* Force row visibility */
    .woocommerce div.product form.cart table.variations tr {
        visibility: visible !important;
        opacity: 1 !important;
    }
}


/* =========================================================================
 * 4. WOOCOMMERCE GALLERY THUMBNAIL FIX (True Proportion Engine)
 * ========================================================================= */
.single-product .flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 10px 0 0 0 !important;
}

.single-product .flex-control-thumbs li {
    width: calc(25% - 8px) !important;
    height: auto !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
}

.single-product .flex-control-thumbs li img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2 !important; /* Forces the box layout into a standard photo landscape */
    object-fit: contain !important; /* Keeps 100% of your premium frame completely visible */
    background-color: #ffffff !important; /* Smoothly blankets any narrow negative space with solid white */
    border: 1px solid #eee !important;
    box-sizing: border-box !important;
    padding: 2px !important;
    transition: all 0.2s ease;
}

.single-product .flex-control-thumbs li img.flex-active {
    border-color: #333 !important;
}
