/* Product Page Layout - 50/50 Split */

/* Main product container - 50/50 split */
.single-product .product-wrap {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 40px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-top: 20px !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Override any container restrictions */
.single-product div.product {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Left side - Product Gallery (50%) */
.product-gallery-side {
    flex: 1 1 50% !important;
    width: 50% !important;
    margin: 0 !important;
    max-width: 50% !important;
}

.product-gallery-side .woocommerce-product-gallery {
    width: 100% !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Right side - Product Info (50%) */
.product-info-side {
    flex: 1 1 50% !important;
    width: 50% !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 50% !important;
}

/* Product title styling */
.product-info-side .product_title {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 28px;
    color: #333 ;
    line-height: 1.3;
}

/* Product description styling */
.product-info-side .product-description {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
}

.product-info-side .product-description p {
    margin-bottom: 15px;
}

/* Product Purchase Section - Below 50/50 split */
.product-purchase-section {
    margin: 0 0 60px;
    padding: 0;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    text-align: center;
}

.product-purchase-section a {
    color: #9b111e !important;
}
.product-purchase-section a:hover {
    color: #9b111e !important;
}

.product-purchase-section .price {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.product-purchase-section .cart {
    margin-bottom: 20px;
}

.product-purchase-section .product_meta {
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
    visibility: hidden;
}

/* Product Specifications - Right side styling */
.product-specifications {
    margin: 20px 0 0 0 !important;
    padding: 0 !important;
}

.product-specifications .spec-section {
    margin-bottom: 20px;
}

.product-specifications h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}

.product-specifications table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-specifications table td {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Hide sections that should go below the 50/50 split */
.product-specifications .applications-section,
.product-specifications .features-section,
.product-specifications .details-section,
.product-specifications .download-section {
    display: none;
}

/* Full width section below the 50/50 split */
.below-product-split {
    flex: 1 1 100%;
    /* width: 100%;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0; */
}

/* Applications and other content styling */
.applications-section-full h3,
.features-section-full h3,
.details-section-full h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
}

.applications-section-full,
.features-section-full,
.details-section-full {
    margin-bottom: 30px;
}

/* Two column layout for applications and features */
.content-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

/* Download section styling */
.download-section-full {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .single-product div.product {
        flex-direction: column;
    }
    
    .woocommerce-product-gallery,
    .summary.entry-summary {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    
    .content-two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .below-product-split {
        margin-top: 20px;
        padding-top: 20px;
    }
}

/* Ensure WooCommerce tabs stay below everything */
.woocommerce-tabs {
    flex: 1 1 100%;
    width: 100%;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .single-product .product-wrap {
        flex-direction: column;
        padding-top: 40px !important;
    }
    .product-gallery-side {
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-info-side {
        width: 100% !important;
        max-width: 100% !important;
    }
}
