/* Sepahan v1.1.44 final polish */
.sepahan-story-under-header,
.sepahan-story-under-header .nikan-story-widget,
.sepahan-story-under-header .nikan-story-strip,
.sepahan-story-under-header .nikan-story-tabs,
.sepahan-story-under-header [class*="story"]{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.sepahan-story-under-header::-webkit-scrollbar,
.sepahan-story-under-header .nikan-story-widget::-webkit-scrollbar,
.sepahan-story-under-header .nikan-story-strip::-webkit-scrollbar,
.sepahan-story-under-header .nikan-story-tabs::-webkit-scrollbar,
.sepahan-story-under-header [class*="story"]::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.sepahan-story-under-header{overflow-x:auto!important;margin-bottom:var(--sepahan-story-gap,-48px)!important;padding-bottom:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.sepahan-story-under-header *{border-bottom-color:transparent!important}

/* product card rating and price alignment */
.woocommerce ul.products li.product .sepahan-product-rating,
ul.products li.product .sepahan-product-rating,
.products .product .sepahan-product-rating{float:none!important;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;align-self:flex-start!important;margin:8px auto 4px 0!important;position:static!important;clear:both!important;direction:ltr!important;z-index:1!important}
.woocommerce ul.products li.product .price,
ul.products li.product .price,
.elementor-widget .products .product .price{clear:both!important;width:100%!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important;text-align:left!important;direction:ltr!important;margin-top:6px!important}
.sepahan-price-wrap,.sepahan-price-normalized{display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:flex-start!important;width:100%!important;text-align:left!important;direction:ltr!important;color:#111827!important;gap:2px!important}
.sepahan-price-wrap del,.sepahan-price-normalized del{order:1!important;opacity:.55!important;text-decoration:line-through!important}
.sepahan-price-wrap ins,.sepahan-price-normalized ins{order:2!important;text-decoration:none!important;font-weight:900!important;color:#dc2626!important}
.sepahan-price-wrap .woocommerce-Price-amount,.sepahan-price-normalized .woocommerce-Price-amount{direction:rtl!important;unicode-bidi:isolate!important;display:inline-flex!important;gap:4px!important;align-items:center!important}

/* admin settings: clean professional Persian UI */
.toplevel_page_sepahan-settings #wpcontent{background:#f5f7fb!important}
.sepahan-options-wrap{direction:rtl!important;margin:18px 0 0 20px!important;font-family:IRANSans, Vazirmatn, Tahoma, Arial, sans-serif!important;color:#172033!important}
.sepahan-options-wrap *{box-sizing:border-box!important}
.sepahan-options-shell{display:grid!important;grid-template-columns:230px minmax(0,1fr)!important;gap:18px!important;max-width:1280px!important;background:linear-gradient(135deg,#fff 0%,#fbfdff 48%,#eef6ff 100%)!important;border:1px solid #e2eaf5!important;border-radius:26px!important;padding:16px!important;box-shadow:0 24px 70px rgba(15,23,42,.08)!important;overflow:hidden!important}
.sepahan-options-side{background:linear-gradient(180deg,#fff,#f6faff)!important;border:1px solid #e7eef7!important;border-radius:22px!important;padding:14px!important;min-height:680px!important;box-shadow:inset 0 1px 0 #fff!important}
.sepahan-options-brand{display:flex!important;align-items:center!important;gap:10px!important;padding:6px 4px 14px!important;border-bottom:1px solid #edf2f7!important;margin-bottom:12px!important}
.sepahan-options-mark{width:40px!important;height:40px!important;min-width:40px!important;border-radius:14px!important;background:linear-gradient(135deg,#2563eb,#06b6d4)!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 10px 24px rgba(37,99,235,.24)!important}
.sepahan-options-mark .dashicons{font-size:22px!important;width:22px!important;height:22px!important;line-height:22px!important}
.sepahan-options-brand h1{font-size:15px!important;line-height:1.4!important;margin:0!important;font-weight:900!important;white-space:nowrap!important;color:#0f172a!important;letter-spacing:-.2px!important}
.sepahan-options-tabs{display:flex!important;flex-direction:column!important;gap:7px!important}
.sepahan-options-tabs button{width:100%!important;border:0!important;background:transparent!important;color:#516070!important;text-align:right!important;border-radius:14px!important;padding:11px 12px!important;font-size:13px!important;font-weight:800!important;line-height:1.6!important;cursor:pointer!important;transition:.18s ease!important;box-shadow:none!important;position:relative!important;min-height:42px!important}
.sepahan-options-tabs button:hover{background:#f1f7ff!important;color:#1e3a8a!important}
.sepahan-options-tabs button.is-active{background:linear-gradient(135deg,#2563eb,#0ea5e9)!important;color:#fff!important;box-shadow:0 12px 24px rgba(37,99,235,.22)!important}
.sepahan-options-main{min-width:0!important;padding:3px!important}
.sepahan-options-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin-bottom:14px!important;background:rgba(255,255,255,.72)!important;border:1px solid #e7eef7!important;border-radius:20px!important;padding:14px 16px!important;backdrop-filter:blur(10px)!important}
.sepahan-options-title h2{font-size:17px!important;font-weight:900!important;margin:0!important;color:#0f172a!important}.sepahan-save-top .button-primary,.sepahan-options-save .button-primary{background:linear-gradient(135deg,#2563eb,#0ea5e9)!important;border:0!important;border-radius:13px!important;min-height:40px!important;padding:0 24px!important;font-size:13px!important;font-weight:900!important;box-shadow:0 12px 24px rgba(37,99,235,.22)!important;text-shadow:none!important}
.sepahan-tab-panel{display:none!important}.sepahan-tab-panel.is-active{display:block!important;animation:sepahanFade .14s ease}@keyframes sepahanFade{from{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:none}}
.sepahan-section-card{background:rgba(255,255,255,.96)!important;border:1px solid #e4ecf6!important;border-radius:22px!important;padding:18px!important;margin-bottom:14px!important;box-shadow:0 18px 40px rgba(15,23,42,.055)!important;overflow:visible!important}
.sepahan-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:14px!important}.sepahan-section-title{font-size:16px!important;font-weight:900!important;margin:0!important;color:#0f172a!important}.sepahan-section-badge{background:#eff6ff!important;color:#1d4ed8!important;border:1px solid #dbeafe!important;border-radius:999px!important;padding:5px 10px!important;font-size:11px!important;font-weight:900!important}
.sepahan-field-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}.sepahan-field{background:linear-gradient(180deg,#fff,#fafdff)!important;border:1px solid #e5edf7!important;border-radius:17px!important;min-height:74px!important;padding:13px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.85)!important;overflow:hidden!important;position:relative!important}.sepahan-field label{display:block!important;font-size:13px!important;font-weight:900!important;color:#172033!important;margin:0 0 8px!important;line-height:1.7!important}.sepahan-field input[type=text],.sepahan-field input[type=number],.sepahan-field select{width:100%!important;min-height:38px!important;border:1px solid #d8e4f0!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;padding:5px 10px!important;font-size:13px!important}.sepahan-field small{display:block!important;color:#64748b!important;line-height:1.8!important;margin-top:7px!important;font-weight:600!important}.sepahan-color-row{display:flex!important;align-items:center!important;gap:8px!important}.sepahan-color-row input{width:48px!important;height:36px!important;border:0!important;background:transparent!important;padding:0!important}.sepahan-color-row code{direction:ltr!important;background:#f8fafc!important;border:1px solid #e2e8f0!important;border-radius:10px!important;padding:7px 9px!important;font-size:12px!important;color:#334155!important}
.sepahan-field-switch{min-height:58px!important;display:flex!important;align-items:center!important;padding:12px!important}.sepahan-field-switch small{margin-right:0!important}.sepahan-switch{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;width:100%!important;margin:0!important;min-height:28px!important}.sepahan-switch input{display:none!important}.sepahan-switch span{grid-column:1!important;grid-row:1!important;width:38px!important;height:22px!important;min-width:38px!important;border-radius:999px!important;background:#cbd5e1!important;position:relative!important;transition:.18s!important;box-shadow:inset 0 1px 3px rgba(15,23,42,.18)!important}.sepahan-switch span:after{content:""!important;width:16px!important;height:16px!important;border-radius:50%!important;background:#fff!important;position:absolute!important;top:3px!important;right:3px!important;transition:.18s!important;box-shadow:0 2px 7px rgba(15,23,42,.23)!important}.sepahan-switch input:checked+span{background:#2563eb!important}.sepahan-switch input:checked+span:after{right:19px!important}.sepahan-switch strong{grid-column:2!important;grid-row:1!important;font-size:13px!important;line-height:1.8!important;font-weight:900!important;color:#172033!important;white-space:normal!important;overflow-wrap:anywhere!important}
.sepahan-media-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:7px!important;align-items:center!important}.sepahan-media-row .button{border:0!important;border-radius:11px!important;min-height:36px!important;padding:0 13px!important;font-size:12px!important;font-weight:900!important;background:#eef6ff!important;color:#1d4ed8!important}.sepahan-media-row .sepahan-remove-logo{background:#fff1f2!important;color:#be123c!important}.sepahan-logo-preview img{max-height:50px!important;border-radius:12px!important;margin-top:9px!important;background:#fff!important;border:1px solid #e2e8f0!important;padding:6px!important}.sepahan-options-save{position:sticky!important;bottom:0!important;background:linear-gradient(180deg,rgba(245,247,251,0),#f8fbff 42%)!important;padding:15px 0 4px!important;margin-top:8px!important;text-align:left!important}.sepahan-mini-help{background:#f8fafc!important;border:1px dashed #cbd5e1!important;border-radius:16px!important;padding:13px!important;color:#475569!important;line-height:2!important;font-weight:700!important}
@media(max-width:1100px){.sepahan-options-shell{grid-template-columns:1fr!important}.sepahan-options-side{min-height:auto!important}.sepahan-options-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}.sepahan-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:782px){.sepahan-field-grid,.sepahan-options-tabs{grid-template-columns:1fr!important}.sepahan-options-top{display:block!important}.sepahan-media-row{grid-template-columns:1fr!important}}
