/*==================================================
        SHOP FILTER SIDEBAR
==================================================*/

.widget.shop-filter-widget{

    background:#fff;
    border:1px solid #ececec;
    border-radius:18px;
    padding:24px;
    box-shadow:0 10px 25px rgba(0,0,0,.05);

}

/* هر بخش */

.wp-block-woocommerce-product-filter-price,
.wp-block-woocommerce-product-filter-taxonomy,
.wp-block-woocommerce-product-filter-status{

    margin-bottom:28px;

}

/* عنوان */

.wp-block-heading{

    font-size:17px;
    font-weight:700;

    margin-bottom:18px !important;

    position:relative;

    padding-bottom:10px;

}

.wp-block-heading:after{

    content:"";

    position:absolute;

    right:0;
    bottom:0;

    width:50px;
    height:3px;

    background:#CD1640;

    border-radius:20px;

}

/*==========================
    Checkbox List
==========================*/

.wc-block-product-filter-checkbox-list__items{

    padding-right:12px;

}

.wc-block-product-filter-checkbox-list__item{

    margin-bottom:12px;

}

.wc-block-product-filter-checkbox-list__label{

    padding:8px 10px;

    border-radius:10px;

    transition:.25s;

}

.wc-block-product-filter-checkbox-list__label:hover{

    background:#f8f8f8;

}

.wc-block-product-filter-checkbox-list__text{

    margin-right:10px;

    font-size:14px;

}

/*==========================
      Price Slider
==========================*/

.wc-block-product-filter-price-slider{

    margin-top:20px;

}

/* اسلایدر */

.wc-block-product-filter-price-slider__range{

    width:100%;

    margin-bottom:18px;

}

/* چیدمان */

.wc-block-product-filter-price-slider__content{

    display:flex;

    flex-direction:column;

    gap:12px;

}

/* تمام div های داخل */

.wc-block-product-filter-price-slider__content>div{

    width:100%;

}

/* Input */

.wc-block-product-filter-price-slider__content input[type=text]{

    width:100% !important;

    max-width:none !important;

    height:46px;

    border:1px solid #ddd;

    border-radius:10px;

    padding:0 15px;

    box-sizing:border-box;

    text-align:center;

    background:#fafafa;

}

.wc-block-product-filter-price-slider__content input[type=text]:focus{

    border-color:#CD1640;

    outline:none;

    background:#fff;

}

/*==========================
    Buttons
==========================*/

.wc-block-product-filter-clear-button .wp-element-button{

    width:100%;

    background:#CD1640 !important;

    color:#fff !important;

    border:none;

    border-radius:10px;

    padding:12px;

}

.wc-block-product-filter-clear-button .wp-element-button:hover{

    background:#b7133b !important;

}


/* ===== Force Vertical Price Inputs ===== */

.wc-block-product-filter-price-slider__content{

    display:grid !important;
    grid-template-columns:1fr !important;
    grid-template-areas:
        "range"
        "min"
        "max" !important;

    gap:12px;

}

.wc-block-product-filter-price-slider__range{

    grid-area:range !important;

}

.wc-block-product-filter-price-slider__left{

    grid-area:min !important;
    width:100% !important;

}

.wc-block-product-filter-price-slider__right{

    grid-area:max !important;
    width:100% !important;

}

.wc-block-product-filter-price-slider__left input,
.wc-block-product-filter-price-slider__right input{

    width:100% !important;

}

/*==========================
  Price Range Labels
===========================*/

.wc-block-product-filter-price-slider__left,
.wc-block-product-filter-price-slider__right{

    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    margin-bottom:12px;

}

.price-label{

    min-width:22px;
    font-size:14px;
    font-weight:700;
    color:#444;

}

.wc-block-product-filter-price-slider__left input,
.wc-block-product-filter-price-slider__right input{

    flex:1;
    width:auto !important;
}



/*==================================
    EAEL Compare Popup
===================================*/

#eael_modal_content{

    padding:35px;
    background:#fafafa;

}

.eael-wcpc-wrapper{

    border-radius:18px;
    overflow:hidden;

}

/* جدول */

.eael-wcpc-table{

    width:100%;
    table-layout:fixed;
    border-collapse:collapse;
    background:#fff;

}

/* ستون عنوان */

.eael-wcpc-table th{

    width:220px;
    min-width:220px;
    background:#fafafa;
    font-size:14px;
    font-weight:700;
    color:#333;
    padding:18px;

}

/* ستون محصولات */

.eael-wcpc-table td{

    width:auto;
    padding:20px;
    text-align:center;
    vertical-align:middle;
    border-left:1px solid #f2f2f2;

}

/* عنوان بالا */

.wcpc-title{

    font-size:22px !important;
    font-weight:700;
    color:#CD1640;
    margin:0;

}

/* عکس */

.eael-wcpc-table img{

    width:150px;
    height:150px;
    object-fit:contain;

}

