/*
Theme Name: POW Theme
Theme URI: http://example.com/
Author: You
Description: A full comic-book WordPress theme with animated panels, WooCommerce styling, and comic FX.
Version: 1.0
Text Domain: powtheme
*/
/* Container */
.product-extra-galleries {
    margin-top: 40px;
}

/* Section headers (Box / Instructions / Game) */
.product-extra-galleries h3 {
    font-size: 1.4rem;
    margin: 25px 0 15px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gallery container */
.product-extra-galleries .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* Gallery items */
.product-extra-galleries .gallery-item {
    background: #fafafa;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 8px;
    transition: all 0.25s ease;
    text-align: center;
}

/* Hover effect */
.product-extra-galleries .gallery-item:hover {
    border-color: #bbb;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Images */
.product-extra-galleries img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Optional: orientation-specific accents */
.gallery-item.orientation-F { border-color: #4a90e2; }
.gallery-item.orientation-B { border-color: #7b7b7b; }
.gallery-item.orientation-T { border-color: #9c27b0; }
.gallery-item.orientation-L { border-color: #009688; }
.gallery-item.orientation-R { border-color: #ff9800; }
.gallery-item.orientation-G { border-color: #8bc34a; }

/* Limit main product image size */
.single-product .woocommerce-product-gallery__wrapper img {
    max-width: 100%;      /* Prevent image from exceeding container width */
    max-height: 500px;    /* Adjust height as needed */
    width: auto;
    height: auto;
    object-fit: contain;  /* Keeps aspect ratio */
}

/* Container: boxed two-column layout like Little League */
.single-product div.product {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 40px; /* space between image and summary */
    padding: 40px 0; /* top/bottom padding */
    max-width: 1200px; /* optional, keeps layout centered */
    margin: 0 auto;
}

/* Product image gallery */
.single-product .woocommerce-product-gallery {
    flex: 0 0 360px; /* fixed width like Little League */
    max-width: 360px;
    padding: 10px;
    box-sizing: border-box;
}

/* Gallery main image styling */
.single-product .woocommerce-product-gallery__wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px auto; /* margin below image for thumbnails */
    border: 1px solid #ddd; /* optional border for boxed look */
    border-radius: 8px; /* optional rounded corners */
}

/* Thumbnails below main image */
.single-product .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.single-product .flex-control-thumbs li {
    width: 60px;
    height: 60px;
}

.single-product .flex-control-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Product summary styling */
.single-product .summary {
    flex: 1; /* take remaining space */
    padding: 10px;
    box-sizing: border-box;
}

/* Add spacing to title, price, and add-to-cart */
.single-product .summary .product_title {
    margin-bottom: 15px;
    font-size: 2em; /* match Little League font size */
}

.single-product .summary .price {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.single-product .summary .woocommerce-product-details__short-description {
    margin-bottom: 25px;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .single-product div.product {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    .single-product .woocommerce-product-gallery,
    .single-product .summary {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    .single-product .flex-control-thumbs {
        justify-content: flex-start;
    }
}