﻿/* =======================================================================
   Product.css — Emperatoory Bargh (Red / Gray / White theme)

   PRODUCT DETAIL PAGE
     • Desktop  : 3-column layout in the style of Technolife
                  [ title + info ] [ gallery ] [ price + add-to-cart card ]
                  (falls back to 2 columns when the container is narrow)
     • Mobile   : single flat column in the style of Digikala
                  gallery on top, info below, sticky bottom buy-bar
                  (price on the left, add-to-cart on the right)

   NOTE: this is a CSS-only redesign. Razor markup, CMS content, JS hooks and
   all original class names / ids are untouched. The layout is achieved with
   CSS grid + display:contents on the existing wrappers.
   Requires a browser with :has() support (Chrome/Edge 105+, Safari 15.4+,
   Firefox 121+). List/category pages that also use this file are unchanged.
   ======================================================================= */
/*emperatorybargh*/
:root {
    --pg-red: #e1251b;
    --pg-red-dark: #b31d15;
    --pg-red-light: #fdeceb;
    --pg-gray-900: #23262b;
    --pg-gray-700: #52575c;
    --pg-gray-500: #8a9099;
    --pg-gray-300: #d9dcdf;
    --pg-gray-100: #f4f5f6;
    --pg-white: #ffffff;
    --pg-radius: 12px;
    --pg-radius-sm: 8px;
    --pg-radius-lg: 16px;
    --pg-shadow: 0 2px 10px rgba(35, 38, 43, 0.06);
    --pg-shadow-hover: 0 10px 24px rgba(225, 37, 27, 0.14);
    --pg-transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- generic wrappers ---------- */
.contains {
    width: 100%;
    min-height: 600px;
    background-color: var(--pg-gray-100);
    margin-top: 5px;
}

.cnl textarea, .divtextIamge textarea {
    display: block;
    width: 100%;
    height: 90px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pg-gray-900);
    background-color: var(--pg-white);
    background-image: none;
    border: 1px solid var(--pg-gray-300);
    border-radius: var(--pg-radius-sm);
    box-shadow: none;
    transition: border-color var(--pg-transition), box-shadow var(--pg-transition);
}

    .cnl textarea:hover, .divtextIamge textarea:focus {
        border-color: var(--pg-gray-500);
    }

    .cnl textarea:focus, .divtextIamge textarea:focus {
        border-color: var(--pg-red);
        outline: 0;
        box-shadow: 0 0 0 3px var(--pg-red-light);
    }

.filter-parent-text {
    padding-bottom: 13px;
    display: inline-block;
    min-width: 40px;
}

.filter-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--pg-red);
    background: var(--pg-red-light);
    color: var(--pg-red-dark);
    border-radius: 25px;
    margin-right: 20px;
    margin-top: -10px;
    font-size: 13px;
}

    .filter-text span:first-child {
        padding-left: 4px;
    }

.clearFilter {
    cursor: pointer;
    color: var(--pg-red);
    font-weight: bold;
}

.show {
    position: relative;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--pg-gray-300);
    background: var(--pg-white);
    border-radius: var(--pg-radius-lg);
    box-shadow: var(--pg-shadow);
}

/* =======================================================================
   SIDEBAR / FILTERS  (.searchPro)
   ======================================================================= */
.searchPro {
    width: 250px;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    float: right;
}

.showImage .noData {
    text-align: center;
    font-size: 18px;
    color: var(--pg-gray-500);
    padding: 60px 0px;
    background: var(--pg-white);
    border-radius: var(--pg-radius);
    border: 1px dashed var(--pg-gray-300);
}

.searchPro > div {
    border: 1px solid var(--pg-gray-300);
    background: var(--pg-white);
    border-radius: var(--pg-radius);
    box-shadow: var(--pg-shadow);
    margin-bottom: 12px;
    overflow: hidden;
}

.searchPro .ParnetTitle {
    padding: 13px 16px;
    border-bottom: 1px solid var(--pg-gray-300);
    position: relative;
    background: var(--pg-white);
}

    .searchPro .ParnetTitle ~ ul, .searchPro .ParnetTitle ~ div {
        padding-top: 16px;
    }

    .searchPro .ParnetTitle a {
        color: var(--pg-gray-900);
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

        /* accordion caret — CSS-drawn, theme-colored, animated */
        .searchPro .ParnetTitle a.down::after,
        .searchPro .ParnetTitle a.up::after {
            content: " ";
            position: absolute;
            top: 15px;
            left: 18px;
            width: 8px;
            height: 8px;
            border: solid var(--pg-gray-500);
            border-width: 0 2px 2px 0;
            background: none;
            transform: rotate(45deg);
            transition: transform var(--pg-transition), border-color var(--pg-transition);
        }

        .searchPro .ParnetTitle a.up::after {
            transform: rotate(-135deg);
            border-color: var(--pg-red);
        }

.searchPro > div:nth-child(2) .ParnetTitle a.down, .searchPro > div:nth-child(2) .ParnetTitle a.up {
    background: none;
}

.searchPro > div:nth-child(2) ul li {
    position: relative;
}

    .searchPro > div:nth-child(2) ul li a {
        color: var(--pg-gray-700);
        line-height: 32px;
        padding-right: 20px;
        font-size: 13px;
        transition: color var(--pg-transition);
    }

        .searchPro > div:nth-child(2) ul li a:hover {
            color: var(--pg-red);
            text-decoration: none;
        }

    .searchPro > div:nth-child(2) ul li:before {
        content: "\f078";
        font-family: FontAwesome;
        position: absolute;
        top: 0px;
        right: 0;
        color: var(--pg-gray-500);
        font-size: 11px;
        line-height: 2.6;
    }

    .searchPro > div:nth-child(2) ul li.end:before {
        content: "\f053";
    }

.searchPro ul {
    padding-right: 10px;
}

    .searchPro ul li {
        list-style: none;
    }

        .searchPro ul li label {
            font-size: 13px;
            width: 100%;
            margin-bottom: 10px;
            position: relative;
            display: inline-flex;
            font-weight: normal;
            cursor: pointer;
            color: var(--pg-gray-700);
        }

            .searchPro ul li label span {
                display: inline-block;
                margin-top: 1px;
                width: 100%;
                font-family: iranNum;
                margin-right: 15px;
            }

            .searchPro ul li label:before {
                position: absolute;
                width: 4px;
                height: 4px;
                content: " ";
                padding: 9px;
                background: var(--pg-white);
                border: 1px solid var(--pg-gray-300);
                border-radius: 5px;
                z-index: 100;
                transition: border-color var(--pg-transition);
            }

            .searchPro ul li label.active:before {
                position: absolute;
                font-family: FontAwesome;
                display: inline-table;
                top: 0px;
                right: 14px;
                content: "\f00c";
                color: var(--pg-white);
                font-size: 14px;
                line-height: 14px;
                padding: 2px;
                background: var(--pg-red);
                border: 1px solid var(--pg-red-dark);
                border-radius: 5px;
                z-index: 100;
            }

/* =======================================================================
   PRODUCT GRID AREA (.showImage)
   ======================================================================= */
.showImage {
    position: relative;
    margin-top: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    width: calc(100% - 280px);
    float: right;
    border-radius: var(--pg-radius);
}

    .showImage:after, .show:after, #color-Item:after, .tab-pane .row:after {
        clear: both;
        display: table;
        content: "";
    }

    .showImage:before, .show:before, #color-Item:before, .tab-pane .row:before {
        display: table;
        content: "";
    }
/* صفحه‌ی لیست محصولات: گرید با ستون‌های هم‌اندازه و فاصله‌ی کم */
.showImage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
    align-content: start;
    align-items: stretch;
}

    .showImage::before,
    .showImage::after {
        content: none;
        display: none;
    }

    /* آیتم‌هایی که کارت محصول نیستند، کل عرض را بگیرند */
    .showImage > .TopImage,
    .showImage > #mother,
    .showImage > .boxBanner-g,
    .showImage > .AppItem,
    .showImage > .listHeader,
    .showImage > .noData,
    .showImage > .page,
    .showImage > .groupTitle,
    .showImage > script {
        grid-column: 1 / -1;
        width: 100%;
    }
.tab-pane .row .cnl {
    padding-right: 30px;
    float: right;
    color: var(--pg-gray-700);
}

.tab-pane .row .lbl {
    width: 100px;
    float: right;
}

.zoomWindowContainer .zoomWindow {
    height: 500px !important;
    top: -50px !important;
    border: 1px solid var(--pg-gray-300) !important;
    border-radius: var(--pg-radius-sm);
}

.tedCart .pcode {
    padding-right: 0px;
}

    .tedCart .pcode div {
        padding-right: 0px;
        padding-top: 5px;
    }

.show.Rel-pro {
    padding-bottom: 20px;
    padding-right: 10px;
    padding-left: 10px;
}

    .show.Rel-pro .showTitle {
        margin: 20px;
        margin-right: 10px;
    }

        .show.Rel-pro .showTitle span:first-child {
            font-size: 20px;
            font-weight: 700;
            color: var(--pg-gray-900);
            padding-left: 5px;
            border-right: 4px solid var(--pg-red);
            padding-right: 10px;
        }

.odTitle {
    margin-right: 20px;
    margin-top: 20px;
}

    .odTitle .til {
        font-size: 26px;
        color: var(--pg-gray-900);
        line-height: 40px;
        font-weight: 700;
    }

    .odTitle .tilname {
        margin-right: 10px;
        color: var(--pg-gray-500);
    }

.odesc {
    margin: 20px;
    margin-top: 30px;
    display: flex;
}

    .odesc > div:first-child {
        width: 200px;
        display: inline-block;
        background-image: url(Image/pinfo.png);
        background-repeat: no-repeat;
        background-position: center;
        height: 200px;
    }

    .odesc > div:last-child {
        width: calc(100% - 200px);
        display: inline-block;
        padding: 20px 10px;
        border-radius: var(--pg-radius-sm);
        background-color: var(--pg-gray-100);
    }

.colordetails .captions span {
    color: var(--pg-gray-500);
}

.SPrice-link {
    height: 76px;
    text-align: center;
    padding-top: 22px;
}

    .SPrice-link a {
        display: inline-block;
        padding: 10px 34px;
        background-color: var(--pg-red);
        color: var(--pg-white);
        border-radius: 24px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: background-color var(--pg-transition), transform var(--pg-transition);
    }

        .SPrice-link a:hover {
            background-color: var(--pg-red-dark);
            transform: translateY(-1px);
        }

.flRight {
    float: right;
}

#color {
    border: 1px solid var(--pg-gray-300);
    border-radius: var(--pg-radius-sm);
    box-shadow: none;
}

    #color .header-color {
        padding: 8px 10px;
        background-color: var(--pg-gray-100);
        border-bottom: 1px solid var(--pg-gray-300);
        text-align: center;
        box-shadow: none;
    }

    #color h3 {
        color: var(--pg-gray-700);
        margin-top: 0px;
        margin-bottom: 0px;
        font-size: 15px;
    }

#color-Item {
    height: 400px;
    width: 100%;
    margin-top: 10px;
    overflow-y: auto;
}

.colordetails {
    float: right;
    height: 80px;
    width: 80px;
    text-align: center;
    margin-right: 5px;
    margin-left: 5px;
}

.colorStyle {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.colordetails img {
    height: 80px;
    width: 80px;
    border-radius: 6px;
    border: 1px solid var(--pg-gray-300);
}

.subgroupItem .headers {
    margin-bottom: 14px;
    margin-top: 30px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--pg-gray-900);
    border-right: 4px solid var(--pg-red);
    padding-right: 10px;
}

