/* ============================================================================
   SHAZDEH — Category / listing page restyle to match mockup (mockups/category.html)
   Scoped to listing body ids so home sliders (also .pro_outer_box) are untouched.
   CSS-only: does NOT replace PrestaShop sort/filter(amazzingfilter)/pagination/add-to-cart
   machinery — only restyles it. Mobile-first.
   ============================================================================ */
:root{
  --szc-pink:#F478A9;--szc-pink-dk:#E0568B;--szc-pink-soft:#FFE3EC;
  --szc-ink:#3D2C2E;--szc-ink-2:#5A4A4C;--szc-ink-3:#7B6B6D;
  --szc-line:#F2E7E3;--szc-cream:#FFF5F0;--szc-red:#F25F5C;--szc-teal-dk:#3DA39B;
  --szc-sh:0 2px 6px rgba(0,0,0,.05);
}

@media (max-width:991.98px){

/* page background */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) #wrapper,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) #main{
  background:var(--szc-cream) !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) #content-wrapper,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .container{
  padding-left:0 !important;padding-right:0 !important;max-width:100% !important;
}

/* category title */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .page_heading,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .category_page_heading{
  font-size:17px !important;font-weight:900 !important;color:var(--szc-ink) !important;
  text-align:center !important;margin:10px 12px 4px !important;
}

