
/* ==========================================================
   PADIDAR SHOP GLASS BLUE V1
   Compact 4-column catalog / glass / blue glow
   ========================================================== */

body .pfs-shop{
    --pfg-blue:#0869e8;
    --pfg-blue2:#0a7cff;
    --pfg-deep:#06356c;
    --pfg-line:rgba(50,126,215,.20);
    --pfg-glass:rgba(255,255,255,.78);
    --pfg-soft:#f5faff;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(31,130,255,.055),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 75%,
            rgba(60,170,255,.04),
            transparent 28%
        ),
        #fff !important;
}


/* ==========================================================
   DESKTOP CATALOG WIDTH
   ========================================================== */

@media (min-width:1151px){

    body .pfs-shop
    .pfs-catalog-grid{
        grid-template-columns:
            240px minmax(0,1fr) !important;

        gap:16px !important;
    }


    body .pfs-shop
    .pfs-product-grid{
        display:grid !important;

        grid-template-columns:
            repeat(4,minmax(0,1fr)) !important;

        gap:12px !important;
    }

}


/* ==========================================================
   TOOLBAR
   ========================================================== */

body .pfs-shop
.pfs-result-head{
    min-height:46px !important;
    height:auto !important;

    margin-bottom:14px !important;

    padding:7px 10px !important;

    border:
        1px solid rgba(31,117,220,.14) !important;

    border-radius:12px !important;

    background:
        rgba(255,255,255,.72) !important;

    backdrop-filter:
        blur(12px) saturate(135%) !important;

    -webkit-backdrop-filter:
        blur(12px) saturate(135%) !important;

    box-shadow:
        0 7px 24px rgba(15,83,160,.055) !important;
}


body .pfs-shop
.pfs-result-head strong{
    color:#07396f !important;

    font-size:13px !important;
}


body .pfs-shop
.pfs-result-head span{
    color:#7890aa !important;

    font-size:9.5px !important;
}


body .pfs-shop
.pfs-view-icons span{
    border-color:
        rgba(25,109,210,.20) !important;

    color:#3472b2 !important;

    background:
        rgba(255,255,255,.86) !important;
}


body .pfs-shop
.pfs-view-icons span.is-active{
    color:#fff !important;

    border-color:
        var(--pfg-blue) !important;

    background:
        linear-gradient(
            135deg,
            #0d7dff,
            #065ccf
        ) !important;

    box-shadow:
        0 6px 16px rgba(8,105,232,.24) !important;
}


/* ==========================================================
   PRODUCT CARD
   ========================================================== */

body .pfs-shop
.pfs-product-card{
    position:relative !important;

    min-width:0 !important;

    overflow:hidden !important;

    border:
        1px solid rgba(42,125,220,.18) !important;

    border-radius:15px !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.92),
            rgba(245,250,255,.78)
        ) !important;

    backdrop-filter:
        blur(14px) saturate(135%) !important;

    -webkit-backdrop-filter:
        blur(14px) saturate(135%) !important;

    box-shadow:
        0 9px 28px rgba(17,77,145,.07),
        inset 0 1px 0 rgba(255,255,255,.88) !important;

    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease !important;
}


/* subtle blue glass glow */
body .pfs-shop
.pfs-product-card::before{
    content:"" !important;

    position:absolute !important;

    inset:0 !important;

    z-index:0 !important;

    pointer-events:none !important;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(27,126,255,.12),
            transparent 34%
        ),
        linear-gradient(
            130deg,
            rgba(255,255,255,.46),
            transparent 36%
        ) !important;

    opacity:.72 !important;
}


body .pfs-shop
.pfs-product-card > *{
    position:relative !important;
    z-index:1 !important;
}


body .pfs-shop
.pfs-product-card:hover{
    transform:
        translateY(-5px) !important;

    border-color:
        rgba(16,116,238,.48) !important;

    box-shadow:
        0 18px 42px rgba(6,102,225,.15),
        0 0 0 1px rgba(57,146,255,.08),
        0 0 28px rgba(34,133,255,.08),
        inset 0 1px 0 rgba(255,255,255,.94) !important;
}


/* ==========================================================
   PRODUCT IMAGE
   ========================================================== */

body .pfs-shop
.pfs-product-image{
    height:168px !important;

    padding:8px !important;

    overflow:hidden !important;

    border-bottom:
        1px solid rgba(47,128,220,.10) !important;

    background:
        radial-gradient(
            circle at 50% 45%,
            #fff 0%,
            #f7fbff 62%,
            #edf6ff 100%
        ) !important;
}


