/**
 * Himpel-Style Single Product CSS
 * Complete redesign - không dùng Flatsome styles
 */

/* ===== CONTAINER ===== */
.himpel-single-product {
    background: #ffffff;
}

.himpel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ===== BREADCRUMB ===== */
.himpel-breadcrumb {
    margin-bottom: 2rem;
}

.himpel-breadcrumb .woocommerce-breadcrumb {
    font-size: 0.9rem;
    color: #666;
}

.himpel-breadcrumb a {
    color: #2ecc71;
    text-decoration: none;
}

/* ===== MAIN PRODUCT AREA ===== */
.himpel-product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* ===== GALLERY (LEFT) ===== */
.himpel-gallery-wrapper {
    position: sticky;
    top: 100px;
    align-self: start;
}

.himpel-gallery {
    display: flex;
    gap: 1rem;
}

/* Thumbnails - Vertical on LEFT */
.himpel-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    order: 1;
    /* Thumbnails first */
}

.himpel-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.himpel-thumb:hover,
.himpel-thumb.active {
    border-color: #2ecc71;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.himpel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Image */
.himpel-main-image {
    flex: 1;
    order: 2;
    /* Main image second (to the right of thumbs) */
    background: #f8f9fa;
    border-radius: 2px;
    overflow: hidden;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.himpel-featured-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ===== PRODUCT INFO (RIGHT) ===== */
.himpel-product-info {
    padding: 1rem 0;
}

/* Category */
.himpel-category {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

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

/* SKU */
.himpel-sku {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Price - BIG GREEN */
.himpel-price {
    margin-bottom: 2rem;
}

.himpel-price .price {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #2ecc71 !important;
}

.himpel-price .amount {
    color: #2ecc71 !important;
}

/* Cart Section */
.himpel-cart-section {
    margin-bottom: 2rem;
}

.himpel-cart-section .cart {
    display: flex;
    gap: 1rem;
    align-items: center;
}

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

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

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

/* Delivery Info */
.himpel-delivery-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.himpel-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.himpel-info-row:last-child {
    border-bottom: none;
}

.himpel-label {
    color: #666;
    font-weight: 600;
}

.himpel-value {
    color: #333;
}

.himpel-value .in-stock {
    color: #2ecc71;
    font-weight: 700;
}

.himpel-value .out-of-stock {
    color: #e74c3c;
    font-weight: 700;
}

/* Contact Box */
.himpel-contact-box {
    background: #2ecc71;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.himpel-contact-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.himpel-phone {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

.himpel-phone:hover {
    text-decoration: underline;
}

/* ===== TABS SECTION ===== */
.himpel-tabs-section {
    margin: 4rem 0;
}

/* Tabs Nav - Simple Buttons */
.himpel-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.himpel-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.himpel-tab-btn:hover {
    color: #2ecc71;
}

.himpel-tab-btn.active {
    color: #2ecc71;
    border-bottom-color: #2ecc71;
}

/* Tabs Content */
.himpel-tab-panel {
    display: none;
    padding: 2rem 0;
}

.himpel-tab-panel.active {
    display: block;
}

.himpel-tab-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Specs Table */
.himpel-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.himpel-specs-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.himpel-specs-table th,
.himpel-specs-table td {
    padding: 1rem;
    text-align: left;
}

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

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .himpel-product-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .himpel-gallery-wrapper {
        position: static;
    }

    .himpel-gallery {
        flex-direction: column;
    }

    .himpel-thumbnails {
        flex-direction: row;
        order: 2;
        overflow-x: auto;
    }

    .himpel-main-image {
        order: 1;
    }
}

@media (max-width: 576px) {
    .himpel-title {
        font-size: 1.4rem;
    }

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

    .himpel-cart-section .cart {
        flex-direction: column;
    }

    .himpel-cart-section button {
        width: 100%;
    }

    .himpel-tabs-nav {
        flex-direction: column;
    }

    .himpel-tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .himpel-tab-btn.active {
        border-left-color: #2ecc71;
    }
}