.subgroupItem {
    margin-top: 20px;
    margin-right: 30px;
    margin-left: 30px;
}

    .subgroupItem .htitle {
        margin-top: -24.5px;
        margin-right: 12px;
        font-size: 18px;
        color: var(--pg-gray-500);
    }

.subgroupItem2 i:before {
    content: "\f04d";
    font-size: .5em;
}

.subgroupItem2 .htitle {
    margin-top: -20px;
    margin-right: 15px;
}

#sayer .tab-content #Qustions, #sayer .tab-content #Comments {
    padding: 30px 50px;
}

    #sayer .tab-content #Qustions label, #sayer .tab-content #Comments label {
        font-size: 15px;
        margin-bottom: 10px;
        color: var(--pg-gray-900);
    }

    #sayer .tab-content #Qustions .cnl textarea, #sayer .tab-content #Comments .cnl textarea {
        font-size: 14px;
        padding: 14px;
        height: 150px;
    }

.tab-content {
    margin-bottom: 20px;
    margin-top: 10px;
}

.tab-pane .row {
    margin-right: 0px;
    margin-left: 0px;
}

.fa-caret-left {
    color: var(--pg-red);
    width: 10px;
    height: 10px;
}

/* =======================================================================
   PRODUCT CARDS (grid) — .gallery / .galleryItems / .box1
   (also used by the "related products" sliders on the detail page)
   ======================================================================= */
.gallery {
}

.gallerys:after {
    clear: both;
    content: "";
    display: table;
}

.gallerys:before {
    content: "";
    display: table;
}

.galleryItems {
    float: none;
    width: auto !important;
    position: relative;
    min-height: 1px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    display: flex;
}

.gallerys {
    float: right;
    width: 25%;
    position: relative;
    min-height: 1px;
    padding-left: 2px;
    padding-right: 2px;
    margin-top: 5px;
}

.galleryItem {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 10px;
    box-shadow: var(--pg-shadow);
    border-radius: var(--pg-radius);
}

.gallery {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
}

    .gallery > a {
        display: flex;
        width: 100%;
        min-width: 0;
        color: inherit;
        text-decoration: none;
    }

    .gallery .box1 {
        background-color: var(--pg-white);
        padding: 12px;
        padding-bottom: 12px;
        border: 1px solid var(--pg-gray-300);
        box-shadow: var(--pg-shadow);
        font-family: iranNum;
        border-radius: var(--pg-radius);
        transition: box-shadow var(--pg-transition), border-color var(--pg-transition), transform var(--pg-transition);
        width: 100%;
        box-sizing: border-box;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

        .gallery .box1:hover {
            border-color: var(--pg-red);
            box-shadow: var(--pg-shadow-hover);
            transform: translateY(-3px);
        }

.time span {
    font-size: 14px;
}

.gallery .boxspec1 {
    background-color: var(--pg-white);
    position: relative;
    text-align: center;
    padding: 10px;
    height: 380px;
    border-radius: var(--pg-radius);
    border: 1px solid var(--pg-gray-300);
    box-shadow: var(--pg-shadow);
    font-family: iranNum;
    transition: box-shadow var(--pg-transition), transform var(--pg-transition);
}

    .gallery .boxspec1:hover {
        box-shadow: var(--pg-shadow-hover);
        transform: translateY(-3px);
    }

.gallery .box2 {
    margin-top: 5px;
    padding: 0px 10px;
    border: 1px solid var(--pg-gray-300);
    background-color: var(--pg-gray-100);
    box-shadow: none;
    border-radius: var(--pg-radius-sm);
}

.gallery .galleryIamgeSpec {
    height: 180px;
    text-align: center;
    display: inline-block;
    margin-top: 2px;
}

.gallery .galleryIamge {
    height: 200px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--pg-radius-sm);
    background: var(--pg-gray-100);
}

    /* smooth crossfade on hover instead of hard display:none swap */
    .gallery .galleryIamge img {
        position: absolute;
        inset: 0;
        margin: auto;
        width: auto;
        height: auto;
        max-width: 92%;
        max-height: 92%;
        object-fit: contain;
        transition: opacity .35s ease, transform .35s ease;
    }

        .gallery .galleryIamge img:first-child {
            opacity: 1;
            z-index: 2;
        }

        .gallery .galleryIamge img:last-child {
            opacity: 0;
            z-index: 1;
        }

    .gallery .galleryIamge:hover img:last-child {
        opacity: 1;
    }

    .gallery .galleryIamge:hover img:first-child {
        opacity: 0;
    }

.gallery .box1:hover .galleryIamge img {
    transform: scale(1.05);
}

/* out-of-stock visual cue */
.gallery .box1:has(.notTedad) .galleryIamge {
    opacity: .65;
}

.galleryItem .galleryIamge {
    height: 200px;
    position: relative;
}

.gallery .galleryState {
    height: 40px;
}

    .gallery .galleryState .MT {
        color: #1fa84c;
        font-size: 13px;
        font-weight: 600;
    }

    .gallery .galleryState .NMT {
        color: var(--pg-red);
        font-size: 13px;
        font-weight: 600;
    }

.galleryItem img {
    width: 100%;
    height: 100%;
    transition: transform .35s ease;
}

.gallery img {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 190px;
    transition: transform .35s ease;
}

.sep .probtn {
    z-index: 1000;
    margin: 10px 10%;
    text-align: center;
    bottom: 0px;
}

.probtnSpec {
    z-index: 1000;
    text-align: center;
    bottom: 0px;
    margin-top: 5px;
}

    .probtnSpec a:not(:first-child) {
        background-color: var(--pg-red);
        display: inline-block;
        cursor: pointer;
        padding: 6px 12px;
        color: var(--pg-white);
        font-size: 12px;
        border-radius: 4px;
    }

    .probtnSpec a:last-child {
        padding: 6px 20px;
    }

    .probtnSpec a div {
        width: 30px;
        height: 30px;
        color: var(--pg-white);
        padding-top: 5px;
    }

    .probtnSpec a i {
        font-size: 16px;
    }

.probtn a {
    float: right;
    margin: 0px 10px;
    background-color: var(--pg-gray-100);
    cursor: pointer;
    border-radius: 6px;
    transition: background-color var(--pg-transition);
}

    .probtn a:hover {
        background-color: var(--pg-red-light);
    }

    .probtn a div {
        width: 34px;
        height: 34px;
        padding: 5px;
    }

        .probtn a div img {
            width: 24px;
            height: 24px;
        }

/* ---- price block (cards) ---- */
.galleryPrice {
    height: auto;
    min-height: 30px;
    padding: 8px 5px 0;
    margin-top: auto;
    text-align: center;
    font-family: iranNum;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.galleryItems .quick-add {
    position: absolute;
    z-index: 4;
    bottom: 10px;
    left: 20px;
    min-width: 24px;
    border-radius: var(--pg-radius-sm);
    background-clip: padding-box;
}

    .galleryItems .quick-add .default-label {
        position: absolute;
        width: auto;
        height: 27px;
        line-height: 22px;
        display: block;
        text-align: center;
    }

    .galleryItems .quick-add:hover .default-label {
        display: none;
    }

    .galleryItems .quick-add .default-label .icons {
        background: url('Image/Editor/add.png');
        background-size: cover;
        width: 24px;
        height: 24px;
        margin: 4px 0 0 3px;
    }

    .galleryItems .quick-add .hover-label:not(.tablet-add-to-cart) {
        transition: all 200ms linear;
    }

    .galleryItems .quick-add .hover-label {
        width: 24px;
        height: 24px;
        margin-top: 4px;
        line-height: 24px;
        overflow: hidden;
        border-radius: var(--pg-radius-sm);
    }

    .galleryItems .quick-add:hover .hover-label {
        width: 180px;
        background: var(--pg-red);
    }

    .galleryItems .quick-add .working-label {
        opacity: 0;
        position: absolute;
        top: 0;
        border-radius: var(--pg-radius-sm);
        height: 27px;
        line-height: 27px;
        background: var(--pg-red-dark);
        text-align: center;
        transition: all 200ms linear;
    }

        .galleryItems .quick-add .working-label .icon {
            padding: 5px;
        }

.hover-label {
    border-radius: var(--pg-radius-sm);
    background-clip: padding-box;
    text-align: center;
}

.galleryItems .quick-add .hover-label:not(.tablet-add-to-cart) span {
    padding: 0 0 0 20px;
    color: var(--pg-white);
    opacity: 0;
    transition: opacity 100ms 100ms linear, padding 200ms linear;
}

.galleryItems .quick-add:hover .hover-label span {
    opacity: 1;
    padding: 0;
}

.galleryItems .quick-add .hover-label:not(.tablet-add-to-cart) span {
    font-size: 14px;
}

.mobile, .ui-loader, #addToCart .ui-btn-text, .wishListAdd .ui-btn-text {
    display: none !important;
    font-size: 0;
    height: 0;
    width: 0;
}

/* base quantity-button (visual details are set in the detail-page section) */
.btn2 {
    display: inline-block;
    margin-bottom: 0;
    width: 44px;
    height: 40px;
    border: 1px solid var(--pg-gray-300);
    text-align: center;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    white-space: nowrap;
    padding-top: 5px !important;
    font-size: 18px;
    font-weight: normal;
    line-height: 1.42857143;
    user-select: none;
    color: var(--pg-gray-900);
    transition: background-color var(--pg-transition);
}

    .btn2:focus,
    .btn2:active:focus,
    .btn2.active:focus,
    .btn2.focus,
    .btn2:active.focus,
    .btn2.active.focus {
        outline: thin dotted;
        outline: 5px auto -webkit-focus-ring-color;
        outline-offset: -2px;
    }

    .btn2:hover,
    .btn2:focus,
    .btn2.focus {
        color: var(--pg-red);
        background-color: var(--pg-red-light);
        text-decoration: none;
    }

    .btn2:active,
    .btn2.active {
        outline: 0;
        background-color: var(--pg-gray-300);
        background-image: none;
    }

    .btn2.disabled,
    .btn2[disabled],
    fieldset[disabled] .btn2 {
        cursor: not-allowed;
        pointer-events: none;
        opacity: 0.65;
        box-shadow: none;
    }

.Keraya {
    background-color: var(--pg-white);
    border-radius: var(--pg-radius-sm) var(--pg-radius-sm) 0 0;
    position: absolute;
    width: 400px;
    padding-right: 0px;
    z-index: 1200;
    border: 1px solid var(--pg-gray-300);
    box-shadow: var(--pg-shadow-hover);
    box-sizing: border-box;
    display: none;
}

    .all4:hover ~ .Keraya, .arrow:hover ~ .Keraya, .Keraya:hover {
        display: block;
    }

    .Keraya li {
        list-style: none;
        padding: 10px;
        cursor: pointer;
        border-bottom: 1px solid var(--pg-gray-300);
    }

        .Keraya li span {
            font-size: 18px;
        }

            .Keraya li span.roz {
                float: right;
            }

            .Keraya li span.prices {
                float: left;
                color: var(--pg-red);
                font-weight: 700;
            }

        .Keraya li:last-child {
            border-bottom: none;
        }

        .Keraya li:hover {
            background-color: var(--pg-gray-100);
        }

        .Keraya li.active {
            background-color: var(--pg-gray-700);
            cursor: default;
        }

            .Keraya li.active span {
                color: var(--pg-white);
                font-weight: bold;
            }

.pcode .Sdate div {
    padding-right: 0px;
    padding-top: 0px;
}

.row .pRight, .row .pLeft {
    width: 48%;
    margin-left: 10px;
    float: right;
}

