/* Sepahan v2.22 requested fixes */
:root{
  --sepahan-blue:var(--sepahan-primary,#2563eb)!important;
  --primary:var(--sepahan-primary,#2563eb)!important;
  --color-primary:var(--sepahan-primary,#2563eb)!important;
  --color-primary-50:var(--sepahan-primary,#2563eb)!important;
  --color-primary-100:var(--sepahan-primary,#2563eb)!important;
  --color-primary-200:var(--sepahan-primary,#2563eb)!important;
  --color-primary-300:var(--sepahan-primary,#2563eb)!important;
  --color-primary-400:var(--sepahan-primary,#2563eb)!important;
  --color-primary-500:var(--sepahan-primary,#2563eb)!important;
  --color-primary-600:var(--sepahan-primary,#2563eb)!important;
  --color-primary-700:var(--sepahan-primary,#2563eb)!important;
  --color-primary-800:var(--sepahan-primary,#2563eb)!important;
  --color-primary-900:var(--sepahan-primary,#2563eb)!important;
  --secondary:var(--sepahan-warning,#f59e0b)!important;
  --color-secondary:var(--sepahan-warning,#f59e0b)!important;
  --color-secondary-100:var(--sepahan-warning,#f59e0b)!important;
  --color-secondary-200:var(--sepahan-warning,#f59e0b)!important;
  --color-secondary-400:var(--sepahan-warning,#f59e0b)!important;
  --color-secondary-500:var(--sepahan-warning,#f59e0b)!important;
  --color-secondary-600:var(--sepahan-warning,#f59e0b)!important;
  --color-secondary-900:var(--sepahan-warning,#f59e0b)!important;
  --color-custom-light:var(--sepahan-bg,#eef3fb)!important;
  --color-custom-dark:var(--sepahan-card,#0f172a)!important;
}
@supports (color: color-mix(in srgb, #000 50%, #fff)){
  :root{
    --color-primary-50:color-mix(in srgb,var(--sepahan-primary,#2563eb) 8%,#fff)!important;
    --color-primary-100:color-mix(in srgb,var(--sepahan-primary,#2563eb) 16%,#fff)!important;
    --color-primary-200:color-mix(in srgb,var(--sepahan-primary,#2563eb) 28%,#fff)!important;
    --color-primary-300:color-mix(in srgb,var(--sepahan-primary,#2563eb) 44%,#fff)!important;
    --color-primary-400:color-mix(in srgb,var(--sepahan-primary,#2563eb) 70%,#fff)!important;
    --color-primary-500:var(--sepahan-primary,#2563eb)!important;
    --color-primary-600:color-mix(in srgb,var(--sepahan-primary,#2563eb) 86%,#000)!important;
    --color-primary-700:color-mix(in srgb,var(--sepahan-primary,#2563eb) 74%,#000)!important;
    --color-primary-800:color-mix(in srgb,var(--sepahan-primary,#2563eb) 58%,#000)!important;
    --color-primary-900:color-mix(in srgb,var(--sepahan-primary,#2563eb) 42%,#000)!important;
    --color-secondary-100:color-mix(in srgb,var(--sepahan-warning,#f59e0b) 20%,#fff)!important;
    --color-secondary-200:color-mix(in srgb,var(--sepahan-warning,#f59e0b) 35%,#fff)!important;
    --color-secondary-400:color-mix(in srgb,var(--sepahan-warning,#f59e0b) 75%,#fff)!important;
    --color-secondary-500:var(--sepahan-warning,#f59e0b)!important;
    --color-secondary-600:color-mix(in srgb,var(--sepahan-warning,#f59e0b) 84%,#000)!important;
    --color-secondary-900:color-mix(in srgb,var(--sepahan-warning,#f59e0b) 46%,#000)!important;
  }
}

/* Header/shop spacing guard */
@media (min-width:1025px){
  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(clamp(0px,var(--sepahan-notice-height,0px),120px) + clamp(68px,var(--sepahan-header-height,92px),132px))!important;
    min-height:calc(clamp(0px,var(--sepahan-notice-height,0px),120px) + clamp(68px,var(--sepahan-header-height,92px),132px))!important;
    max-height:calc(clamp(0px,var(--sepahan-notice-height,0px),120px) + clamp(68px,var(--sepahan-header-height,92px),132px))!important;
    margin:0!important;padding:0!important;overflow:hidden!important;
  }
  body[class*="sepahan-shop-layout-"] .sepahan-shop-page,
  body.post-type-archive-product .sepahan-shop-page,
  body.woocommerce-shop .sepahan-shop-page{padding-top:8px!important;}
  body[class*="sepahan-shop-layout-"] .sepahan-shop-cats{margin-top:8px!important;margin-bottom:18px!important;}
  body[class*="sepahan-shop-layout-"] #topHeader,
  body[class*="sepahan-shop-layout-"] header#topHeader,
  body[class*="sepahan-shop-layout-"] .sepahan-main-header,
  body[class*="sepahan-shop-layout-"] .site-header{margin-bottom:0!important;}
}

/* Color inheritance for theme widgets and Elementor product sliders */
body .sepahan-widget-title,
body .sepahan-products-15-title,
body .sepahan-products-strip-title,
body .sepahan-image-cats-title,
body .sepahan-product-carousel-title,
body .sepahan-product-section-title,
body .sepahan-amazing-products-title{color:var(--sepahan-text,#111827)!important;}
body.dark .sepahan-widget-title,
body.dark .sepahan-products-15-title,
body.dark .sepahan-products-strip-title,
body.dark .sepahan-image-cats-title,
body.dark .sepahan-product-carousel-title,
body.dark .sepahan-product-section-title,
body.dark .sepahan-amazing-products-title,
.dark body .sepahan-widget-title,
.dark body .sepahan-products-15-title,
.dark body .sepahan-products-strip-title,
.dark body .sepahan-image-cats-title,
.dark body .sepahan-product-carousel-title,
.dark body .sepahan-product-section-title,
.dark body .sepahan-amazing-products-title{color:var(--sepahan-text,#f8fafc)!important;}
body .sepahan-product-carousel-subtitle,
body .sepahan-product-section-subtitle{color:var(--sepahan-muted,#64748b)!important;}
body .sepahan-widget-line,
body .sepahan-widget-line:after,
body .sepahan-products-15-title-line,
body .sepahan-products-15-title-line:after,
body .sepahan-products-strip-title-wrap>span,
body .sepahan-products-strip-title-wrap>span:after,
body .sepahan-image-cats-title-wrap>span,
body .sepahan-image-cats-title-wrap>span:after,
body .sepahan-product-carousel-title-line,
body .sepahan-product-carousel-title-line:after{background:var(--sepahan-primary,#2563eb);background-color:var(--sepahan-primary,#2563eb);}
body .sepahan-product-carousel-title-line{position:relative!important;display:block!important;width:128px!important;height:7px!important;margin-top:.35rem!important;border-radius:999px!important;}
body .sepahan-product-carousel-title-line:after{content:""!important;position:absolute!important;left:-16px!important;top:0!important;width:7px!important;height:7px!important;border-radius:999px!important;}
body .sepahan-widget-button,
body .sepahan-products-15-button,
body .sepahan-products-strip-button,
body .sepahan-image-cats-button,
body .sepahan-product-carousel-add-to-cart{background:var(--sepahan-primary,#2563eb);border-color:var(--sepahan-primary,#2563eb);color:#fff;}
body .sepahan-widget-button:hover,
body .sepahan-products-15-button:hover,
body .sepahan-products-strip-button:hover,
body .sepahan-image-cats-button:hover,
body .sepahan-product-carousel-add-to-cart:hover{background:var(--color-primary-600,var(--sepahan-primary,#2563eb));color:#fff;}
body .sepahan-products-strip-card:hover .sepahan-products-strip-name a,
body .sepahan-products-15-card:hover .sepahan-products-15-name,
body .sepahan-amazing-products-card-title:hover,
body .sepahan-amazing-products-card-title a:hover,
body .sepahan-product-carousel-product-title:hover{color:var(--sepahan-primary,#2563eb)!important;}
body .sepahan-product-carousel-price,
body .sepahan-product-carousel-price .amount,
body .sepahan-product-section-price,
body .sepahan-product-section-price .amount,
body .sepahan-products-strip-price ins,
body .sepahan-products-15-price ins,
body .sepahan-amazing-products-price ins,
body .sepahan-amazing-products-price .amount{color:var(--sepahan-primary,#2563eb)!important;}
body .sepahan-filter-card h3:after{background:linear-gradient(90deg,var(--sepahan-primary,#2563eb),var(--color-primary-300,#60a5fa))!important;}