body .pfs-shop
.pfs-product-image img{
    width:100% !important;
    height:100% !important;

    object-fit:contain !important;

    border-radius:9px !important;

    filter:
        saturate(1.04)
        contrast(1.02) !important;

    transition:
        transform .45s ease,
        filter .45s ease !important;
}


body .pfs-shop
.pfs-product-card:hover
.pfs-product-image img{
    transform:
        scale(1.035) !important;

    filter:
        saturate(1.08)
        contrast(1.035)
        brightness(1.015) !important;
}


/* ==========================================================
   CARD BODY
   ========================================================== */

body .pfs-shop
.pfs-product-body{
    padding:
        10px 10px 11px !important;
}


body .pfs-shop
.pfs-product-cat{
    color:#6e8dac !important;

    font-size:8.5px !important;

    font-weight:500 !important;
}


body .pfs-shop
.pfs-product-card h2{
    min-height:44px !important;

    margin:
        3px 0 7px !important;

    color:#062f60 !important;

    font-size:12px !important;
    line-height:1.75 !important;

    font-weight:800 !important;
}


body .pfs-shop
.pfs-product-card h2 a{
    color:inherit !important;

    transition:
        color .2s ease !important;
}


body .pfs-shop
.pfs-product-card:hover h2 a{
    color:#056be5 !important;
}


/* ==========================================================
   SPECS
   ========================================================== */

body .pfs-shop
.pfs-product-specs{
    min-height:56px !important;

    gap:3px !important;

    margin-bottom:9px !important;

    padding-top:7px !important;

    border-top:
        1px solid rgba(38,121,216,.11) !important;
}


body .pfs-shop
.pfs-product-specs div{
    min-height:18px !important;

    color:#72879d !important;

    font-size:8.5px !important;
}


body .pfs-shop
.pfs-product-specs strong{
    max-width:60% !important;

    color:#164c80 !important;

    font-size:8.7px !important;

    font-weight:700 !important;
}


/* ==========================================================
   ACTION BUTTONS
   ========================================================== */

body .pfs-shop
.pfs-product-actions{
    grid-template-columns:
        1fr 1fr !important;

    gap:6px !important;
}


body .pfs-shop
.pfs-product-actions a{
    height:34px !important;

    min-height:34px !important;

    border-radius:8px !important;

    font-size:9px !important;

    font-weight:800 !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease !important;
}


body .pfs-shop
.pfs-more{
    border:
        1px solid #4d99ec !important;

    color:#0868d8 !important;

    background:
        rgba(255,255,255,.76) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9) !important;
}


body .pfs-shop
.pfs-more:hover{
    color:#0457bd !important;

    background:#f1f8ff !important;

    box-shadow:
        0 5px 14px rgba(30,126,230,.10) !important;
}


body .pfs-shop
.pfs-inquiry{
    border:
        1px solid rgba(0,100,225,.20) !important;

    color:#fff !important;

    background:
        linear-gradient(
            135deg,
            #0b7cff,
            #075fcf
        ) !important;

    box-shadow:
        0 7px 17px rgba(6,102,225,.20) !important;
}


body .pfs-shop
.pfs-inquiry:hover{
    transform:
        translateY(-1px) !important;

    background:
        linear-gradient(
            135deg,
            #1788ff,
            #0755be
        ) !important;

    box-shadow:
        0 9px 21px rgba(6,102,225,.28) !important;
}


/* ==========================================================
   SIDEBAR GLASS
   ========================================================== */

@media (min-width:801px){

    body .pfs-shop
    .pfs-sidebar{
        gap:10px !important;
    }


    body .pfs-shop
    .pfs-side-card{
        padding:14px !important;

        border:
            1px solid rgba(40,126,222,.17) !important;

        border-radius:14px !important;

        background:
            rgba(249,252,255,.82) !important;

        backdrop-filter:
            blur(12px) saturate(135%) !important;

        -webkit-backdrop-filter:
            blur(12px) saturate(135%) !important;

        box-shadow:
            0 9px 28px rgba(22,82,148,.07),
            inset 0 1px 0 rgba(255,255,255,.9) !important;
    }


    body .pfs-shop
    .pfs-side-card h3{
        color:#07396f !important;

        font-size:13px !important;
    }


    body .pfs-shop
    .pfs-side-card > a{
        min-height:34px !important;

        padding:
            6px 9px !important;

        border-radius:8px !important;

        color:#3b6389 !important;

        font-size:10px !important;
    }


    body .pfs-shop
    .pfs-side-card > a:hover,
    body .pfs-shop
    .pfs-side-card > a.is-active{
        color:#0869e8 !important;

        background:
            linear-gradient(
                90deg,
                rgba(18,119,239,.12),
                rgba(18,119,239,.035)
            ) !important;

        box-shadow:
            inset 3px 0 0 #0a73ef !important;
    }


    body .pfs-shop
    .pfs-filter-options input{
        accent-color:#0872ec !important;
    }


    body .pfs-shop
    .pfs-apply-filter{
        background:
            linear-gradient(
                135deg,
                #0d7cff,
                #075bc8
            ) !important;

        box-shadow:
            0 7px 17px rgba(6,102,225,.18) !important;
    }

}


