/* Sepahan v2.23 requested fixes */
:root{
  --sepahan-after-header-gap:10px;
  --sepahan-header-extra-gap:10px;
}

@media (min-width:1025px){
  html body #sepahan-top-notice,
  html body .sepahan-top-notice,
  html body .sepahan-top-notice-v218,
  html body .sepahan-top-notice-v169,
  html body .sepahan-top-notice-v164{
    min-height:74px!important;
    height:auto!important;
    box-sizing:border-box!important;
    transform:none!important;
  }
  html body #sepahan-top-notice .sepahan-top-notice-inner,
  html body .sepahan-top-notice .sepahan-top-notice-inner{
    min-height:74px!important;
    height:auto!important;
    box-sizing:border-box!important;
  }
  html body #sepahan-v181-header-spacer,
  html body #sepahan-v184-header-gap,
  html body #sepahan-v186-header-spacer,
  html body #sepahan-v187-header-spacer,
  html body #sepahan-v200-header-spacer,
  html body #sepahan-v201-header-spacer{
    height:calc(var(--sepahan-notice-height,0px) + var(--sepahan-header-height,92px) + var(--sepahan-after-header-gap,10px))!important;
    min-height:calc(var(--sepahan-notice-height,0px) + var(--sepahan-header-height,92px) + var(--sepahan-after-header-gap,10px))!important;
    max-height:calc(var(--sepahan-notice-height,0px) + var(--sepahan-header-height,92px) + var(--sepahan-after-header-gap,10px))!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
}

@media (max-width:1024px){
  html body #sepahan-top-notice,
  html body .sepahan-top-notice{
    display:none!important;
  }
  html body #sepahan-v181-header-spacer,
  html body #sepahan-v184-header-gap,
  html body #sepahan-v186-header-spacer,
  html body #sepahan-v187-header-spacer,
  html body #sepahan-v200-header-spacer,
  html body #sepahan-v201-header-spacer{
    display:none!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
  }
}

body[class*="sepahan-shop-layout-"]:not(.woocommerce-shop):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) .sepahan-shop-page,
body[class*="sepahan-shop-layout-"]:not(.woocommerce-shop):not(.post-type-archive-product):not(.tax-product_cat):not(.tax-product_tag) .sepahan-shop-cats{
  margin-top:0!important;
}


/* Sepahan v2.24 - product slider click/tap + responsive visibility fixes */
[data-sepahan-swiper] a,
[data-sepahan-swiper] button,
.swiper a,
.swiper button{
  pointer-events:auto!important;
}
[data-sepahan-swiper] img,
.swiper img{
  -webkit-user-drag:none;
  user-select:none;
}
.swiper,
.swiper-wrapper,
.swiper-slide{
  touch-action:pan-y!important;
}

@media (min-width:1025px){
  body .sepahan-hide-desktop,
  body .elementor-hidden-desktop{
    display:none!important;
  }
}
@media (min-width:768px) and (max-width:1024px){
  body .sepahan-hide-tablet,
  body .elementor-hidden-tablet{
    display:none!important;
  }
}
@media (max-width:767px){
  body .sepahan-hide-mobile,
  body .elementor-hidden-mobile{
    display:none!important;
  }
}

/* Sepahan v2.25 - responsive banner visibility + global discount percent color */
body .sepahan-product-card .sepahan-product-discount,
body .sepahan-widget-product-card .sepahan-product-discount,
body .sepahan-products-strip-card .sepahan-products-strip-discount,
body .sepahan-triple-product .sepahan-triple-discount,
body .sepahan-nikan-gallery .sepahan-nikan-discount,
body .sepahan-amazing-single .sepahan-amazing-single-discount,
body .woocommerce span.onsale,
body .products span.onsale,
body .products .onsale,
body .sepahan-discount-badge,
body .sepahan-sale-badge,
body .sepahan-amazing-products-box .bg-secondary-500{
  background:var(--sepahan-discount-percent,#f59e0b)!important;
  background-color:var(--sepahan-discount-percent,#f59e0b)!important;
  border-color:var(--sepahan-discount-percent,#f59e0b)!important;
  color:#fff!important;
}
body .sepahan-products-strip-card .sepahan-products-strip-discount,
body .sepahan-triple-product .sepahan-triple-discount{
  box-shadow:0 7px 14px color-mix(in srgb,var(--sepahan-discount-percent,#f59e0b) 25%,transparent)!important;
}


/* Sepahan v2.26 - make Elementor widget color controls reliable on frontend */
body .sepahan-product-carousel-title-line:before,
body .sepahan-products-strip-title-wrap > span:before,
body .sepahan-products-15-title-line:before{
  content:"";
}


/* Sepahan v2.28 - dark megamenu mobile inheritance + related article title clamp */
.single-post .sepahan-related-posts .sepahan-blog-card h3,
.single-post .sepahan-related-posts .sepahan-blog-card h3 a,
.sepahan-posts-section .sepahan-post-card h3,
.sepahan-posts-section .sepahan-post-card h3 a{
  line-height:1.8!important;
}
.single-post .sepahan-related-posts .sepahan-blog-card h3,
.sepahan-posts-section .sepahan-post-card h3{
  min-height:3.6em!important;
  max-height:3.6em!important;
  overflow:hidden!important;
  margin-bottom:14px!important;
}
.single-post .sepahan-related-posts .sepahan-blog-card h3 a,
.sepahan-posts-section .sepahan-post-card h3 a{
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:normal!important;
  word-break:break-word!important;
}
@media(max-width:1024px){
  html.dark #offcanvas-right a,
  html.dark #offcanvas-right span,
  html.dark #offcanvas-right svg,
  body.dark #offcanvas-right a,
  body.dark #offcanvas-right span,
  body.dark #offcanvas-right svg,
  html.dark .sepahan-mobile-menu a,
  html.dark .sepahan-mobile-menu span,
  html.dark .sepahan-mobile-menu svg,
  body.dark .sepahan-mobile-menu a,
  body.dark .sepahan-mobile-menu span,
  body.dark .sepahan-mobile-menu svg,
  html.dark .sepahan-megamenu-mobile a,
  html.dark .sepahan-megamenu-mobile span,
  html.dark .sepahan-megamenu-mobile svg,
  body.dark .sepahan-megamenu-mobile a,
  body.dark .sepahan-megamenu-mobile span,
  body.dark .sepahan-megamenu-mobile svg{
    color:var(--sepahan-mega-text,#f8fafc)!important;
    stroke:currentColor!important;
  }
}
