/* ==========================================================================
   LOUSTALOT PHOTOGRAPHY - SINGLE PRODUCT LAYOUT
   ========================================================================== */

/* Main 2-Column Flex Container */
.woocommerce div.product,
div.product {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 5% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Clear legacy float clearings that break flexbox */
.woocommerce div.product::before,
.woocommerce div.product::after {
    display: none !important;
}

/* LEFT COLUMN: Product Main Image */
.woocommerce div.product div.images,
div.product div.images {
    flex: 0 0 45% !important;
    width: 45% !important;
    max-width: 45% !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce div.product div.images img,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .flex-viewport {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* RIGHT COLUMN: Product Summary */
.woocommerce div.product div.summary,
div.product div.summary {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    float: none !important;
    margin: 0 !important;
}

/* Hide extra floating magnifying icon */
.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* TYPOGRAPHY & ELEMENTS */
.single-product div.product .product_title {
    font-size: 2.2rem !important;
    font-weight: 400 !important;
    margin-bottom: 15px !important;
    color: #111111 !important;
}

.single-product div.product p.price,
.single-product div.product span.price {
    font-size: 1.25rem !important;
    color: #333333 !important;
    margin-bottom: 20px !important;
}

/* Quantity & Add To Cart Button Layout */
.single-product div.product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 20px 0 !important;
}

.single-product div.product form.cart .quantity .qty {
    padding: 8px !important;
    width: 60px !important;
    text-align: center !important;
    border: 1px solid #cccccc !important;
}

.single-product div.product .single_add_to_cart_button,
.single-product div.product button.button.alt {
    background-color: #686868 !important;
    color: #ffffff !important;
    border-radius: 0px !important;
    border: none !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    cursor: pointer !important;
}

.single-product div.product .single_add_to_cart_button:hover {
    background-color: #333333 !important;
}

/* CLEAN TAGS & META (Removes ugly links look) */
.single-product div.product .product_meta {
    margin-top: 20px !important;
    font-size: 0.9rem !important;
    color: #666666 !important;
}

.single-product div.product .product_meta a {
    color: #333333 !important;
    text-decoration: none !important;
}

.single-product div.product .product_meta a:hover {
    text-decoration: underline !important;
}

/* DESCRIPTION & TABS SECTION (Full width below image/summary) */
.single-product div.product .woocommerce-tabs {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-top: 40px !important;
    border-top: 1px solid #eeeeee !important;
    padding-top: 20px !important;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Full-Width front page Banner Layout */
.lp-front-banner-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between featured sections */
    margin-bottom: 40px;
}

.lp-hero-banner {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust banner height */
    min-height: 450px;
    max-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.lp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.lp-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Text Overlay Container */
.lp-hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.lp-hero-banner.lp-align-left .lp-hero-overlay {
    display: flex;
    justify-content: flex-start;
}

.lp-hero-banner.lp-align-right .lp-hero-overlay {
    display: flex;
    justify-content: flex-end;
}

/* Content Box Over Image */
.lp-hero-content {
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent white card */
    padding: 35px 45px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    backdrop-filter: blur(5px);
}

body.dark-mode .lp-hero-content,
body.lp-dark .lp-hero-content {
    background: rgba(17, 17, 17, 0.85);
}

.lp-hero-title {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
    color: #111111;
    text-transform: uppercase;
}

body.dark-mode .lp-hero-title,
body.lp-dark .lp-hero-title {
    color: #ffffff;
}

.lp-hero-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #111111;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: 1px solid #111111;
}

.lp-hero-btn:hover {
    background-color: transparent;
    color: #111111 !important;
}

body.dark-mode .lp-hero-btn,
body.lp-dark .lp-hero-btn {
    background-color: #ffffff;
    color: #111111 !important;
    border-color: #ffffff;
}

body.dark-mode .lp-hero-btn:hover,
body.lp-dark .lp-hero-btn:hover {
    background-color: transparent;
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lp-hero-banner {
        height: 50vh;
        min-height: 350px;
    }

    .lp-hero-overlay {
        padding: 0 20px;
        justify-content: center !important;
    }

    .lp-hero-content {
        padding: 20px 25px;
        max-width: 100%;
    }

    .lp-hero-title {
        font-size: 20px;
    }
}