/* ==========================================================
   SEARCH / TOP FILTER
   ========================================================== */

body .pfs-shop
.pfs-search-form{
    border:
        1px solid rgba(45,128,220,.16) !important;

    background:
        rgba(255,255,255,.83) !important;

    backdrop-filter:
        blur(12px) !important;

    -webkit-backdrop-filter:
        blur(12px) !important;

    box-shadow:
        0 9px 26px rgba(10,82,165,.06) !important;
}


body .pfs-shop
.pfs-search-submit{
    background:
        linear-gradient(
            135deg,
            #0c7cff,
            #075bc8
        ) !important;

    box-shadow:
        0 7px 16px rgba(7,101,219,.18) !important;
}


/* ==========================================================
   PAGINATION
   ========================================================== */

body .pfs-shop
.pfs-pagination a,
body .pfs-shop
.pfs-pagination span{
    border:
        1px solid rgba(34,120,216,.19) !important;

    color:#27649e !important;

    background:
        rgba(255,255,255,.84) !important;

    box-shadow:
        0 4px 12px rgba(15,85,160,.04) !important;
}


body .pfs-shop
.pfs-pagination .current{
    color:#fff !important;

    border-color:
        #0872ec !important;

    background:
        linear-gradient(
            135deg,
            #0b7dff,
            #0659c4
        ) !important;

    box-shadow:
        0 7px 16px rgba(7,104,225,.20) !important;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* medium desktop */
@media (min-width:1001px) and (max-width:1150px){

    body .pfs-shop
    .pfs-product-grid{
        grid-template-columns:
            repeat(3,minmax(0,1fr)) !important;
    }

}


/* tablet */
@media (min-width:801px) and (max-width:1000px){

    body .pfs-shop
    .pfs-product-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }

}


/*
 * Mobile layout remains controlled by existing
 * padidar-shop-v1 responsive rules.
 */


/* ==========================================================
   END PADIDAR SHOP GLASS BLUE V1
   ========================================================== */



/* ==========================================================
   PADIDAR SHOP COMPACT SPECS V2
   thickness + width same row
   smaller card height
   rounder product image
   ========================================================== */


/* ==========================================================
   IMAGE FRAME
   ========================================================== */

body .pfs-shop
.pfs-product-image{
    height:160px !important;

    margin:
        8px 8px 0 !important;

    padding:6px !important;

    overflow:hidden !important;

    border:
        1px solid rgba(43,128,224,.13) !important;

    border-radius:15px !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(238,247,255,.92)
        ) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.96),
        0 5px 14px rgba(20,91,167,.06) !important;
}


body .pfs-shop
.pfs-product-image img{
    width:100% !important;
    height:100% !important;

    object-fit:contain !important;

    border-radius:12px !important;

    overflow:hidden !important;
}


/* ==========================================================
   SMALLER BODY
   ========================================================== */

body .pfs-shop
.pfs-product-body{
    padding:
        9px 9px 10px !important;
}


body .pfs-shop
.pfs-product-card h2{
    min-height:40px !important;

    margin:
        3px 0 6px !important;

    font-size:11.5px !important;
    line-height:1.7 !important;
}


/* ==========================================================
   SPECS
   1 = thickness
   2 = width
   3 = color
   ========================================================== */

body .pfs-shop
.pfs-product-specs{
    display:grid !important;

    grid-template-columns:
        repeat(2,minmax(0,1fr)) !important;

    min-height:0 !important;

    gap:6px !important;

    margin:
        0 0 8px !important;

    padding:
        7px 0 0 !important;

    border-top:
        1px solid rgba(36,119,215,.10) !important;
}


/* ضخامت و عرض */
body .pfs-shop
.pfs-product-specs > div:nth-child(1),

