/* 08-offers-and-fixes.css — ریل فروش ویژه و رفع اشکال‌های نهایی
   منبع: طراحی saraafshari.com (Flatsome > Advanced > Custom CSS). ترتیب بارگذاری در inc/design-assets.php */

/* special offers: side intro + compact 5-up rail */
html body .mc-sale__actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
html body .mc-sale__actions .mc-sale__nav{margin:0}
html body .mc-sale__nav{display:flex;gap:8px}
html body .mc-sale__btn{width:42px;height:42px}
html body .mc-sale .row.equalize-box>.col{flex:0 0 20%;max-width:20%;padding:0 5px 8px}
html body .mc-sale .product-small .box-text{padding:8px 4px 10px}
html body .mc-sale .product-small .name,html body .mc-sale .product-small .name a,html body .mc-sale .product-small .title-wrapper{font-size:.8rem;line-height:1.7}
html body .mc-sale .product-small .price,html body .mc-sale .product-small .price .amount{font-size:.8rem}
html body .mc-sale .product-small del,html body .mc-sale .product-small del .amount{font-size:.72rem}
html body .mc-sale .product-small .button,html body .mc-sale .product-small .add_to_cart_button{font-size:.72rem;padding:0 10px;min-height:2.1em;line-height:2.1}
html body .mc-off{top:6px;right:6px;font-size:.68rem;padding:2px 8px}
@media (max-width:849px){html body .mc-sale .row.equalize-box>.col{flex:0 0 33.333%;max-width:33.333%}html body .mc-sale__nav{display:none!important}}
@media (max-width:549px){html body .mc-sale .row.equalize-box>.col{flex:0 0 47%;max-width:47%}}

/* special offers: peek of next card (5 full + 20% of the 6th) */
html body .mc-sale .row.equalize-box>.col{flex:0 0 19.2308%;max-width:19.2308%}
@media (max-width:849px){html body .mc-sale .row.equalize-box>.col{flex:0 0 31.25%;max-width:31.25%}}
@media (max-width:549px){html body .mc-sale .row.equalize-box>.col{flex:0 0 45.4545%;max-width:45.4545%}}

/* special offers: 35% peek, drag + edge fade */
html body .mc-sale .row.equalize-box>.col{flex:0 0 18.6916%;max-width:18.6916%}
@media (max-width:849px){html body .mc-sale .row.equalize-box>.col{flex:0 0 29.8507%;max-width:29.8507%}}
@media (max-width:549px){html body .mc-sale .row.equalize-box>.col{flex:0 0 42.5532%;max-width:42.5532%}}
html body .mc-sale .row.equalize-box{cursor:grab}
html body .mc-sale .row.equalize-box.is-drag{cursor:grabbing;scroll-snap-type:none!important;user-select:none;-webkit-user-select:none}
html body .mc-sale .row.equalize-box img{-webkit-user-drag:none;user-select:none}
html body .mc-sale .mc-railwrap{position:relative}
html body .mc-sale .mc-railwrap::before,html body .mc-sale .mc-railwrap::after{content:"";position:absolute;top:0;bottom:6px;width:min(110px,18%);pointer-events:none;z-index:4;opacity:0;transition:opacity .3s}
html body .mc-sale .mc-railwrap::after{left:0;background:linear-gradient(90deg,rgb(18 24 38 / .92),rgb(18 24 38 / .55) 45%,rgb(18 24 38 / 0))}
html body .mc-sale .mc-railwrap::before{right:0;background:linear-gradient(270deg,rgb(18 24 38 / .92),rgb(18 24 38 / .55) 45%,rgb(18 24 38 / 0))}
html body .mc-sale .mc-railwrap.mc-more::after{opacity:1}
html body .mc-sale .mc-railwrap.mc-scrolled::before{opacity:1}