/* نام */

.eael-wcpc-table .title td{

    font-size:17px;
    font-weight:700;
    color:#222;

}

/* قیمت */

.eael-wcpc-table .price td{

    color:#CD1640;
    font-size:18px;
    font-weight:700;

}

/* دکمه */

.eael-wcpc-table .button{

    background:#CD1640;
    color:#fff;
    border-radius:10px;
    padding:12px 24px;
    border:none;
    transition:.3s;

}

.eael-wcpc-table .button:hover{

    background:#b31339;

}

/* حذف */

.eael-wc-remove{

    color:#CD1640;
    font-size:18px;
    cursor:pointer;
}

.eael-wc-remove:hover{

    color:#a30f31;

}

/* خطوط */

.eael-wcpc-table tr{

    border-bottom:1px solid #f2f2f2;

}


/* پس‌زمینه مودال */
#eael_modal_content{
    background:#f5f5f5 !important;
    padding:30px;
}

/* باکس اصلی */
.eael-wcpc-wrapper{
    background:#fff !important;
    border-radius:18px;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
}

/* جدول */
.eael-wcpc-table{
    background:#fff !important;
}

/* ستون سمت راست (عنوان‌ها) */
.eael-wcpc-table th{
    background:#f7f7f7 !important;
    color:#333;
}

/* ستون محصولات */
.eael-wcpc-table td{
    background:#fff !important;
}

/* ردیف‌ها */
.eael-wcpc-table tr:nth-child(even){
    background:#fcfcfc !important;
}

.eael-wcpc-table tr:nth-child(odd){
    background:#fff !important;
}

/* هدر مقایسه */
.wcpc-title{
    color:#222 !important;
    font-size:20px !important;
    font-weight:700;
}

/* عنوان هر فیلد */
.field-name{
    color:#555;
    font-weight:600;
}

/* حذف هر رنگ بنفش */
.eael-wcpc-table *,
.eael-wcpc-wrapper *{
    --eael-primary-color:#CD1640;
    --eael-secondary-color:#f5f5f5;
}

/* Hover */
.eael-wcpc-table td:hover{
    background:#fafafa;
}

/* خطوط جدول */
.eael-wcpc-table td,
.eael-wcpc-table th{
    border-color:#ececec !important;
}


/* کارت محصول باید مرجع position باشد */
.woocommerce ul.products li.product {
    position: relative;
    overflow: hidden;
}

/* شمارنده عمودی در پایینِ سمت چپ کارت */
.woocommerce ul.products li.product .oj-loop-qty-wrap {
    position: absolute;
    left: 10px;
    bottom: 12px;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: auto;
    margin: 0;
    gap: 0;

    border: 1px solid #e4e4e4;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* دکمه‌های + و - */
.woocommerce ul.products li.product .oj-loop-qty-btn {
    width: 36px;
    height: 32px;
    border: none;
    background: #f7f7f7;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.woocommerce ul.products li.product .oj-loop-qty-btn:hover {
    background: #CD1640;
    color: #fff;
}

/* فیلد عدد وسط */
.woocommerce ul.products li.product .oj-loop-qty-wrap .qty {
    width: 36px;
    height: 32px;
    border: none;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    background: #fff;
    color: #222;
    padding: 0;
    margin: 0;
}

/* حذف فلش‌های پیش‌فرض input number */
.woocommerce ul.products li.product .oj-loop-qty-wrap input[type="number"]::-webkit-inner-spin-button,
.woocommerce ul.products li.product .oj-loop-qty-wrap input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce ul.products li.product .oj-loop-qty-wrap input[type="number"] {
    -moz-appearance: textfield;
}


/* فقط شیشه‌ای کردن شمارنده محصول */
.oj-loop-qty-wrap{
    background:rgba(255,255,255,.45) !important;
    backdrop-filter:blur(10px) saturate(140%) !important;
    -webkit-backdrop-filter:blur(10px) saturate(140%) !important;

    border:1px solid rgba(255,255,255,.65) !important;
    box-shadow:0 8px 20px rgba(0,0,0,.08) !important;

    transition:background .25s ease, border-color .25s ease, box-shadow .25s ease !important;
    
     position:absolute !important;
    top:12px !important;
    left:12px !important;
    bottom:auto !important;
    right:auto !important;
    z-index:30 !important;
}

/* وقتی موس روش رفت، از حالت شیشه‌ای خارج شود */
.oj-loop-qty-wrap:hover{
    background:#fff !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;

    border-color:#e8e8e8 !important;
    box-shadow:0 10px 24px rgba(0,0,0,.12) !important;
}

/* داخلش هم شفاف بماند */
.oj-loop-qty-wrap .quantity,
.oj-loop-qty-wrap input.qty,
.oj-loop-qty-wrap .oj-loop-qty-btn{
    background:transparent !important;
}


