/* ==========================================================
   هدر سایت: تاپ‌بار، هدر اصلی، منو، سرچ، سبد خرید، حساب کاربری
   ========================================================== */

.whb-general-header,
.whb-header-bottom {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

:root:has(.whb-general-header.whb-border-boxed) {
    --wd-header-general-brd-w: .00001px;
}
:root:has(.whb-header-bottom.whb-border-boxed) {
    --wd-header-bottom-brd-w: .00001px;
}

.whb-top-bar { background-color: #83b735; }

.whb-9x1ytaxq7aphtb3npidp { --wd-form-brd-radius: 5px; }
.whb-9x1ytaxq7aphtb3npidp .searchform { --wd-form-height: 46px; }
.whb-9x1ytaxq7aphtb3npidp.wd-search-form.wd-header-search-form .searchform {
    --wd-form-color: rgba(142, 142, 142, 1);
    --wd-form-placeholder-color: rgba(208, 208, 208, 1);
    --wd-form-brd-color: rgba(232, 232, 232, 1);
    --wd-form-brd-color-focus: rgba(128, 128, 128, 1);
    --wd-form-bg: rgba(244, 244, 244, 1);
}

.whb-general-header { border-color: #f6f6f6; }

.whb-top-bar .wd-dropdown { margin-top: -20px; }
.whb-top-bar .wd-dropdown:after { height: -10px; }
.whb-header-bottom .wd-dropdown { margin-top: 6px; }
.whb-header-bottom .wd-dropdown:after { height: 16px; }
.whb-clone.whb-sticked .wd-dropdown:not(.sub-sub-menu) { margin-top: 10px; }
.whb-clone.whb-sticked .wd-dropdown:not(.sub-sub-menu):after { height: 20px; }

.whb-general-header,
.whb-header,
.whb-header *,
.whb-header-bottom,
.whb-main-header,
.whb-row,
.whb-row *,
.whb-row.whb-sticky-shadow,
.whb-row.whb-with-shadow,
.whb-sticked,
.whb-sticky-row.whb-sticked {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    text-shadow: none !important;
}

.whb-wjlcubfdmlq3d7jvmt23.wd-more-cat:not(.wd-show-cat) .item-level-0:nth-child(n+7):not(:last-child) {
    display: none;
}
wd-more-cat .item-level-0:nth-child(n+7) {
    animation: .3s both wd-fadeIn;
}

.whb-wnrnnal77sh9at4vpax4 a:is(.btn-style-default, .btn-style-3d) { background-color: #c4161c; }
.whb-wnrnnal77sh9at4vpax4 a:is(.btn-style-bordered, .btn-style-link) { border-color: #c4161c; }

.whb-header-bottom { border-color: #e9e9e9; }
.whb-header { font-family: IRANSans, Vazir, sans-serif; }

.whb-general-header {
    background: #fff !important;
    border-bottom: 1px solid rgba(0, 0, 0, .05) !important;
    padding: 6px 0;
    transition: .3s;
}

.site-logo img { transition: transform .3s; }
.site-logo img:hover { transform: scale(1.03); }

.wd-header-search-form .searchform {
    background: #f5f7fa;
    border-radius: 50px !important;
    border: 1px solid #e8ecf1;
    transition: .3s;
    padding: 0 15px;
}
.wd-header-search-form .searchform:focus-within {
    border-color: #c4161c;
    box-shadow: 0 0 0 3px rgba(196, 22, 28, .15);
    background: #fff;
}
.wd-header-search-form .searchform input.s {
    background: 0 0 !important;
    height: 42px;
    font-size: 14px;
    padding-right: 15px;
    border: none;
}
.wd-header-search-form .searchform .searchsubmit {
    background: 0 0 !important;
    color: #c4161c;
    font-weight: 600;
}
.wd-header-search-form .searchform .searchsubmit:hover { color: #a01218; }

.elementor-element-acf6ef2 p,
.elementor-element-b91415f span {
    font-size: 14px;
    font-weight: 400;
}
.elementor-element-2939fde a {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
    transition: color .2s;
}
.elementor-element-2939fde a:hover { color: #a01218 !important; }

.wd-header-cart .wd-tools-inner {
    background: #f5f7fa;
    padding: 6px 18px;
    border-radius: 50px;
    transition: .3s;
}
.wd-header-cart .wd-tools-inner:hover {
    background: #c4161c;
    color: #fff !important;
}
.wd-header-cart .wd-tools-inner:hover .wd-tools-text,
.wd-header-cart .wd-tools-inner:hover .wd-tools-text .amount {
    color: #fff !important;
}
.wd-nav-main > .current-menu-item > a,
.wd-nav-main > li > a:hover {
    color: #c4161c !important;
}
.wd-header-cart .wd-cart-number {
    background: #c4161c;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    display: inline-block;
}

/* ===== تنظیمات اختصاصی آیکون سبد خرید ===== */

/* رنگ متن مبلغ سبد خرید */
.wd-header-cart .wd-tools-text .wd-cart-subtotal .woocommerce-Price-amount,
.wd-header-cart .wd-tools-text .wd-cart-subtotal {
    color: #fff !important;
}

/* رنگ پس‌زمینه شمارنده (تعداد محصولات) در طراحی 8 */
.wd-header-cart.wd-design-8 .wd-tools-icon .wd-cart-number {
    background: linear-gradient(135deg, #f7971e, #ffd200) !important;
    color: #ffffff !important;
}

/* اگر آیکون فونتی باشد (نه SVG)، رنگش را برند می‌کنیم */
.wd-header-cart .wd-tools-icon {
    color: #c4161c !important;
}

/* حالت هاور برای کل لینک سبد خرید */
.wd-header-cart a:hover .wd-tools-text .wd-cart-subtotal {
    color: #a01116 !important;
}
.wd-header-cart.wd-design-8 a:hover .wd-tools-icon .wd-cart-number {
    background-color: #a01116 !important;
}

.whb-header-bottom {
    background: #fff !important;
    border-bottom: 1px solid rgba(0, 0, 0, .06) !important;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.wd-header-cats .menu-opener {
    background: #c4161c !important;
    color: #fff !important;
    border-radius: 30px !important;
    padding: 8px 25px !important;
    font-weight: 600;
    transition: .3s;
    box-shadow: 0 4px 12px rgba(196, 22, 28, .25);
}
.wd-header-cats .menu-opener:hover {
    background: #a01218 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(196, 22, 28, .35);
}
.wd-header-cats .menu-opener .menu-open-label { font-size: 14px; }

.wd-nav-main > li > a {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50 !important;
    padding: 12px 18px !important;
    border-radius: 8px;
    transition: .25s;
}
.wd-nav-main > li > a:hover { background: rgba(196, 22, 28, .06); }
.wd-nav-main > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2.5px;
    background: #c4161c;
    transition: .3s;
    border-radius: 10px;
}
.wd-nav-main > .current-menu-item > a::after,
.wd-nav-main > li > a:hover::after {
    width: 60%;
    right: 20%;
}

.btnofferheader {
    background: linear-gradient(135deg, #f7971e, #ffd200) !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 8px 22px !important;
    box-shadow: 0 4px 15px rgba(255, 210, 0, .35);
    transition: .3s;
    border: none !important;
}
.btnofferheader:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 210, 0, .5);
    color: #1a1a2e !important;
}
.btnofferheader .wd-icon { animation: 1.5s infinite pulse-offer; }
@keyframes pulse-offer {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.wd-header-my-account .wd-tools-text {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}
.wd-header-my-account .wd-tools-icon {
    background: #f5f7fa;
    border-radius: 50%;
    padding: 6px;
    transition: .3s;
}
.wd-header-my-account a:hover .wd-tools-icon { background: #c4161c; }
.wd-header-my-account a:hover .wd-tools-text { color: #c4161c; }

.whb-sticky-row.whb-sticked {
    background: rgba(255, 255, 255, .95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, .04);
}

@media (max-width: 1024px) {
    :root:has(.whb-general-header.whb-hidden-mobile) { --wd-header-general-brd-w: .00001px; }
    :root:has(.whb-header-bottom.whb-hidden-mobile) { --wd-header-bottom-brd-w: .00001px; }
    .whb-header-bottom.whb-hidden-mobile { display: flex !important; }
    .wd-header-cats .menu-opener { padding: 6px 16px !important; font-size: 13px; }
    .wd-nav-main > li > a { font-size: 13px; padding: 8px 12px !important; }
    .btnofferheader { padding: 5px 14px !important; font-size: 12px; }
}

@media (max-width: 768px) {
    .wd-header-cart .wd-tools-inner { padding: 4px 12px; border-radius: 30px; }
    .wd-header-cart .wd-cart-number { width: 18px; height: 18px; font-size: 10px; line-height: 18px; }
}