/* ===== TOOLBAR (products-selection) → clean sticky bar ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-selection{
  display:flex !important;align-items:center !important;justify-content:space-between !important;
  gap:8px !important;padding:8px 12px !important;margin:0 !important;
  background:rgba(255,245,240,.96) !important;border:0 !important;
  border-bottom:1px solid var(--szc-line) !important;flex-wrap:nowrap !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-selection .total-products,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-selection .total-products p{
  font-size:11px !important;color:var(--szc-ink-3) !important;font-weight:700 !important;margin:0 !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order{
  margin:0 !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .select-title,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .btn{
  background:#fff !important;border:0 !important;border-radius:10px !important;
  box-shadow:var(--szc-sh) !important;font-size:11px !important;font-weight:700 !important;
  color:var(--szc-ink) !important;padding:7px 11px !important;
}

/* ===== PRODUCT GRID → clean 2-col ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) #js-product-list .products.grid{
  /* دور ۱۳۴: REVERTED the دور ۱۳۳ flex experiment — it was broken. The hardening rule
     below (.product_list_item{flex:0 0 auto;width:auto}) has higher specificity and overrode
     the 50% flex-basis, so in a flex ROW every card sized to its CONTENT width (>50%) → ONE
     wide card per row + the whole page overflowing right (user's screenshot). CSS Grid puts the
     column definition on the PARENT, independent of any child flex/width, so it cannot collapse
     like that. minmax(0,1fr) + child min-width:0 = two truly-equal columns; a card's min-content
     (e.g. the nowrap «افزودن به سبد» button) can never widen a track or overflow its cell. */
  display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  align-items:stretch !important;gap:8px !important;
  margin:0 !important;padding:8px 12px !important;
}
/* reset Bootstrap column wrappers so grid cells size cleanly (grid: width:auto = fill the cell) */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid > *{
  width:auto !important;max-width:100% !important;min-width:0 !important;
  padding:0 !important;margin:0 !important;float:none !important;box-sizing:border-box !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid .js-product-miniature,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid .ajax_block_product{
  width:100% !important;min-width:0 !important;margin:0 !important;padding:0 !important;
}
/* HARDENING (دور ۱۳۱): wide pack images on discounted cards were letting Bootstrap col-fw/col-xxl
   width/float win on some browsers → unequal columns + overlap + the add-to-cart bar bleeding out.
   Neutralise the framework column classes explicitly + clamp the image-box/button to the card. */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid > .product_list_item,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid > [class*="col-"]{
  width:auto !important;max-width:100% !important;min-width:0 !important;flex:0 0 auto !important;float:none !important;padding:0 !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .hover_fly,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .ajax_add_to_cart_button{max-width:100% !important}
/* دور ۱۳۲: kill `transition:all` on the list grid/wrapper/cards. It was animating EVERY
   layout reflow (lazy images settling, sticky-header shifts, touch-hover toggles) into a
   left-right «jiggle» on real devices (invisible in fast headless). Layout changes are now
   instant; only the explicit add-to-cart/badge styles keep their own transitions. */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .af_pl_wrapper,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid > *,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid .js-product-miniature,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid .ajax_block_product,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid .pro_outer_box{transition:none !important}

/* ===== CARD (.pro_outer_box) → rounded .pcard ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_outer_box{
  background:#fff !important;border-radius:14px !important;padding:8px !important;
  box-shadow:var(--szc-sh) !important;border:1px solid rgba(0,0,0,.03) !important;
  position:relative !important;overflow:hidden !important;height:100%;
}
/* image block */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box{
  border-radius:10px !important;overflow:hidden !important;background:#FBE7EC !important;
  margin-bottom:6px !important;position:relative !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .product_img_link,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .product_img_link picture{
  display:block !important;height:150px !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box img.front-image,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box img{
  width:100% !important;height:150px !important;object-fit:contain !important;padding:6px !important;
}
/* info block */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_second_box{
  padding:0 2px !important;text-align:right !important;
}
/* brand */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_list_manufacturer{
  font-size:9.5px !important;color:var(--szc-ink-3) !important;font-weight:600 !important;
  margin:0 0 2px !important;padding:0 !important;
}
/* name (2-line clamp) */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .s_title_block{
  font-size:11.5px !important;font-weight:700 !important;line-height:1.45 !important;margin:0 !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .s_title_block a{
  color:var(--szc-ink) !important;display:-webkit-box !important;-webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;overflow:hidden !important;max-height:34px !important;
}
/* price */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .product-price-and-shipping{
  margin-top:6px !important;padding:0 !important;display:flex !important;align-items:baseline !important;
  gap:6px !important;flex-wrap:wrap !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .product-price-and-shipping .price{
  font-size:13.5px !important;font-weight:900 !important;color:var(--szc-pink-dk) !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .product-price-and-shipping .regular-price{
  font-size:10px !important;color:var(--szc-ink-3) !important;text-decoration:line-through !important;font-weight:600 !important;
}

/* discount sticker → red pill top-right of image */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .product-flags,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .sticker_box{
  position:absolute !important;top:6px !important;right:6px !important;z-index:3 !important;left:auto !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .product-flag,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .sticker{
  font-size:9.5px !important;font-weight:900 !important;color:#fff !important;background:var(--szc-red) !important;
  border-radius:6px !important;padding:2px 7px !important;box-shadow:none !important;display:inline-block !important;
}

/* دور ۱۳۶: REVERTED the دور ۱۳۵ `.pro_first_box{transform:translateZ(0)}` — it did NOT
   stop the ±1px jitter on the user's device AND it introduced a visible OVERLAP of the two
   discounted cards (the per-card GPU layers composited with an offset on real Android Chrome).
   The jitter is now attacked at its ROOT instead: it is kimdi-page-only → the page's unique
   element is the szd-lp landing with PERPETUAL transform/opacity animations that keep the
   compositor repainting every frame. szd-lp-kimdi.tpl now PAUSES those animations while the
   product grid is on screen (IntersectionObserver → `.szd-lp--paused`). No card-layer hacks. */

/* ===== ADD-TO-CART → clean GLASSY bar on the image (in-stock), mirrors the OOS band ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .ajax_add_to_cart_button{
  position:absolute !important;left:0 !important;right:0 !important;bottom:0 !important;top:auto !important;z-index:4 !important;
  width:auto !important;height:auto !important;min-width:0 !important;border-radius:0 !important;
  display:flex !important;align-items:center !important;justify-content:center !important;gap:6px !important;
  padding:9px 8px !important;margin:0 !important;border:0 !important;border-top:1px solid rgba(255,255,255,.55) !important;
  background:#fff !important;
  -webkit-backdrop-filter:none !important;backdrop-filter:none !important;
  color:var(--szc-pink-dk) !important;font-family:inherit !important;font-size:11px !important;font-weight:800 !important;line-height:1 !important;
  box-shadow:0 -2px 10px rgba(45,28,32,.08) !important;
  opacity:1 !important;visibility:visible !important;transform:none !important;cursor:pointer !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .ajax_add_to_cart_button::before{
  content:"" !important;width:15px;height:15px;flex:0 0 auto;background:var(--szc-pink-dk);display:block;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>") center/contain no-repeat;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>") center/contain no-repeat;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .ajax_add_to_cart_button::after{content:"افزودن به سبد" !important;white-space:nowrap !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .ajax_add_to_cart_button i,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .ajax_add_to_cart_button span{display:none !important}
/* the add-to-cart lives in panda's .hover_fly wrapper (absolute, 0×0) → the glassy bar
   would collapse. Make the wrapper fill the image so the bar anchors to the image bottom. */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .hover_fly{
  position:absolute !important;inset:0 !important;top:0 !important;left:0 !important;right:0 !important;bottom:0 !important;
  width:auto !important;height:auto !important;min-height:0 !important;max-height:none !important;margin:0 !important;padding:0 !important;
  display:block !important;transform:none !important;opacity:1 !important;visibility:visible !important;pointer-events:none !important;
  background:transparent !important;background-color:transparent !important;background-image:none !important;box-shadow:none !important;border:0 !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .hover_fly .ajax_add_to_cart_button{pointer-events:auto !important}
/* hide the other hover-fly buttons (quickview/compare) on mobile to keep card clean */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .hover_fly_btn:not(.ajax_add_to_cart_button){display:none !important}

/* ===== AMAZZINGFILTER → bottom-sheet/clean panel styling ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) #horizontal_filters_wrap,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .amazzing_filter{
  background:#fff !important;border-radius:14px !important;margin:8px 12px !important;
  box-shadow:var(--szc-sh) !important;border:1px solid rgba(0,0,0,.03) !important;padding:4px 0 !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .af-checkbox-label,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .af-radio-label{
  font-size:12px !important;color:var(--szc-ink-2) !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .af-checkbox-label input,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .af-radio-label input{accent-color:var(--szc-pink) !important}

/* ===== ACTIVE FILTERS → pink chips ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .af_active_filters .js-search-link,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .active_filters .filter-block{
  background:var(--szc-pink-soft) !important;color:var(--szc-pink-dk) !important;
  border:0 !important;border-radius:10px !important;font-size:10px !important;font-weight:800 !important;
  padding:4px 8px !important;
}

/* pagination / load-more area */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination{
  justify-content:center !important;margin:12px !important;
}
}

@media (max-width:991.98px){
/* ===== Category header: expandable description + subcategory chips (mockup) ===== */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc{
  margin:8px 12px 10px !important;background:#fff;border-radius:14px;padding:14px;
  display:flex;gap:12px;align-items:flex-start;box-shadow:var(--szc-sh);position:relative;
}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__icon{
  width:54px;height:54px;border-radius:14px;flex-shrink:0;
  background:linear-gradient(135deg,var(--szc-pink-soft),#FFC8DC);
  display:flex;align-items:center;justify-content:center;padding:6px;
}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__icon svg{width:100%;height:100%}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__body{flex:1;min-width:0}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__title{font-size:13px;font-weight:900;color:var(--szc-ink);margin:0 0 4px}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__text{
  font-size:11.5px;line-height:1.85;color:var(--szc-ink-2);
  max-height:62px;overflow:hidden;transition:max-height .35s ease;
  -webkit-mask-image:linear-gradient(180deg,#000 58%,transparent);
  mask-image:linear-gradient(180deg,#000 58%,transparent);
}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__text.--open{max-height:1200px;-webkit-mask-image:none;mask-image:none}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__text *{font-size:inherit !important;color:inherit !important;line-height:inherit !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__toggle{
  background:transparent;border:0;color:var(--szc-pink-dk);font-family:inherit;
  font-size:11px;font-weight:800;cursor:pointer;margin-top:6px;
  display:inline-flex;align-items:center;gap:4px;padding:4px 0;
}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__toggle svg{width:14px;height:14px;transition:transform .3s}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__toggle .lbl-hide{display:none}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__toggle.--open .lbl-show{display:none}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__toggle.--open .lbl-hide{display:inline}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__toggle.--open svg{transform:rotate(180deg)}

/* subcategory chips (horizontal scroll) */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-subchips-wrap{padding:2px 0 6px}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-subchips{display:flex;gap:6px;overflow-x:auto;padding:4px 12px;scroll-snap-type:x mandatory}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-subchips::-webkit-scrollbar{display:none}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-subchip{
  flex-shrink:0;background:#fff;border-radius:20px;padding:7px 14px;
  font-size:11.5px;font-weight:700;color:var(--szc-ink-2);text-decoration:none;
  box-shadow:var(--szc-sh);border:1px solid rgba(0,0,0,.04);scroll-snap-align:start;white-space:nowrap;
}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-subchip.--on{background:var(--szc-pink);color:#fff;box-shadow:0 3px 8px rgba(244,120,169,.3)}
}
@media (max-width:991.98px){
/* ===== Filter button (injected into toolbar) ===== */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-filter-btn{display:inline-flex;align-items:center;gap:5px;background:#fff;border:0;border-radius:10px;padding:7px 11px;font-family:inherit;font-size:11px;font-weight:700;color:var(--szc-ink);box-shadow:var(--szc-sh);cursor:pointer;white-space:nowrap}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-filter-btn svg{width:13px;height:13px;color:var(--szc-pink-dk)}
/* ===== Off-canvas filter drawer (wraps #amazzing_filter) ===== */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-filter-mask{position:fixed;inset:0;background:rgba(45,28,32,.6);opacity:0;pointer-events:none;transition:opacity .3s;z-index:2147483000}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales).szd-filter-open .szd-filter-mask{opacity:1;pointer-events:auto}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter{
  position:fixed !important;top:0 !important;right:0 !important;bottom:0 !important;left:auto !important;
  width:86% !important;max-width:340px !important;background:#fff !important;
  z-index:2147483001 !important;transform:translateX(102%);
  transition:transform .35s cubic-bezier(.34,1.4,.6,1) !important;
  overflow-y:auto !important;box-shadow:-10px 0 40px rgba(0,0,0,.25) !important;
  margin:0 !important;padding:0 0 90px !important;display:block !important;float:none !important;
}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales).szd-filter-open #amazzing_filter{transform:translateX(0) !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .szd-fdraw__head{
  position:sticky;top:0;z-index:2;background:linear-gradient(135deg,var(--szc-pink),#FF8FBD);color:#fff;
  padding:14px 16px;display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:900;
}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .szd-fdraw__x{background:rgba(255,255,255,.2);border:0;width:30px;height:30px;border-radius:50%;color:#fff;cursor:pointer;font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_filter{padding:10px 14px !important;border-bottom:1px solid var(--szc-line) !important;margin:0 !important;border-radius:0 !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_filter_name,:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_filter > .h6,:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_subtitle{font-size:12.5px !important;font-weight:800 !important;color:var(--szc-ink) !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-checkbox-label,:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-radio-label{font-size:12px !important;color:var(--szc-ink-2) !important;padding:5px 2px !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter input[type=checkbox],:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter input[type=radio]{accent-color:var(--szc-pink) !important}
/* ensure products area is full width when filter is off-canvas */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #content-wrapper,:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #center-column,:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #products,:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #js-product-list{width:100% !important;max-width:100% !important;flex:0 0 100% !important}

/* ===== WISHLIST heart on card → top-left circle ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .st_wishlist_button,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box [class*="wishlist"]{
  position:absolute !important;top:6px !important;left:6px !important;right:auto !important;z-index:5 !important;
  width:28px !important;height:28px !important;min-width:0 !important;border-radius:50% !important;background:rgba(255,255,255,.92) !important;
  display:flex !important;align-items:center !important;justify-content:center !important;box-shadow:0 2px 6px rgba(0,0,0,.12) !important;margin:0 !important;padding:0 !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box [class*="wishlist"] i,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box [class*="wishlist"] svg{color:var(--szc-pink) !important;font-size:14px !important;width:15px !important;height:15px !important;margin:0 !important}

/* ===== RATING stars on card ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rating_box{margin:3px 0 0 !important;font-size:10px !important;line-height:1 !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rating_box .fto-star-2{color:#F0BB3D !important;font-size:11px !important}
}
/* ===================== Category refinements (round D) ===================== */
/* custom Toman symbol (from mockup download.svg) — used by price JS */
.ishop-currency-symbol{position:relative;display:inline-block;width:1.05em;height:1em;vertical-align:-.14em;margin-right:3px;text-indent:-9999em;overflow:hidden;background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}
.ishop-currency-irt{-webkit-mask-image:url("data:image/svg+xml;utf8,%3Csvg%20width%3D%2213%22%20height%3D%2212%22%20viewBox%3D%220%200%2013%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.32%206.12c.32-.16.55-.31.79-.54.16-.23.31-.46.47-.69.08-.31.16-.61.16-.92h7.49c.47%200%20.87-.15%201.18-.38.24-.31.4-.69.4-1.23V.5h-1.03v1.77c0%20.38-.24.62-.63.62H3.74v-.39c0-.38-.08-.61-.16-.92%200-.23-.15-.46-.31-.61-.16-.15-.31-.23-.47-.31-.24-.08-.47-.15-.63-.15-.31%200-.55.07-.79.15-.15.15-.39.23-.47.46-.16.15-.31.31-.31.54-.08.23-.16.46-.16.69%200%20.23%200%20.46.08.69.08.23.16.38.24.54.16.08.31.23.55.31.24.08.47.08.87.08h.63c0%20.15-.08.31-.08.46-.08.15-.24.31-.31.46-.08.08-.24.15-.47.23-.16.08-.39.15-.63.15H.27v1.08h1.02c.39-.08.71-.15%201.03-.23ZM2.16%202.89c-.31%200-.47%200-.63-.15-.08-.08-.16-.23-.16-.46s.08-.46.16-.54c.16-.08.31-.15.55-.15s.39.07.55.23c.16.15.16.38.16.69v.46h-.63v-.08Z%22%2F%3E%3Cpath%20d%3D%22M10.44.5H7.45v.92h2.99V.5Z%22%2F%3E%3Cpath%20d%3D%22M12.73%208.5c-.08-.23-.16-.38-.31-.54-.16-.15-.31-.31-.55-.38-.16-.08-.39-.15-.63-.15s-.47.07-.71.15c-.24.08-.39.23-.55.38-.16.16-.24.31-.31.54-.08.23-.08.46-.08.69v.23c0%20.23-.08.31-.16.46-.16.08-.31.15-.55.15h-.31c-.16%200-.31-.07-.39-.15-.08-.15-.16-.31-.16-.46V5.73H6.97v3.85c0%20.31%200%20.54.08.69.08.15.16.31.31.46.16.08.24.23.47.23.16.08.31.08.55.08h.55c.16%200%20.39-.08.55-.15.16-.08.39-.23.47-.46.16.23.31.38.55.46.24.08.47.15.79.15.47%200%20.95-.15%201.18-.46.32-.31.47-.77.47-1.31-.08-.31-.16-.54-.24-.77ZM11.23%209.97c-.24%200-.39-.08-.47-.16-.24-.15-.24-.31-.24-.54s.08-.38.16-.54c.08-.15.31-.23.55-.23s.47.08.55.23c.08.16.16.31.16.54-.08.46-.31.69-.71.7Z%22%2F%3E%3Cpath%20d%3D%22M4.92%208.5c0%20.23%200%20.38-.08.61-.08.15-.16.31-.24.46-.16.15-.31.23-.47.31-.16.08-.39.15-.71.15h-.71c-.24%200-.47%200-.71-.08-.16-.15-.31-.23-.39-.38-.08-.15-.24-.31-.24-.46-.08-.15-.08-.38-.08-.61V7.66H.27v.92c0%20.77.24%201.39.63%201.85.39.46.95.69%201.74.69h.79c.39%200%20.71-.08%201.03-.23.31-.15.55-.31.79-.54.24-.23.39-.54.47-.85.08-.31.16-.61.16-.99V5.73l-1.03-.08.08%202.85Z%22%2F%3E%3Cpath%20d%3D%22M3.74%207.43H2.56v1.08h1.18V7.43Z%22%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml;utf8,%3Csvg%20width%3D%2213%22%20height%3D%2212%22%20viewBox%3D%220%200%2013%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.32%206.12c.32-.16.55-.31.79-.54.16-.23.31-.46.47-.69.08-.31.16-.61.16-.92h7.49c.47%200%20.87-.15%201.18-.38.24-.31.4-.69.4-1.23V.5h-1.03v1.77c0%20.38-.24.62-.63.62H3.74v-.39c0-.38-.08-.61-.16-.92%200-.23-.15-.46-.31-.61-.16-.15-.31-.23-.47-.31-.24-.08-.47-.15-.63-.15-.31%200-.55.07-.79.15-.15.15-.39.23-.47.46-.16.15-.31.31-.31.54-.08.23-.16.46-.16.69%200%20.23%200%20.46.08.69.08.23.16.38.24.54.16.08.31.23.55.31.24.08.47.08.87.08h.63c0%20.15-.08.31-.08.46-.08.15-.24.31-.31.46-.08.08-.24.15-.47.23-.16.08-.39.15-.63.15H.27v1.08h1.02c.39-.08.71-.15%201.03-.23ZM2.16%202.89c-.31%200-.47%200-.63-.15-.08-.08-.16-.23-.16-.46s.08-.46.16-.54c.16-.08.31-.15.55-.15s.39.07.55.23c.16.15.16.38.16.69v.46h-.63v-.08Z%22%2F%3E%3Cpath%20d%3D%22M10.44.5H7.45v.92h2.99V.5Z%22%2F%3E%3Cpath%20d%3D%22M12.73%208.5c-.08-.23-.16-.38-.31-.54-.16-.15-.31-.31-.55-.38-.16-.08-.39-.15-.63-.15s-.47.07-.71.15c-.24.08-.39.23-.55.38-.16.16-.24.31-.31.54-.08.23-.08.46-.08.69v.23c0%20.23-.08.31-.16.46-.16.08-.31.15-.55.15h-.31c-.16%200-.31-.07-.39-.15-.08-.15-.16-.31-.16-.46V5.73H6.97v3.85c0%20.31%200%20.54.08.69.08.15.16.31.31.46.16.08.24.23.47.23.16.08.31.08.55.08h.55c.16%200%20.39-.08.55-.15.16-.08.39-.23.47-.46.16.23.31.38.55.46.24.08.47.15.79.15.47%200%20.95-.15%201.18-.46.32-.31.47-.77.47-1.31-.08-.31-.16-.54-.24-.77ZM11.23%209.97c-.24%200-.39-.08-.47-.16-.24-.15-.24-.31-.24-.54s.08-.38.16-.54c.08-.15.31-.23.55-.23s.47.08.55.23c.08.16.16.31.16.54-.08.46-.31.69-.71.7Z%22%2F%3E%3Cpath%20d%3D%22M4.92%208.5c0%20.23%200%20.38-.08.61-.08.15-.16.31-.24.46-.16.15-.31.23-.47.31-.16.08-.39.15-.71.15h-.71c-.24%200-.47%200-.71-.08-.16-.15-.31-.23-.39-.38-.08-.15-.24-.31-.24-.46-.08-.15-.08-.38-.08-.61V7.66H.27v.92c0%20.77.24%201.39.63%201.85.39.46.95.69%201.74.69h.79c.39%200%20.71-.08%201.03-.23.31-.15.55-.31.79-.54.24-.23.39-.54.47-.85.08-.31.16-.61.16-.99V5.73l-1.03-.08.08%202.85Z%22%2F%3E%3Cpath%20d%3D%22M3.74%207.43H2.56v1.08h1.18V7.43Z%22%2F%3E%3C%2Fsvg%3E")}

@media (max-width:991.98px){
/* #1 hide leftover "Toggle left column" control — on EVERY product-list page */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) :is([title="Toggle left column"],.toggle_column,.column_toggle,.fto-columns){display:none !important}
/* #2 listing title — clean (no old box) — on EVERY product-list page */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) :is(.page_heading,.category_page_heading){background:transparent !important;border:0 !important;box-shadow:none !important;padding:6px 12px 2px !important;text-align:center !important;font-size:15px !important;font-weight:900 !important;color:var(--szc-ink) !important}
/* #4 product image bg pink -> white */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box{background:#fff !important}
/* #5 wishlist STAR -> HEART (functional .add_to_wishlist kept) */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .add_to_wishlist i{font-size:0 !important;width:15px;height:15px;display:block}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .add_to_wishlist i::before{content:"";display:block;width:15px;height:15px;background:var(--szc-pink);-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-7-4.35-9.5-9C1.07 9.32 2.07 5 6 5c2.5 0 4 2 6 4 2-2 3.5-4 6-4 3.93 0 4.93 4.32 3.5 7-2.5 4.65-9.5 9-9.5 9z'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-7-4.35-9.5-9C1.07 9.32 2.07 5 6 5c2.5 0 4 2 6 4 2-2 3.5-4 6-4 3.93 0 4.93 4.32 3.5 7-2.5 4.65-9.5 9-9.5 9z'/></svg>") center/contain no-repeat}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .add_to_wishlist.checked i::before,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .add_to_wishlist.active i::before{background:#C2185B}
/* #7 discount badge (added by JS) top-right */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .szd-badge-disc{position:absolute;top:6px;right:6px;z-index:4;background:var(--szc-red);color:#fff;font-size:9.5px;font-weight:900;padding:2px 7px;border-radius:6px;font-variant-numeric:tabular-nums}
/* #8 installment badge on ALL cards (bottom-right of image) */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box::after{content:"۴ قسط";position:absolute;bottom:7px;right:7px;z-index:4;background:#8966C8;color:#fff;font-size:8.5px;font-weight:900;padding:2px 7px;border-radius:7px}
/* #11 out-of-stock (JS adds .szd-oos) -> grayscale image + label */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .szd-oos .pro_first_box img{filter:grayscale(1) opacity(.7) !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .szd-oos .pro_first_box::before{content:"فعلاً موجود نیست";position:absolute;left:0;right:0;bottom:0;z-index:5;background:rgba(45,28,32,.72);color:#fff;font-size:10px;font-weight:800;text-align:center;padding:4px}
/* #12 add-to-cart round pink button (already positioned bottom-left) — ensure visible label removed */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .szd-oos .ajax_add_to_cart_button{display:none !important}
/* #10 filter button -> floating vertical tab on right edge, lower */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-filter-btn{position:fixed !important;right:0 !important;top:auto !important;bottom:120px !important;z-index:800 !important;border-radius:12px 0 0 12px !important;padding:10px 9px !important;box-shadow:-3px 3px 12px rgba(244,120,169,.35) !important;background:linear-gradient(135deg,var(--szc-pink),#FF8FBD) !important;color:#fff !important;flex-direction:column;gap:3px;font-size:10px}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-filter-btn svg{color:#fff !important;width:15px;height:15px}
/* #14 pagination — centered, rounded, themed (infinite scroll disabled via config) */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination{display:flex !important;justify-content:center !important;flex-wrap:wrap;gap:6px;margin:16px 12px 4px !important;padding:0 !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination .page-list{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;padding:0;margin:0;list-style:none}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination .page-link,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination a,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination span{
  min-width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:11px !important;
  background:#fff;box-shadow:var(--szc-sh);color:var(--szc-ink) !important;font-weight:800;font-size:12px;border:0 !important;text-decoration:none;font-variant-numeric:tabular-nums}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination .current span,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination .current a{background:var(--szc-pink) !important;color:#fff !important;box-shadow:0 3px 8px rgba(244,120,169,.35)}
}
@media (max-width:991.98px){
/* dedupe: hide panda's raw category description + subcategories (we render styled versions) */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #category-description,:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #category-description-bottom,:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #subcategories,#manufacturer #category-description{display:none !important}
}

/* ============================================================================
   ROUND F (C6) — card equal-height, badge swap, plump rating stars,
   top/bottom pagination + sort dropdown + amazzing apply-button restyle.
   ============================================================================ */
@media (max-width:991.98px){

/* ---------- #1 EQUAL-HEIGHT CARDS (a rating row must not make a card taller) --
   grid rows already equalise cell height; pass that height down the chain so the
   white card fills the cell, then pin the price to the bottom for a clean baseline. */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid > *{display:flex !important;flex-direction:column !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid .js-product-miniature,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid .ajax_block_product{flex:1 1 auto !important;display:flex !important;flex-direction:column !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_outer_box{flex:1 1 auto !important;display:flex !important;flex-direction:column !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_second_box{flex:1 1 auto !important;display:flex !important;flex-direction:column !important}
/* reserve 2 title lines so 1-line vs 2-line names don't shift the price row */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .s_title_block{min-height:33px !important}
/* push the price cluster to the bottom edge of every card */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_second_box .product-price-and-shipping{margin-top:auto !important}

/* ---------- #3 PLUMP / CUTE rating stars (same footprint, rounded shape) ------
   listing rating is the reviewmaster mini widget (.rm-mini): ★/☆ glyphs in
   <i.rm-mini__star>. Mask each <i> with a plump rounded star; gold=full, gray=empty.
   (Also covers panda's .rating_box .fto-star-2 if stproductcomments is ever enabled.) */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini{display:flex !important;align-items:center;gap:2px;margin:4px 0 0 !important;padding:0 !important;line-height:1 !important;flex-wrap:nowrap}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini__stars{display:inline-flex !important;gap:1.5px;line-height:0}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini__star,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rating_box .fto-star-2{width:14px !important;height:14px !important;display:inline-block !important;font-size:0 !important;line-height:0 !important;color:transparent !important;background-color:#E6D9D3 !important;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M12%203.1c.5%200%20.96.29%201.18.75l2.2%204.55%204.98.66c1.12.15%201.57%201.53.74%202.3l-3.65%203.43.93%204.96c.21%201.12-.97%201.97-1.97%201.42L12%2019.13l-4.41%202.4c-1%20.55-2.18-.3-1.97-1.42l.93-4.96-3.65-3.43c-.83-.77-.38-2.15.74-2.3l4.98-.66%202.2-4.55c.22-.46.68-.75%201.18-.75Z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat !important;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M12%203.1c.5%200%20.96.29%201.18.75l2.2%204.55%204.98.66c1.12.15%201.57%201.53.74%202.3l-3.65%203.43.93%204.96c.21%201.12-.97%201.97-1.97%201.42L12%2019.13l-4.41%202.4c-1%20.55-2.18-.3-1.97-1.42l.93-4.96-3.65-3.43c-.83-.77-.38-2.15.74-2.3l4.98-.66%202.2-4.55c.22-.46.68-.75%201.18-.75Z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini__star::before,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rating_box .fto-star-2::before{content:"" !important;display:none !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini__star--full,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rating_box .fto-star-2.light{background-color:#F6B83D !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini__value{font-size:10px !important;color:var(--szc-ink-3) !important;font-weight:800 !important;margin-right:2px}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini__count,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rating_box .ml-1{font-size:10px !important;color:var(--szc-ink-3) !important;font-weight:700 !important;margin-right:3px !important}

/* ---------- #2 badges: installment "۴ قسط" -> TOP-RIGHT, discount% -> STACKED UNDER it (same size) - */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box::after{top:6px !important;right:6px !important;bottom:auto !important;left:auto !important;background:#8966C8 !important;line-height:1.35 !important}
/* discount badge: was bottom-left → hidden by the add-to-cart band. Move it directly UNDER the ۴ قسط badge, matching its size (font 8.5px / pad 2px 7px / radius 7px). */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .szd-badge-disc{top:28px !important;right:6px !important;bottom:auto !important;left:auto !important;font-size:8.5px !important;font-weight:900 !important;line-height:1.35 !important;padding:2px 7px !important;border-radius:7px !important;text-align:center !important}

/* ---------- #5 SORT dropdown ("نام، الف تا ی") -> themed pill + rounded menu ---- */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_tri{display:inline-flex !important;align-items:center;gap:5px;background:#fff !important;border:0 !important;border-radius:11px !important;box-shadow:var(--szc-sh) !important;color:var(--szc-ink) !important;font-size:11.5px !important;font-weight:800 !important;padding:8px 12px !important;line-height:1 !important;white-space:nowrap}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_tri i{color:var(--szc-pink-dk) !important;font-size:11px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_list{border:0 !important;border-radius:14px !important;box-shadow:0 10px 30px rgba(0,0,0,.14) !important;overflow:hidden !important;padding:6px !important;background:#fff !important;margin-top:6px !important;min-width:170px}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_list_item,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_list a{border-radius:9px !important;font-size:11.5px !important;color:var(--szc-ink) !important;padding:8px 10px !important;display:flex !important;align-items:center;gap:4px}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_list_item:hover,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_list .js-btn-active{background:#FCE8F0 !important;color:var(--szc-pink-dk) !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_list_item i{color:var(--szc-pink-dk) !important}

/* ---------- #4 TOP pager (.paginaton_sample "1/39") -> compact pink chip ------- */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .paginaton_sample{display:inline-flex !important;align-items:center;background:transparent !important;border:0 !important;margin:0 !important;padding:0 !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .paginaton_sample .pagination{margin:0 !important;gap:4px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .paginaton_sample .page-link{min-width:auto !important;width:auto !important;height:30px !important;padding:0 12px !important;border-radius:9px !important;font-size:11.5px !important;font-weight:800 !important;background:#FCE8F0 !important;color:var(--szc-pink-dk) !important;box-shadow:none !important;white-space:nowrap}

/* ---------- #6 BOTTOM pagination -> stacked, centered, themed (active = pink) -- */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .bottom_pagination{flex-direction:column !important;align-items:center !important;justify-content:center !important;gap:10px !important;margin:14px 12px 8px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .bottom_pagination .product_count{order:2;font-size:11px !important;color:var(--szc-ink-3) !important;font-weight:700 !important;text-align:center;width:auto !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .bottom_pagination nav{order:1;width:100%}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .page-item.active .page-link,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .page-item.active>a,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .bottom_pagination .page-link[aria-current]{background:var(--szc-pink) !important;color:#fff !important;box-shadow:0 3px 8px rgba(244,120,169,.35) !important}
/* keep prev/next arrows as round pills consistent with the number pills */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .bottom_pagination .page-link.next,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .bottom_pagination .page-link.previous{font-size:14px !important}

/* ---------- #7 AMAZZING "نمایش محصولات" apply button + Persian counts ---------- */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .viewFilteredProducts{position:sticky !important;bottom:0;z-index:3;margin:12px 0 0 !important;border:0 !important;border-radius:12px !important;background:linear-gradient(135deg,var(--szc-pink),#FF8FBD) !important;color:#fff !important;font-weight:900 !important;font-size:13px !important;padding:13px !important;box-shadow:0 6px 16px rgba(244,120,169,.4) !important;text-align:center !important;text-shadow:none !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .viewFilteredProducts.hidden{display:none !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-checkbox-label{display:flex !important;align-items:center;gap:8px}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-checkbox-label .name{flex:1 1 auto;min-width:0}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-checkbox-label .count,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-radio-label .count{background:#F3EAE6 !important;color:var(--szc-ink-3) !important;border-radius:20px !important;font-size:9.5px !important;font-weight:700 !important;padding:1px 7px !important;margin-right:auto !important;flex:0 0 auto}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_subtitle,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_filter_name{font-size:12.5px !important;font-weight:800 !important;color:var(--szc-ink) !important;padding:10px 0 6px !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-total-count{color:var(--szc-pink-dk) !important;font-weight:800}
}

/* دور ۱۳۴: only the landing's full-bleed hero needs containing (it uses
   margin:calc(50% - 50vw) to break out to viewport width). Clip just THAT section
   so a sub-pixel rounding can't create a horizontal scrollbar — WITHOUT touching
   html/body overflow (the C22 root-level clip shifted the fixed header & whole page). */
#manufacturer .szd-lp__hero{overflow:hidden !important;max-width:100vw !important}

/* ===== دور ۱۳۸ — THE actual root cause of the «card shake» (user-diagnosed, font-metric-proven) =====
   The «پیشنهاد ویژه» countdown's PERSIAN digits in Vazirmatn are PROPORTIONAL:
   «۰۱:۴۷:۱۶»=47.1px but «۰۱:۴۷:۵۷»=52.7px (and ۱۱=8.6 vs ۸۸=17.1). So every second the ticking
   seconds RESIZED the timer box by up to ~8px → the whole card reflowed left-right. A pure LAYOUT
   reflow (not a GPU/compositor effect) → it showed in every browser and never in any static render,
   which is why it eluded me for so long. FIX: tabular (equal-width) digits → every Persian digit is
   19.02px, so «۰۱:۴۷:۱۶» and «۰۱:۴۷:۵۷» are BOTH 65.38px → the box can no longer resize. Verified:
   the width difference drops from −5.64px to 0. (Also makes the box a few px wider, as the user asked.) */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) :is(.countdown_pro,.s_countdown_timer,.c_countdown_timer,.countdown_number,.countdown_box,.countdown_outer_box,.countdown_wrap,.countdown_wrap_inner,.countdown_text,.countdown_name,.countdown_title){
  font-variant-numeric:tabular-nums !important;-moz-font-feature-settings:"tnum" 1 !important;font-feature-settings:"tnum" 1 !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) :is(.countdown_pro,.s_countdown_timer,.c_countdown_timer){
  white-space:nowrap !important;
}
/* belt-and-suspenders (دور ۱۳۹): the VISIBLE «red box» is .countdown_box (inline-block →
   shrink-wraps to its content). With tabular digits the content is now constant, but also kill
   any size transition + center it so it physically can't be seen growing/shrinking. */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) :is(.countdown_box,.countdown_outer_box,.countdown_pro,.countdown_number){
  transition:none !important;text-align:center !important;
}

/* ===== دور ۱۴۲ — belt for the «discounted card overlaps neighbour» bug =====
   .pro_first_box is a flex item of .js-product-miniature. Its default min-width:auto = its
   min-content; if any nowrap child (e.g. a mis-injected static countdown) is wider than the
   grid cell, the flex item refuses to shrink → the card overflows its column and overlaps the
   next card. min-width:0 lets it always shrink to the cell, so no child can blow it past 50%.
   (The real cause was a JS bug — fixed in szd-footer.tpl — but this makes the card bulletproof.) */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_outer_box,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .js-product-miniature{min-width:0 !important}
/* any countdown that still lands inside a listing image box must be a clipped overlay, never a
   static box that sizes the card */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .szd-cd{position:absolute !important;max-width:100% !important;overflow:hidden !important}
/* ============================================================================
   DESKTOP (≥992px) — port the mobile category/listing design up to desktop,
   PROPORTIONALLY. Mirrors the mobile theme (cards, glassy add-to-cart, badges,
   heart, stars, price, sort pill, sub-chips, themed filter sidebar).
   Mobile rules are all max-width:991.98 → this block can't touch them.
   Bootstrap already gives a 2-col row: #left_column (filter) + #center_column.
   Scoped to listing body ids so home sliders are untouched.
   ============================================================================ */
@media (min-width:992px){

/* cap & center the listing column on wide screens */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) #columns.container{max-width:1320px !important;margin:0 auto !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) #wrapper,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) #main{background:var(--szc-cream) !important}

/* hide the mobile-only floating filter button + drawer mask on desktop (sidebar is always visible) */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .szd-filter-btn,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .szd-filter-mask{display:none !important}

/* dedupe panda's raw description/subcategories (styled versions are rendered by JS) */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #subcategories,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #category-description-bottom{display:none !important}

/* ===== category title ===== */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .page_heading,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .category_page_heading{
  font-size:22px !important;font-weight:900 !important;color:var(--szc-ink) !important;
  text-align:right !important;margin:4px 2px 12px !important;background:transparent !important;border:0 !important;box-shadow:none !important;padding:0 !important;
}

/* ===== FILTER SIDEBAR (themed white card, sticky) ===== */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #left_column{padding:0 0 0 18px !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #left_column .wrapper-sticky{position:sticky !important;top:16px !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter{
  background:#fff !important;border-radius:16px !important;box-shadow:var(--szc-sh) !important;
  border:1px solid rgba(0,0,0,.03) !important;padding:8px 16px 16px !important;position:static !important;transform:none !important;
  width:auto !important;max-width:none !important;overflow:visible !important;float:none !important;
}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_filter{padding:12px 0 !important;border-bottom:1px solid var(--szc-line) !important;margin:0 !important;border-radius:0 !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_filter:last-child{border-bottom:0 !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_filter_name,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_subtitle,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_filter > .h6{font-size:13.5px !important;font-weight:800 !important;color:var(--szc-ink) !important;padding:0 0 8px !important;margin:0 !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-checkbox-label,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-radio-label{font-size:12.5px !important;color:var(--szc-ink-2) !important;display:flex !important;align-items:center;gap:8px;padding:5px 2px !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-checkbox-label .name{flex:1 1 auto;min-width:0}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-checkbox-label .count,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-radio-label .count{background:#F3EAE6 !important;color:var(--szc-ink-3) !important;border-radius:20px !important;font-size:10px !important;font-weight:700 !important;padding:1px 8px !important;margin-right:auto !important;flex:0 0 auto}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter input[type=checkbox],
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter input[type=radio]{accent-color:var(--szc-pink) !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .viewFilteredProducts{position:sticky !important;bottom:0;z-index:3;margin:14px 0 0 !important;border:0 !important;border-radius:12px !important;background:linear-gradient(135deg,var(--szc-pink),#FF8FBD) !important;color:#fff !important;font-weight:900 !important;font-size:13.5px !important;padding:13px !important;box-shadow:0 6px 16px rgba(244,120,169,.4) !important;text-align:center !important;text-shadow:none !important;width:100% !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .viewFilteredProducts.hidden{display:none !important}

/* ===== TOOLBAR (sort + total) ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-selection{
  display:flex !important;align-items:center !important;justify-content:space-between !important;gap:12px !important;flex-wrap:nowrap !important;
  background:#fff !important;border:0 !important;border-radius:14px !important;box-shadow:var(--szc-sh) !important;padding:10px 16px !important;margin:0 0 14px !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-selection .total-products,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-selection .total-products p{font-size:12.5px !important;color:var(--szc-ink-3) !important;font-weight:700 !important;margin:0 !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order{margin:0 !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_tri{display:inline-flex !important;align-items:center;gap:6px;background:#fff !important;border:0 !important;border-radius:11px !important;box-shadow:var(--szc-sh) !important;color:var(--szc-ink) !important;font-size:12.5px !important;font-weight:800 !important;padding:9px 14px !important;line-height:1 !important;white-space:nowrap}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_tri i{color:var(--szc-pink-dk) !important;font-size:12px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_list{border:0 !important;border-radius:14px !important;box-shadow:0 10px 30px rgba(0,0,0,.14) !important;overflow:hidden !important;padding:6px !important;background:#fff !important;margin-top:6px !important;min-width:190px}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_list_item,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_list a{border-radius:9px !important;font-size:12.5px !important;color:var(--szc-ink) !important;padding:9px 11px !important;display:flex !important;align-items:center;gap:5px}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_list_item:hover,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products-sort-order .dropdown_list .js-btn-active{background:#FCE8F0 !important;color:var(--szc-pink-dk) !important}

/* ===== SUBCATEGORY CHIPS (wrap row on desktop) ===== */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-subchips-wrap{padding:0 0 14px}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-subchips{display:flex !important;flex-wrap:wrap !important;gap:8px !important;overflow:visible !important;padding:0 !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-subchip{flex:0 0 auto;background:#fff;border-radius:20px;padding:8px 16px;font-size:12.5px;font-weight:700;color:var(--szc-ink-2);text-decoration:none;box-shadow:var(--szc-sh);border:1px solid rgba(0,0,0,.04);white-space:nowrap;transition:all .18s}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-subchip:hover{color:var(--szc-pink-dk);box-shadow:0 4px 10px rgba(244,120,169,.2)}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-subchip.--on{background:var(--szc-pink);color:#fff;box-shadow:0 3px 8px rgba(244,120,169,.3)}

/* ===== CATEGORY DESCRIPTION CARD (if rendered) ===== */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc{margin:0 0 14px !important;background:#fff;border-radius:16px;padding:18px;display:flex;gap:16px;align-items:flex-start;box-shadow:var(--szc-sh)}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__icon{width:64px;height:64px;border-radius:16px;flex-shrink:0;background:linear-gradient(135deg,var(--szc-pink-soft),#FFC8DC);display:flex;align-items:center;justify-content:center;padding:8px}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__icon svg{width:100%;height:100%}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__body{flex:1;min-width:0}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__title{font-size:15px;font-weight:900;color:var(--szc-ink);margin:0 0 6px}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__text{font-size:12.5px;line-height:1.95;color:var(--szc-ink-2)}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__text *{font-size:inherit !important;color:inherit !important;line-height:inherit !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__toggle{background:transparent;border:0;color:var(--szc-pink-dk);font-family:inherit;font-size:12px;font-weight:800;cursor:pointer;margin-top:6px}

/* ===== PRODUCT GRID → responsive auto-fill (4-up @1440, 5-up wider) ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) #js-product-list .products.grid{
  display:grid !important;grid-template-columns:repeat(auto-fill,minmax(210px,1fr)) !important;
  align-items:stretch !important;gap:16px !important;margin:0 !important;padding:0 !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid > *{
  width:auto !important;max-width:100% !important;min-width:0 !important;margin:0 !important;padding:0 !important;float:none !important;flex:0 0 auto !important;
  box-sizing:border-box !important;display:flex !important;flex-direction:column !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid .js-product-miniature,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.grid .ajax_block_product{width:100% !important;min-width:0 !important;margin:0 !important;padding:0 !important;flex:1 1 auto !important;display:flex !important;flex-direction:column !important}

/* ===== CARD ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_outer_box{
  background:#fff !important;border-radius:16px !important;padding:10px !important;box-shadow:var(--szc-sh) !important;
  border:1px solid rgba(0,0,0,.03) !important;position:relative !important;overflow:hidden !important;height:100%;
  flex:1 1 auto !important;display:flex !important;flex-direction:column !important;transition:box-shadow .2s,transform .2s !important;
}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_outer_box:hover{box-shadow:0 10px 24px rgba(45,28,32,.12) !important;transform:translateY(-3px) !important}
/* image block */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box{border-radius:12px !important;overflow:hidden !important;background:#fff !important;margin-bottom:8px !important;position:relative !important;min-width:0 !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .product_img_link,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .product_img_link picture{display:block !important;height:215px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box img.front-image,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box img{width:100% !important;height:215px !important;object-fit:contain !important;padding:8px !important}
/* info block */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_second_box{padding:0 4px !important;text-align:right !important;flex:1 1 auto !important;display:flex !important;flex-direction:column !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_list_manufacturer{font-size:11px !important;color:var(--szc-ink-3) !important;font-weight:600 !important;margin:0 0 3px !important;padding:0 !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .s_title_block{font-size:13.5px !important;font-weight:700 !important;line-height:1.5 !important;margin:0 !important;min-height:41px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .s_title_block a{color:var(--szc-ink) !important;display:-webkit-box !important;-webkit-line-clamp:2 !important;-webkit-box-orient:vertical !important;overflow:hidden !important;max-height:42px !important}
/* price */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .product-price-and-shipping{margin-top:auto !important;padding-top:8px !important;display:flex !important;align-items:baseline !important;gap:7px !important;flex-wrap:wrap !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .product-price-and-shipping .price{font-size:17px !important;font-weight:900 !important;color:var(--szc-pink-dk) !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .product-price-and-shipping .regular-price{font-size:12px !important;color:var(--szc-ink-3) !important;text-decoration:line-through !important;font-weight:600 !important}

/* ===== RATING stars (reviewmaster mini) ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini{display:flex !important;align-items:center;gap:3px;margin:6px 0 0 !important;padding:0 !important;line-height:1 !important;flex-wrap:nowrap}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini__stars{display:inline-flex !important;gap:2px;line-height:0}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini__star,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rating_box .fto-star-2{width:16px !important;height:16px !important;display:inline-block !important;font-size:0 !important;line-height:0 !important;color:transparent !important;background-color:#E6D9D3 !important;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M12%203.1c.5%200%20.96.29%201.18.75l2.2%204.55%204.98.66c1.12.15%201.57%201.53.74%202.3l-3.65%203.43.93%204.96c.21%201.12-.97%201.97-1.97%201.42L12%2019.13l-4.41%202.4c-1%20.55-2.18-.3-1.97-1.42l.93-4.96-3.65-3.43c-.83-.77-.38-2.15.74-2.3l4.98-.66%202.2-4.55c.22-.46.68-.75%201.18-.75Z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat !important;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M12%203.1c.5%200%20.96.29%201.18.75l2.2%204.55%204.98.66c1.12.15%201.57%201.53.74%202.3l-3.65%203.43.93%204.96c.21%201.12-.97%201.97-1.97%201.42L12%2019.13l-4.41%202.4c-1%20.55-2.18-.3-1.97-1.42l.93-4.96-3.65-3.43c-.83-.77-.38-2.15.74-2.3l4.98-.66%202.2-4.55c.22-.46.68-.75%201.18-.75Z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini__star::before,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rating_box .fto-star-2::before{content:"" !important;display:none !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini__star--full,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rating_box .fto-star-2.light{background-color:#F6B83D !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini__value{font-size:11px !important;color:var(--szc-ink-3) !important;font-weight:800 !important;margin-right:3px}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .rm-mini__count{font-size:11px !important;color:var(--szc-ink-3) !important;font-weight:700 !important;margin-right:3px !important}

/* ===== BADGES: ۴ قسط top-right, discount% stacked under ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box::after{content:"۴ قسط";position:absolute;top:8px;right:8px;z-index:4;background:#8966C8;color:#fff;font-size:10px;font-weight:900;padding:3px 9px;border-radius:8px;line-height:1.35}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .szd-badge-disc{position:absolute;top:34px;right:8px;left:auto;bottom:auto;z-index:4;background:var(--szc-red);color:#fff;font-size:10px;font-weight:900;padding:3px 9px;border-radius:8px;font-variant-numeric:tabular-nums;line-height:1.35;text-align:center}
/* hide panda native flags to avoid double badges (JS .szd-badge-disc is the source of truth) */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .product-flags,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .sticker_box{display:none !important}

/* ===== WISHLIST heart (top-left circle) ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .add_to_wishlist,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box [class*="wishlist"]{position:absolute !important;top:8px !important;left:8px !important;right:auto !important;z-index:6 !important;width:34px !important;height:34px !important;min-width:0 !important;border-radius:50% !important;background:rgba(255,255,255,.92) !important;display:flex !important;align-items:center !important;justify-content:center !important;box-shadow:0 2px 6px rgba(0,0,0,.12) !important;margin:0 !important;padding:0 !important;pointer-events:auto !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .add_to_wishlist i{font-size:0 !important;width:17px;height:17px;display:block}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .add_to_wishlist i::before{content:"";display:block;width:17px;height:17px;background:var(--szc-pink);-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-7-4.35-9.5-9C1.07 9.32 2.07 5 6 5c2.5 0 4 2 6 4 2-2 3.5-4 6-4 3.93 0 4.93 4.32 3.5 7-2.5 4.65-9.5 9-9.5 9z'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-7-4.35-9.5-9C1.07 9.32 2.07 5 6 5c2.5 0 4 2 6 4 2-2 3.5-4 6-4 3.93 0 4.93 4.32 3.5 7-2.5 4.65-9.5 9-9.5 9z'/></svg>") center/contain no-repeat}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .add_to_wishlist.checked i::before,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .add_to_wishlist.active i::before{background:#C2185B}

/* ===== ADD-TO-CART glassy bar — slides up on card hover ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .hover_fly{position:absolute !important;inset:0 !important;top:0 !important;left:0 !important;right:0 !important;bottom:0 !important;width:auto !important;height:auto !important;min-height:0 !important;max-height:none !important;margin:0 !important;padding:0 !important;display:block !important;transform:none !important;opacity:1 !important;visibility:visible !important;pointer-events:none !important;background:transparent !important;box-shadow:none !important;border:0 !important;overflow:hidden !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .hover_fly_btn:not(.ajax_add_to_cart_button){display:none !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .ajax_add_to_cart_button{position:absolute !important;left:0 !important;right:0 !important;bottom:0 !important;top:auto !important;z-index:4 !important;width:auto !important;height:auto !important;min-width:0 !important;border-radius:0 !important;display:flex !important;align-items:center !important;justify-content:center !important;gap:7px !important;padding:12px 8px !important;margin:0 !important;border:0 !important;border-top:1px solid rgba(255,255,255,.55) !important;background:#fff !important;color:var(--szc-pink-dk) !important;font-family:inherit !important;font-size:12.5px !important;font-weight:800 !important;line-height:1 !important;box-shadow:0 -2px 10px rgba(45,28,32,.08) !important;cursor:pointer !important;pointer-events:auto !important;opacity:1 !important;visibility:visible !important;transform:translateY(100%) !important;transition:transform .25s ease !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_outer_box:hover .pro_first_box .ajax_add_to_cart_button{transform:translateY(0) !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .ajax_add_to_cart_button::before{content:"" !important;width:16px;height:16px;flex:0 0 auto;background:var(--szc-pink-dk);display:block;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>") center/contain no-repeat}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .ajax_add_to_cart_button::after{content:"افزودن به سبد" !important;white-space:nowrap !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .ajax_add_to_cart_button i,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pro_first_box .ajax_add_to_cart_button span{display:none !important}

/* ===== OUT-OF-STOCK (JS adds .szd-oos) ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .szd-oos .pro_first_box img{filter:grayscale(1) opacity(.7) !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .szd-oos .pro_first_box::before{content:"فعلاً موجود نیست";position:absolute;left:0;right:0;bottom:0;z-index:5;background:rgba(45,28,32,.72);color:#fff;font-size:11px;font-weight:800;text-align:center;padding:5px}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .szd-oos .ajax_add_to_cart_button{display:none !important}

/* ===== PAGINATION (themed pills) ===== */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination{display:flex !important;justify-content:center !important;flex-wrap:wrap;gap:8px;margin:20px 0 6px !important;padding:0 !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination .page-list{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;padding:0;margin:0;list-style:none}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination .page-link,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination a,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination span{min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px !important;background:#fff;box-shadow:var(--szc-sh);color:var(--szc-ink) !important;font-weight:800;font-size:13px;border:0 !important;text-decoration:none;font-variant-numeric:tabular-nums}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination .current span,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .pagination .current a,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .page-item.active .page-link{background:var(--szc-pink) !important;color:#fff !important;box-shadow:0 3px 8px rgba(244,120,169,.35)}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .bottom_pagination{display:flex !important;flex-direction:column !important;align-items:center !important;gap:10px !important;margin:18px 0 8px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .bottom_pagination .product_count{font-size:12px !important;color:var(--szc-ink-3) !important;font-weight:700 !important}

}

/* ============================================================================
   PATCH 2 (دور …) — LIST-VIEW (grid/list switcher) themed for BOTH widths,
   + desktop amazzingfilter polish (fold carets, selects, price slider, eraser).
   The switcher swaps `.products.grid` ⇄ `.products.list`; our card design was
   only on `.grid` → list view broke on desktop AND mobile. Now both are themed.
   ============================================================================ */

/* ===================== LIST VIEW — DESKTOP (≥992px) ===================== */
@media (min-width:992px){
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list{display:flex !important;flex-direction:column !important;gap:14px !important;margin:0 !important;padding:0 !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list > *{width:100% !important;max-width:100% !important;min-width:0 !important;float:none !important;margin:0 !important;padding:0 !important;flex:0 0 auto !important;display:block !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .js-product-miniature,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .ajax_block_product{width:100% !important;display:block !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_outer_box{flex-direction:row !important;align-items:stretch !important;gap:18px !important;padding:14px !important;height:auto !important}
/* image fixed on the right (RTL) */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box{flex:0 0 190px !important;width:190px !important;margin:0 !important;align-self:center}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box .product_img_link,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box .product_img_link picture{height:200px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box img{height:200px !important}
/* in list, the image-overlay add-to-cart is replaced by the info-column button */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box .hover_fly .ajax_add_to_cart_button{display:none !important}
/* info column */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_second_box{flex:1 1 auto !important;justify-content:center !important;padding:4px 10px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .s_title_block{font-size:16px !important;min-height:0 !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .s_title_block a{max-height:none !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .product-desc{display:-webkit-box !important;-webkit-line-clamp:2 !important;-webkit-box-orient:vertical !important;overflow:hidden !important;font-size:12.5px !important;line-height:1.95 !important;color:var(--szc-ink-3) !important;margin:8px 0 !important;text-align:right !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .product-price-and-shipping{margin-top:6px !important}
/* the list add-to-cart (info column) → themed pink pill */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .act_box_cart{margin-top:10px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .act_box_cart .ajax_add_to_cart_button{display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:7px !important;position:static !important;width:auto !important;min-width:0 !important;height:auto !important;transform:none !important;opacity:1 !important;visibility:visible !important;background:linear-gradient(135deg,var(--szc-pink),#FF8FBD) !important;color:#fff !important;border:0 !important;border-radius:12px !important;padding:11px 22px !important;font-family:inherit !important;font-size:13px !important;font-weight:800 !important;line-height:1 !important;box-shadow:0 4px 12px rgba(244,120,169,.35) !important;cursor:pointer !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .act_box_cart .ajax_add_to_cart_button::before{content:"" !important;width:16px;height:16px;flex:0 0 auto;background:#fff;display:block;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>") center/contain no-repeat}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .act_box_cart .ajax_add_to_cart_button::after{content:"افزودن به سبد" !important;white-space:nowrap !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .act_box_cart .ajax_add_to_cart_button i,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .act_box_cart .ajax_add_to_cart_button span{display:none !important}

/* ----- grid/list switcher: themed pill pair ----- */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .list_grid_switcher{display:inline-flex !important;gap:4px;background:#F3EAE6;border-radius:11px;padding:3px}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .list_grid_switcher > div{width:34px;height:30px;display:flex !important;align-items:center;justify-content:center;border-radius:8px;cursor:pointer;color:var(--szc-ink-3)}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .list_grid_switcher > div.active,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .list_grid_switcher > div.selected{background:var(--szc-pink) !important;color:#fff !important;box-shadow:0 2px 6px rgba(244,120,169,.3)}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .list_grid_switcher i{font-size:14px}

/* ===================== AMAZZINGFILTER POLISH — DESKTOP ===================== */
/* hide leftover mobile drawer header ("فیلترها ✕") on desktop */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .szd-fdraw__head,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .szd-fdraw__x{display:none !important}
/* fold caret: kill native glyph, add a clean chevron */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_subtitle.toggle-content{display:flex !important;align-items:center !important;justify-content:space-between !important;cursor:pointer !important;position:relative !important;gap:8px}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_subtitle.toggle-content::before{display:none !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_subtitle.toggle-content > i{display:none !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_subtitle.toggle-content::after{content:"" !important;width:16px;height:16px;flex:0 0 auto;background:var(--szc-ink-3);transition:transform .25s;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_filter.foldered .af_subtitle.toggle-content::after{transform:rotate(-90deg)}
/* select dropdowns (ناشر/نویسنده/مترجم/...) → themed */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter select,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_select,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .chosen-single{background:#FBF6F4 !important;border:1px solid var(--szc-line) !important;border-radius:11px !important;color:var(--szc-ink) !important;font-size:12.5px !important;font-weight:700 !important;padding:10px 12px !important;height:auto !important;box-shadow:none !important;width:100% !important}
/* price slider (noUiSlider) → pink */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .noUi-connect,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .ui-slider-range{background:var(--szc-pink) !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .noUi-handle,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .ui-slider-handle{border:3px solid var(--szc-pink) !important;background:#fff !important;border-radius:50% !important;box-shadow:0 2px 6px rgba(244,120,169,.4) !important;width:18px !important;height:18px !important;cursor:pointer}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .noUi-handle::before,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .noUi-handle::after{display:none !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .noUi-target,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .ui-slider{background:var(--szc-line) !important;border:0 !important;box-shadow:none !important;height:6px !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-price-range-min,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af-price-range-max,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_price_text{font-size:11.5px !important;color:var(--szc-ink-2) !important;font-weight:700 !important}
/* clear-all / compact toggle */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .compact-toggle,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .clear_filter,
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .af_clear_all{background:#FCE8F0 !important;color:var(--szc-pink-dk) !important;border:0 !important;border-radius:10px !important;font-size:11.5px !important;font-weight:800 !important;padding:7px 12px !important;cursor:pointer}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) #amazzing_filter .icon-eraser{color:var(--szc-pink-dk) !important}
}

/* ===================== LIST VIEW — MOBILE (≤991.98px) ===================== */
@media (max-width:991.98px){
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list{display:flex !important;flex-direction:column !important;gap:10px !important;margin:0 !important;padding:8px 12px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list > *{width:100% !important;max-width:100% !important;min-width:0 !important;float:none !important;margin:0 !important;padding:0 !important;flex:0 0 auto !important;display:block !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .js-product-miniature,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .ajax_block_product{width:100% !important;display:block !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_outer_box{flex-direction:row !important;align-items:stretch !important;gap:12px !important;padding:10px !important;height:auto !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box{flex:0 0 112px !important;width:112px !important;margin:0 !important;align-self:center}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box .product_img_link,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box .product_img_link picture{height:124px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box img{height:124px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_second_box{flex:1 1 auto !important;justify-content:center !important;padding:2px 6px !important;text-align:right !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .s_title_block{min-height:0 !important;font-size:12.5px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .product-desc{display:none !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .product-price-and-shipping{margin-top:5px !important}
/* in list, drop the image-overlay add-to-cart; use ONE themed button in the info column */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box .hover_fly .ajax_add_to_cart_button{display:none !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .act_box_cart{display:block !important;margin-top:8px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .act_box_cart .ajax_add_to_cart_button{display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:6px !important;position:static !important;width:auto !important;min-width:0 !important;height:auto !important;transform:none !important;opacity:1 !important;visibility:visible !important;background:linear-gradient(135deg,var(--szc-pink),#FF8FBD) !important;color:#fff !important;border:0 !important;border-radius:10px !important;padding:8px 14px !important;font-family:inherit !important;font-size:11px !important;font-weight:800 !important;line-height:1 !important;box-shadow:0 3px 9px rgba(244,120,169,.35) !important;cursor:pointer !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .act_box_cart .ajax_add_to_cart_button::before{content:"" !important;width:14px;height:14px;flex:0 0 auto;background:#fff;display:block;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/></svg>") center/contain no-repeat}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .act_box_cart .ajax_add_to_cart_button::after{content:"افزودن به سبد" !important;white-space:nowrap !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .act_box_cart .ajax_add_to_cart_button i,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .act_box_cart .ajax_add_to_cart_button span{display:none !important}
}

/* ============================================================================
   PATCH 3 — list-view refinements (kill item dead-space, tighter gaps,
   bigger centered desktop image, show mobile description), category-desc card
   collapse fix (small caret + working label toggle), themed sitewide scrollbar.
   ============================================================================ */

/* ===== sitewide themed scrollbar (pink) ===== */
*{scrollbar-width:thin;scrollbar-color:#F478A9 #F3EAE6}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#F6ECE8;border-radius:10px}
::-webkit-scrollbar-thumb{background:#F478A9;border-radius:10px;border:2px solid #F6ECE8}
::-webkit-scrollbar-thumb:hover{background:#E0568B}

/* ===================== DESKTOP list refinements ===================== */
@media (min-width:992px){
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list{gap:12px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list > *{min-height:0 !important;height:auto !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .js-product-miniature,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .ajax_block_product{min-height:0 !important;height:auto !important}
/* card hugs content, vertically centered; bigger centered image */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_outer_box{align-items:center !important;height:auto !important;padding:14px 18px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box{flex:0 0 230px !important;width:230px !important;align-self:center !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box .product_img_link,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box .product_img_link picture{height:230px !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_first_box img{height:230px !important}

/* category-description card: collapsible (clamp + small caret + label toggle) */
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__text{max-height:84px !important;overflow:hidden !important;transition:max-height .35s ease !important;-webkit-mask-image:linear-gradient(180deg,#000 60%,transparent);mask-image:linear-gradient(180deg,#000 60%,transparent)}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__text.--open{max-height:1600px !important;-webkit-mask-image:none !important;mask-image:none !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__toggle{display:inline-flex !important;align-items:center !important;gap:5px !important;margin-top:8px !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__toggle svg{width:15px !important;height:15px !important;transition:transform .3s !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__toggle .lbl-hide{display:none !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__toggle.--open .lbl-show{display:none !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__toggle.--open .lbl-hide{display:inline !important}
:is(#category,#manufacturer,#search,#supplier,#prices-drop,#new-products,#best-sales) .szd-catdesc__toggle.--open svg{transform:rotate(180deg) !important}
}

/* ===================== MOBILE list refinements ===================== */
@media (max-width:991.98px){
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list > *{min-height:0 !important;height:auto !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .js-product-miniature,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .ajax_block_product{min-height:0 !important;height:auto !important}
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_outer_box{align-items:center !important;height:auto !important}
/* SHOW a 2-line product description in mobile list */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .product-desc{display:-webkit-box !important;-webkit-line-clamp:2 !important;-webkit-box-orient:vertical !important;overflow:hidden !important;font-size:10.5px !important;line-height:1.75 !important;color:var(--szc-ink-3) !important;margin:4px 0 !important;text-align:right !important}
}

/* PATCH 4 — list items had ~41px dead-space (floated article + clearfix block layout).
   Make each list item a flex column so it shrink-wraps its card exactly (both widths). */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list > *{display:flex !important;flex-direction:column !important}

/* PATCH 5 — the REAL dead-space cause: the list <article> was display:block (set in
   patch2), so its floated card + clearfix left ~40px block-layout gap. Make the article
   a flex column → it shrink-wraps the card exactly. Removes the inter-card gap. */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .js-product-miniature,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .ajax_block_product{display:flex !important;flex-direction:column !important}

/* PATCH 6 — the list <article> itself carries padding (panda) → the ~40px dead-space.
   Zero it (the inner pro_outer_box owns the padding). */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .js-product-miniature,
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .ajax_block_product{padding:0 !important;margin:0 !important}

/* PATCH 7 — THE real dead-space: panda gives .pro_outer_box vertical margin (~20px each
   side) + min-height:350 in list mode → each card sat with ~40px empty + uniform tall rows.
   Zero margin + drop min-height so list cards hug their content. */
:is(#category,#manufacturer,#prices-drop,#new-products,#best-sales,#search,#supplier) .products.list .pro_outer_box{margin:0 !important;min-height:0 !important;height:auto !important}
