/* Sepahan v2.40.0 focused fixes */

/* Product cards: rounded images */
html body .sepahan-product-card .sepahan-product-image-link,
html body .sepahan-product-card .sepahan-product-img,
html body .sepahan-widget-product-card .sepahan-product-image-link,
html body .sepahan-widget-product-card .sepahan-product-img,
html body .woocommerce ul.products li.product .sepahan-product-image-link,
html body .woocommerce ul.products li.product .sepahan-product-img{
  border-radius:18px!important;
  overflow:hidden!important;
}
html body .sepahan-product-card .sepahan-product-img img,
html body .sepahan-widget-product-card .sepahan-product-img img,
html body .woocommerce ul.products li.product .sepahan-product-img img{
  border-radius:18px!important;
  overflow:hidden!important;
  display:block!important;
}
html body .sepahan-product-card .sepahan-product-discount,
html body .sepahan-product-card .sepahan-product-more{
  z-index:3!important;
}

/* Mobile menu product-only search */
html body .sepahan-mobile-search-wrap,
html body .sepahan-v240-mobile-search-wrap{
  width:100%!important;
  padding:0 0 12px!important;
  margin:0 0 8px!important;
  box-sizing:border-box!important;
}
html body .sepahan-mobile-search-form,
html body .sepahan-v240-mobile-search-form{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  box-sizing:border-box!important;
}
html body .sepahan-mobile-search-input,
html body .sepahan-v240-mobile-search-input{
  width:100%!important;
  height:46px!important;
  border-radius:16px!important;
  border:1px solid var(--sepahan-border,#e5e7eb)!important;
  background:var(--sepahan-soft,#f8fafc)!important;
  color:var(--sepahan-text,#111827)!important;
  padding:0 46px 0 14px!important;
  font-size:14px!important;
  font-family:inherit!important;
  outline:none!important;
  direction:rtl!important;
  box-sizing:border-box!important;
}
html body .sepahan-mobile-search-input:focus,
html body .sepahan-v240-mobile-search-input:focus{
  border-color:var(--sepahan-primary,#2563eb)!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.10)!important;
}
html body .sepahan-mobile-search-btn,
html body .sepahan-v240-mobile-search-btn{
  position:absolute!important;
  right:6px!important;
  left:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:36px!important;
  height:36px!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  color:var(--sepahan-muted,#64748b)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  cursor:pointer!important;
}
html body .sepahan-mobile-search-btn svg,
html body .sepahan-v240-mobile-search-btn svg{
  width:18px!important;
  height:18px!important;
}
.dark .sepahan-mobile-search-input,
body.dark .sepahan-mobile-search-input,
.dark .sepahan-v240-mobile-search-input,
body.dark .sepahan-v240-mobile-search-input{
  background:#111827!important;
  border-color:#374151!important;
  color:#f9fafb!important;
}

/* Related products: view/eye action must stay clickable even when product is out of stock. */
html body.single-product .sepahan-nikan-related .sepahan-card-actions .sepahan-card-btn-icon.sepahan-v240-view-action{
  pointer-events:auto!important;
  opacity:1!important;
  cursor:pointer!important;
}
html body.single-product .sepahan-nikan-related .sepahan-card-actions .sepahan-card-btn-icon.sepahan-v240-view-action svg{
  width:19px!important;
  height:19px!important;
}

/* v2.40 custom lightbox, independent from old gallery scripts. */
html body .sepahan-v240-product-lightbox{
  position:fixed!important;
  inset:0!important;
  z-index:2147483646!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:32px 92px!important;
  background:rgba(15,23,42,.90)!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:opacity .16s ease,visibility .16s ease!important;
  box-sizing:border-box!important;
}
html body .sepahan-v240-product-lightbox.is-open{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
html body .sepahan-v240-product-lightbox[hidden]{display:none!important;}
html body .sepahan-v240-lightbox-frame{
  width:min(92vw,1040px)!important;
  height:min(84vh,780px)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#fff!important;
  border-radius:24px!important;
  padding:18px!important;
  box-shadow:0 30px 90px rgba(0,0,0,.42)!important;
  box-sizing:border-box!important;
}
html body .sepahan-v240-lightbox-img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  display:block!important;
  border-radius:18px!important;
  background:#fff!important;
  transition:opacity .14s ease!important;
}
html body .sepahan-v240-lightbox-img.is-switching{opacity:.24!important;}
html body .sepahan-v240-lightbox-close,
html body .sepahan-v240-lightbox-arrow{
  position:fixed!important;
  z-index:2147483647!important;
  border:0!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#111827!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
  box-shadow:0 14px 34px rgba(0,0,0,.28)!important;
  padding:0!important;
}
html body .sepahan-v240-lightbox-close{
  top:24px!important;
  left:24px!important;
  width:46px!important;
  height:46px!important;
}
html body .sepahan-v240-lightbox-arrow{
  top:50%!important;
  width:54px!important;
  height:54px!important;
  transform:translateY(-50%)!important;
}
html body .sepahan-v240-lightbox-prev{right:24px!important;left:auto!important;}
html body .sepahan-v240-lightbox-next{left:24px!important;right:auto!important;}
html body .sepahan-v240-lightbox-close:hover,
html body .sepahan-v240-lightbox-arrow:hover{
  background:var(--sepahan-primary,#2563eb)!important;
  color:#fff!important;
}
html body .sepahan-v240-lightbox-close svg,
html body .sepahan-v240-lightbox-arrow svg{
  width:23px!important;
  height:23px!important;
  display:block!important;
}
html body .sepahan-v240-product-lightbox.is-single .sepahan-v240-lightbox-arrow{display:none!important;}
body.sepahan-v240-lightbox-lock #sepahan-ai-bot-root,
body.sepahan-v240-lightbox-lock .sepahan-ai-bot-root,
body.sepahan-v240-lightbox-lock .sepbot-fab,
body.sepahan-v240-lightbox-lock .sepbot-window,
body.sepahan-v240-lightbox-lock .nikan-contact-fab{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
@media(max-width:768px){
  html body .sepahan-v240-product-lightbox{display:none!important;}
  html body .sepahan-nikan-thumb{cursor:pointer!important;}
}
@media(min-width:769px){
  html body .sepahan-nikan-main-image img,
  html body .sepahan-product-zoom-trigger{cursor:zoom-in!important;}
  html body .sepahan-nikan-thumb{cursor:pointer!important;}
}
