/* ========== صفحه محصول: طراحی برجسته + زوم مدرن ========== */

.product-main-wrapper {
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    padding: 24px 16px 32px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 40%, #fff7ed 100%);
    box-shadow:
        0 16px 50px -12px rgba(249, 115, 22, 0.28),
        0 0 0 1px rgba(249, 115, 22, 0.12),
        0 0 80px -20px rgba(251, 146, 60, 0.22);
}
.product-main-wrapper::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.18) 0%, transparent 70%);
}
.product-main-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -8%;
    width: 320px;
    height: 320px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
}
.product-main-wrapper > * {
    position: relative;
    z-index: 1;
}

.product-info-panel {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%);
    border-radius: 22px;
    padding: 28px 30px;
    box-shadow:
        0 12px 40px -12px rgba(20, 184, 166, 0.35),
        0 0 0 1px rgba(20, 184, 166, 0.12),
        0 0 60px -15px rgba(45, 212, 191, 0.25);
    position: relative;
    overflow: hidden;
}
.product-info-panel::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.product-info-panel > * {
    position: relative;
    z-index: 1;
}

.product-gallery-panel {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 8px 28px -8px rgba(0, 0, 0, 0.12);
}

.product-zoom-box {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    cursor: zoom-in;
    user-select: none;
}
.product-zoom-box.is-zooming {
    cursor: crosshair;
}
.product-main-image {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.12s ease-out;
    transform-origin: center center;
    pointer-events: none;
    /* جلوگیری از ته رنگ آبی */
    filter: none !important;
    background: transparent !important;
}
.product-zoom-box.is-zooming .product-main-image {
    transform: scale(2.2);
}

.foroshgah-carousel-img {
    cursor: pointer;
    height: 68px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.foroshgah-img-carousel p {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 4px;
    color: #64748b;
}

.pTitle {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f766e;
    margin-bottom: 0.5rem;
}
.storeTitle {
    color: #64748b;
    margin: 0 0.25rem 0 0;
}
.mainPrice .price {
    font-weight: 800;
    color: #0d9488;
    margin: 0 0.35rem;
}
.starIcon { color: #f59e0b; }
.verified-images { width: 36px; height: auto; }

.btn-teal, .addCartButton {
    background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
    border: none !important;
    color: #fff !important;
}
.btn-outline-teal, .addCartButton.Joziat {
    border: 1.5px solid #0d9488 !important;
    color: #0d9488 !important;
    background: transparent !important;
}

.product-body-panel {
    background: #fff;
    border-radius: 18px;
    padding: 24px 28px;
    margin-top: 20px;
    box-shadow: 0 6px 24px -8px rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.08);
}
.mahsol-desc { line-height: 1.8; }

/* ========== لایت‌باکس: تیره شفاف، بدون آبی ========== */
.product-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92) !important;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin: 0;
    border: 0;
}
.product-lightbox.active {
    display: flex !important;
}
.product-lightbox img {
    max-width: min(94vw, 1000px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: transparent !important;
    filter: none !important;
    /* حذف هرگونه ته‌رنگ */
    mix-blend-mode: normal !important;
    opacity: 1 !important;
}
.product-lightbox-close {
    position: fixed;
    top: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #111;
    font-size: 24px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    z-index: 100000;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

@media (max-width: 767.98px) {
    .product-zoom-box.is-zooming .product-main-image {
        transform: none;
    }
    .product-main-wrapper {
        padding: 16px 10px 24px;
        border-radius: 14px;
    }
}