.showImage .showImage .galleryPrice .pfirst2 {
    font-size: 12px;
    color: var(--pg-gray-500);
    display: inline-block;
    padding-right: 4px;
}

.galleryPriceSpec .pfirst2 {
    font-size: 14px;
    color: var(--pg-gray-500);
    line-height: 20px;
    display: inline-block;
    padding-right: 4px;
}

.galleryPrice .Lpfirst {
    color: var(--pg-gray-900);
    float: right;
    font-weight: bold;
    width: 80px;
    text-align: left;
}

.galleryPrice .Lpfirst2 {
    color: var(--pg-gray-900);
    float: right;
    font-weight: bold;
    width: 40px;
    text-align: left;
}

.galleryPrice.pfirst {
    font-size: 13px;
    color: var(--pg-gray-500);
    text-decoration: line-through;
}

.galleryPrice.pfirst3 {
    font-size: 15px;
    color: var(--pg-gray-500);
    text-decoration: line-through;
}

.galleryPriceSpec .takh {
    text-decoration: line-through;
    display: block;
    color: var(--pg-gray-500);
}

.galleryPrice .takh {
    text-decoration: line-through;
    display: inline-block;
    color: var(--pg-gray-500);
    font-size: 12px;
    order: 1;
}

.galleryPrice .all {
    color: var(--pg-red);
    font-size: 15px;
    font-weight: 700;
    display: inline-block;
    order: 2;
}

.galleryPriceSpec .all {
    color: var(--pg-red);
    font-size: 17px;
    font-weight: 700;
    display: inline-block;
}

.galleryPriceSpec {
    text-align: center;
    padding: 5px;
    font-size: 17px;
    height: 44px;
    font-family: iranNum;
}

.times span {
    font-size: 14px;
}

.galleryPrice.all3 {
    color: #1fa84c;
    font-size: 18px;
}

.pcode .arrow {
    width: 5%;
    height: 60px;
    box-sizing: border-box;
    border: 1px solid var(--pg-gray-300);
    border-right: 0;
    padding-top: 8px;
    padding-bottom: 6px;
    position: relative;
    transition: all 200ms linear;
}

.arrow.icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 8px 0;
    border-color: var(--pg-gray-700) transparent transparent;
    top: 25px;
    left: 10px;
}

.galleryPrice.all4 {
    border: 1px solid var(--pg-gray-300);
    border-left: 0px;
    padding: 5px;
    padding-left: 100px;
    color: #1fa84c;
    font-size: 18px;
}

.galleryPrice.all2 {
    text-align: center;
}

.galleryPrice.notTedad {
    font-size: 13px;
    padding: 2px;
}

    .galleryPrice.notTedad span {
        color: var(--pg-white);
        background-color: var(--pg-gray-500);
        padding: 3px 12px;
        border-radius: 10px;
    }

.galleryPriceSpec .notTedad span {
    color: var(--pg-white);
    background-color: var(--pg-gray-500);
    padding: 2px 12px;
    font-size: 13px;
    border-radius: 10px;
}

.galleryTitle {
    transition: color var(--pg-transition);
    color: var(--pg-gray-900);
    font-size: 13px;
    margin: 10px auto;
    text-align: right;
    text-shadow: none;
}

.gallery .galleryTitle, .gallery .galleryTitleSpec {
    transition: color var(--pg-transition);
    height: 42px;
    color: var(--pg-gray-900);
    font-size: 13px;
    margin: 8px auto 4px;
    text-align: center;
    overflow: hidden;
    text-shadow: none;
    flex: 1;
}

.gallery .galleryTitleSpec {
    height: 60px;
    margin-top: 5px;
}

.gallery .box1:hover .galleryTitle span {
    color: var(--pg-red);
}

.gallery .galleryTitle span {
    line-height: 21px;
    padding-bottom: 2px;
    overflow: hidden;
    transition: color var(--pg-transition);
}

.gallery .galleryTitleSpec span {
    line-height: 28px;
    font-size: 15px;
}

.divtr, .divtl, .divbr, .divbl {
    width: 50%;
    height: 50%;
    position: absolute;
    background: rgba(35, 38, 43, 0.45);
    transition: all .4s ease-in-out;
}

.divtr {
    top: 0;
    right: 0;
}

.divtl {
    top: 0;
    left: 0;
}

.divbr {
    bottom: 0;
    right: 0;
}

.divbl {
    bottom: 0;
    left: 0;
}

.galleryItems:hover .divtr, .galleryItems:hover .divbl {
    transform: scale(10,0);
}

.galleryItems:hover .divtl {
    transform: scale(10,0);
}

.galleryItems:hover .divbr {
    transform: scale(0,10);
}

.groupTitle {
    margin-top: 20px;
    margin-right: 5px;
}

    .groupTitle .gTitle {
        font-size: 22px;
        font-weight: 700;
        color: var(--pg-gray-900);
    }

#sayer .tab-content #Qustions .qTitle, #sayer .tab-content #Comments .qTitle {
    font-size: 18px;
    color: var(--pg-gray-700);
}

#Comments .cnl:nth-child(3), #Comments .cnl:nth-child(4) {
    margin-top: 20px;
}

#Comments .cnl:nth-child(4) {
    margin-top: 0px;
    line-height: 40px;
}

    #Comments .cnl:nth-child(4) * {
        display: inline-block;
    }

#Comments .cnl:nth-child(3) label:last-child {
    float: left;
    margin-left: 20px;
}

.groupTitle .gdesc {
    margin-top: 10px;
    margin-right: 15px;
    color: var(--pg-gray-700);
    font-size: 15px;
}

.send {
    text-align: left;
    margin: 10px 0px;
}

    .send a {
        background-color: var(--pg-red);
        padding: 8px 32px;
        color: var(--pg-white);
        line-height: 35px;
        margin-top: 10px;
        font-size: 15px;
        border-radius: var(--pg-radius-sm);
        cursor: pointer;
        transition: background-color var(--pg-transition);
    }

        .send a:hover {
            background-color: var(--pg-red-dark);
        }

.qMaster a {
    cursor: pointer;
}

.qMaster {
    margin-top: 10px;
}

.qDetails {
    border-radius: var(--pg-radius-sm);
    box-shadow: var(--pg-shadow);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

    .qDetails:first-child {
        margin-top: 25px;
    }

    .qDetails .qDetailsQuestion .qDetailsTitle {
        height: 37px;
        line-height: 37px;
        background: var(--pg-gray-100);
        padding: 0 15px;
        border-radius: var(--pg-radius-sm) var(--pg-radius-sm) 0 0;
    }

        .qDetails .qDetailsQuestion .qDetailsTitle:after, .Keraya li:after {
            content: "";
            display: table;
            clear: both;
        }

        .qDetails .qDetailsQuestion .qDetailsTitle:before, .Keraya li:before {
            content: "";
            display: table;
        }

.qDetailsTitle .qdtTitle {
    float: right;
    font-size: 13px;
    color: var(--pg-gray-900);
}

.qDetailsTitle .qdtUsers {
    float: left;
    margin-left: 10px;
    font-size: 13px;
    color: var(--pg-gray-500);
}

.qDetailsTitle .qdtTime {
    float: left;
    text-align: left;
    direction: ltr;
    font-size: 13px;
    color: var(--pg-gray-500);
}

.qDetails .qDetailsQuestion .qQuestion {
    color: var(--pg-gray-700);
    background: var(--pg-white);
    padding: 17px 15px 23px;
    font-size: 13px;
    line-height: 25px;
    padding-bottom: 40px;
}

.aMaster {
    margin: 5px;
}

.amAnsware {
    margin: 10px;
    font-size: 14px;
    text-align: center;
}

    .amAnsware a {
        padding: 7px 12px;
        background-color: var(--pg-gray-100);
        color: var(--pg-gray-700);
        border-radius: 20px;
        transition: background-color var(--pg-transition);
    }

        .amAnsware a:hover, .amAnsware a:focus, .amAnsware a:active {
            background-color: var(--pg-gray-300);
        }

.amqAnsware {
    float: left;
    margin-top: -28px;
    margin-left: 10px;
    font-size: 13px;
}

.modal-Question {
    margin-bottom: 20px;
}

    .modal-Question .qDetailsTitle {
        height: 37px;
        line-height: 37px;
        background: var(--pg-red);
        padding: 0 15px;
        border-radius: var(--pg-radius-sm) var(--pg-radius-sm) 0 0;
        color: var(--pg-white);
    }

        .modal-Question .qDetailsTitle:after, .aMaster:after, .aqaDetailsTitle:after {
            content: "";
            display: table;
            clear: both;
        }

        .modal-Question .qDetailsTitle:before, .aMaster:before, .aqaDetailsTitle:before {
            content: "";
            display: table;
        }

    .modal-Question .qQuestion {
        color: var(--pg-gray-900);
        background: var(--pg-red-light);
        padding: 17px 15px 23px;
        font-size: 13px;
        line-height: 25px;
    }

.amAnsware a i {
    vertical-align: middle;
    margin-left: 2px;
}

.AnswareAll {
    margin: 10px;
    display: none;
}

.active {
    display: block;
}

.aqAnsware {
    margin-bottom: 10px;
}

.aqaDetailsTitle .aqaUsers {
    float: right;
    margin-left: 5px;
    font-size: 13px;
}

.aqaDetailsTitle .aqaTime {
    float: left;
    direction: ltr;
    font-size: 13px;
}

.aqaDetailsTitle .aqaTitle {
    float: right;
}

.aqAnsware .aqaDetailsTitle {
    height: 37px;
    line-height: 37px;
    background: var(--pg-red);
    padding: 0 5px;
    border-radius: var(--pg-radius-sm) var(--pg-radius-sm) 0 0;
    color: var(--pg-white);
}

.aqAnsware .aqaAnsware {
    height: 37px;
    line-height: 37px;
    color: var(--pg-gray-900);
    background: var(--pg-red-light);
    padding: 0 5px;
    border-radius: 0px 0px var(--pg-radius-sm) var(--pg-radius-sm);
}

/* ---- availability toggle switch ---- */
.supply label {
    position: relative;
    display: inline-block;
    margin-bottom: 0px;
    width: 100%;
    height: 40px;
    padding: 10px;
    line-height: 20px;
}

.supply span {
    padding-right: 50px;
    color: var(--pg-gray-700);
    font-size: 13px;
}

.supply input {
    display: none;
}

.supply span:before {
    position: absolute;
    cursor: pointer;
    top: 10px;
    content: " ";
    height: 20px;
    width: 40px;
    right: 10px;
    background-color: var(--pg-gray-300);
    transition: .3s;
    border-radius: 34px;
}

.supply span:after {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    right: 12px;
    top: 12px;
    background-color: var(--pg-white);
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
}

.supply input:checked + span:before {
    background-color: var(--pg-red);
}

.supply input:focus + span:before {
    box-shadow: 0 0 0 3px var(--pg-red-light);
}

.supply input:checked + span:after {
    transform: translateX(-20px);
}

/* =======================================================================
   SORT BAR (desktop) — .listHeader / .listSort
   ======================================================================= */
.listHeader {
    border-bottom: 1px solid var(--pg-gray-300);
    position: relative;
    padding: 10px 44px 10px 20px;
    z-index: 2;
    background-color: var(--pg-white);
    border-radius: var(--pg-radius) var(--pg-radius) 0 0;
}

.listSort {
    list-style: none;
    line-height: 34px;
    padding: 0;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 34px;
    gap: 4px;
}

.listHeader:before {
    content: " ";
    background-image: url('Image/icons/sorting.png');
    width: 22px;
    height: 22px;
    right: 13px;
    top: 14px;
    position: absolute;
    filter: grayscale(1) opacity(.55);
}

.listSort:before {
    display: inline-block;
    content: attr(data-label);
    color: var(--pg-gray-700);
    margin-left: 8px;
    font-size: 12px;
    line-height: 21px;
    vertical-align: middle;
}

.listSort li {
    display: inline-block;
}

    .listSort li a {
        display: block;
        padding: 0 14px;
        position: relative;
        font-size: 12px;
        line-height: 28px;
        vertical-align: middle;
        border-radius: 20px;
        color: var(--pg-gray-700);
        transition: background-color var(--pg-transition), color var(--pg-transition);
    }

        .listSort li a:hover {
            background-color: var(--pg-red-light);
            color: var(--pg-red-dark);
        }

        .listSort li a.active {
            background-color: var(--pg-red);
            color: var(--pg-white);
            font-weight: 700;
        }

.groupTitle a {
    color: var(--pg-gray-500);
    display: inline-block;
    transition: color var(--pg-transition);
}

    .groupTitle a:hover {
        color: var(--pg-red);
        text-decoration: none;
    }

.groupTitle span {
    margin: 0px 5px;
    display: inline-block;
    background: none;
    padding: 5px;
    color: var(--pg-gray-300);
}

    .groupTitle span:before {
        content: "‹";
        font-weight: bold;
    }

    .groupTitle span:last-child {
        margin: 0px;
        background: none;
        width: auto;
    }

/* =======================================================================
   PAGINATION
   ======================================================================= */
.page {
    width: 100%;
    float: left;
    text-align: left;
    margin-top: 24px;
}

    .page a, .page span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        margin: 0 2px;
        border: 1px solid var(--pg-gray-300);
        border-radius: var(--pg-radius-sm);
        color: var(--pg-gray-700);
        background: var(--pg-white);
        font-size: 13px;
        transition: background-color var(--pg-transition), color var(--pg-transition), border-color var(--pg-transition);
    }

        .page a:hover {
            border-color: var(--pg-red);
            color: var(--pg-red);
            text-decoration: none;
        }

        .page a.active, .page span.active {
            background: var(--pg-red);
            border-color: var(--pg-red);
            color: var(--pg-white);
            font-weight: 700;
        }

