/* =========================================================
   Essa Kae product page layout
   File: assets/css/product-layout.css
   Loaded after assets/css/style.css on product pages.
   ========================================================= */

.pharma-gallery-container {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.pharma-thumbs { width: 90px; flex: 0 0 90px; }
.pharma-thumbs img {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.pharma-main-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in;
    background: #fff;
}
.pharma-main-image { position: relative; width: 100%; overflow: hidden; }
.pharma-main-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .35s ease;
}
.pharma-main-image:hover img { transform: scale(1.08); }

#zoom-lens {
    position: absolute;
    display: none;
    width: 120px;
    height: 120px;
    border: 2px solid #2b6cb0;
    background-repeat: no-repeat;
    pointer-events: none;
}

.pharma-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    padding: 60px 20px 30px;
    background: rgba(255,255,255,.97);
    align-items: center;
    justify-content: center;
}
.pharma-lightbox.is-open { display: flex; }
.pharma-lightbox img {
    display: block;
    max-width: 90%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
}
.pharma-lightbox-close {
    position: absolute;
    top: 12px;
    right: 24px;
    color: #222;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

.pharma-product-title { margin-bottom: 12px; font-weight: 600; line-height: 1.35; }
.pharma-product-desc { line-height: 1.8; }
.pharma-highlights { margin-top: 18px; padding-left: 0; list-style: none; }
.pharma-highlights li { margin-bottom: 10px; line-height: 1.65; }

.pharma-tabs { margin-top: 45px; }
.pharma-tabs .nav-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #dee2e6; }
.pharma-tabs .nav-link {
    display: block;
    padding: 12px 16px;
    color: #333;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
}
.pharma-tabs .nav-link:hover { color: #2b6cb0; }
.pharma-tabs .nav-link.active {
    color: #2b6cb0;
    background: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-top: 3px solid #2b6cb0;
}
.pharma-tab-content {
    padding: 25px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: 0;
}
.pharma-tab-content h4 { margin: 0 0 15px; font-size: 20px; }
.pharma-tab-content p { line-height: 1.8; }
.pharma-tab-content .table { margin-bottom: 0; }
.pharma-tab-content .table th { width: 34%; }
.neo-variant-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.neo-variant-list span {
    display: inline-flex;
    min-width: 72px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #dce5ef;
    border-radius: 6px;
    background: #f7faff;
    color: #2b6cb0;
    font-weight: 700;
}
.related-products-slider img { display: block; width: 100%; height: auto; border-radius: 8px; }
.related-products-slider h5 { margin-top: 12px; }

@media (max-width: 767px) {
    .pharma-gallery-container { gap: 10px; }
    .pharma-thumbs { width: 65px; flex-basis: 65px; }
    .pharma-tabs { margin-top: 30px; }
    .pharma-tabs .nav-link { padding: 9px 11px; font-size: 13px; }
    .pharma-tab-content { padding: 16px; }
    .pharma-tab-content .table th { width: 42%; }
    .pharma-lightbox img { max-width: 96%; }
    .pharma-lightbox-close { right: 14px; }
}