body .pfs-shop
.pfs-product-specs > div:nth-child(2){
    min-width:0 !important;
    min-height:29px !important;

    display:flex !important;

    align-items:center !important;
    justify-content:center !important;

    gap:4px !important;

    padding:
        4px 6px !important;

    border:
        1px solid rgba(43,126,219,.08) !important;

    border-radius:8px !important;

    background:
        linear-gradient(
            145deg,
            rgba(241,247,253,.94),
            rgba(250,252,255,.98)
        ) !important;

    color:#75889b !important;

    font-size:8.5px !important;

    white-space:nowrap !important;
}


/* مقدار داخل کپسول */
body .pfs-shop
.pfs-product-specs > div:nth-child(1) strong,

body .pfs-shop
.pfs-product-specs > div:nth-child(2) strong{
    max-width:none !important;

    color:#174b7d !important;

    font-size:9px !important;

    font-weight:800 !important;

    text-align:center !important;
}


/* رنگ: ردیف باریک زیر ضخامت و عرض */
body .pfs-shop
.pfs-product-specs > div:nth-child(3){
    grid-column:
        1 / -1 !important;

    min-height:21px !important;

    display:flex !important;

    align-items:center !important;
    justify-content:center !important;

    gap:5px !important;

    padding:0 !important;

    color:#8191a0 !important;

    font-size:8.3px !important;
}


body .pfs-shop
.pfs-product-specs > div:nth-child(3) strong{
    max-width:none !important;

    color:#174b7d !important;

    font-size:8.7px !important;

    font-weight:800 !important;
}


/* اگر فقط یک یا دو مشخصه موجود بود */
body .pfs-shop
.pfs-product-specs > div:only-child{
    grid-column:
        1 / -1 !important;
}


/* ==========================================================
   BUTTONS: slightly more compact
   ========================================================== */

body .pfs-shop
.pfs-product-actions{
    gap:5px !important;
}


body .pfs-shop
.pfs-product-actions a{
    height:32px !important;
    min-height:32px !important;

    border-radius:8px !important;

    font-size:8.8px !important;
}


/* ==========================================================
   MOBILE
   Keep thickness + width beside each other
   ========================================================== */

@media (max-width:700px){

    body .pfs-shop
    .pfs-product-image{
        height:145px !important;

        margin:
            6px 6px 0 !important;

        border-radius:13px !important;
    }


    body .pfs-shop
    .pfs-product-image img{
        border-radius:10px !important;
    }


    body .pfs-shop
    .pfs-product-specs{
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;

        gap:5px !important;
    }


    body .pfs-shop
    .pfs-product-specs > div:nth-child(1),

    body .pfs-shop
    .pfs-product-specs > div:nth-child(2){
        min-height:27px !important;

        padding:
            3px 4px !important;
    }

}


/* ==========================================================
   END PADIDAR SHOP COMPACT SPECS V2
   ========================================================== */



/* ==========================================================
   PADIDAR DECIMAL NUMBER DIRECTION FIX V1
   Correct:
   30.0  -> 0.30
   00.1  -> 1.00
   25.1  -> 1.25
   50.1  -> 1.50
   00.2  -> 2.00
   ========================================================== */


/* Numbers wrapped by our English-digit normalizer */
body .pfs-shop
.pfs-filter-options .pf-latin-digits,

body .pfs-shop
.pfs-product-specs .pf-latin-digits{
    display:inline-block !important;

    direction:ltr !important;

    unicode-bidi:isolate !important;

    text-align:left !important;
}


/*
 * Also protect plain numeric text inside
 * Woo attribute values / counts.
 */
body .pfs-shop
.pfs-filter-options label{
    unicode-bidi:plaintext !important;
}


/* Count column remains normal */
body .pfs-shop
.pfs-filter-options small{
    direction:ltr !important;

    unicode-bidi:isolate !important;
}


/* Product-card numeric values */
body .pfs-shop
.pfs-product-specs strong{
    direction:ltr !important;

    unicode-bidi:isolate !important;

    display:inline-block !important;
}


/* ==========================================================
   END PADIDAR DECIMAL NUMBER DIRECTION FIX V1
   ========================================================== */



/* ==========================================================
   PADIDAR THICKNESS BIDI FINAL V2
   Exact runtime selector
   ========================================================== */


/* عدد اصلی هر گزینه فیلتر */
html body .pfs-shop
.pfs-filter-options label > span{
    display:block !important;

    direction:ltr !important;

    unicode-bidi:isolate-override !important;

    text-align:right !important;

    font-variant-numeric:
        tabular-nums !important;

    letter-spacing:0 !important;
}


/* تعداد محصولات مثل 4 */
html body .pfs-shop
.pfs-filter-options label > small{
    direction:ltr !important;

    unicode-bidi:isolate !important;
}


