/* ═══════════════════════════════════════════════════════════
   SWIPER
═══════════════════════════════════════════════════════════ */
.new-items-swiper { padding: 0 40px; }
.new-items-swiper .swiper-button-next,
.new-items-swiper .swiper-button-prev {
    color: #27ae60;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.new-items-swiper .swiper-button-next::after,
.new-items-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}
.new-items-swiper .swiper-slide { height: auto; }

/* ═══════════════════════════════════════════════════════════
   CATEGORY-PART
═══════════════════════════════════════════════════════════ */
.category-part .category-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}
.category-part .category-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
.category-part .category-meta { padding: 8px 10px; }
.category-part .category-meta h4 {
    min-height: 26px;
    max-height: 26px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    font-size: 17px;
}
.category-part .category-meta p {
    min-height: 20px;
    max-height: 20px;
    overflow: hidden;
    font-size: 15px;
    color: var(--gray);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARD (pcard)
═══════════════════════════════════════════════════════════ */
.deals-grid { row-gap: 24px; }
.deals-grid > .col { display: flex; }

.pcard {
    --r: 18px;
    position: relative;
    isolation: isolate; /* ⭐ z-indexهای داخل کارت بیرون نمیزنن و روی هدر نمیفتن */
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--r);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s ease,
    border-color .35s ease;
}

@media (hover: hover) {
    .pcard:hover {
        transform: translateY(-6px);
        border-color: var(--primary);
        box-shadow: 0 18px 40px -14px rgba(17, 151, 68, .35);
    }
}

.pcard-media { position: relative; padding: 10px 10px 0; }

.pcard-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: calc(var(--r) - 6px);
    background: var(--chalk);
}
.pcard-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.pcard:hover .pcard-img img { transform: scale(1.04); }

.pcard-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    padding: 5px 11px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 18px;
    color: var(--white);
    background: linear-gradient(135deg, #ff5f5f, var(--red));
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(255, 56, 56, .35);
}

.pcard-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.pcard-badges .pcard-badge { position: static; }