/* =======================================================================
   MOBILE SORT/FILTER TRIGGER BAR — .AppItem
   ======================================================================= */
.AppItem {
    width: 100%;
    display: none;
    align-items: center;
    gap: 10px;
    height: auto;
    padding: 10px 14px;
    background-color: var(--pg-white);
    border-bottom: 1px solid var(--pg-gray-300);
    position: relative;
    z-index: 900002;
}

    .AppItem > div {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        padding: 13px 14px;
        background-color: var(--pg-gray-900);
        color: var(--pg-white);
        border-radius: var(--pg-radius-sm);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

    .AppItem .listSort:before {
        content: none;
    }

    .AppItem .listSort {
        position: absolute;
        z-index: 900001;
        background-color: var(--pg-white);
        display: none;
        padding: 8px;
        width: 230px;
        top: calc(100% + 8px);
        left: 0;
        right: auto;
        margin: 0;
        border-radius: var(--pg-radius);
        border: 1px solid var(--pg-gray-300);
        box-shadow: var(--pg-shadow-hover);
    }

    .AppItem > div:first-child {
        padding: 13px 14px;
    }

    .AppItem > div:last-child {
        margin-right: 0;
        padding: 13px 14px;
        background-color: var(--pg-red);
        position: relative;
    }

    .AppItem .listSort li {
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--pg-gray-300);
        width: 100%;
        padding: 9px 6px;
        border-radius: var(--pg-radius-sm);
    }

        .AppItem .listSort li:last-child {
            border-bottom: none;
        }

        .AppItem .listSort li label {
            color: var(--pg-gray-900);
            font-size: 14px;
            display: inline-block;
            margin-right: 4px;
            margin-top: 3px;
        }

        .AppItem .listSort li input {
            display: inline-block;
            width: 18px;
            height: 18px;
            accent-color: var(--pg-red);
        }

/* mobile filter drawer header / footer */
.searchPro header {
    height: 54px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    position: fixed;
    top: 0px;
    right: 0;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    background-color: var(--pg-white);
    border-bottom: 1px solid var(--pg-gray-300);
    z-index: 9001111;
    color: var(--pg-gray-900);
}

.searchPro > div.Searchbtn {
    display: none;
    position: fixed;
    text-align: center;
    bottom: 0px;
    right: 0;
    left: auto;
    width: 100%;
    max-width: 420px;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 2000000;
    background: transparent;
    box-sizing: border-box;
    font-size: 0;
    line-height: 0;
    color: transparent;
}

    .searchPro > div.Searchbtn::before {
        content: "جستجو";
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 50px;
        background: linear-gradient(135deg, var(--pg-red), var(--pg-red-dark));
        color: var(--pg-white);
        font-size: 15px;
        font-weight: 700;
        letter-spacing: .3px;
        border-radius: 999px;
        box-shadow: 0 10px 24px -8px rgba(225,37,27,.55);
        transition: transform .15s ease, box-shadow .2s ease;
    }

    .searchPro > div.Searchbtn:active::before {
        transform: scale(.97);
        box-shadow: 0 4px 12px -4px rgba(225,37,27,.5);
    }

.searchPro header span {
    background: none;
    padding: 12px;
    float: left;
    margin-top: -5px;
    margin-left: 10px;
    position: relative;
    width: 20px;
    height: 20px;
}

    .searchPro header span::before,
    .searchPro header span::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 2px;
        background: var(--pg-gray-700);
    }

    .searchPro header span::before {
        transform: translate(-50%,-50%) rotate(45deg);
    }

    .searchPro header span::after {
        transform: translate(-50%,-50%) rotate(-45deg);
    }

/* =======================================================================
   RESPONSIVE GRID (product cards / list page)
   >1760px : 6 / row   1480-1760 : 5 / row   1160-1480 : 4 / row (default)
   981-1159 : 3 / row  701-980   : 3 / row   <=700     : 2 / row
   ======================================================================= */


@media(max-width:1159px) {
    .searchPro {
        width: 20%;
        margin-right: 5px;
        margin-left: 5px;
    }

        .searchPro .ParnetTitle a {
            font-size: 12px;
        }

    .SPrice-link a {
        padding: 8px 18px;
        font-size: 11px;
    }

    .searchPro > div:nth-child(2) ul li a {
        font-size: 11px;
    }

    .showImage {
        width: calc(80% - 15px);
        margin-left: 5px;
    }

 

    .gallery .galleryTitle span {
        font-size: 12px;
    }

    .showImage .showImage .galleryPrice .pfirst2 {
        font-size: 12px;
    }
}

@media(max-width:980px) {
    .SPrice-link {
        display: none;
    }

    .searchPro header {
        display: flex;
    }

    .searchPro > div.Searchbtn {
        display: block;
    }

    .searchPro {
        position: fixed;
        width: 100%;
        max-width: 420px;
        padding-top: 60px;
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
        height: 100%;
        right: 0;
        left: auto;
        z-index: 999999;
        margin: 0;
        padding-bottom: 90px;
        top: 0px;
        overflow: auto;
        background-color: var(--pg-gray-100);
        box-shadow: -14px 0 40px -12px rgba(0,0,0,.35);
    }

    .showImage .showImage .galleryPrice .pfirst2 {
        font-size: 13px;
    }

    .gallery .galleryTitle span {
        font-size: 13px;
    }

  

    .showImage {
        width: 100%;
    }

    .listHeader, .searchPro {
        display: none;
    }

    .AppItem {
        display: flex;
    }

    .groupTitle span:last-child {
        font-size: 12px;
        padding: 0px;
    }

    .groupTitle span {
        margin: 0px 3px;
        padding: 6px 3px;
    }

    .gallery .boxspec1 {
        height: 380px;
    }
}

@media(max-width:860px) {
    .gallery .galleryIamgeSpec {
        height: 165px;
        width: 150px;
    }

    .showImage .showImage .galleryPrice .pfirst2 {
        font-size: 12px;
    }

    .galleryPrice.notTedad {
        padding: 0px;
    }

        .galleryPrice.notTedad span {
            font-size: 12px;
        }
}

/* ---- MOBILE: 2 products per row, from 700px down ---- */
@media(max-width:700px) {
    .groupTitle a {
        font-size: 11px;
    }

    .groupTitle span:last-child {
        font-size: 11px;
        padding: 0px;
    }

    .groupTitle span {
        margin: 0px 3px;
        padding: 5px 3px;
    }

    .galleryItems {
        float: none;
        width: auto !important;
        padding: 0;
        margin: 0;
    }

    .gallery .box1 {
        padding: 8px;
        border-radius: var(--pg-radius-sm);
    }

    .show {
        margin: 5px;
    }

    #sayer .tab-content #Qustions {
        padding: 10px 10px;
    }

        #sayer .tab-content #Qustions .qTitle {
            font-size: 16px;
        }

        #sayer .tab-content #Qustions .cnl textarea {
            font-size: 13px;
            padding: 8px;
            height: 190px;
        }

    .showImage .showImage .galleryPrice .pfirst2 {
        font-size: 11px;
    }

    .gallery .galleryIamge {
        height: 150px;
    }

    .gallery .galleryTitleSpec span {
        font-size: 13px;
        line-height: 21px;
    }

    .galleryPrice.notTedad {
        padding: 0px;
    }

        .galleryPrice.notTedad span {
            font-size: 11px;
        }

    .gallery .galleryTitleSpec {
        height: 56px;
    }

    .gallery .galleryIamgeSpec {
        height: 200px;
        margin-top: 0px;
    }

    .ProSlideSpecial {
        height: 420px;
    }

    .gallery .boxspec1 {
        height: 400px;
    }

    .linkSpec {
        bottom: 3px;
    }
}

@media(max-width:499px) {
    .odTitle .til {
        font-size: 18px;
    }

    .odesc {
        display: block;
        margin: 5px;
    }

    .subgroupItem .htitle {
        font-size: 14px;
    }

    .odesc > div:first-child {
        width: 100%;
        height: 140px;
    }

    .odesc > div:last-child {
        width: 100%;
    }

    h4, .h4 {
        font-size: 10px;
    }

    p {
        margin-bottom: 3px;
    }

    .searchPro {
        width: 100%;
        right: 0px;
        margin-right: 0px;
    }

    .groupTitle a {
        font-size: 9px;
    }

    .groupTitle span:last-child {
        font-size: 9px;
        padding: 0px;
    }

    .groupTitle span {
        margin: 0px 3px;
        padding: 4px 3px;
    }

    /* still exactly 2 per row on the smallest phones */
    .galleryItems {
        float: none;
        width: auto !important;
        padding: 0;
        margin: 0;
    }

    .show {
        margin: 5px;
    }

    #sayer .tab-content #Qustions, #sayer .tab-content #Comments {
        padding: 10px 10px;
    }

        #sayer .tab-content #Qustions .qTitle {
            font-size: 14px;
        }

        #sayer .tab-content #Qustions .cnl textarea {
            font-size: 11px;
            padding: 8px;
            height: 171px;
        }

    .showImage .showImage .galleryPrice .pfirst2 {
        font-size: 11px;
    }

    .gallery .galleryIamge {
        height: 140px;
    }

    .gallery .galleryTitle span, .gallery .galleryTitleSpec span {
        font-size: 11px;
        line-height: 19px;
    }

    .galleryPrice.notTedad {
        padding: 0px;
    }

        .galleryPrice.notTedad span {
            font-size: 11px;
        }

    .gallery .galleryTitle, .gallery .galleryTitleSpec {
        height: 46px;
    }

    .gallery .box1 {
        padding: 6px;
    }

    .gallery .galleryIamgeSpec {
        height: 160px;
        margin-top: 0px;
    }

    .ProSlideSpecial, .gallery .boxspec1 {
        height: 280px;
    }

    .linkSpec {
        bottom: 3px;
    }
}