/* اعداد مشخصات داخل کارت محصول */
html body .pfs-shop
.pfs-product-specs strong{
    direction:ltr !important;

    unicode-bidi:isolate-override !important;

    display:inline-block !important;

    font-variant-numeric:
        tabular-nums !important;
}


/* ==========================================================
   END PADIDAR THICKNESS BIDI FINAL V2
   ========================================================== */


/* PADIDAR COLOR FILTER RTL FIX V1 START */

/*
 * Filter order:
 * 1 = ضخامت
 * 2 = عرض
 * 3 = رنگ
 *
 * Thickness keeps LTR.
 * Persian color names must be RTL.
 */

html body.pf-site
.pfs-shop
.pfs-filter-card
> .pfs-filter-group:nth-of-type(3)
.pfs-filter-options
label
> span {

    direction: rtl !important;

    unicode-bidi: isolate !important;

    text-align: right !important;

    display: block !important;

    white-space: normal !important;
}


/* PADIDAR COLOR FILTER RTL FIX V1 END */


/* PADIDAR SHOP RED HARMONY V1 START */

/* Product card */
body.pf-site .pfs-shop
.pfs-product-grid .pfs-product-card {
    border-color: rgba(236, 16, 36, .20) !important;
    box-shadow:
      0 5px 20px rgba(119, 19, 31, .045) !important;
    transition:
      border-color .25s ease,
      box-shadow .25s ease,
      transform .25s ease !important;
}

body.pf-site .pfs-shop
.pfs-product-grid .pfs-product-card:hover {
    border-color: rgba(236, 16, 36, .65) !important;
    box-shadow:
      0 12px 30px rgba(236, 16, 36, .12),
      0 0 0 2px rgba(255, 102, 76, .06) !important;
    transform: translateY(-3px) !important;
}

/* Product image background */
body.pf-site .pfs-shop
.pfs-product-card .pfs-product-image {
    border-color: rgba(236, 16, 36, .12) !important;
    background:
      linear-gradient(135deg, #ffffff, #fff7f8) !important;
}

/* Technical specifications */
body.pf-site .pfs-shop
.pfs-product-card .pfs-product-specs > div {
    border-color: rgba(236, 16, 36, .14) !important;
    background: rgba(255, 247, 248, .85) !important;
}

/* Primary button: استعلام قیمت */
body.pf-site .pfs-shop
.pfs-product-card .pfs-product-actions a.pfs-inquiry {
    background:
      linear-gradient(120deg, #f21b35, #d80e25) !important;
    border: 1px solid #db1027 !important;
    color: #ffffff !important;
    box-shadow:
      0 4px 12px rgba(236, 16, 36, .14) !important;
    text-decoration: none !important;
    transition:
      background .2s ease,
      transform .2s ease,
      box-shadow .2s ease !important;
}

/* Secondary button: اطلاعات بیشتر */
body.pf-site .pfs-shop
.pfs-product-card .pfs-product-actions a.pfs-more {
    background:
      linear-gradient(135deg, #ffffff, #fff8f9) !important;
    border: 1px solid #ed3045 !important;
    color: #df112b !important;
    box-shadow:
      0 2px 8px rgba(236, 16, 36, .035) !important;
    text-decoration: none !important;
    transition:
      background .2s ease,
      border-color .2s ease,
      transform .2s ease,
      box-shadow .2s ease !important;
}

/* Hover effects */
body.pf-site .pfs-shop
.pfs-product-card .pfs-product-actions a.pfs-inquiry:hover,
body.pf-site .pfs-shop
.pfs-product-card .pfs-product-actions a.pfs-inquiry:focus-visible {
    background:
      linear-gradient(120deg, #d80b25, #b80920) !important;
    color: #ffffff !important;
    box-shadow:
      0 7px 17px rgba(236, 16, 36, .24) !important;
    transform: translateY(-2px) !important;
}

body.pf-site .pfs-shop
.pfs-product-card .pfs-product-actions a.pfs-more:hover,
body.pf-site .pfs-shop
.pfs-product-card .pfs-product-actions a.pfs-more:focus-visible {
    background:
      linear-gradient(135deg, #fff0f2, #ffe5e9) !important;
    border-color: #d80e25 !important;
    color: #bb0b23 !important;
    box-shadow:
      0 5px 13px rgba(236, 16, 36, .10) !important;
    transform: translateY(-2px) !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    body.pf-site .pfs-shop
    .pfs-product-grid .pfs-product-card,
    body.pf-site .pfs-shop
    .pfs-product-actions a {
        transition: none !important;
        transform: none !important;
    }
}

/* PADIDAR SHOP RED HARMONY V1 END */
