/**
 * Himpel-Style Product Page CSS (Accurate Version)
 * Based on actual Himpel layout: https://www.himpelmall.com/mall/product/
 * 
 * Layout:
 * - Large image LEFT with thumbnails HORIZONTAL below
 * - Product info RIGHT
 * - Simple tabs bottom
 */

/* ===== RESET FLATSOME DEFAULTS ===== */
.single-product .product-main,
.single-product .product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ===== MAIN LAYOUT: 50/50 SPLIT ===== */
.single-product .product-gallery-wrapper,
.single-product .product-gallery {
    width: 100% !important;
}

/* ===== GALLERY: Large Image + Horizontal Thumbs ===== */
.single-product .product-gallery .flex-viewport {
    margin-bottom: 1rem !important;
}

/* Main Image Container */
.single-product .woocommerce-product-gallery__wrapper {
    background: #f8f9fa !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    margin-bottom: 15px !important;
}

/* Thumbnails - HORIZONTAL below main image */
.single-product .flex-control-thumbs {
    display: flex !important;
    flex-direction: row !important;
    /* HORIZONTAL */
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
}

.single-product .flex-control-thumbs li {
    flex: 0 0 80px !important;
    width: 80px !important;
    height: 80px !important;
    margin: 0 !important;
    list-style: none !important;
}

.single-product .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    opacity: 0.7 !important;
    transition: all 0.25s ease !important;
}

.single-product .flex-control-thumbs li:hover img,
.single-product .flex-control-thumbs li.flex-active img {
    border-color: #00a651 !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3) !important;
}

/* ===== PRODUCT INFO SECTION ===== */
.single-product .product-info,
.single-product .summary {
    padding-left: 2rem !important;
}

/* Title */
.single-product .product_title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
}

/* Price - Stitch Red */
.single-product .price {
    font-size: 2.25rem !important;
    font-weight: 900 !important;
    color: #E30613 !important;
    /* Stitch design: Red */
    margin: 1.5rem 0 !important;
}

.single-product .price ins,
.single-product .price .amount {
    color: #E30613 !important;
    /* Stitch design: Red */
    text-decoration: none !important;
}

.single-product .price del {
    font-size: 1.3rem !important;
    color: #999 !important;
}

/* Add to Cart Button */
.single-product .cart button.single_add_to_cart_button {
    background: #004A99 !important;
    /* Navy blue */
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 1rem 2.5rem !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.25s ease !important;
    width: 100% !important;
    text-transform: uppercase;
}

.single-product .cart button.single_add_to_cart_button:hover {
    background: #003d7e !important;
    /* Darker navy */
}

/* Quantity Input */
.single-product input.qty {
    width: 70px !important;
    height: 45px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    text-align: center;
    font-size: 1rem;
    margin-right: 1rem;
}

/* ===== TABS - Simple Underline ===== */
.single-product .woocommerce-tabs {
    margin-top: 3rem !important;
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
}

.single-product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #e0e0e0 !important;
    margin-bottom: 2rem !important;
    padding: 0 !important;
    background: transparent !important;
}

.single-product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
    color: #666 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 1rem 1.5rem !important;
    background: transparent !important;
    border: none !important;
    transition: color 0.25s ease !important;
}

.single-product .woocommerce-tabs ul.tabs li:hover a {
    color: #00a651 !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
    color: #00a651 !important;
    border-bottom: 2px solid #00a651 !important;
}

.single-product .woocommerce-tabs .panel {
    padding: 1.5rem 0 !important;
}

/* ===== SPECS TABLE ===== */
.single-product .shop_attributes,
.single-product table.variations {
    width: 100%;
    border-collapse: collapse;
}

.single-product .shop_attributes tr {
    border-bottom: 1px solid #f0f0f0;
}

.single-product .shop_attributes th,
.single-product .shop_attributes td {
    padding: 0.9rem;
    text-align: left;
}

.single-product .shop_attributes th {
    background: #f8f9fa;
    font-weight: 600;
    width: 35%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .single-product .product_title {
        font-size: 1.5rem !important;
    }

    .single-product .price {
        font-size: 1.8rem !important;
    }

    .single-product .product-info,
    .single-product .summary {
        padding-left: 0 !important;
        margin-top: 2rem;
    }
}