/* ================================================
   Entech Supply - WooCommerce Single Product Page
   ================================================ */

/* ── Fix: Protect header nav from WooCommerce list styles ─── */
.woocommerce #site-header li,
.woocommerce-page #site-header li {
    margin-bottom: 0 !important;
}

/* ---- Wrap entire product in clean layout ---- */
.woocommerce div.product {
    padding: 60px 0;
}

/* ---- Two-column layout: gallery left, summary right ---- */
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .entry-summary {
    float: none;
    width: 100%;
}

@media (min-width: 768px) {
    .woocommerce div.product {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        column-gap: 60px;
        align-items: start;
    }

    .woocommerce div.product .woocommerce-product-gallery {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .woocommerce div.product .entry-summary {
        grid-column: 2;
        grid-row: 1;
    }

    .woocommerce div.product .woocommerce-tabs {
        display: none; /* hide tabs section; description is inside summary */
    }
}

/* ---- Main product image ---- */
.woocommerce div.product .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* ---- Thumbnails row ---- */
.woocommerce div.product .flex-control-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.woocommerce div.product .flex-control-thumbs li {
    flex: 0 0 calc(33.333% - 8px);
    max-width: 150px;
}

.woocommerce div.product .flex-control-thumbs li img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.woocommerce div.product .flex-control-thumbs li img:hover,
.woocommerce div.product .flex-control-thumbs li img.flex-active {
    border-color: #1428A0;
}

/* ---- Product title ---- */
.entech-product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 18px;
}

/* ---- Short description (the bullet list content) ---- */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 28px;
}

.woocommerce div.product .woocommerce-product-details__short-description p {
    margin-bottom: 12px;
}

.woocommerce div.product .woocommerce-product-details__short-description ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.woocommerce div.product .woocommerce-product-details__short-description ul li {
    margin-bottom: 6px;
}

/* ---- Long description (tab content) — shown inline ---- */
.entech-product-description {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 28px;
}

.entech-product-description p { margin-bottom: 12px; }

.entech-product-description ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.entech-product-description ul li { margin-bottom: 6px; }

/* ---- CTA button "Contact a sales advisor" ---- */
.entech-product-cta {
    margin-top: 8px;
}

.entech-product-cta-btn {
    display: block;
    width: 100%;
    background-color: #1428A0;
    color: #ffffff !important;
    text-align: center;
    padding: 16px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.entech-product-cta-btn:hover {
    background-color: #0d1c72;
    color: #ffffff !important;
    text-decoration: none;
}

/* ---- Hide WooCommerce breadcrumb on product page ---- */
.woocommerce .woocommerce-breadcrumb {
    display: none;
}

/* ---- Hide sale badge ---- */
.woocommerce span.onsale {
    display: none;
}

/* ---- Remove default WooCommerce product image border/zoom icon ---- */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    display: none;
}

/* ---- Woo tabs: hide entirely, we inject description inline ---- */
.woocommerce div.product .woocommerce-tabs {
    display: none;
}

/* ---- Related products: hidden via hook, but belt+suspenders ---- */
.woocommerce .related.products,
.woocommerce .up-sells.upsells.products {
    display: none;
}

/* ---- Wrapper spacing ---- */
.woocommerce-page .site-main,
.woocommerce .site-main {
    padding: 0;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .entech-product-title {
        font-size: 1.5rem;
    }

    .woocommerce div.product {
        padding: 32px 0;
    }

    .woocommerce div.product .flex-control-thumbs li {
        flex: 0 0 calc(33.333% - 8px);
    }
}


.woocommerce img, .woocommerce-page img{
    height: 100% !important;
}