/* Sepahan - reliable theme setting colors for product prices and product title hover */
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price *,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price *,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price .amount,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-section-price,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-section-price *,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-carousel-price,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-carousel-price *,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-amazing-products-price,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-amazing-products-price *,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-15-number,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-15-number *,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce ul.products li.product .price,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce ul.products li.product .price *,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce div.product p.price,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce div.product p.price *,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce div.product span.price,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce div.product span.price *,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-Price-amount.amount,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-Price-amount.amount *{
  color:var(--sepahan-product-price,var(--sepahan-product-price-color,#2563eb))!important;
}

.sepahan-product-card:hover .sepahan-product-title,
.sepahan-product-card:hover .sepahan-card-title,
.sepahan-products-strip-card:hover .sepahan-products-strip-name,
.sepahan-products-strip-card:hover .sepahan-products-strip-name a,
.sepahan-products-strip-name:hover,
.sepahan-products-strip-name:hover a,
.sepahan-products-15-card:hover .sepahan-products-15-name,
.sepahan-products-15-name:hover,
.sepahan-shop-brand-item:hover .sepahan-shop-brand-title,
.sepahan-shop-brand-title:hover,
.sepahan-amazing-products-card:hover .sepahan-amazing-products-card-title,
.sepahan-product-carousel-card:hover .sepahan-product-carousel-product-title,
.sepahan-product-section-card:hover .sepahan-product-section-product-title,
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title,
.woocommerce ul.products li.product:hover .sepahan-product-title,
.related.products li.product:hover .woocommerce-loop-product__title,
.sepahan-related-products li.product:hover .woocommerce-loop-product__title,
.sepahan-image-cat-item:hover .sepahan-image-cat-title,
.sepahan-triple-product:hover .sepahan-triple-product-name,
.sepahan-post-card:hover h3 a{
  color:var(--sepahan-product-title-hover,var(--sepahan-product-title-hover-color,#2563eb))!important;
}


/* Sepahan hotfix: apply theme price color to WooCommerce amount number + currency text together */
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price span,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price bdi,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price ins,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price del,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price .price,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price .price span,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price .woocommerce-Price-amount,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price .woocommerce-Price-amount.amount,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price .woocommerce-Price-amount.amount bdi,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price .woocommerce-Price-currencySymbol,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price span,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price bdi,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price ins,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price del,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price .price,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price .price span,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price .woocommerce-Price-amount,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price .woocommerce-Price-amount.amount,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price .woocommerce-Price-amount.amount bdi,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price .woocommerce-Price-currencySymbol,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price [class*="woocommerce-Price"],
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price [class*="woocommerce-Price"]{
  color:var(--sepahan-product-price,var(--sepahan-product-price-color,#2563eb))!important;
  -webkit-text-fill-color:var(--sepahan-product-price,var(--sepahan-product-price-color,#2563eb))!important;
  text-fill-color:var(--sepahan-product-price,var(--sepahan-product-price-color,#2563eb))!important;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-product-price svg,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .sepahan-products-strip-price svg{
  color:var(--sepahan-product-price,var(--sepahan-product-price-color,#2563eb))!important;
  stroke:currentColor!important;
}


/* Sepahan v259/v7: stable smooth mobile drawer scroll - one scroll container only */
@media (max-width:1024px){
  html body #offcanvas-right.menuPanelMobile{
    position:fixed!important;
    top:0!important;
    right:0!important;
    bottom:auto!important;
    width:88%!important;
    max-width:24rem!important;
    height:100vh!important;
    height:100svh!important;
    max-height:100vh!important;
    max-height:100svh!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    overscroll-behavior:contain!important;
    touch-action:auto!important;
    will-change:transform!important;
    -webkit-transform:translateX(100%);
            transform:translateX(100%);
  }

  html body #offcanvas-right.menuPanelMobile[data-open="1"],
  html body #offcanvas-right.menuPanelMobile.is-open{
    -webkit-transform:translateX(0)!important;
            transform:translateX(0)!important;
  }

  html body #offcanvas-right.menuPanelMobile .sepahan-mobile-panel-head{
    flex:0 0 auto!important;
  }

  html body #offcanvas-right.menuPanelMobile .sepahan-mobile-drawer-body,
  html body #offcanvas-right.menuPanelMobile > div:not(.sepahan-mobile-panel-head){
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-y:contain!important;
    touch-action:pan-y!important;
    scroll-behavior:smooth!important;
    padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;
  }

  html body #offcanvas-right.menuPanelMobile .sepahan-mobile-menu{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:auto!important;
    overscroll-behavior:auto!important;
    touch-action:auto!important;
    padding-bottom:calc(48px + env(safe-area-inset-bottom,0px))!important;
  }

  html body #offcanvas-right.menuPanelMobile .sepahan-mobile-accordion,
  html body #offcanvas-right.menuPanelMobile .sepahan-mobile-acc-body,
  html body #offcanvas-right.menuPanelMobile .sepahan-mobile-subitem,
  html body #offcanvas-right.menuPanelMobile .sepahan-mobile-subbody,
  html body #offcanvas-right.menuPanelMobile .sepahan-mobile-subbody:not(.hidden){
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
  }

  html.sepahan-mobile-menu-open,
  body.sepahan-mobile-menu-open{
    overflow:hidden!important;
  }
}


/* Sepahan v259 final: stable mobile mega-menu scrolling */
@media (max-width:1024px){
  html body #offcanvas-right.menuPanelMobile{
    height:100svh!important;
    max-height:100svh!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    overscroll-behavior:contain!important;
    touch-action:auto!important;
  }

  html body #offcanvas-right.menuPanelMobile > .sepahan-mobile-panel-head{
    flex:0 0 auto!important;
  }

  html body #offcanvas-right.menuPanelMobile > .sepahan-mobile-drawer-body,
  html body #offcanvas-right.menuPanelMobile > div:not(.sepahan-mobile-panel-head),
  html body #offcanvas-right.menuPanelMobile .sepahan-v259-scroll-host{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-y:contain!important;
    touch-action:pan-y!important;
    scroll-behavior:smooth!important;
    padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))!important;
  }

  html body #offcanvas-right.menuPanelMobile .sepahan-mobile-menu,
  html body #offcanvas-right.menuPanelMobile .sepahan-v259-no-scroll-nav{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    touch-action:auto!important;
  }

  html body #offcanvas-right.menuPanelMobile .sepahan-mobile-mega-accordion.open > .sepahan-mobile-acc-body,
  html body #offcanvas-right.menuPanelMobile .sepahan-mobile-mega-accordion > .sepahan-mobile-acc-body.sepahan-v259-mega-scroll-host{
    max-height:calc(100svh - 180px)!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-y:contain!important;
    touch-action:pan-y!important;
    scroll-behavior:smooth!important;
  }

  html body #offcanvas-right.menuPanelMobile .sepahan-mobile-subbody{
    max-height:none!important;
  }

  html.sepahan-mobile-menu-open,
  body.sepahan-mobile-menu-open{
    overflow:hidden!important;
  }

  html.sepahan-mobile-menu-open #offcanvas-right,
  body.sepahan-mobile-menu-open #offcanvas-right,
  html.sepahan-mobile-menu-open #offcanvas-right *,
  body.sepahan-mobile-menu-open #offcanvas-right *{
    -webkit-tap-highlight-color:transparent;
  }
}

/* v14 landing slider arrow visibility controls */
@media (min-width: 769px){.sepahan-landing-slider-arrow.sepahan-hide-desktop-arrow{display:none!important}}
@media (max-width: 768px){.sepahan-landing-slider-arrow.sepahan-hide-mobile-arrow{display:none!important}}
