/* ========================================
   CLS Prevention - Product Page Layout
   فقط برای صفحه محصول با کلاس product-page-row
   ======================================== */

/* ========================================
   Product Gallery - بدون اسلایدر برای LCP بهتر
   ======================================== */

/* عکس اصلی محصول */
.product-gallery__featured {
    position: relative;
    min-height: 300px;
}

/* دکمه زوم */
.product-gallery__zoom {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.2s;
}

.product-gallery__zoom:hover {
    background: #fff;
    transform: scale(1.1);
}

.product-gallery__zoom svg {
    fill: #333;
}

.product-gallery__featured .product-main-image {
    display: block;
    width: 100%;
}

.product-gallery__featured .image__body {
    position: relative;
    padding-bottom: 100%; /* نسبت 1:1 */
    overflow: hidden;
}

.product-gallery__featured .image__tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* تامبنیل‌ها */
.product-thumbnails-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.product-gallery__thumbnails-item {
    width: 60px;
    height: 60px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
}

.product-gallery__thumbnails-item:hover,
.product-gallery__thumbnails-item.active {
    border-color: #1a73e8;
}

.product-gallery__thumbnails-item .image__body {
    width: 100%;
    height: 100%;
}

.product-gallery__thumbnails-item .image__tag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Container row - فقط صفحه محصول */
.product-page-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.product-page-row .col_box_1_pro,
.product-page-row .col_box_2_pro {
    contain: layout style;
    box-sizing: border-box;
}

/* فاصله ستون‌ها - فقط صفحه محصول (چون row-reverse است، margin برعکس می‌شود) */
@media (min-width: 1400px) {
    .product-page-row .col_box_2_pro {
        margin-right: 0 !important;
        margin-left: 40px !important;
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .product-page-row .col_box_2_pro {
        margin-right: 0 !important;
        margin-left: 32px !important;
    }
}
.product-gallery__featured .image {
  max-width: none !important;
  
}
/* دسکتاپ بزرگ */
@media (min-width: 1400px) {
    .product-page-row .col_box_1_pro {
        flex: 0 0 calc(100% - 310px);
        max-width: calc(100% - 310px);
        min-height: 600px;
        padding-left: 40px;
    }
    .product-page-row .col_box_2_pro {
        flex: 0 0 270px;
        max-width: 270px;
        min-height: 400px;
    }
}

/* دسکتاپ متوسط */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .product-page-row .col_box_1_pro {
        flex: 0 0 calc(100% - 292px);
        max-width: calc(100% - 292px);
        min-height: 600px;
        padding-left: 32px;
    }
    .product-page-row .col_box_2_pro {
        flex: 0 0 260px;
        max-width: 260px;
        min-height: 400px;
    }
}

/* موبایل و تبلت - ستون‌ها زیر هم */
@media (max-width: 991.98px) {
    .product-page-row {
        flex-direction: column;
    }
    .product-page-row .col_box_1_pro,
    .product-page-row .col_box_2_pro {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
    }
    .product-page-row .col_box_2_pro {
        order: 2;
        margin-top: 30px;
    }
    .product-page-row .col_box_1_pro {
        order: 1;
    }
}