.pcard-badge.is-new {
    background: linear-gradient(135deg, #2ee08a, var(--green));
    box-shadow: 0 6px 14px rgba(17, 183, 107, .35);
}

.pcard-wish {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #c4c4c4;
    background: rgba(255, 255, 255, .9);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    cursor: pointer;
    transition: color .25s, transform .25s;
}
.pcard-wish:hover, .pcard-wish.active { color: var(--red); transform: scale(1.12); }

.pcard-cart {
    position: absolute;
    z-index: 3;
    right: 18px;
    left: 18px;
    bottom: 8px;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
}

/* ─── Livewire Add to Cart Button ─── */
.pcard-cart .product-add {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: var(--white);
    background: var(--primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.pcard-cart .product-add:hover { background: var(--primary-dark, #0f7d38); transform: translateY(-1px); }
.pcard-cart .product-add:active { transform: translateY(0); }
.pcard-cart .product-add i { font-size: 15px; line-height: 1; display: inline-flex; align-items: center; }
.pcard-cart .product-add span { font-size: 14px; line-height: 1; }

.pcard-cart .product-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex-wrap: nowrap !important;
}

.pcard-cart .action-minus,
.pcard-cart .action-plus {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px;
    line-height: 1;
    color: var(--white);
    background: var(--primary) !important;
    border: none !important;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    box-shadow: 0 4px 10px rgba(17, 151, 68, .25);
}
.pcard-cart .action-minus:hover,
.pcard-cart .action-plus:hover { background: var(--primary-dark, #0f7d38) !important; transform: scale(1.05); }
.pcard-cart .action-minus:active,
.pcard-cart .action-plus:active { transform: scale(0.95); }
.pcard-cart .action-minus i,
.pcard-cart .action-plus i { font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; }

.pcard-cart .action-input {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 45px !important;
    max-width: 70px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    margin: 0 !important;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: var(--heading);
    background: var(--white) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 10px;
    outline: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04) !important;
}
.pcard-cart .action-input:focus { border-color: var(--primary) !important; box-shadow: 0 2px 8px rgba(17, 151, 68, .15) !important; }
.pcard-cart .action-input::-webkit-outer-spin-button,
.pcard-cart .action-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pcard-cart .action-input[type=number] { -moz-appearance: textfield; }

/* ─── دکمه‌ی «مشاهده جزئیات» (ثابت، ته کادر کارت) ─── */
.pcard-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary);
    background: rgba(17, 151, 68, .07);
    border: 1px solid rgba(17, 151, 68, .18);
    border-radius: 12px;
    transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pcard-view i { font-size: 11px; transition: transform .25s ease; }
.pcard-view:hover,
.pcard:hover .pcard-view:hover {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 18px -8px rgba(17, 151, 68, .55);
}
.pcard-view:hover i { transform: translateX(-4px); }

@media (hover: hover) and (min-width: 992px) {
    .pcard-cart {
        opacity: 0;
        transform: translateY(16px);
        pointer-events: none;
        transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1);
    }
    .pcard:hover .pcard-cart,
    .pcard:focus-within .pcard-cart { opacity: 1; transform: none; pointer-events: auto; }

    /* محصولی که در سبد است: انتخابگر تعداد همیشه دیده شود (بدون بک‌گراند) */
    .pcard-cart:has(.product-action) {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@media (max-width: 575px) {
    .pcard-view { margin-top: 6px; padding: 5px 8px; font-size: 12px; border-radius: 10px; }
}

.pcard-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 14px 12px;
    text-align: right;
}
.pcard-rating { display: flex; align-items: center; gap: 2px; margin-bottom: 2px; }
.pcard-rating i { font-size: 12px; color: var(--gray-chalk); }
.pcard-rating i.active { color: var(--yellow); }
.pcard-rating a { margin-right: 4px; font-size: 12px; color: var(--gray); }

.pcard .pcard-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    height: 44px;
    margin-bottom: 6px;
    overflow: hidden;
    text-transform: none;
    white-space: normal;      /* the theme forced one line; allow wrapping to 2 lines */
    overflow-wrap: anywhere;
}
.pcard .pcard-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: inherit;     /* follows the h3 so the mobile size below still works */
    color: var(--heading);
    transition: color .25s;
}
.pcard .pcard-title a:hover { color: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   محصولات ویژه — کارت افقی (fcard)
═══════════════════════════════════════════════════════════ */
.fgrid { row-gap: 18px; }
.fgrid > .col { display: flex; }

.fcard {
    position: relative;
    isolation: isolate; /* ⭐ z-indexهای داخل کارت (نشان، دکمه) بیرون نمی‌زنن و روی هدر/منو نمی‌افتن */
    z-index: 0;
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
/* نوار رنگی باریک کنار کارت */
.fcard::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    right: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: var(--primary);
    opacity: .85;
}
@media (hover: hover) {
    .fcard:hover {
        transform: translateY(-4px);
        border-color: var(--primary);
        box-shadow: 0 16px 34px -16px rgba(17, 151, 68, .38);
    }
}

/* عکس: قاب مربعی ثابت */
.fcard__media {
    position: relative;
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    align-self: center;
}
.fcard__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--chalk);
}
.fcard__img img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform .35s ease;
}
@media (hover: hover) { .fcard:hover .fcard__img img { transform: scale(1.05); } }

.fcard__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    color: var(--white);
    background: var(--primary);
    border-radius: 999px;
    box-shadow: 0 4px 10px -4px rgba(17, 151, 68, .6);
}
.fcard__badge i { font-size: 9px; }

/* بدنه */
.fcard__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: right;
}

/* عنوان: حداکثر ۲ خط، بعدش «…» */
.fcard__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 24px;
}
.fcard__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: inherit;
    overflow-wrap: anywhere;
    transition: color .2s;
}
.fcard__title a:hover { color: var(--primary); }

/* توضیحات: حداکثر ۲ خط، بعدش «…» */
.fcard__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 22px;
    color: var(--gray, #6b7a70);
    overflow-wrap: anywhere;
}