/* bottom strip fix: old blue body gradient removed; footer bar blends into the page end */
html body{background:#D5DAE3!important;background-image:none!important}


/* footer clearance for fixed bar: no empty strip, only enough room above the 64px bottom nav */
@media (max-width:849px){html body #footer{margin-bottom:0!important}html body .absolute-footer{padding-bottom:64px!important}}

/* minimal header links */
html body .header-main .flex-left.hide-for-medium .header-button>a.button.is-link{background:transparent!important;border:0!important;box-shadow:none!important;color:#121826!important;font-weight:700;font-size:.92rem;padding:0 14px!important;min-height:0;line-height:2.6;position:relative;text-transform:none;margin:0 2px;border-radius:0!important}
html body .header-main .flex-left.hide-for-medium .header-button>a.button.is-link::after{content:"";position:absolute;left:14px;right:14px;bottom:4px;height:1.5px;background:#121826;transform:scaleX(0);transform-origin:center;transition:transform .25s}

/* divider between header links */
html body .header-main .flex-left.hide-for-medium .header-button>a.button.is-link[href="/فروش-ویژه/"]::before{content:"";position:absolute;right:-3px;top:50%;width:1px;height:18px;background:#3F5577;opacity:.45;transform:translateY(-50%)}

html body .header-main .flex-left.hide-for-medium .header-button>a.button.is-link:hover::after{transform:scaleX(1)}

/* desktop header search box */
@media (min-width:850px){
html body .header-main .header-search-form .searchform-wrapper{width:250px;max-width:100%}
html body .header-main .header-search-form .searchform .search-field{height:42px;border:1px solid #D5DAE3;border-radius:12px;background:#fff;padding:0 14px;font-size:.88rem;color:#121826;box-shadow:none;transition:border-color .2s,box-shadow .2s}
html body .header-main .header-search-form .searchform .search-field::placeholder{color:#6F7787}
html body .header-main .header-search-form .searchform .search-field:focus{border-color:#3F5577;box-shadow:0 0 0 3px rgb(63 85 119 / .15)}
html body .header-main .header-search-form .searchform .ux-search-submit,html body .header-main .header-search-form .searchform button[type=submit]{background:transparent!important;border:0!important;box-shadow:none!important;color:#3F5577!important;min-height:42px;padding:0 10px}
html body .header-main .header-search-form .searchform .flex-row{align-items:center;background:#fff;border:1px solid #D5DAE3;border-radius:12px;padding-left:4px}
html body .header-main .header-search-form .searchform .search-field{border:0!important;background:transparent!important;box-shadow:none!important;height:40px}
html body .header-main .header-search-form .searchform .flex-row:focus-within{border-color:#3F5577;box-shadow:0 0 0 3px rgb(63 85 119 / .15)}
}

/* search lightbox (mobile) */
html body #search-lightbox .searchform .search-field,html body .search-lightbox .searchform .search-field{background:rgb(255 255 255 / .96)!important;border:1px solid #D5DAE3!important;border-radius:12px!important;color:#121826!important;font-size:1rem;box-shadow:none!important}
html body #search-lightbox .searchform .search-field::placeholder,html body .search-lightbox .searchform .search-field::placeholder{color:#6F7787!important;opacity:1!important}
html body #search-lightbox .searchform .ux-search-submit,html body .search-lightbox .searchform .ux-search-submit{border-radius:12px!important}

/* search li reset: the li carries .search-form, so the old glass-box rule hit it too */
@media (min-width:850px){
html body .header-main li.header-search-form{background:transparent!important;border:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;overflow:visible!important;width:260px!important;flex:none;margin:0 6px}
html body .header-main li.header-search-form .header-search-form-wrapper{width:100%}
html body .header-main li.header-search-form .searchform-wrapper{width:100%}
html body .header-main li.header-search-form .searchform{background:transparent!important;border:0!important;backdrop-filter:none!important;overflow:visible!important}
}
html body .woocommerce-Price-amount bdi{direction:rtl}