.file-Select {
    line-height: normal;
}

    .file-Select button {
        background-color: var(--pg-red);
        height: 32px;
        width: 100px;
        border: none;
        border-radius: var(--pg-radius-sm);
        color: var(--pg-white);
        transition: background-color var(--pg-transition);
    }

        .file-Select button:hover {
            background-color: var(--pg-red-dark);
        }

@media(max-width:426px) {
    #Comments .rows {
        position: relative;
    }

    #Comments .cnl:nth-child(3) label:last-child {
        position: absolute;
        top: 280px;
        width: 100px;
        right: 20px;
    }

    #Comments .cnl:nth-child(4) > div {
        float: none;
        display: block;
    }

    .rateq {
        margin-top: 50px;
    }

    .galleryPrice .all, .galleryPriceSpec .all, .galleryPrice .takh, .galleryPriceSpec .takh {
        font-size: 11px;
    }

    .showImage .showImage .galleryPrice .pfirst2 {
        font-size: 10px;
    }

    .gallery .galleryIamge {
        height: 125px;
    }

    .gallery .galleryTitle span, .gallery .galleryTitleSpec span {
        font-size: 10px;
        line-height: 17px;
    }

    .galleryPrice.notTedad {
        padding: 0px;
    }

        .galleryPrice.notTedad span {
            font-size: 10px;
        }

    .gallery .galleryTitle, .gallery .galleryTitleSpec {
        height: 38px;
    }

    .gallery .box1 {
        padding: 6px;
    }

    .gallery .galleryIamgeSpec {
        height: 130px;
        margin-top: 0px;
    }

    .ProSlideSpecial {
        height: 310px;
    }

    .gallery .boxspec1 {
        height: 300px;
    }

    .linkSpec {
        bottom: 3px;
    }
}

@media(max-width:386px) {
    .ProSlideSpecial .titleSpec a {
        padding-right: 5px;
        padding-left: 5px;
    }

    #swiper-container-filmstrip3 .discount {
        left: -15px;
    }

    .galleryPrice .all, .galleryPriceSpec .all, .galleryPrice .takh, .galleryPriceSpec .takh {
        font-size: 9px;
    }

    #swiper-container-filmstrip3 .discount div {
        left: 35px;
    }

    #swiper-container-filmstrip3 .discount:before {
        left: 25px;
    }
}

/* =======================================================================
   Optional: bootstrap-slider (price range) recolor to red theme
   ======================================================================= */
.slider-selection {
    background: var(--pg-red) !important;
    background-image: none !important;
}

.slider-track {
    background: var(--pg-gray-300) !important;
    background-image: none !important;
}

.slider-handle {
    background: var(--pg-white) !important;
    background-image: none !important;
    border: 3px solid var(--pg-red) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.2) !important;
}

@media (max-width: 980px) {
    .AppItem .listSort {
        width: 100%;
        min-width: 0;
        left: 0;
        right: 0;
        box-sizing: border-box;
    }
}

#proBack {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 900000;
}

body.pg-noscroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
}




body.mp-noscroll .AppItem {
    position: relative;
    z-index: 1;
    pointer-events: none;
}


/* #######################################################################
   #######################################################################
   PRODUCT DETAIL PAGE  —  everything below only affects  section.show > .galery
   #######################################################################
   ####################################################################### */

/* ---------------------------------------------------------------------
   0. Shared tokens + neutralising the old float layout
   --------------------------------------------------------------------- */
.show:has(> .galery) {
    --pg-strip: 80px; /* thumbnail strip width   */
    --pg-img: 316px; /* main image (square)     */
    --pg-gal-w: calc(var(--pg-strip) + 14px + var(--pg-img));
    --pg-price-font: 'IranNum', inherit;
}

    /* the old clearfix pseudo-elements would become grid items — remove them */
    .show:has(> .galery)::before,
    .show:has(> .galery)::after,
    .show:has(> .galery) > .info > header::before,
    .show:has(> .galery) > .info > header::after {
        content: none;
        display: none;
    }

    /* wrappers dissolve so their children can be placed on the .show grid */
    .show:has(> .galery) > .info,
    .show:has(> .galery) > .info > header {
        display: contents;
    }

    /* ---------------------------------------------------------------------
   1. Gallery  (thumb strip + main image + zoom)
   --------------------------------------------------------------------- */
    .show:has(> .galery) > .galery {
        float: none;
        width: auto;
        min-height: 0;
        padding: 0;
        position: relative;
    }

.galery-toolbar {
    display: none;
}

.image-Temp {
    position: relative;
    width: 100% !important; /* beats the inline width:520px */
    height: auto !important;
    min-height: var(--pg-img);
}

#gal1 {
    float: none;
    position: absolute;
    top: 0;
    right: 0;
    width: var(--pg-strip);
    height: var(--pg-img);
    margin: 0;
    overflow: hidden;
}

    #gal1 .swiper-wrapper {
        overflow: hidden;
    }

    #gal1 a {
        display: block;
        width: 100%;
        height: 100%;
    }

    #gal1 img {
        width: 100%;
        height: 100%;
        padding: 4px;
        box-sizing: border-box;
        object-fit: contain;
        background: var(--pg-white);
        border: 1.5px solid var(--pg-gray-300);
        border-radius: var(--pg-radius);
        transition: border-color var(--pg-transition);
    }

    #gal1 a:hover img {
        border-color: var(--pg-gray-500);
    }

/* the active thumbnail is red (generic rule, kept explicit for clarity) */
.active img {
    border: 1.5px solid var(--pg-red) !important;
}

/* thumbnail strip arrows — round chips sitting on the strip's top / bottom edge */
#gal1-button-next, #gal1-button-prev {
    display: block !important;
    width: 28px;
    height: 28px;
    margin: 0;
    left: auto;
    right: calc(var(--pg-strip) / 2 - 14px);
    z-index: 20;
    background-color: var(--pg-white);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    border: 1px solid var(--pg-gray-300);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(35,38,43,.14);
    filter: none;
    opacity: 1;
    transition: border-color var(--pg-transition), background-color var(--pg-transition);
}

    #gal1-button-next:hover, #gal1-button-prev:hover {
        border-color: var(--pg-red);
        background-color: var(--pg-red-light);
    }

#gal1-button-prev {
    top: -14px;
    bottom: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2352575c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E");
}

#gal1-button-next {
    top: calc(var(--pg-img) - 14px);
    bottom: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2352575c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* main image lives inside elevateZoom's .zoomWrapper — force a stable, square box */
.zoomWrapper {
    float: none;
    position: relative !important;
    width: var(--pg-img) !important;
    height: var(--pg-img) !important;
    max-width: calc(100% - var(--pg-strip) - 14px);
    margin: 0 calc(var(--pg-strip) + 14px) 0 0 !important;
    border-radius: var(--pg-radius-lg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain !important;
}

.image-Temp #zoom_01 {
    position: relative !important;
    display: block;
    width: var(--pg-img) !important;
    height: var(--pg-img) !important;
    max-width: 100%;
    margin: 0;
    right: auto;
    left: auto;
    object-fit: contain;
    background: var(--pg-white);
    border-radius: var(--pg-radius-lg);
}

/* special-offer countdown */
.spectial {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-top: 18px;
    padding: 12px 16px;
    background: var(--pg-red-light);
    border: 1px solid rgba(225, 37, 27, .22);
    border-radius: 14px;
}

    .spectial > div {
        display: inline-block;
    }

    .spectial .spectial-title {
        margin: 0;
        color: var(--pg-red-dark);
        font-size: 16px;
        font-weight: 800;
        line-height: 1.4;
    }

    .spectial .spectial-time {
        float: none;
        margin: 0;
        direction: ltr;
    }

.spectial-time .flipclock {
    display: inherit;
}

.spectial-time ul li, .spectial-time ul {
    float: left;
}

    .spectial-time ul li.flip-title {
        font-size: 13px;
        font-weight: normal;
        text-align: center;
        color: var(--pg-gray-500);
    }

/* ---------------------------------------------------------------------
   2. Info column — title, rating, meta rows, options
   --------------------------------------------------------------------- */
.info-header {
    padding: 0;
    margin: 0;
    background: none;
    border-radius: 0;
}

    .info-header h1 {
        margin: 0;
        color: var(--pg-gray-900);
        font-size: 22px;
        font-weight: 800;
        line-height: 1.8;
    }

.product-title-latin {
    margin-top: 2px;
    color: var(--pg-gray-500);
    font-size: 13px;
    direction: ltr;
    text-align: right;
    letter-spacing: .2px;
}

    .product-title-latin:empty {
        display: none;
    }

.product-data-comment {
    padding: 0;
    margin: 12px 0 8px;
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px 5px 12px;
    background: var(--pg-gray-100);
    border-radius: 999px;
    color: var(--pg-gray-900);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

    .product-rating:before {
        content: "★";
        margin: 0;
        color: #ffb500;
        font-size: 18px;
        line-height: 1;
    }

.product-rating-num {
    padding: 0;
    color: var(--pg-gray-500);
    font-size: 12px;
    font-weight: 400;
}

/* meta rows: شناسه کالا / دسته بندی / تولید کننده / options */
.show:has(> .galery) > .info > header.clearfix > .pcode:not(.addCard) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0;
    min-height: 0;
    padding: 12px 0;
    border-bottom: 1px dashed var(--pg-gray-300);
}

.pcode div {
    padding: 0;
}

.titledetails {
    color: var(--pg-gray-500);
    font-size: 13px;
    font-weight: 500;
}

.Pdetails {
    margin: 0;
    color: var(--pg-gray-700);
    font-size: 14px;
}

    .Pdetails.border {
        padding: 0;
        color: var(--pg-gray-900);
        font-weight: 700;
        line-height: 1.6;
        border-radius: 0;
    }

/* thin divider between code and category inside the same row */
.pcode .Pdetails.border + .titledetails {
    margin-right: 10px;
    padding-right: 14px;
    border-right: 1px solid var(--pg-gray-300);
    line-height: 1.2;
}

.Pdetails span {
    white-space: pre-wrap !important;
}

.Pdetails img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.pcode a.Pdetails img {
    display: block;
    width: auto;
    max-width: 120px;
    height: 34px;
    object-fit: contain;
}