/* پایین کارت: قیمت یک طرف، دکمه طرف دیگر */
.fcard__foot {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px dashed var(--border);
}
.fcard__price {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.5;
}
.fcard__price del {
    font-size: 12px;
    color: var(--red, #e5484d);
}
.fcard__price strong {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
}
.fcard__price small {
    font-size: 11px;
    color: var(--gray, #6b7a70);
}
.fcard .pcard-cart {
    position: static;
    z-index: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.fcard .fcard__cart .product-add,
.fcard .fcard__cart .product-action {
    position: relative;
    z-index: auto;
    inset: auto;
}
.fcard__cart { flex: 0 0 132px; }
.fcard .fcard__cart .product-add {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: var(--white);
    background: var(--primary);
    border: none;
    border-radius: 10px;
}
.fcard .fcard__cart .product-add:hover { background: var(--primary-dark, #0f7d38); }

/* موبایل */
@media (max-width: 575px) {
    .fcard { gap: 12px; padding: 12px; }
    .fcard__media { flex-basis: 108px; width: 108px; height: 108px; }
    .fcard__title { font-size: 14px; line-height: 22px; }
    .fcard__desc { font-size: 12px; line-height: 20px; margin-bottom: 8px; }
    .fcard__foot { flex-wrap: wrap; padding-top: 10px; }
    .fcard__cart { flex: 1 1 100%; }
}

.pcard-price { margin-top: auto; }
.pcard-old {
    height: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: var(--gray);
}
.pcard-old del { color: #a8a8a8; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.pcard-old small { font-size: 11px; }

.pcard-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; line-height: 26px; }
.pcard-now strong { font-size: 19px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.pcard-now small { font-size: 12px; color: var(--text); }
.pcard-now em { font-style: normal; font-size: 12px; color: var(--gray); }

/* ═══════════════════════════════════════════════════════════
   NICHE-PART
═══════════════════════════════════════════════════════════ */
.niche-part .pcard { margin-bottom: 10px; }
.niche-part .tab-pane { display: none; }
.niche-part .tab-pane.active { display: block; }
.niche-part .tab-pane.fade { transition: opacity .15s linear; }
.niche-part .tab-pane.fade:not(.show) { opacity: 0; }

/* ═══════════════════════════════════════════════════════════
   SHOP SIDEBAR — طراحی مدرن
═══════════════════════════════════════════════════════════ */
.shop-sidebar-col {
    transition: right .3s ease;
}

/* هدر سایدبار */
.sidebar-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #0f7d38 100%);
    border-radius: 14px;
    box-shadow: 0 8px 20px -8px rgba(17, 151, 68, .4);
}
.sidebar-header-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .2);
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
}
.sidebar-header-text { flex: 1; }
.sidebar-header-text h5 { margin: 0 0 2px; font-size: 16px; font-weight: 700; color: #fff; }
.sidebar-header-text span { font-size: 12px; color: rgba(255, 255, 255, .8); }

/* دکمه بستن — فقط موبایل */
.shop-sidebar-close {
    display: none;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .2);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}
.shop-sidebar-close:hover { background: rgba(255, 255, 255, .35); }

/* ویجت */
.shop-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .3s ease;
}
.shop-widget:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .05); }

.shop-widget-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
    transition: background .25s ease;
}
.shop-widget-toggle:hover { background: rgba(17, 151, 68, .04); }

.shop-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--heading);
}
.shop-widget-title i { color: var(--primary); font-size: 14px; }

.shop-widget-arrow {
    font-size: 12px;
    color: var(--gray);
    transition: transform .3s ease;
}
.shop-widget.is-open .shop-widget-arrow { transform: rotate(180deg); }

.shop-widget-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 16px;
}
.shop-widget.is-open .shop-widget-body {
    max-height: 600px;
    padding: 0 16px 16px;
}

