/**
 * Flatsome UX Builder Product Page - Himpel Style
 * Targets: Custom Product Layout (Block ID 1561)
 * 
 * This CSS styles the Flatsome UX Builder product page
 * to match Himpel's clean industrial design
 */

/* ===== GENERAL PRODUCT PAGE ===== */
.single-product .product-page-custom {
    background: #ffffff;
}

/* ===== PRODUCT GALLERY - Vertical Thumbnails ===== */
/* Force thumbnails to display vertically on LEFT */
.product-gallery {
    display: flex !important;
    flex-direction: row-reverse !important;
    /* Main image on right, thumbs on left */
    gap: 1rem !important;
}

.product-gallery .flex-viewport {
    order: 2 !important;
    /* Main image second (right side) */
    flex: 1 !important;
}

.product-gallery .flex-control-thumbs {
    order: 1 !important;
    /* Thumbnails first (left side) */
    display: flex !important;
    flex-direction: column !important;
    /* Vertical */
    gap: 0.75rem !important;
    width: 90px !important;
    margin: 0 !important;
}

.product-gallery .flex-control-thumbs li {
    width: 90px !important;
    height: 90px !important;
    margin: 0 !important;
}

.product-gallery .flex-control-thumbs li img {
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    opacity: 0.6;
}

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

/* Main Gallery Image */
.product-gallery .woocommerce-product-gallery__wrapper {
    background: #f8f9fa;
    border-radius: 2px !important;
    overflow: hidden;
}

/* ===== PRODUCT INFO SECTION ===== */
/* Category */
.product_meta .posted_in {
    color: #999 !important;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Product Title */
.product_title.entry-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
}

/* SKU */
.product_meta .sku_wrapper {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* ===== PRICE - BIG GREEN (Himpel Style) ===== */
.summary .price {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #2ecc71 !important;
    margin: 2rem 0 !important;
    line-height: 1 !important;
}

.summary .price ins,
.summary .price .amount {
    color: #2ecc71 !important;
    text-decoration: none !important;
}

.summary .price del {
    font-size: 1.5rem !important;
    color: #95a5a6 !important;
    opacity: 0.7;
}

/* ===== ADD TO CART SECTION ===== */
.cart {
    margin: 2rem 0 !important;
}

.cart .quantity {
    margin-right: 1rem;
}

.cart input.qty {
    width: 80px !important;
    height: 50px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.cart button.single_add_to_cart_button {
    background: #2ecc71 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    transition: background 0.3s ease !important;
    text-transform: uppercase;
}

.cart button.single_add_to_cart_button:hover {
    background: #27ae60 !important;
}

/* ===== STOCK STATUS ===== */
.stock {
    font-weight: 700 !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 50px !important;
    display: inline-block !important;
    font-size: 0.9rem !important;
    margin: 1rem 0 !important;
}

.stock.in-stock {
    background: #d5f4e6 !important;
    color: #27ae60 !important;
}

.stock.out-of-stock {
    background: #fadbd8 !important;
    color: #e74c3c !important;
}

/* ===== TABS - Simple Underline (Himpel Style) ===== */
.woocommerce-tabs {
    margin-top: 4rem !important;
}

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

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

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

.woocommerce-tabs ul.tabs li a:hover {
    color: #2ecc71 !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #2ecc71 !important;
    border-bottom: 3px solid #2ecc71 !important;
}

.woocommerce-tabs .panel {
    padding: 2rem 0 !important;
    background: transparent !important;
}

/* ===== SPECS TABLE ===== */
.shop_attributes {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.shop_attributes tr {
    border-bottom: 1px solid #e0e0e0;
}

.shop_attributes tr:last-child {
    border-bottom: none;
}

.shop_attributes th,
.shop_attributes td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.shop_attributes th {
    background: #f8f9fa;
    font-weight: 700;
    width: 30%;
}

/* ===== RELATED PRODUCTS ===== */
.related.products {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.related.products h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .product-gallery {
        flex-direction: column-reverse !important;
    }

    .product-gallery .flex-control-thumbs {
        flex-direction: row !important;
        width: 100% !important;
        overflow-x: auto;
    }

    .summary .price {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .product_title.entry-title {
        font-size: 1.4rem !important;
    }

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

    .cart button.single_add_to_cart_button {
        width: 100%;
    }
}