/* dropdown options */
.pcode select {
    min-width: 200px;
    height: 44px;
    padding: 0 14px 0 36px;
    color: var(--pg-gray-900);
    font-size: 14px;
    font-weight: 700;
    background-color: var(--pg-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2352575c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    border: 1px solid var(--pg-gray-300);
    border-radius: var(--pg-radius);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color var(--pg-transition), box-shadow var(--pg-transition);
}

    .pcode select:hover {
        border-color: var(--pg-gray-500);
    }

    .pcode select:focus-visible {
        outline: 0;
        border-color: var(--pg-red);
        box-shadow: 0 0 0 3px var(--pg-red-light);
    }

    /* single-value option: shown as plain text, not as a control */
    .notSelect,
    .pcode select.notSelect {
        min-width: 0;
        height: auto !important;
        padding: 0 !important;
        color: var(--pg-gray-900);
        font-weight: 700;
        line-height: 1.6;
        background: transparent;
        background-image: none;
        border: 0 !important;
        border-radius: 0;
        box-shadow: none;
        cursor: default;
        pointer-events: none;
    }

        .notSelect option {
            color: var(--pg-gray-900);
            background: var(--pg-white);
        }

/* colour swatches */
.extra-rd-item {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

    .extra-rd-item input {
        display: none;
    }

    .extra-rd-item label {
        width: 32px;
        height: 32px;
        margin: 0;
        cursor: pointer;
        border: 2px solid var(--pg-gray-300);
        border-radius: 50%;
        box-shadow: inset 0 0 0 3px var(--pg-white);
        transition: border-color var(--pg-transition), transform var(--pg-transition);
    }

        .extra-rd-item label:hover {
            transform: scale(1.06);
        }

    .extra-rd-item input:checked + label {
        border-color: var(--pg-red);
        transform: scale(1.1);
    }

/* ---------------------------------------------------------------------
   3. Buy card  (.pr = price  +  .addCard = quantity & button)
      One visual card built from two stacked boxes that share a border.
   --------------------------------------------------------------------- */
.show:has(> .galery) > .info > header.clearfix > .pr {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 22px 22px 14px;
    color: var(--pg-gray-700);
    line-height: 1.5;
    background: var(--pg-white);
    border: 1px solid var(--pg-gray-300);
    border-top: 3px solid var(--pg-red);
    border-bottom: 0;
    border-radius: var(--pg-radius-lg) var(--pg-radius-lg) 0 0;
}

    /* no add-to-cart box below → the price box closes the card itself */
    .show:has(> .galery) > .info > header.clearfix > .pr:not(:has(~ .addCard)) {
        padding-bottom: 22px;
        border-bottom: 1px solid var(--pg-gray-300);
        border-radius: var(--pg-radius-lg);
    }

.pr .pcode {
    display: block;
    margin: 0;
    min-height: 0;
    padding: 0;
}

    .pr .pcode div {
        padding: 0;
    }

.pr .galleryPrice {
    display: block;
    min-height: 0;
    padding: 0;
    text-align: right;
    font-family: iranNum;
}

/* struck-through old price  +  discount badge */
.pr .pfirst3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .pr .pfirst3 .galleryPrice {
        color: var(--pg-gray-500);
        font-size: 14px;
        font-weight: 500;
        text-decoration: line-through;
    }

    .pr .pfirst3 .discount {
        position: static;
        padding: 3px 11px;
        color: var(--pg-white);
        font-size: 12px;
        font-weight: 800;
        line-height: 1.6;
        background: var(--pg-red);
        border: 0;
        border-radius: 999px;
        direction: rtl;
    }

        .pr .pfirst3 .discount span {
            color: var(--pg-white);
            font-size: inherit;
        }

/* final price */
.pr .all3 {
    text-align: right;
}

    .pr .all3 .galleryPrice {
        color: var(--pg-gray-900);
        font-size: 26px;
        font-weight: 800;
        line-height: 1.45;
    }

/* out of stock */
.pr .pcode.notTedad {
    text-align: center;
}

    .pr .pcode.notTedad .galleryPrice {
        padding: 0;
        font-size: 16px;
        text-align: center;
        background: none;
    }

        .pr .pcode.notTedad .galleryPrice > span {
            display: block;
            padding: 12px 16px;
            color: var(--pg-gray-500);
            font-size: 16px;
            font-weight: 800;
            background: var(--pg-gray-100);
            border-radius: var(--pg-radius);
        }

.show:has(> .galery) > .info > header.clearfix > .addCard {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    margin: 0;
    padding: 10px 22px 22px;
    background: var(--pg-white);
    border: 1px solid var(--pg-gray-300);
    border-top: 0;
    border-radius: 0 0 var(--pg-radius-lg) var(--pg-radius-lg);
}

.addCard::before,
.addCard::after,
.addCard div::before,
.addCard div::after,
.values::before,
.values::after {
    content: none;
    display: none;
}

.addCard div {
    margin: 0;
    padding: 0;
}

/* quantity stepper */
.addCard .values {
    display: inline-flex;
    flex: none;
    align-items: stretch;
    height: 48px;
    overflow: hidden;
    background: var(--pg-white);
    border: 1px solid var(--pg-gray-300);
    border-radius: var(--pg-radius);
}

    .addCard .values .btn2 {
        display: flex;
        align-items: center;
        justify-content: center;
        float: none;
        width: 36px;
        height: auto;
        margin: 0;
        padding: 0 !important;
        color: var(--pg-gray-700);
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
        background: none;
        background-image: none !important;
        border: 0;
    }

        .addCard .values .btn2 span {
            display: none;
        }

        .addCard .values .btn2:hover {
            color: var(--pg-red);
            background: var(--pg-red-light);
        }

        .addCard .values .btn2:active {
            background: var(--pg-gray-100);
        }

.addCard .btnleft::before {
    content: "−";
    display: block;
}

.addCard .btnright::before {
    content: "+";
    display: block;
}

.textVal {
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: 40px;
    height: auto;
    padding: 0;
    color: var(--pg-gray-900);
    font-family: IranNum;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    border: 0;
    border-right: 1px solid var(--pg-gray-100);
    border-left: 1px solid var(--pg-gray-100);
    outline: 0;
}

.addCard .Cards {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

    .addCard .Cards a,
    .addCard .Cards a:hover {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 48px;
        padding: 0 14px;
        color: var(--pg-white);
        font-size: 15px;
        font-weight: 800;
        line-height: 1.3;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        background-color: var(--pg-red);
        border-radius: var(--pg-radius);
        box-shadow: 0 10px 20px -10px rgba(225, 37, 27, .65);
        transition: background-color var(--pg-transition), transform var(--pg-transition), box-shadow var(--pg-transition);
    }

        .addCard .Cards a::before {
            content: "";
            flex: none;
            width: 22px;
            height: 22px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.7 12.4a1 1 0 0 0 1 .8h9.2a1 1 0 0 0 1-.8L21 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
        }

        .addCard .Cards a:hover {
            background-color: var(--pg-red-dark);
            transform: translateY(-1px);
        }

        .addCard .Cards a:active {
            transform: translateY(0);
            box-shadow: 0 4px 10px -6px rgba(225, 37, 27, .6);
        }

.min-request-contect {
    margin: 10px 0 0;
    padding: 10px 14px;
    color: var(--pg-red-dark);
    font-size: 13px;
    line-height: 1.8;
    background: var(--pg-red-light);
    border-radius: var(--pg-radius);
}

/* ---------------------------------------------------------------------
   4. Description (CMS content — only the frame is styled)
   --------------------------------------------------------------------- */
.show:has(> .galery) > .info > header:not(.clearfix) > .pcode {
    display: block;
    margin: 30px 0 0;
    min-height: 0;
    padding: 0;
}

.pcode[itemprop="description"] > .titledetails {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--pg-gray-900);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

    .pcode[itemprop="description"] > .titledetails::before {
        content: "";
        flex: none;
        width: 4px;
        height: 20px;
        background: var(--pg-red);
        border-radius: 2px;
    }

.pcode[itemprop="description"] > div {
    padding: 8px 22px;
    background: var(--pg-white);
    border: 1px solid var(--pg-gray-300);
    border-radius: var(--pg-radius-lg);
}

    .pcode[itemprop="description"] > div .Pdetails {
        overflow-x: auto;
        color: var(--pg-gray-700);
        font-size: 14px;
        line-height: 2.1;
    }

        .pcode[itemprop="description"] > div .Pdetails table {
            max-width: 100%;
        }

        .pcode[itemprop="description"] > div .Pdetails iframe,
        .pcode[itemprop="description"] > div .Pdetails video {
            max-width: 100%;
        }

/* ---------------------------------------------------------------------
   5. Tabs + specification table  (#sayer)
   --------------------------------------------------------------------- */
.nav3 {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0 10px;
    overflow-x: auto;
    white-space: nowrap;
    list-style: none;
    background: var(--pg-white);
    border-bottom: 1px solid var(--pg-gray-300) !important;
    border-radius: var(--pg-radius-lg) var(--pg-radius-lg) 0 0;
    scrollbar-width: none;
}

    .nav3::-webkit-scrollbar {
        display: none;
    }

    .nav3::before,
    .nav3::after {
        content: none;
        display: none;
    }

    .nav3 > li {
        flex: none;
        float: none;
        margin: 0;
        box-shadow: none;
    }

        .nav3 > li > a,
        .nav3 li a {
            position: relative;
            display: block;
            padding: 17px 22px;
            color: var(--pg-gray-700);
            font-size: 15px;
            font-weight: 600;
            background: none !important;
            border: 0 !important;
            border-radius: 0 !important;
            box-shadow: none;
            transition: color var(--pg-transition);
        }

            .nav3 > li > a:hover {
                color: var(--pg-red);
            }

        .nav3 > li.active > a,
        .nav3 > li.active > a:hover,
        .nav3 > li.active > a:active,
        .nav3 > li.active > a:focus {
            color: var(--pg-red);
            font-weight: 800;
            background: none;
            box-shadow: none;
        }

            .nav3 > li.active > a::after {
                content: "";
                position: absolute;
                right: 14px;
                bottom: -1px;
                left: 14px;
                height: 3px;
                background: var(--pg-red);
                border-radius: 3px 3px 0 0;
            }

/* specification rows: label (gray) + value (bold) on a dashed rule */
.row.ditem {
    display: flex;
    align-items: stretch;
    margin: 0 !important;
    padding: 0;
    border-bottom: 1px dashed var(--pg-gray-300);
}

    .row.ditem::before,
    .row.ditem::after {
        content: none !important;
        display: none !important;
    }

    .row.ditem:last-child {
        border-bottom: 0;
    }

    .row.ditem .lbl {
        flex: none;
        float: none;
        width: min(260px, 38%);
        margin: 0;
        padding: 14px 0 14px 16px;
        color: var(--pg-gray-500);
        font-size: 14px;
        line-height: 1.9;
        background: none;
        border-radius: 0;
    }

    .row.ditem .cnl {
        flex: 1;
        float: none;
        width: auto;
        min-width: 0;
        padding: 14px 0;
        color: var(--pg-gray-900);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.9;
        text-align: right;
        background: none;
        border-radius: 0;
    }

/* =====================================================================
   6. DESKTOP  (≥ 981px) — Technolife-style layout
   ===================================================================== */
@media (min-width: 981px) {

    /* lets us switch layouts by the width of the page container, not the window */
    .container:has(> .show > .galery) {
        container: pgdetail / inline-size;
    }

    /* ---- default desktop = 2 columns:  [ info + buy card ] [ gallery ] ---- */
    .show:has(> .galery) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--pg-gal-w);
        grid-template-rows: repeat(10, auto) minmax(0, 1fr);
        column-gap: 32px;
        row-gap: 0;
        align-items: start;
        padding: 30px 30px 34px;
    }

        .show:has(> .galery) > .galery {
            grid-column: 2;
            grid-row: 1 / -1;
        }

        .show:has(> .galery) > .info > .info-header {
            grid-column: 1;
            grid-row: 1;
        }

        .show:has(> .galery) > .info > .product-data-comment {
            grid-column: 1;
            grid-row: 2;
        }

        .show:has(> .galery) > .info > header.clearfix > .pcode:not(.addCard),
        .show:has(> .galery) > .info > header.clearfix > .min-request-contect {
            grid-column: 1;
        }

        .show:has(> .galery) > .info > header.clearfix > .pr {
            grid-column: 1;
            margin-top: 22px;
        }

        .show:has(> .galery) > .info > header.clearfix > .addCard {
            grid-column: 1;
        }

        /* description drops below everything, full width */
        .show:has(> .galery) > .info > header:not(.clearfix) > .pcode {
            grid-column: 1 / -1;
        }
}

/* ---- wide container = 3 columns:  [ info ] [ gallery ] [ buy card ] ---- */
@container pgdetail (min-width: 1240px) {

    .show:has(> .galery) {
        --pg-strip: 84px;
        --pg-img: 352px;
        grid-template-columns: minmax(0, 1fr) var(--pg-gal-w) 340px;
        column-gap: 34px;
    }

        .show:has(> .galery) > .info > header.clearfix > .pr,
        .show:has(> .galery) > .info > header.clearfix > .addCard {
            grid-column: 3;
            align-self: stretch;
        }
        /* the two halves of the card span the info rows, so they never stretch the layout */
        .show:has(> .galery) > .info > header.clearfix > .pr {
            grid-row: 1 / span 2;
            margin-top: 0;
        }

        .show:has(> .galery) > .info > header.clearfix > .addCard {
            grid-row: 3 / span 2;
        }
        /* card content is centred inside its box */
        .show:has(> .galery) > .info > header.clearfix > .addCard {
            padding-top: 12px;
        }
}

/* =====================================================================
   7. MOBILE / TABLET  (≤ 980px) — Digikala-style layout
      flat white sections separated by gray bands + sticky buy-bar
   ===================================================================== */
@media (max-width: 980px) {

    /* room for the fixed buy-bar */
    body:has(.show > .galery) {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    /* breadcrumb: a single scrollable line */
    .container:has(> .show > .galery) > .groupTitle {
        margin: 0;
        padding: 12px 14px 10px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

        .container:has(> .show > .galery) > .groupTitle::-webkit-scrollbar {
            display: none;
        }

        .container:has(> .show > .galery) > .groupTitle a {
            font-size: 12px;
        }

    /* every section becomes a flat, full-width band */
    .container:has(> .show > .galery) > .show {
        margin: 8px 0 0;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .show:has(> .galery) {
        --pg-strip: 58px;
        --pg-img: min(calc(100vw - 132px), 420px);
        display: block;
        margin-top: 0;
        padding: 0 0 4px;
    }

        /* gallery on top */
        .show:has(> .galery) > .galery {
            padding: 16px 14px 10px;
            text-align: right;
        }

    .zoomContainer {
        display: none !important; /* no hover-zoom on touch */
    }

    .spectial {
        margin-top: 14px;
    }

    /* info blocks: same rhythm as Digikala — 16px gutters */
    .show:has(> .galery) > .info > .info-header {
        padding: 6px 16px 0;
    }

    .info-header h1 {
        font-size: 17px;
        line-height: 1.9;
    }

    .product-title-latin {
        font-size: 12px;
    }

    .show:has(> .galery) > .info > .product-data-comment {
        padding: 0 16px;
        margin: 8px 0 6px;
    }

    .show:has(> .galery) > .info > header.clearfix > .pcode:not(.addCard) {
        margin: 0 16px;
        padding: 13px 0;
    }

    .pcode select {
        width: 100%;
        min-width: 0;
    }

    .show:has(> .galery) > .info > header.clearfix > .min-request-contect {
        margin: 10px 16px 0;
    }

    /* description */
    .show:has(> .galery) > .info > header:not(.clearfix) > .pcode {
        margin: 18px 0 0;
        padding: 20px 16px 8px;
        border-top: 8px solid var(--pg-gray-100);
    }

    .pcode[itemprop="description"] > div {
        padding: 0;
        border: 0;
        border-radius: 0;
    }

        .pcode[itemprop="description"] > div .Pdetails {
            font-size: 13.5px;
            line-height: 2;
        }

    /* ---- sticky buy-bar: price on the left, add-to-cart on the right ---- */
    .show:has(> .galery) > .info > header.clearfix > .pr,
    .show:has(> .galery) > .info > header.clearfix > .addCard {
        position: fixed;
        bottom: 0;
        z-index: 1000;
        box-sizing: border-box;
        height: calc(76px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--pg-white);
        border: 0;
        border-top: 1px solid var(--pg-gray-300);
        border-radius: 0;
        box-shadow: 0 -10px 24px -14px rgba(35, 38, 43, .3);
    }

    .show:has(> .galery) > .info > header.clearfix > .pr {
        left: 0;
        width: 40%;
        align-items: flex-end;
        justify-content: center;
        gap: 3px;
    }

        .show:has(> .galery) > .info > header.clearfix > .pr:not(:has(~ .addCard)) {
            width: 100%;
            align-items: stretch;
            border-radius: 0;
            border-bottom: 0;
        }

    .pr .pfirst3 {
        justify-content: flex-end;
        gap: 6px;
    }

        .pr .pfirst3 .galleryPrice {
            font-size: 11px;
        }

        .pr .pfirst3 .discount {
            padding: 1px 8px;
            font-size: 11px;
        }

    .pr .all3 .galleryPrice {
        font-size: 15px;
        line-height: 1.5;
        text-align: left;
    }

    .pr .pcode.notTedad .galleryPrice > span {
        padding: 10px 12px;
        font-size: 14px;
    }

    .show:has(> .galery) > .info > header.clearfix > .addCard {
        right: 0;
        width: 60%;
        gap: 8px;
        padding-right: 14px;
        padding-left: 6px;
    }

    .addCard .values {
        height: 44px;
        border-radius: 10px;
    }

        .addCard .values .btn2 {
            width: 28px;
            font-size: 18px;
        }

    .textVal {
        width: 30px;
        font-size: 15px;
    }

    .addCard .Cards a,
    .addCard .Cards a:hover {
        height: 44px;
        padding: 0 6px;
        font-size: 13px;
        border-radius: 10px;
        box-shadow: none;
    }

        .addCard .Cards a::before {
            display: none;
        }

    /* tabs stick to the top while scrolling, like Digikala */
    .nav3 {
        position: sticky;
        top: 0;
        z-index: 50;
        padding: 0 4px;
        border-radius: 0;
    }

        .nav3 > li > a,
        .nav3 li a {
            padding: 15px 16px;
            font-size: 13px;
        }

    .subgroupItem {
        margin: 14px 14px 0;
    }

        .subgroupItem .headers {
            margin-top: 20px;
            margin-bottom: 10px;
            font-size: 15px;
        }

    .row.ditem .lbl {
        width: 40%;
        padding: 12px 0 12px 10px;
        font-size: 12.5px;
        line-height: 1.8;
    }

    .row.ditem .cnl {
        padding: 12px 0;
        font-size: 12.5px;
        line-height: 1.8;
    }
}

@media (max-width: 380px) {
    .show:has(> .galery) {
        --pg-strip: 50px;
        --pg-img: calc(100vw - 118px);
    }

        .show:has(> .galery) > .info > header.clearfix > .pr {
            width: 38%;
        }

        .show:has(> .galery) > .info > header.clearfix > .addCard {
            width: 62%;
        }

    .pr .all3 .galleryPrice {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .addCard .Cards a,
    #gal1 img,
    .extra-rd-item label {
        transition: none;
    }

        .addCard .Cards a:hover,
        .extra-rd-item label:hover {
            transform: none;
        }
}


/* ======================================================================
   ADDITIONS  (gallery hardening + zoom lens + mobile lightbox)
   Nothing here changes the desktop grid / info column layout.
   ====================================================================== */

/* ---- 1. Gallery: the thumbnail strip zone is padding, so the main image
        can never slide underneath the thumbnails ---- */
.image-Temp {
    box-sizing: border-box;
    padding-right: calc(var(--pg-strip) + 14px);
}

    .image-Temp .zoomWrapper {
        margin: 0 !important;
        max-width: 100%;
    }

/* ---- 2. Mobile / tablet: gallery on top (full width), info below it ---- */
@media (max-width: 980px) {
    .show:has(> .galery) > .galery,
    .show:has(> .galery) > .info > .info-header {
        float: none !important;
        width: auto !important;
        clear: both;
    }
}

/* ---- 3. Zoom lens: square that follows the mouse, with a "+" in the middle ---- */
.zoomLens {
    box-sizing: border-box;
    background-color: rgba(225, 37, 27, .10) !important;
    background-image: none !important;
    border: 2px solid var(--pg-red) !important;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 8px 22px rgba(35, 38, 43, .25);
    cursor: crosshair !important;
    opacity: 1 !important;
}

    .zoomLens::before,
    .zoomLens::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        background: var(--pg-red);
        border-radius: 2px;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, .9);
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    .zoomLens::before {
        width: 22px;
        height: 2px;
    }

    .zoomLens::after {
        width: 2px;
        height: 22px;
    }

.zoomWindowContainer .zoomWindow {
    border: 1px solid var(--pg-gray-300) !important;
    border-radius: var(--pg-radius);
    box-shadow: var(--pg-shadow-hover);
}

/* ---- 4. Mobile full-screen lightbox (Digikala-style) + thumbnail bar ---- */
.pg-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000000;
    background: rgba(20, 20, 22, .96);
}

    .pg-lightbox.open {
        display: flex;
        flex-direction: column;
    }

.pg-lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding: 14px 16px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
}

.pg-lightbox-download {
    padding: 8px 18px;
    color: var(--pg-white);
    font-size: 13px;
    font-weight: 700;
    background: var(--pg-red);
    border-radius: 999px;
    text-decoration: none;
}

.pg-lightbox-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pg-white);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.pg-lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px 12px;
    overflow: hidden;
}

    .pg-lightbox-stage img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.pg-lightbox-thumbs {
    display: flex;
    gap: 10px;
    padding: 0 14px calc(16px + env(safe-area-inset-bottom, 0px));
    overflow-x: auto;
    direction: rtl;
    scrollbar-width: none;
}

    .pg-lightbox-thumbs::-webkit-scrollbar {
        display: none;
    }

    .pg-lightbox-thumbs .pg-lb-thumb:first-child {
        margin-inline-start: auto;
    }

    .pg-lightbox-thumbs .pg-lb-thumb:last-child {
        margin-inline-end: auto;
    }