.shop-widget-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.shop-widget-scroll {
    max-height: 240px;
    overflow-y: auto;
    padding-left: 6px;
    margin-left: -6px;
}
.shop-widget-scroll::-webkit-scrollbar { width: 5px; }
.shop-widget-scroll::-webkit-scrollbar-track { background: transparent; }
.shop-widget-scroll::-webkit-scrollbar-thumb { background: rgba(17, 151, 68, .25); border-radius: 10px; }
.shop-widget-scroll::-webkit-scrollbar-thumb:hover { background: rgba(17, 151, 68, .5); }

/* چک‌باکس سفارشی */
.shop-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease;
    position: relative;
    margin: 0;
}
.shop-checkbox:hover { background: rgba(17, 151, 68, .06); }
.shop-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.shop-checkbox-mark {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid var(--border);
    border-radius: 5px;
    display: grid;
    place-items: center;
    transition: all .2s ease;
    background: var(--white);
}
.shop-checkbox-mark::after {
    content: '';
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    margin-top: -2px;
    transition: transform .2s ease;
}
.shop-checkbox input:checked + .shop-checkbox-mark {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(17, 151, 68, .3);
}
.shop-checkbox input:checked + .shop-checkbox-mark::after { transform: rotate(-45deg) scale(1); }

.shop-checkbox-label {
    flex: 1;
    font-size: 13.5px;
    color: var(--text);
    transition: color .2s;
}
.shop-checkbox input:checked ~ .shop-checkbox-label { color: var(--primary); font-weight: 600; }

.shop-checkbox-count {
    font-size: 11.5px;
    color: var(--gray);
    background: var(--chalk);
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* گروه input قیمت */
.shop-widget-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.shop-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--chalk);
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 4px 12px;
    transition: all .25s ease;
}
.shop-input-wrap:focus-within {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(17, 151, 68, .1);
}
.shop-input-label {
    font-size: 12px;
    color: var(--gray);
    font-weight: 600;
    flex-shrink: 0;
}
.shop-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 0;
    font-size: 14px;
    color: var(--heading);
    font-weight: 600;
    width: 100%;
    min-width: 0;
}
.shop-input-wrap input::placeholder { color: #b8b8b8; font-weight: 400; }
.shop-input-unit { font-size: 11px; color: var(--gray); flex-shrink: 0; }

/* دکمه ویجت */
.shop-widget-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
}
.shop-widget-btn:hover {
    background: var(--primary-dark, #0f7d38);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(17, 151, 68, .25);
}
.shop-widget-btn i { font-size: 12px; }

/* دکمه پاک کردن همه */
.shop-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--red);
    background: rgba(255, 56, 56, .06);
    border: 1.5px dashed rgba(255, 56, 56, .3);
    border-radius: 14px;
    text-decoration: none;
    transition: all .25s ease;
    margin-top: 4px;
}
.shop-reset-btn:hover {
    background: rgba(255, 56, 56, .1);
    border-color: var(--red);
    color: var(--red);
}

