/* Sepahan v2.60.0 user requested fixes */
body .sepahan-image-cats-scroll,
body .sepahan-shop-brands-scroll,
body .sepahan-products-strip-scroll,
body [data-sepahan-auto-scroll] .sepahan-image-cats-scroll,
body [data-sepahan-auto-scroll] .sepahan-shop-brands-scroll,
body [data-sepahan-auto-scroll] .sepahan-products-strip-scroll{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  scroll-behavior:auto!important;
  touch-action:pan-x pan-y!important;
  overscroll-behavior-x:contain!important;
  scrollbar-width:none!important;
}
body .sepahan-image-cats-scroll::-webkit-scrollbar,
body .sepahan-shop-brands-scroll::-webkit-scrollbar,
body .sepahan-products-strip-scroll::-webkit-scrollbar{display:none!important}
body .sepahan-image-cats-list,
body .sepahan-shop-brands-list,
body .sepahan-products-strip-list{
  display:flex!important;
  flex-wrap:nowrap!important;
  max-width:none!important;
  will-change:transform,scroll-position;
}
body .sepahan-shop-brands-list > *,
body .sepahan-image-cats-list > *,
body .sepahan-products-strip-list > *{
  flex-shrink:0!important;
}
@media (max-width:767px){
  body .sepahan-shop-brands-list{gap:12px!important;width:max-content!important;min-width:100%!important}
  body .sepahan-shop-brand-item{min-width:136px!important;flex-basis:136px!important}
  body .sepahan-image-cats-list{width:max-content!important;min-width:100%!important}
  body .sepahan-products-strip-list{width:max-content!important;min-width:100%!important}
}

/* Remove cart/menu hover background */
body header a[href*="cart"]:hover,
body header a[href*="cart"]:focus,
body header .sepahan-header-cart-hover:hover,
body header .sepahan-header-cart-hover:focus,
body header .sepahan-header-cart-hover:focus-visible,
body .sepahan-desktop-menu a[href*="cart"]:hover,
body .sepahan-desktop-menu a[href*="cart"]:focus,
body .sepahan-regular-menu-item a[href*="cart"]:hover,
body .sepahan-regular-menu-item a[href*="cart"]:focus{
  background:transparent!important;
  background-color:transparent!important;
  box-shadow:none!important;
}
body header .sepahan-header-cart-hover::before,
body header .sepahan-header-cart-hover::after,
body header .sepahan-header-cart-hover:hover::before,
body header .sepahan-header-cart-hover:hover::after{
  content:none!important;
  display:none!important;
  opacity:0!important;
  visibility:hidden!important;
}
body header .sepahan-header-cart-hover,
body header .sepahan-header-cart-hover *{
  transition-property:color,border-color,transform,opacity!important;
}

/* Full category display in shop archive */
body.woocommerce-shop .sepahan-shop-cats,
body.tax-product_cat .sepahan-shop-cats,
body.tax-product_tag .sepahan-shop-cats{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(126px,1fr))!important;
  max-height:none!important;
  height:auto!important;
  overflow:visible!important;
  gap:14px!important;
}
body.woocommerce-shop .sepahan-shop-cats > *,
body.tax-product_cat .sepahan-shop-cats > *,
body.tax-product_tag .sepahan-shop-cats > *{display:flex!important;visibility:visible!important;opacity:1!important}
@media(max-width:640px){
  body.woocommerce-shop .sepahan-shop-cats,
  body.tax-product_cat .sepahan-shop-cats,
  body.tax-product_tag .sepahan-shop-cats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Product card size control */
body.sepahan-shop-card-size-small ul.products li.product,
body.sepahan-shop-card-size-small .sepahan-product-card,
body.sepahan-shop-card-size-small .sepahan-product-item{--sepahan-card-img-h:140px;--sepahan-card-pad:12px;--sepahan-card-title:13px;--sepahan-card-price:14px}
body.sepahan-shop-card-size-medium ul.products li.product,
body.sepahan-shop-card-size-medium .sepahan-product-card,
body.sepahan-shop-card-size-medium .sepahan-product-item{--sepahan-card-img-h:180px;--sepahan-card-pad:16px;--sepahan-card-title:14px;--sepahan-card-price:16px}
body.sepahan-shop-card-size-large ul.products li.product,
body.sepahan-shop-card-size-large .sepahan-product-card,
body.sepahan-shop-card-size-large .sepahan-product-item{--sepahan-card-img-h:232px;--sepahan-card-pad:20px;--sepahan-card-title:16px;--sepahan-card-price:18px}
body[class*="sepahan-shop-card-size-"] .sepahan-product-img,
body[class*="sepahan-shop-card-size-"] ul.products li.product a img,
body[class*="sepahan-shop-card-size-"] .woocommerce-loop-product__link img{
  min-height:var(--sepahan-card-img-h)!important;
  max-height:var(--sepahan-card-img-h)!important;
  object-fit:contain!important;
}
body[class*="sepahan-shop-card-size-"] .sepahan-product-card,
body[class*="sepahan-shop-card-size-"] .sepahan-product-item,
body[class*="sepahan-shop-card-size-"] ul.products li.product{
  padding:var(--sepahan-card-pad)!important;
}
body[class*="sepahan-shop-card-size-"] .woocommerce-loop-product__title,
body[class*="sepahan-shop-card-size-"] .sepahan-product-title{font-size:var(--sepahan-card-title)!important}
body[class*="sepahan-shop-card-size-"] .price,
body[class*="sepahan-shop-card-size-"] .sepahan-product-price{font-size:var(--sepahan-card-price)!important}

/* Old price must be smaller than current price */
body .price del,
body .sepahan-product-price del,
body .sepahan-products-strip-price del,
body .woocommerce-Price-amount.amount del{font-size:.82em!important;font-weight:600!important;opacity:.72!important}
body .price del .woocommerce-Price-amount.amount,
body .sepahan-product-price del .woocommerce-Price-amount.amount,
body .sepahan-products-strip-price del .woocommerce-Price-amount.amount,
body .price del .amount,
body .sepahan-product-price del .amount{font-size:.82em!important;font-weight:600!important}
body .price ins,
body .sepahan-product-price ins,
body .sepahan-products-strip-price ins{text-decoration:none!important;font-size:1em!important;font-weight:900!important}