.pg-lb-thumb {
    flex: none;
    box-sizing: border-box;
    width: 58px;
    height: 58px;
    padding: 3px;
    object-fit: contain;
    background: var(--pg-white);
    border: 2px solid transparent;
    border-radius: 10px;
    opacity: .6;
    cursor: pointer;
    transition: opacity .2s, border-color .2s;
}

    .pg-lb-thumb.on {
        opacity: 1;
        border-color: var(--pg-red);
    }

body.pg-lightbox-noscroll {
    overflow: hidden;
}
/* ---- زوم: ماوس = «+» قرمز، و «+» ثابت داخل لنز حذف ---- */
.zoomLens::before,
.zoomLens::after {
    content: none !important;
    display: none !important;
}

.zoomContainer,
.zoomContainer *,
.zoomWrapper,
.image-Temp #zoom_01 {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 3v22M3 14h22' stroke='%23fff' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M14 3v22M3 14h22' stroke='%23e1251b' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") 14 14, crosshair !important;
}
/* فلش‌های نوار عکس‌ها: فقط وقتی اسکرول لازمه */
.image-Temp.pg-no-scroll #gal1-button-prev,
.image-Temp.pg-no-scroll #gal1-button-next {
    display: none !important;
}

#gal1-button-prev.swiper-button-disabled,
#gal1-button-next.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}
/* lightbox: دکمه‌های قبلی/بعدی + شمارنده */
.pg-lightbox-stage {
    position: relative;
}

.pg-lb-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
    box-sizing: border-box;
    color: var(--pg-white);
    font-size: 32px;
    line-height: 1;
    background: rgba(35, 38, 43, .55);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .2s, background-color .2s;
}

    .pg-lb-nav:active {
        background: var(--pg-red);
    }

    .pg-lb-nav.off {
        opacity: .25;
        pointer-events: none;
    }