/* ═══════════════════════════════════════════════════════════
   BACKDROP (موبایل)
═══════════════════════════════════════════════════════════ */
.shop-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    transition: opacity .3s ease;
}
.shop-sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* دکمه فیلتر موبایل */
.filter-mobile-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(17, 151, 68, .25);
}
.filter-mobile-btn:hover {
    background: var(--primary-dark, #0f7d38);
    transform: translateY(-1px);
}
.filter-mobile-btn i { font-size: 15px; }

/* ═══════════════════════════════════════════════════════════
   MOBILE — تجاوب‌پذیری
═══════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    /* سایدبار موبایل */
    .shop-sidebar-col {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(340px, 90vw);
        height: 100vh;
        background: #f7f8fa;
        z-index: 9999;
        overflow-y: auto;
        padding: 16px;
        box-shadow: -8px 0 24px rgba(0, 0, 0, .15);
        transition: right .35s cubic-bezier(.2, .8, .2, 1);
    }
    .shop-sidebar-col.active { right: 0; }

    .sidebar-header {
        padding: 14px 14px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    .sidebar-header-icon { width: 38px; height: 38px; font-size: 16px; }
    .sidebar-header-text h5 { font-size: 15px; }
    .sidebar-header-text span { font-size: 11px; }

    .shop-sidebar-close { display: inline-flex; }

    .shop-widget { border-radius: 12px; }
    .shop-widget-toggle { padding: 12px 14px; }
    .shop-widget-title { font-size: 14px; }

    /* دکمه فیلتر موبایل */
    .filter-mobile-btn { display: inline-flex; }

    /* Top filter */
    .top-filter {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 16px;
        padding: 12px 14px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 12px;
    }

    .filter-show,
    .filter-short {
        flex: 1;
        min-width: 140px;
    }

    .filter-label {
        font-size: 12.5px;
        color: var(--gray);
        display: block;
        margin-bottom: 4px;
    }

    .filter-select {
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE SMALL — موبایل کوچک
═══════════════════════════════════════════════════════════ */
@media (max-width: 575px) {
    .deals-grid { row-gap: 10px; }
    .pcard { --r: 14px; }
    .pcard-media { padding: 6px 6px 0; }
    .pcard-body { padding: 8px 10px 10px; }

    .pcard .pcard-title { font-size: 13.5px; line-height: 20px; height: 40px; margin-bottom: 4px; }
    .pcard-now strong { font-size: 16px; }

    .pcard-badge { top: 12px; right: 12px; font-size: 11px; padding: 3px 8px; }
    .pcard-badges { top: 12px; right: 12px; gap: 4px; }
    .pcard-wish { top: 12px; left: 12px; width: 30px; height: 30px; }

    .pcard-cart { right: 12px; left: 12px; bottom: 6px; }
    .pcard-cart .product-add { height: 38px; padding: 0 12px; font-size: 13px; border-radius: 8px; gap: 6px; }
    .pcard-cart .product-add i,
    .pcard-cart .product-add span { font-size: 13px; }
    .pcard-cart .product-action { height: 38px !important; gap: 4px !important; }
    .pcard-cart .action-minus,
    .pcard-cart .action-plus { width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; font-size: 12px; border-radius: 8px; }
    .pcard-cart .action-minus i,
    .pcard-cart .action-plus i { font-size: 12px; }
    .pcard-cart .action-input { min-width: 40px !important; max-width: 60px !important; height: 34px !important; font-size: 14px; border-radius: 8px; padding: 0 6px !important; }

    .niche-part .pcard { margin-bottom: 7px; }

    /* سایدبار کوچک‌تر */
    .shop-sidebar-col { padding: 12px; }
    .sidebar-header { padding: 12px; }
    .shop-widget.is-open .shop-widget-body { padding: 0 12px 12px; }
}

/* ═══════════════════════════════════════════════════════════
   LIVEWIRE FIX
═══════════════════════════════════════════════════════════ */
.pcard-cart button,
.pcard-cart input,
.pcard-cart * { box-sizing: border-box; }

.pcard-cart .product-add[disabled],
.pcard-cart .product-add.opacity-50,
.pcard-cart .action-minus[disabled],
.pcard-cart .action-plus[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
/* ═══════════════════════════════════════════════════════════
   محصولات برگزیده — تب‌های موبایل
═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .niche-part .section-heading { margin-bottom: 16px; }
    .niche-part .section-heading h2 { font-size: 22px; line-height: 32px; }

    .niche-part .nav-tabs {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 6px;
        margin-bottom: 14px;
        padding: 6px;
        border-radius: 14px;
        overflow-x: auto;                 /* اگر عرض کم بود اسکرول افقی */
        scrollbar-width: none;
    }
    .niche-part .nav-tabs::-webkit-scrollbar { display: none; }

    .niche-part .nav-tabs li {
        flex: 1 0 auto;
        padding: 0;
        border: 0;
    }

    .niche-part .tab-link {
        flex-direction: column;
        gap: 3px;
        padding: 8px 10px;
        font-size: 12.5px;
        font-weight: 700;
        text-transform: none;
        text-align: center;
        white-space: nowrap;
        border-radius: 10px;
    }
    .niche-part .tab-link i { margin: 0; font-size: 18px; }

    .niche-part .tab-link.active {
        background: color-mix(in srgb, var(--primary) 12%, #fff);
    }
}