/* Product Gallery Styles */
.product-gallery-column {
    position: relative;
    top: auto;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.product-gallery-column img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: bottom;
    display: block;
    margin: 0;
    padding: 0;
}

.custom-product-container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.product-layout-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    margin: 0;
}

.main-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail-item {
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail-item img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info-column {
    position: relative;
    padding: 0;
}

.fixed-content {
    position: relative;
    padding: 40px;
}

.product-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.price-block {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sale-badge {
    background: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.product-short-description {
    margin: 20px 0;
    color: #666;
    line-height: 1.6;
}

.additional-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.additional-section {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    margin-top: 60px;
    padding: 40px;
}

.additional-section img {
    width: 100%;
    height: auto;
}

/* Add to Cart Button Styles */
.single_add_to_cart_button {
    background-color: #A8583C !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: background-color 0.3s !important;
}

.single_add_to_cart_button:hover {
    background-color: #a8593cf5 !important;
}

.quantity input {
    width: 70px !important;
    height: 40px !important;
    padding: 5px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    margin-right: 10px !important;
}

/* Custom Variation Selector Styles */
.custom-variation-selector {
    margin-bottom: 20px;
}

.custom-variation-selector h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.variation-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.variation-image-wrapper {
    position: relative;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 80px;
    background: #f9f9f9;
}

.variation-image-wrapper:hover {
    border-color: #999;
    background: #f0f0f0;
}

.variation-image-wrapper.selected {
    border-color: #A8583C;
    background: rgba(168, 88, 60, 0.1);
}

.variation-image-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.variation-placeholder {
    width: 80px;
    height: 80px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.variation-label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

.variation-image-wrapper.selected .variation-label {
    color: #A8583C;
    font-weight: 600;
}

/* Ensure variation details always show */
.single_variation_wrap {
    display: block !important;
}

.woocommerce-variation-price {
    display: block !important;
    margin-bottom: 15px;
}

.custom-image-column-mobile-only {
    display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .product-gallery-column img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center;
        display: block;
        margin: 0;
        padding: 0;
    }
    
    /* Redefine the grid for mobile */
    .product-layout-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "info"
            "gallery";
        gap: 20px;
    }
    
    /* Assign the product-info-column to the "info" grid area */
    .product-info-column {
        grid-area: info;
    }
    
    /* Assign the product-gallery-column to the "gallery" grid area */
    .product-gallery-column {
        grid-area: gallery;
    }
    
    /* Optional: Adjust inner padding if needed */
    .fixed-content {
        padding: 20px;
        text-align: center;
    }

    /* Mobile variation selector styles */
    .variation-images {
        gap: 10px;
    }
    
    .variation-image-wrapper {
        min-width: 70px;
        padding: 8px;
    }
    
    .variation-image-wrapper img,
    .variation-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .variation-label {
        font-size: 11px;
    }
    .custom-image-column-mobile-only {
    display:  block;
}
.additional-section{
    grid-template-columns: 1fr;
   padding: 20px;

}
.custom-image-column{
    display: none !important;
}
.woocommerce-variation-add-to-cart, form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    width: 100%;
    justify-content: center;
}
}