.pg-lb-prev {
    right: 14px;
}

.pg-lb-next {
    left: 14px;
}

.pg-lb-counter {
    align-self: center;
    margin: 0 0 12px;
    padding: 3px 14px;
    color: var(--pg-white);
    font-family: IranNum, sans-serif;
    font-size: 13px;
    font-weight: 700;
    direction: ltr;
    background: rgba(255, 255, 255, .14);
    border-radius: 999px;
}
/* فلش‌های lightbox: با CSS کشیده می‌شن (بدون کاراکتر متنی → آینه نمی‌شن، دقیقاً وسط) */
.pg-lb-nav {
    font-size: 0 !important;
    line-height: 0;
    padding: 0 !important;
    color: transparent;
}

    .pg-lb-nav::before {
        content: "";
        display: block;
        width: 11px;
        height: 11px;
        border: solid var(--pg-white);
        border-width: 0 2.5px 2.5px 0;
        border-radius: 1px;
    }

/* دکمه‌ی راست = قبلی → فلش به سمت راست */
.pg-lb-prev::before {
    transform: translateX(-2px) rotate(-45deg);
}

/* دکمه‌ی چپ = بعدی → فلش به سمت چپ */
.pg-lb-next::before {
    transform: translateX(2px) rotate(135deg);
}
/* ============ تب‌ها (توضیحات / مشخصات / نظرات / پرسش) ============ */
/* کادر مشکیِ فوکوس دور تب حذف بشه؛ فقط برای کیبورد یه حلقه‌ی ملایم بمونه */
.nav3 a:focus,
.nav3 a:active,
.nav3 > li > a:focus,
.nav3 > li > a:active {
    outline: 0 !important;
    box-shadow: none !important;
}

.nav3 > li > a:focus-visible {
    outline: 2px solid var(--pg-red-light) !important;
    outline-offset: -5px;
}

/* ============ توضیحات تکمیلی + برچسب‌ها ============ */
.od-wrap {
    padding: 8px 26px 26px;
}

    /* عنوان بخش: همون میله‌ی قرمز بقیه‌ی عنوان‌ها */
    .od-wrap .odTitle {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 12px;
        margin: 18px 0 16px;
    }

        .od-wrap .odTitle .til {
            position: relative;
            padding-right: 14px;
            color: var(--pg-gray-900);
            font-size: 17px;
            font-weight: 800;
            line-height: 1.6;
        }

            .od-wrap .odTitle .til::before {
                content: "";
                position: absolute;
                top: 50%;
                right: 0;
                width: 4px;
                height: 20px;
                margin-top: -10px;
                background: var(--pg-red);
                border-radius: 2px;
            }

        .od-wrap .odTitle .tilname {
            margin: 0;
            color: var(--pg-gray-500);
            font-size: 13px;
        }

    /* متن: کادر سفید با حاشیه‌ی گرد، مثل بخش «توضیحات» بالای صفحه؛ آیکن قدیمی حذف */
    .od-wrap .odesc {
        display: block;
        margin: 0;
    }

        .od-wrap .odesc > div:first-child {
            display: none;
        }

        .od-wrap .odesc > div:last-child {
            display: block;
            width: auto;
            padding: 16px 22px;
            overflow-x: auto;
            color: var(--pg-gray-700);
            font-size: 14px;
            line-height: 2.1;
            background: var(--pg-white);
            border: 1px solid var(--pg-gray-300);
            border-radius: var(--pg-radius-lg);
        }

            .od-wrap .odesc > div:last-child img,
            .od-wrap .odesc > div:last-child iframe,
            .od-wrap .odesc > div:last-child video,
            .od-wrap .odesc > div:last-child table {
                max-width: 100%;
            }

            /* وقتی متنی ثبت نشده */
            .od-wrap .odesc > div:last-child:empty {
                text-align: center;
                background: var(--pg-gray-100);
                border-style: dashed;
            }

                .od-wrap .odesc > div:last-child:empty::before {
                    content: "توضیحات تکمیلی برای این کالا ثبت نشده است.";
                    color: var(--pg-gray-500);
                    font-size: 13px;
                }

    /* برچسب‌ها */
    .od-wrap .tag-master {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 12px;
        margin-top: 22px;
        padding-top: 18px;
        border-top: 1px dashed var(--pg-gray-300);
    }

        .od-wrap .tag-master .titledetails {
            color: var(--pg-gray-500);
            font-size: 13px;
            font-weight: 600;
        }

    .od-wrap .tag-pro {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        float: none;
        margin: 0;
        padding: 0;
    }

        .od-wrap .tag-pro a {
            display: inline-block;
            float: none !important;
            margin: 0 !important;
            padding: 5px 14px;
            color: var(--pg-gray-700);
            font-size: 12.5px;
            line-height: 1.7;
            text-decoration: none;
            background: var(--pg-gray-100);
            border: 1px solid var(--pg-gray-300);
            border-radius: 999px;
            transition: color var(--pg-transition), background-color var(--pg-transition), border-color var(--pg-transition);
        }

            .od-wrap .tag-pro a:hover {
                color: var(--pg-red-dark);
                background: var(--pg-red-light);
                border-color: var(--pg-red);
            }

@media (max-width: 980px) {
    .od-wrap {
        padding: 4px 16px 20px;
    }

        .od-wrap .odesc > div:last-child {
            padding: 12px 14px;
            font-size: 13.5px;
            line-height: 2;
        }
}
.od-wrap .tag-pro .tag-empty {
    color: var(--pg-gray-500);
    font-size: 12.5px;
}
/* فاصله‌ی ۳۲px بین گالری و متن‌ها (فقط دسکتاپ) */
@media (min-width: 981px) {
    .show:has(> .galery) {
        --pg-gal-w: calc(var(--pg-strip) + 14px + var(--pg-img) + 32px);
    }

        .show:has(> .galery) .image-Temp {
            padding-left: 32px;
        }
}
/* حذف کادر مشکی فوکوس/کلیک روی کارت محصول */
.gallery a,
.gallery a:focus,
.gallery a:active,
.gallery a:focus-visible,
.gallery .box1:focus,
.gallery .box1:active {
    outline: 0 !important;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

    /* بعد از کلیک، کارت همان ظاهر عادی را داشته باشد (فقط hover قرمز بماند) */
    .gallery a:focus .box1,
    .gallery a:active .box1 {
        border-color: var(--pg-gray-300);
        box-shadow: var(--pg-shadow);
    }

    .gallery a:hover .box1,
    .gallery .box1:hover {
        border-color: var(--pg-red);
        box-shadow: var(--pg-shadow-hover);
    }
/* ============ موبایل: کارت‌ها هم‌اندازه و منظم ============ */
@media (max-width: 700px) {

    .showImage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding-left: 6px;
        padding-right: 6px;
        box-sizing: border-box;
    }

    .galleryItems {
        float: none !important;
        display: flex;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .gallery,
    .gallery > a {
        display: flex;
        width: 100%;
    }

        .gallery .box1 {
            width: 100%;
            height: auto;
            min-height: 100%;
            box-sizing: border-box;
            transform: none !important; /* جلوگیری از پریدن کارت با لمس/hover */
        }

        /* تصویر هم‌اندازه برای همه */
        .gallery .galleryIamge {
            height: 150px;
            flex: none;
        }

        /* عنوان: ارتفاع ثابت، حداکثر دو خط */
        .gallery .galleryTitle {
            height: 42px;
            flex: none;
            overflow: hidden;
        }

        /* قیمت همیشه ته کارت */
        .gallery .galleryPrice {
            margin-top: auto;
            min-height: 44px;
            justify-content: flex-end;
        }
}

@media (max-width: 499px) {
    .gallery .galleryIamge {
        height: 130px;
    }

    .gallery .galleryTitle {
        height: 38px;
    }

    .gallery .galleryPrice {
        min-height: 40px;
    }
}

/* روی دستگاه لمسی hover نداشته باشیم تا کارت بعد از لمس قرمز/بالاپریده نماند */
@media (hover: none) {
    .gallery .box1:hover {
        border-color: var(--pg-gray-300);
        box-shadow: var(--pg-shadow);
        transform: none;
    }

        .gallery .box1:hover .galleryIamge img {
            transform: none;
        }

        .gallery .box1:hover .galleryTitle span {
            color: inherit;
        }

    .gallery .galleryIamge:hover img:first-child {
        opacity: 1;
    }

    .gallery .galleryIamge:hover img:last-child {
        opacity: 0;
    }
}
/* نوار «جستجوی پیشرفته / مرتب‌سازی» در موبایل هیچ‌وقت ناپدید نشود */
@media (max-width: 980px) {
    .AppItem,
    .showImage > .AppItem,
    body.pg-noscroll .AppItem,
    body.mp-noscroll .AppItem {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
    }

    /* وقتی کشوی فیلتر باز است، نوار زیرِ کشو و پوشش تیره بماند */
    body.pg-noscroll .AppItem {
        z-index: 1;
    }
}
/* منوی مرتب‌سازی موبایل همیشه بالاتر از کارت‌ها و عکس‌ها */
@media (max-width: 980px) {
    .showImage {
        isolation: auto;
    }

    .AppItem {
        position: relative;
        z-index: 20;
    }

        .AppItem .listSort {
            z-index: 30;
        }

    /* کارت‌ها و عکس‌هایشان یک لایه‌ی بسته و پایین‌تر بسازند */
    .galleryItems,
    .gallery,
    .gallery .box1 {
        position: relative;
        z-index: 0;
    }

        .gallery .galleryIamge {
            isolation: isolate;
        }
}
/* دکمه‌ی بستن کشوی جستجوی پیشرفته: گوشه‌ی چپ، دایره‌ای */
.searchPro header span.closeSearch {
    position: absolute;
    top: 50%;
    left: 12px;
    float: none;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    background: var(--pg-gray-100);
    border: 1px solid var(--pg-gray-300);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--pg-transition), border-color var(--pg-transition), transform var(--pg-transition);
}

    .searchPro header span.closeSearch::before,
    .searchPro header span.closeSearch::after {
        width: 14px;
        height: 2px;
        background: var(--pg-gray-700);
        border-radius: 2px;
        transition: background-color var(--pg-transition);
    }

    .searchPro header span.closeSearch:hover,
    .searchPro header span.closeSearch:active {
        background: var(--pg-red-light);
        border-color: var(--pg-red);
    }

        .searchPro header span.closeSearch:hover::before,
        .searchPro header span.closeSearch:hover::after,
        .searchPro header span.closeSearch:active::before,
        .searchPro header span.closeSearch:active::after {
            background: var(--pg-red);
        }

    .searchPro header span.closeSearch:active {
        transform: translateY(-50%) scale(.92);
    }
/* ======================================================================
   موبایل: نوار خرید (قیمت + تعداد) بالای نوار پایین صفحه‌ی مستر بنشیند
   ====================================================================== */
@media (max-width: 980px) {

    :root {
        --pg-nav-h: 64px; /* ارتفاع نوار پایین مستر (خانه / دسته‌بندی / سبد خرید / حساب) */
    }

    /* فضای خالی انتهای صفحه: نوار خرید + نوار مستر */
    body:has(.show > .galery) {
        padding-bottom: calc(76px + var(--pg-nav-h));
    }

    /* هر دو نیمه‌ی نوار خرید بالای نوار مستر قرار می‌گیرند */
    .show:has(> .galery) > .info > header.clearfix > .pr,
    .show:has(> .galery) > .info > header.clearfix > .addCard {
        bottom: var(--pg-nav-h);
        height: 76px;
        padding-bottom: 10px;
    }
}