.discount-timer-box {
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    border: 1px solid #fecdd3;
    border-radius: 14px;
    padding: 10px 12px;
    margin-top: 10px;
    display: inline-block;
    width: 100%;
}

.dark .discount-timer-box {
    background: linear-gradient(135deg, #3f0d16, #4c0519);
    border-color: #9f1239;
}

.timer-label {
    font-size: 12px;
    color: #be123c;
    margin-bottom: 8px;
    font-weight: 700;
}

.dark .timer-label {
    color: #fda4af;
}

.timer-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    direction: ltr;
}

.time-part {
    min-width: 58px;
    text-align: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.dark .time-part {
    background: #1f2937;
}

.time-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #e11d48;
    line-height: 1.2;
}

.dark .time-value {
    color: #fb7185;
}

.time-text {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.dark .time-text {
    color: #d1d5db;
}

.timer-separator {
    font-size: 22px;
    font-weight: bold;
    color: #e11d48;
    margin-top: -8px;
}

.timer-ended {
    text-align: center;
    color: white;
    background: #e11d48;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
}


.dir-ltr {
    direction: ltr;
}

.amazing-product-card {
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    height: 100%;
    min-height: 285px;
    transition: all 0.25s ease;
}

.dark .amazing-product-card {
    background: #27272a;
}

.amazing-product-card:hover {
    transform: translateY(-3px);
}

.amazing-timer-box {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

/* اسلاید معرفی فقط دسکتاپ */
.amazing-desktop-intro {
    display: none !important;
}

@media (min-width: 768px) {
    .amazing-desktop-intro {
        display: block !important;
    }
}

/* تنظیم عرض اسلایدها */
.amazing-products-swiper .swiper-slide {
    height: auto;
}

/* موبایل */
@media (max-width: 767px) {
    .amazing-products-swiper .swiper-slide {
        width: 165px;
    }

    .amazing-product-card {
        min-height: 270px;
        padding: 12px;
        border-radius: 16px;
    }

    .amazing-timer-box {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* دسکتاپ */
@media (min-width: 768px) {
    .amazing-products-swiper .swiper-slide {
        width: 220px;
    }

    .amazing-products-swiper .amazing-desktop-intro {
        width: 210px;
    }
}
.hero-slider .slide-image-wrap {
    position: relative;
    width: 100%;
    height: 170px;      /* موبایل */
    overflow: hidden;
    border-radius: 16px;
}

.hero-slider .slide-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* گوشی‌های بزرگ‌تر */
@media (min-width: 640px) {
    .hero-slider .slide-image-wrap {
        height: 200px;
    }
}

/* تبلت */
@media (min-width: 768px) {
    .hero-slider .slide-image-wrap {
        height: 220px;
    }
}

/* دسکتاپ */
@media (min-width: 1024px) {
    .hero-slider .slide-image-wrap {
        height: auto;
        width: 100%;
    }
}

/* دسکتاپ بزرگ */
@media (min-width: 1280px) {
    .hero-slider .slide-image-wrap {
        height: auto;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        display: none !important;
    }
}

.product-showcase-card {
    min-height: 715px;
}

.product-showcase-card img {
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.08));
}
.dir-rtl{
    direction: rtl;
}


.jm-stories-list{
    display:flex;
    gap:16px;
    overflow-x:auto;
    padding-bottom:8px;
    scrollbar-width:none;
}
.jm-stories-list::-webkit-scrollbar{
    display:none;
}

.jm-story-trigger{
    border:0;
    background:none;
    padding:0;
    min-width:72px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    cursor:pointer;
}

.jm-story-ring{
    width:82px;
    height:82px;
    border-radius:50%;
    padding:3px;
    background:linear-gradient(135deg,#ff7a18,#ff0058,#7b61ff);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.jm-story-avatar{
    width:100%;
    height:100%;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #fff;
    display:block;
}

.jm-story-title{
    font-size:12px;
    line-height:1.5;
    color:#222;
    text-align:center;
    max-width:84px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.jm-stories-empty{
    margin:0;
    color:#666;
}

.jm-story-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
}
.jm-story-modal.is-open{
    display:block;
}

.jm-story-modal__backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.82);
}

.jm-story-modal__dialog{
    position:relative;
    width:min(420px, calc(100vw - 24px), calc(88vh * 9 / 16));
    aspect-ratio:9 / 16;
    height:auto;
    margin:3vh auto;
    background:#111;
    border-radius:22px;
    overflow:hidden;
    color:#fff;
    display:flex;
    flex-direction:column;
    box-shadow:0 20px 60px rgba(0,0,0,.35);
}

.jm-story-close{
    position:absolute;
    top:12px;
    left:12px;
    width:36px;
    height:36px;
    border-radius:50%;
    border:0;
    background:rgba(255,255,255,.14);
    color:#fff;
    font-size:24px;
    cursor:pointer;
    z-index:5;
    line-height:1;
}

.jm-story-progress{
    display:flex;
    gap:6px;
    position:absolute;
    top:12px;
    right:12px;
    left:56px;
    z-index:4;
}

.jm-story-progress__bar{
    flex:1;
    height:3px;
    background:rgba(255,255,255,.25);
    border-radius:999px;
    overflow:hidden;
}

.jm-story-progress__fill{
    width:0%;
    height:100%;
    background:#fff;
    border-radius:999px;
}

.jm-story-header{
    position:absolute;
    top:24px;
    right:16px;
    left:16px;
    z-index:4;
    display:flex;
    align-items:center;
    justify-content:space-between;
    pointer-events:none;
}

.jm-story-header__meta{
    display:flex;
    align-items:center;
    gap:10px;
}

.jm-story-header__avatar{
    width:38px;
    height:38px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid rgba(255,255,255,.85);
}

.jm-story-header__title{
    font-size:14px;
    font-weight:700;
    line-height:1.4;
}

.jm-story-header__counter{
    font-size:12px;
    color:rgba(255,255,255,.78);
}

.jm-story-stage{
    position:relative;
    flex:1;
    min-height:0;
    display:flex;
    align-items:stretch;
    justify-content:center;
}

.jm-story-content{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#000;
}

.jm-story-content img,
.jm-story-content video{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.jm-story-nav{
    position:absolute;
    top:0;
    bottom:0;
    width:28%;
    border:0;
    background:transparent;
    z-index:3;
    cursor:pointer;
}
.jm-story-nav--prev{
    right:0;
}
.jm-story-nav--next{
    left:0;
}

.jm-story-footer{
    position:absolute;
    right:16px;
    left:16px;
    bottom:16px;
    z-index:4;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.jm-story-text{
    font-size:14px;
    line-height:1.8;
    color:#fff;
    text-shadow:0 1px 8px rgba(0,0,0,.35);
}

.jm-story-link{
    align-self:flex-start;
    display:none;
    padding:10px 16px;
    border-radius:999px;
    background:#fff;
    color:#111;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
}
.jm-story-link.is-visible{
    display:inline-flex;
}

@media (max-width: 575px){
    .jm-story-modal__dialog{
        width:100vw;
        height:100vh;
        margin:0;
        border-radius:0;
    }
}
.shop-filters {
    position: relative;
}

.shop-filters__topbar {
    margin-bottom: 16px;
}

.shop-filters-toggle {
    width: 100%;
    border: 0;
    background: #111827;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.shop-filters__overlay {
    display: none;
}

.shop-filters__sidebar {
    width: 100%;
}

.shop-filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shop-filter-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
}

.shop-filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-filter-group + .shop-filter-group {
    margin-top: 16px;
}

.shop-filter-group label,
.filter-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.shop-filter-form select,
.shop-filter-form input[type="number"],
.shop-filter-form input[type="text"] {
    width: 100%;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.shop-filter-form select:focus,
.shop-filter-form input[type="number"]:focus,
.shop-filter-form input[type="text"]:focus {
    border-color: #dc2626;;
}

.price-range-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-row input {
    margin: 0;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
    padding-left: 2px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.filter-check input {
    margin: 0;
}

.shop-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-filter-submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: #dc2626;;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.shop-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
}

.active-shop-filters {
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
}

.active-shop-filters__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-shop-filters__clear {
    margin-top: 12px;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background: #f3f4f6;
    color: #111827;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1;
}

.clear-all-filters {
    display: inline-flex;
    color: #dc2626;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.shop-filters__sidebar-header {
    display: none;
}

.mobile-only {
    display: none;
}

/* دسکتاپ */
@media (min-width: 992px) {
    .shop-filters__sidebar {
        position: static;
        transform: none;
        background: transparent;
        box-shadow: none;
        max-width: 320px;
    }
}

/* موبایل و تبلت */
@media (max-width: 991px) {
    .mobile-only {
        display: block;
    }

    .shop-filters__overlay {
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.45);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        display: block;
    }

    .shop-filters__sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: 88%;
        max-width: 380px;
        height: 100vh;
        background: #f9fafb;
        z-index: 9999;
        padding: 16px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    }

    .shop-filters.is-open .shop-filters__sidebar {
        transform: translateX(0);
    }

    .shop-filters.is-open .shop-filters__overlay {
        opacity: 1;
        visibility: visible;
    }

    .shop-filters__sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        padding: 12px 14px;
    }

    .shop-filters__sidebar-header h3 {
        margin: 0;
        font-size: 15px;
        color: #111827;
    }

    .shop-filters-close {
        width: 36px;
        height: 36px;
        border: 0;
        background: #f3f4f6;
        border-radius: 10px;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }
}
.woocommerce-pagination{
    display: none;
}


.active-cat {
    border-inline-start-width: 4px !important;
}

#mega-menu-fire-target {
    transition: all 0.3s ease;
    /* تنظیم برای اینکه دقیقاً زیر هدر قرار بگیرد */
    top: 100%;
}

/* اسکرول‌بار زیبا برای بخش دسته‌ها */
.overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}
.overflow-y-auto::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}
/* برای رفع تداخل و اطمینان از نمایش */
#mega-menu-fire-target {
    position: absolute !important;
    z-index: 9999 !important; /* خیلی بالا */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important; /* عرض کامل */
    margin: 0 auto !important; /* وسط چین */
    top: 100% !important; /* زیر آیتم فروشگاه */
    box-sizing: border-box; /* برای اینکه padding و border به عرض اضافه نشود */
}

/* اگر مشکل overflow همچنان بود */
header, nav, .main-navigation, .site-header { /* والد یا والدتر header را چک کنید */
    overflow: visible !important;
}




body { overflow-x: hidden; }

/* هماهنگ‌سازی آیتم‌های wp_nav_menu با منوی موبایل */
#level-0 li a {
    display: flex;
    align-items: center;
    padding: 1rem; /* معادل p-4 */
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s;
}

#level-0 li a:hover {
    background-color: rgba(243, 244, 246, 1); /* معادل bg-gray-100 */
}

.dark #level-0 li a:hover {
    background-color: rgba(39, 39, 42, 1); /* معادل bg-zinc-800 */
}


/* کاهش ارتفاع هدر فقط در موبایل - نسخه متعادل‌تر */
@media (max-width: 768px) {

    #topHeader {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }

    #topHeader .grid {
        gap: 8px !important;
    }

    #topHeader .col-span-4,
    #topHeader .col-span-12 {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    /* اندازه متعادل آیکون‌ها */
    #topHeader svg {
        width: 22px !important;
        height: 22px !important;
    }

    /* فاصله متعادل بین عناصر */
    #topHeader .md\\:me-5,
    #topHeader .me-2,
    #topHeader .md\\:ms-5,
    #topHeader .ms-2 {
        margin-right: 6px !important;
        margin-left: 6px !important;
    }

    /* ارتفاع متعادل برای دکمه ورود */
    #topHeader a[href*="my-account"] {
        padding: 8px !important;
    }

    /* اندازه لوگو بدون خراب شدن */
    #topHeader img {
        max-height: 70px !important;
        
        max-width: 100% !important;
        object-fit: contain !important;
        display: block;
    }
}

.offers-pro-page .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.offers-pro-page .page-numbers li {
    list-style: none;
}

.offers-pro-page .page-numbers a,
.offers-pro-page .page-numbers span {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.offers-pro-page .page-numbers .current {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.offers-pro-page .page-numbers a:hover {
    background: #f3f4f6;
}

.offers-hero {
    isolation: isolate;
}

@media (max-width: 640px) {
    .offers-pro-page article {
        border-radius: 16px;
    }

    .offers-pro-page h3 {
        font-size: 11px;
        line-height: 1.6;
    }

    .offers-pro-page del {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
}


.offers-input {
    width: 100%;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 10px 12px;
    background: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
}

.dark .offers-input {
    background: #111827;
    color: #fff;
    border-color: rgba(255,255,255,.08);
}

.offers-page-btn {
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    padding: 0 10px;
    cursor: pointer;
}

.offers-page-btn.active {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.offer-countdown {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 6px 10px;
    border-radius: 12px;
}


.offers-hero-slider-wrap {
    position: relative;
}

.offers-hero-slider {
    border-radius: 24px;
    overflow: hidden;
}

.offers-hero-slide {
    position: relative;
    min-height: 260px;
    height: 320px;
}

.offers-hero-bg {
    position: absolute;
    inset: 0;
}

.offers-hero-bg img,
.offers-hero-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.offers-hero-fallback {
    background: linear-gradient(135deg, #dc2626, #f97316, #fb7185);
}

.offers-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.15) 100%);
}

.offers-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 24px;
}

.offers-hero-inner {
    max-width: 620px;
    color: #fff;
}

.offers-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(6px);
    font-size: 12px;
    margin-bottom: 14px;
}

.offers-hero-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 10px;
    color: #fff;
}

.offers-hero-text {
    font-size: 15px;
    line-height: 2;
    color: rgba(255,255,255,.9);
    margin: 0;
}

.offers-hero-actions {
    margin-top: 20px;
}

.offers-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #fff;
    color: #111827;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}

.offers-hero-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.offers-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    user-select: none;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.offers-hero-prev {
    right: 16px;
}

.offers-hero-next {
    left: 16px;
}

.offers-hero-pagination {
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    bottom: 14px !important;
    z-index: 5;
    text-align: center;
}

.offers-hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,.6);
    opacity: 1;
}

.offers-hero-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 24px;
    border-radius: 99px;
}

@media (max-width: 991px) {
    .offers-hero-slide {
        height: 280px;
    }

    .offers-hero-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .offers-hero-slide {
        height: 220px;
        min-height: 220px;
    }

    .offers-hero-content {
        padding: 18px;
    }

    .offers-hero-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .offers-hero-text {
        font-size: 13px;
        line-height: 1.9;
    }

    .offers-hero-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .offers-hero-nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

.offers-hero-slider-wrap {
    position: relative;
    margin-bottom: 32px;
}

.offers-hero-slider {
    border-radius: 24px;
    overflow: hidden;
}

.offers-hero-slide {
    position: relative;
    height: 340px;
    min-height: 340px;
}

.offers-hero-bg {
    position: absolute;
    inset: 0;
}

.offers-hero-bg img,
.offers-hero-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.offers-hero-fallback {
    background: linear-gradient(135deg, #dc2626, #f97316, #fb7185);
}

.offers-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.30) 45%, rgba(0,0,0,.18) 100%);
}

.offers-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 28px 34px;
}

.offers-hero-inner {
    max-width: 620px;
    color: #fff;
}

.offers-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 12px;
    margin-bottom: 14px;
    color: #fff;
}

.offers-hero-title {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.6;
    color: #fff;
}

.offers-hero-text {
    margin: 0;
    font-size: 15px;
    line-height: 2;
    color: rgba(255,255,255,.92);
}

.offers-hero-actions {
    margin-top: 20px;
}

.offers-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all .25s ease;
}

.offers-hero-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.offers-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    user-select: none;
}

.offers-hero-prev {
    right: 16px;
}

.offers-hero-next {
    left: 16px;
}

.offers-hero-pagination {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 14px !important;
    z-index: 6;
    text-align: center;
}

.offers-hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,.6);
    opacity: 1;
}

.offers-hero-pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 999px;
    background: #fff;
}

@media (max-width: 991px) {
    .offers-hero-slide {
        height: 280px;
        min-height: 280px;
    }

    .offers-hero-content {
        padding: 24px;
    }

    .offers-hero-title {
        font-size: 25px;
    }
}

@media (max-width: 767px) {
    .offers-hero-slide {
        height: 220px;
        min-height: 220px;
    }

    .offers-hero-content {
        padding: 18px;
    }

    .offers-hero-title {
        font-size: 20px;
        line-height: 1.7;
    }

    .offers-hero-text {
        font-size: 13px;
        line-height: 1.9;
    }

    .offers-hero-btn {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 13px;
    }

    .offers-hero-nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

.amazing-timer-box-mobile {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 7px;
    background: #fff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}


.c-checkout-card .c-delivery-time-box{
    display:none;
}


.product-card-add-btn{
    position: relative;
    overflow: hidden;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.10);
    transform: translateY(0) scale(1);
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease, background .25s ease !important;
}

.product-card-add-btn:hover{
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
}

.product-card-add-btn:active{
    transform: scale(.98);
}

.product-card-add-btn .btn-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, opacity .25s ease;
}

.product-card-add-btn .btn-text{
    transition: opacity .25s ease, transform .25s ease;
    white-space: nowrap;
}

.product-card-add-btn .btn-spinner{
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 999px;
    display: none;
    animation: productBtnSpin .7s linear infinite;
}

@keyframes productBtnSpin{
    to{ transform: rotate(360deg); }
}

.product-card-add-btn.loading{
    pointer-events: none;
    opacity: .92;
}

.product-card-add-btn.loading .btn-icon{
    display: none;
}

.product-card-add-btn.loading .btn-spinner{
    display: inline-block;
}

.product-card-add-btn.loading .btn-text{
    opacity: .95;
}

.product-card-add-btn.added{
    background: #16a34a !important;
    box-shadow: 0 12px 28px rgba(22,163,74,.28) !important;
}

.product-card-add-btn.added:hover{
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 34px rgba(22,163,74,.34) !important;
}

/* حذف آیکون/متن added پیش‌فرض ووکامرس اگر آمد */
.product-card-add-btn + .added_to_cart{
    display:none !important;
}



.product-card-add-btn{
    position: relative;
    overflow: hidden;
    border: none !important;
    text-decoration: none !important;
    background: #ec302a !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(236,48,42,.22);
    transform: translateY(0) scale(1);
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease, background .25s ease !important;
}

.product-card-add-btn:hover{
    background: #d92722 !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(236,48,42,.32);
}

.product-card-add-btn:active{
    background: #bd201c !important;
    color: #fff !important;
    transform: scale(.98);
}

.product-card-add-btn svg{
    color: #fff !important;
    stroke: #fff !important;
}

.product-card-add-btn .btn-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    transition: transform .25s ease, opacity .25s ease;
}

.product-card-add-btn .btn-text{
    color: #fff !important;
    transition: opacity .25s ease, transform .25s ease;
    white-space: nowrap;
}

.product-card-add-btn .btn-spinner{
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 999px;
    display: none;
    animation: productBtnSpin .7s linear infinite;
}

@keyframes productBtnSpin{
    to{ transform: rotate(360deg); }
}

.product-card-add-btn.loading{
    background: #ec302a !important;
    color: #fff !important;
    pointer-events: none;
    opacity: .92;
}

.product-card-add-btn.loading .btn-icon{
    display: none;
}

.product-card-add-btn.loading .btn-spinner{
    display: inline-block;
}

.product-card-add-btn.loading .btn-text{
    color: #fff !important;
    opacity: .95;
}

.product-card-add-btn.added{
    background: #16a34a !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(22,163,74,.28) !important;
}

.product-card-add-btn.added:hover{
    background: #15803d !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 34px rgba(22,163,74,.34) !important;
}

.product-card-add-btn.added .btn-icon{
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
}

.product-card-add-btn.added .btn-text{
    color: #fff !important;
}

.product-card-add-btn + .added_to_cart{
    display: none !important;
}



.product-card-add-btn{
    position: relative;
    overflow: hidden;
    border: none !important;
    text-decoration: none !important;
    background: #ec302a !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(236,48,42,.22);
    transform: translateY(0) scale(1);
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease, background .25s ease !important;
    z-index: 20;
}

.product-card-add-btn:hover{
    background: #d92722 !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(236,48,42,.32);
}

.product-card-add-btn:active{
    background: #bd201c !important;
    color: #fff !important;
    transform: scale(.98);
}

.product-card-add-btn svg{
    color: #fff !important;
    stroke: #fff !important;
}

.product-card-add-btn .btn-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    transition: transform .25s ease, opacity .25s ease;
}

.product-card-add-btn .btn-text{
    color: #fff !important;
    transition: opacity .25s ease, transform .25s ease;
    white-space: nowrap;
}

.product-card-add-btn .btn-spinner{
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 999px;
    display: none;
    animation: productBtnSpin .7s linear infinite;
}

@keyframes productBtnSpin{
    to{ transform: rotate(360deg); }
}

.product-card-add-btn.loading{
    background: #ec302a !important;
    color: #fff !important;
    pointer-events: none;
    opacity: .92;
}

.product-card-add-btn.loading .btn-icon{
    display: none;
}

.product-card-add-btn.loading .btn-spinner{
    display: inline-block;
}

.product-card-add-btn.loading .btn-text{
    color: #fff !important;
    opacity: .95;
}

.product-card-add-btn.added{
    background: #16a34a !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(22,163,74,.28) !important;
}

.product-card-add-btn.added:hover{
    background: #15803d !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 34px rgba(22,163,74,.34) !important;
}

.product-card-add-btn.added .btn-icon{
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
}

.product-card-add-btn.added .btn-text{
    color: #fff !important;
}

.product-card-add-btn + .added_to_cart{
    display: none !important;
}

.add_to_cart_button{
    border-radius:18px !important;
}


#offcanvas-left {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

#jmall-offcanvas-cart-fragment {
    height: 100%;
    overflow: hidden;
}

.offcanvas-cart-content {
    height: 100%;
    overflow: hidden;
}

.offcanvas-cart-body {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.2) transparent;
}

.offcanvas-cart-body::-webkit-scrollbar {
    width: 6px;
}

.offcanvas-cart-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.2);
    border-radius: 999px;
}

.dark .offcanvas-cart-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.2);
}

@media (max-width: 640px) {
    .offcanvas-cart-header {
        padding: 12px;
    }

    .offcanvas-cart-body {
        padding: 12px;
    }

    .offcanvas-cart-footer {
        padding: 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}


/* تنظیم کلی صفحه */
.woocommerce-cart-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* کارت‌های محصولات */
.cart_item {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.cart_item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* بهبود باکس دکمه حذف */
.remove-button-class { /* کلاس دکمه قرمز شما - اگر کلاس متفاوتی دارد جایگزین کنید */
    background: #fee2e2;
    color: #ef4444;
    border-radius: 8px;
    padding: 8px;
}

/* استایل‌دهی فیلد تعداد */
.quantity-input { /* کلاس اینپوت تعداد */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    width: 60px;
    text-align: center;
}

/* باکس جمع کل (Cart Totals) */
.cart-totals-box {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.cart-totals-box .checkout-button {
    background: linear-gradient(90deg, #ff5e3a 0%, #ff7a56 100%);
    color: #fff;
    border-radius: 12px;
    font-weight: bold;
    padding: 15px;
    display: block;
    width: 100%;
    text-align: center;
}

/* موبایل */
@media (max-width: 768px) {
    .cart-page-container {
        padding: 10px;
    }
    
    /* نمایش لیستی در موبایل */
    .cart_item {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: relative;
    }

    /* دکمه حذف را به گوشه بالا راست ببرید */
    .remove-button-class {
        position: absolute;
        top: 10px;
        left: 10px;
    }
}


.woocommerce-cart button.button, .woocommerce-cart a.checkout-button, .woocommerce-cart .wc-proceed-to-checkout a.button{
    padding:8px 20px !important;
}


#mobileOverlay{
    z-index: 99998 !important;
}

#mobileMenu{
    z-index: 99999 !important;
}

/* هر نوع تایمر تخفیف/شمارش معکوس */
.deal-timer,
.sale-timer,
.product-countdown,
.countdown-timer,
.woocommerce .countdown,
.product-card .timer,
.product-card .deal-timer{
    position: relative !important;
    z-index: 1 !important;
}

/* وقتی منو باز است، تایمرها زیر منو نروند و اصلاً دیده نشوند */
body.mobile-menu-open .deal-timer,
body.mobile-menu-open .sale-timer,
body.mobile-menu-open .product-countdown,
body.mobile-menu-open .countdown-timer,
body.mobile-menu-open .woocommerce .countdown,
body.mobile-menu-open .product-card .timer,
body.mobile-menu-open .product-card .deal-timer{
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* اصلاح فاصله و فونت نوار پایین */
.bottom-nav-container button {
    transition: transform 0.2s ease;
}
.bottom-nav-container button:active {
    transform: scale(0.9); /* افکت فشردن دکمه */
}
/* اطمینان از اینکه عدد روی موبایل بهم نمی‌ریزد */
#jmall-cart-count-fragment {
    font-family: sans-serif; /* فونت انگلیسی برای اعداد بهتر است */
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}



/* =========================
   Desktop Navbar Professional Hover / Active
========================= */

#megaMenu nav > ul,
#megaMenu nav .menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* آیتم اصلی */
#megaMenu nav ul li {
    position: relative;
}

/* لینک‌ها */
#megaMenu nav ul li > a,
#mega-menu-fire > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
    color: #1f2937;
    font-weight: 600;
    transition: color .25s ease;
    text-decoration: none;
}

.dark #megaMenu nav ul li > a,
.dark #mega-menu-fire > a {
    color: #f3f4f6;
}

/* underline حرفه‌ای */
#megaMenu nav ul li > a::after,
#mega-menu-fire > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 2.5px;
    background: #E92F29;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .28s ease;
    opacity: 0.95;
}

/* hover */
#megaMenu nav ul li:hover > a,
#mega-menu-fire:hover > a {
    color: #E92F29;
}

#megaMenu nav ul li:hover > a::after,
#mega-menu-fire:hover > a::after {
    transform: scaleX(1);
}

/* active/current wordpress menu item */
#megaMenu nav ul li.current-menu-item > a,
#megaMenu nav ul li.current_page_item > a,
#megaMenu nav ul li.current-menu-ancestor > a,
#megaMenu nav ul li.current_page_ancestor > a,
#megaMenu nav ul li.current-menu-parent > a,
#mega-menu-fire.is-active > a {
    color: #E92F29;
}

/* underline برای active */
#megaMenu nav ul li.current-menu-item > a::after,
#megaMenu nav ul li.current_page_item > a::after,
#megaMenu nav ul li.current-menu-ancestor > a::after,
#megaMenu nav ul li.current_page_ancestor > a::after,
#megaMenu nav ul li.current-menu-parent > a::after,
#mega-menu-fire.is-active > a::after {
    transform: scaleX(1);
}

/* بهبود آیکون داخل لینک فروشگاه */
#mega-menu-fire > a svg {
    transition: transform .25s ease, color .25s ease;
}

#mega-menu-fire:hover > a svg,
#mega-menu-fire.is-active > a svg {
    transform: translateY(-1px);
    color: #E92F29;
}

/* اگر منو RTL باشد بهتر است انیمیشن از راست شروع شود */
[dir="rtl"] #megaMenu nav ul li > a::after,
[dir="rtl"] #mega-menu-fire > a::after {
    right: 0;
    left: auto;
    transform-origin: right;
}

/* اگر LTR بود */
[dir="ltr"] #megaMenu nav ul li > a::after,
[dir="ltr"] #mega-menu-fire > a::after {
    left: 0;
    right: auto;
    transform-origin: left;
}
.southmall-stock-notice {
    display: none;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff1f2;
    color: #b91c1c;
    border: 1px solid #fecdd3;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
}

.southmall-stock-notice.show {
    display: block;
}


.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    list-style: none;
    margin: 20px 0;
    padding: 16px 52px 16px 20px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 2;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    direction: rtl;
}

.woocommerce-error {
    background: #fff1f2;
    color: #991b1b;
    border: 1px solid #fecdd3;
}

.woocommerce-message {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.woocommerce-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
}

.woocommerce-error::before {
    content: "!";
    background: #ef4444;
    color: #fff;
}

.woocommerce-message::before {
    content: "✓";
    background: #10b981;
    color: #fff;
}

.woocommerce-info::before {
    content: "i";
    background: #3b82f6;
    color: #fff;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
    margin: 0;
}

.southmall-woo-notices {
    margin-bottom: 14px;
}

.southmall-woo-notices .woocommerce-error {
    display: block;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #991b1b;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.9;
}


#mobileStickyCart .southmall-woo-notices .woocommerce-error,
#mobileStickyCart .southmall-woo-notices .woocommerce-message,
#mobileStickyCart .southmall-woo-notices .woocommerce-info {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.8;
    list-style: none;
}

#mobileStickyCart .southmall-woo-notices .woocommerce-error {
    background: #fff1f1;
    border: 1px solid #fecaca;
    color: #b42318;
}

#mobileStickyCart .southmall-woo-notices {
    direction: rtl;
    text-align: right;
}

#mobileStickyCart .southmall-woo-notices .woocommerce-error,
#mobileStickyCart .southmall-woo-notices .woocommerce-message,
#mobileStickyCart .southmall-woo-notices .woocommerce-info {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.8;
    list-style: none;
    font-weight: 600;
}

#mobileStickyCart .southmall-woo-notices .woocommerce-error {
    background: #fff1f1;
    border: 1px solid #fecaca;
    color: #b42318;
}

#mobileStickyCart .southmall-woo-notices .woocommerce-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

#mobileStickyCart .southmall-woo-notices .woocommerce-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

#mobileStickyCart.has-error {
    border-color: #f87171;
    box-shadow: 0 -4px 24px rgba(239, 68, 68, 0.18);
}

#mobileStickyCart .jmall-sticky-qty-error {
    color: #dc2626;
}

#southmall-mobile-cart-notices {
    margin-bottom: 8px;
}

.southmall-mobile-notice {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.southmall-mobile-notice.error {
    background: #fff2f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.southmall-mobile-notice.success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.southmall-mobile-cart-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.southmall-mobile-cart-form button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 20px;
}

.southmall-mobile-qty {
    width: 30px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
}

body.offcanvas-open {
    overflow: hidden;
}

.jmall-offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .3s;
    z-index: 80;
}

.jmall-offcanvas-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.jmall-offcanvas {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: #fff;
    z-index: 90;
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s ease, visibility .3s ease;
}

.jmall-offcanvas-left {
    left: 0;
    transform: translateX(-100%);
}

.jmall-offcanvas.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.jm-mobile-bottom-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 99999 !important;
}

@supports (width: 100dvw) {
    .jm-mobile-bottom-nav {
        width: 100dvw !important;
        max-width: 100dvw !important;
    }
}

html,
body {
    overflow-x: hidden;
}

/* ================================
   JMall Categories Offcanvas
================================ */

#offcanvas-categories {
    background: #fff;
}

.dark #offcanvas-categories {
    background: #111827;
}

/* Header */
.jmall-cat-offcanvas-head {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 34%),
        #ffffff;
}

.dark .jmall-cat-offcanvas-head {
    border-bottom-color: #374151;
    background:
        radial-gradient(circle at top right, rgba(129, 140, 248, 0.14), transparent 34%),
        #111827;
}

.jmall-cat-offcanvas-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 800;
    color: #111827;
}

.dark .jmall-cat-offcanvas-title {
    color: #ffffff;
}

.jmall-cat-offcanvas-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.dark .jmall-cat-offcanvas-subtitle {
    color: #9ca3af;
}

.jmall-cat-offcanvas-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jmall-cat-offcanvas-close:hover {
    color: #111827;
    background: #e5e7eb;
    transform: rotate(90deg);
}

.dark .jmall-cat-offcanvas-close {
    color: #d1d5db;
    background: #1f2937;
}

.dark .jmall-cat-offcanvas-close:hover {
    color: #ffffff;
    background: #374151;
}

/* Body */
.jmall-cat-offcanvas-body {
    height: calc(100% - 73px);
    overflow-y: auto;
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(249,250,251,0.9), rgba(255,255,255,1));
}

.dark .jmall-cat-offcanvas-body {
    background:
        linear-gradient(180deg, rgba(17,24,39,0.95), rgba(17,24,39,1));
}

/* Scrollbar */
.jmall-cat-offcanvas-body::-webkit-scrollbar {
    width: 6px;
}

.jmall-cat-offcanvas-body::-webkit-scrollbar-track {
    background: transparent;
}

.jmall-cat-offcanvas-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.dark .jmall-cat-offcanvas-body::-webkit-scrollbar-thumb {
    background: #4b5563;
}

/* Lists */
.jmall-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jmall-cat-list-root {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jmall-cat-list-child {
    margin-top: 7px;
    margin-right: 14px;
    padding-right: 12px;
    border-right: 1px dashed #d1d5db;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dark .jmall-cat-list-child {
    border-right-color: #4b5563;
}

.jmall-cat-list-child.hidden {
    display: none;
}

/* Items */
.jmall-cat-item {
    position: relative;
}

.jmall-cat-row {
    display: flex;
    align-items: stretch;
    gap: 6px;
    border: 1px solid #eef2f7;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: all 0.18s ease;
    overflow: hidden;
}

.jmall-cat-row:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.dark .jmall-cat-row {
    border-color: #263244;
    background: #1f2937;
    box-shadow: none;
}

.dark .jmall-cat-row:hover {
    border-color: rgba(129, 140, 248, 0.45);
    background: #243044;
}

/* Link */
.jmall-cat-link {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    text-decoration: none;
    color: #374151;
}

.jmall-cat-link:hover {
    color: #111827;
}

.dark .jmall-cat-link {
    color: #e5e7eb;
}

.dark .jmall-cat-link:hover {
    color: #ffffff;
}

.jmall-cat-title-wrap {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jmall-cat-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.8;
}

/* Small colored dot */
.jmall-cat-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #fb2c36;
    box-shadow: 0 0 0 4px rgba(199, 210, 254, 0.35);
    flex: 0 0 auto;
}

.jmall-cat-item.has-children > .jmall-cat-row .jmall-cat-dot {
    background: #fb2c36;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
}

.dark .jmall-cat-dot {
    background: #fb2c36;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.15);
}

/* Count badge */
.jmall-cat-count {
    flex: 0 0 auto;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dark .jmall-cat-count {
    background: #111827;
    color: #9ca3af;
}

/* Toggle button */
.jmall-cat-toggle {
    width: 42px;
    min-width: 42px;
    border: 0;
    border-right: 1px solid #eef2f7;
    background: #f9fafb;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.jmall-cat-toggle:hover {
    background: #eef2ff;
    color: #4f46e5;
}

.dark .jmall-cat-toggle {
    border-right-color: #374151;
    background: #111827;
    color: #d1d5db;
}

.dark .jmall-cat-toggle:hover {
    background: #312e81;
    color: #ffffff;
}

.jmall-cat-toggle-icon {
    transition: transform 0.2s ease;
}

/* Open state */
.jmall-cat-item.is-open > .jmall-cat-row {
    border-color: rgba(99, 102, 241, 0.45);
    background:
        linear-gradient(90deg, rgba(238,242,255,0.95), #ffffff);
}

.dark .jmall-cat-item.is-open > .jmall-cat-row {
    border-color: rgba(129, 140, 248, 0.5);
    background:
        linear-gradient(90deg, rgba(49,46,129,0.35), #1f2937);
}

.jmall-cat-item.is-open > .jmall-cat-row .jmall-cat-toggle-icon {
    transform: rotate(180deg);
}

/* Empty */
.jmall-cat-empty {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-align: center;
    font-size: 14px;
}

.jmall-cat-empty-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: #f3f4f6;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dark .jmall-cat-empty {
    color: #9ca3af;
}

.dark .jmall-cat-empty-icon {
    background: #1f2937;
    color: #d1d5db;
}
.jmall-cat-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
    transition: all .2s ease;
    overflow: hidden;
    padding: 0 6px 0 0;
}

.jmall-cat-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.jmall-cat-toggle:hover {
    background: #eef2ff;
    color: #4f46e5;
}

.dark .jmall-cat-toggle {
    background: #1f2937;
    color: #d1d5db;
}

.dark .jmall-cat-toggle:hover {
    background: #312e81;
    color: #c7d2fe;
}

.jmall-cat-toggle-placeholder {
    opacity: .35;
    cursor: default;
}

.jmall-cat-link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px 9px 4px;
    color: #111827;
    text-decoration: none;
}

.jmall-cat-submenu {
    margin-top: 8px;
    margin-right: 14px;
    padding-right: 10px;
    border-right: 2px dashed #e5e7eb;
}

.dark .jmall-cat-submenu {
    border-right-color: #374151;
}

.jmall-cat-submenu:not(.hidden) {
    animation: jmallCatSlide .22s ease;
}

.jmall-cat-children {
    margin: 0;
    padding: 0;
    border-right: 0;
}

/* کانتینر کلی لیست دسته‌ها */
.jmall-cat-accordion-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jmall-cat-root {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jmall-cat-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ردیف اصلی هر دسته */
.jmall-cat-row {
    direction: ltr;
    min-height: 48px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(238, 242, 247, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
    overflow: hidden;
    transition: all .18s ease;
}

.jmall-cat-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    border-color: rgba(99, 102, 241, 0.18);
}

/* دکمه فلش سمت چپ */
.jmall-cat-toggle {
    width: 40px;
    height: 48px;
    flex: 0 0 40px;
    border: 0;
    border-left: 0;
    border-right: 1px solid #eef2f7;
    background: #fbfcff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s ease;
}

.jmall-cat-toggle:hover {
    background: #f3f4ff;
    color: #4f46e5;
}

.jmall-cat-toggle-placeholder {
    cursor: default;
    color: transparent;
    background: #fbfcff;
}

/* چرخش فلش هنگام باز شدن */
.jmall-cat-toggle[aria-expanded="true"] .jmall-cat-arrow {
    transform: rotate(180deg);
}

.jmall-cat-arrow {
    transition: transform .18s ease;
}

/* عدد تعداد محصول */
.jmall-cat-count {
    min-width: 34px;
    height: 22px;
    margin-left: 8px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f8fafc;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* لینک دسته */
.jmall-cat-link {
    direction: rtl;
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 12px 0 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.jmall-cat-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* نقطه رنگی کنار عنوان */
.jmall-cat-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    background: #fb2c36;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* زیرمنو */
.jmall-cat-submenu {
    margin-top: 8px;
    margin-right: 14px;
    padding-right: 10px;
    border-right: 1px dashed #e5e7eb;
}

.jmall-cat-submenu .jmall-cat-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* آیتم‌های زیرمنو کمی کوچک‌تر */
.jmall-cat-submenu .jmall-cat-row {
    min-height: 44px;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.035);
}

.jmall-cat-submenu .jmall-cat-link {
    height: 44px;
    font-size: 12.5px;
    font-weight: 650;
}

.jmall-cat-submenu .jmall-cat-toggle {
    height: 44px;
}

.jmall-cat-submenu .jmall-cat-count {
    font-size: 10px;
    min-width: 30px;
}

/* مخفی‌سازی */


/* انیمیشن باز شدن */
.jmall-cat-submenu:not(.hidden) {
    animation: jmallCatOpen .18s ease;
}

@keyframes jmallCatOpen {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* حالت دارک اگر قالب داری */
.dark .jmall-cat-row {
    background: #111827;
    border-color: rgba(55, 65, 81, 0.9);
    box-shadow: none;
}

.dark .jmall-cat-toggle {
    background: #0f172a;
    border-right-color: #1f2937;
    color: #d1d5db;
}

.dark .jmall-cat-link {
    color: #f9fafb;
}

.dark .jmall-cat-count {
    background: #1f2937;
    color: #9ca3af;
}

.dark .jmall-cat-submenu {
    border-right-color: #374151;
}


/* لینک‌های سطح اول نوبار */
#megaMenu nav > ul > li {
    position: relative;
}

#megaMenu nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    padding: 10px 2px;
    color: #1f2937;
    font-weight: 500;
    transition: color .2s ease;
}

#megaMenu nav > ul > li > a:hover {
    color: var(--color-primary, #2563eb);
}

.dark #megaMenu nav > ul > li > a {
    color: #f3f4f6;
}

.dark #megaMenu nav > ul > li > a:hover {
    color: var(--color-primary, #60a5fa);
}

/* آیتم فعال */
#megaMenu nav > ul > li.current-menu-item > a,
#megaMenu nav > ul > li.current_page_item > a,
#megaMenu nav > ul > li.current-menu-ancestor > a {
    color: var(--color-primary, #2563eb);
    font-weight: 700;
}

.dark #megaMenu nav > ul > li.current-menu-item > a,
.dark #megaMenu nav > ul > li.current_page_item > a,
.dark #megaMenu nav > ul > li.current-menu-ancestor > a {
    color: var(--color-primary, #60a5fa);
}

/* اگر زیرمنو معمولی وردپرس هم داری */
#megaMenu nav .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    padding: 10px 0;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
    z-index: 100;
}

.dark #megaMenu nav .sub-menu {
    background: #18181b;
    border-color: #3f3f46;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

#megaMenu nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#megaMenu nav .sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: #374151;
    font-size: 14px;
    transition: all .2s ease;
}

#megaMenu nav .sub-menu li a:hover {
    background: #f3f4f6;
    color: var(--color-primary, #2563eb);
}

.dark #megaMenu nav .sub-menu li a {
    color: #e5e7eb;
}

.dark #megaMenu nav .sub-menu li a:hover {
    background: #27272a;
    color: #fff;
}


#megaMenu .mega-menu-li.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}

.dark #megaMenu .mega-menu-li.active {
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
}


#mega-menu-fire-target ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#mega-menu-fire-target ::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

#mega-menu-fire-target ::-webkit-scrollbar-track {
    background: transparent;
}

.dark #mega-menu-fire-target ::-webkit-scrollbar-thumb {
    background: #3f3f46;
}

#mega-menu-fire-target.mega-dropdown {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

#mega-menu-fire-target.mega-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#mega-menu-fire-target::before {
    content: "";
    position: absolute;
    top: -32px;
    left: 0;
    right: 0;
    height: 32px;
}


/* Mobile Menu Base */
#mobileMenu {
    overscroll-behavior: contain;
}

/* آیتم‌های منوی وردپرس داخل موبایل */
#mobileMenu #level-0 > ul > li.menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: background-color .2s ease, color .2s ease;
}

#mobileMenu #level-0 > ul > li.menu-item > a:hover {
    background-color: #f9fafb;
    color: #111827;
}

/* دارک مود آیتم‌های منوی وردپرس */
.dark #mobileMenu #level-0 > ul > li.menu-item > a {
    color: #e4e4e7;
}

.dark #mobileMenu #level-0 > ul > li.menu-item > a:hover {
    background-color: #27272a;
    color: #ffffff;
}

/* خط جداکننده آیتم‌های wp_nav_menu */
#mobileMenu #level-0 > ul > li.menu-item {
    border-bottom: 1px solid #f3f4f6;
}

.dark #mobileMenu #level-0 > ul > li.menu-item {
    border-bottom-color: #27272a;
}


/* ================================
   Mobile Offcanvas Menu - Dark Mode
================================ */

#mobileMenu {
    overscroll-behavior: contain;
}

#mobileMenu button,
#mobileMenu a {
    -webkit-tap-highlight-color: transparent;
}

/* WordPress menu items */
#mobileMenu #level-0 > ul > li.menu-item {
    border-bottom: 1px solid #f3f4f6;
}

.dark #mobileMenu #level-0 > ul > li.menu-item {
    border-bottom-color: #27272a;
}

#mobileMenu #level-0 > ul > li.menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: background-color .2s ease, color .2s ease;
}

#mobileMenu #level-0 > ul > li.menu-item > a:hover {
    background-color: #f9fafb;
    color: #111827;
}

.dark #mobileMenu #level-0 > ul > li.menu-item > a {
    color: #e4e4e7;
}

.dark #mobileMenu #level-0 > ul > li.menu-item > a:hover {
    background-color: #27272a;
    color: #ffffff;
}

/* WP submenu */
#mobileMenu .sub-menu {
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.dark #mobileMenu .sub-menu {
    background: #18181b;
    border-top-color: #27272a;
}

#mobileMenu .sub-menu li a {
    display: block;
    padding: 13px 24px;
    font-size: 13px;
    color: #4b5563;
}

.dark #mobileMenu .sub-menu li a {
    color: #d4d4d8;
}

#mobileMenu .sub-menu li a:hover {
    background: #f3f4f6;
    color: #111827;
}

.dark #mobileMenu .sub-menu li a:hover {
    background: #27272a;
    color: #ffffff;
}

/* Images */
#mobileMenu img {
    background: #f3f4f6;
}

.dark #mobileMenu img {
    background: #27272a;
}

/* Hover rows */
#mobileMenu #level-0 li button,
#mobileMenu #level-0 li a,
#mobileMenu #subLevelsContainer li button,
#mobileMenu #subLevelsContainer li a {
    transition: background-color .2s ease, color .2s ease;
}

.dark #mobileMenu #level-0 li button:hover,
.dark #mobileMenu #level-0 li a:hover,
.dark #mobileMenu #subLevelsContainer li button:hover,
.dark #mobileMenu #subLevelsContainer li a:hover {
    background-color: #27272a;
}

/* Header */
.dark #mobileMenu .sticky.top-0 {
    background-color: rgba(24, 24, 27, 0.94) !important;
    border-bottom-color: #27272a;
    backdrop-filter: blur(12px);
}

/* SVG icons */
.dark #mobileMenu svg {
    color: #a1a1aa;
}

/* Scrollbar */
#mobileMenu ::-webkit-scrollbar {
    width: 6px;
}

#mobileMenu ::-webkit-scrollbar-track {
    background: transparent;
}

#mobileMenu ::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 999px;
}

.dark #mobileMenu ::-webkit-scrollbar-thumb {
    background: #3f3f46;
}

.dark #mobileMenu .menu-item > a {
    color: #ffffff !important;
}

.dark #mobileMenu .menu-item > a,
.dark #mobileMenu .menu-item > a span {
    color: #ffffff !important;
}

.dark #mobileMenu li a,
.dark #mobileMenu li button,
.dark #mobileMenu li a span,
.dark #mobileMenu li button span {
    color: #ffffff !important;
}


/* wrapper */
.amazing-products-carousel {
    position: relative;
}

/* nav container */
.amazing-products-carousel .owl-nav {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* nav buttons */
.amazing-products-carousel .owl-nav button.owl-prev,
.amazing-products-carousel .owl-nav button.owl-next {
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* icon inside nav */
.amazing-products-carousel .owl-nav-btn {
    font-size: 24px;
    line-height: 1;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-1px);
}

/* hover */
.amazing-products-carousel .owl-nav button.owl-prev:hover,
.amazing-products-carousel .owl-nav button.owl-next:hover {
    background: #EF2933 !important;
    border-color: #EF2933 !important;
}

.amazing-products-carousel .owl-nav button.owl-prev:hover .owl-nav-btn,
.amazing-products-carousel .owl-nav button.owl-next:hover .owl-nav-btn {
    color: #ffffff;
}

/* disabled */
.amazing-products-carousel .owl-nav button.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
    box-shadow: none;
}

/* dots */
.amazing-products-carousel .owl-dots {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.amazing-products-carousel .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: #d1d5db !important;
    border-radius: 9999px;
    transition: all 0.25s ease;
}

.amazing-products-carousel .owl-dots .owl-dot.active span {
    width: 22px;
    background: #EF2933 !important;
}

.amazing-products-carousel .owl-dots .owl-dot:hover span {
    background: #9ca3af !important;
}

/* dark mode nav */
.dark .amazing-products-carousel .owl-nav button.owl-prev,
.dark .amazing-products-carousel .owl-nav button.owl-next {
    background: #18181b !important;
    border-color: #3f3f46 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.dark .amazing-products-carousel .owl-nav-btn {
    color: #f4f4f5;
}

.dark .amazing-products-carousel .owl-nav button.owl-prev:hover,
.dark .amazing-products-carousel .owl-nav button.owl-next:hover {
    background: #EF2933 !important;
    border-color: #EF2933 !important;
}

.dark .amazing-products-carousel .owl-nav button.owl-prev:hover .owl-nav-btn,
.dark .amazing-products-carousel .owl-nav button.owl-next:hover .owl-nav-btn {
    color: #ffffff;
}

.dark .amazing-products-carousel .owl-nav button.disabled {
    background: #27272a !important;
    border-color: #3f3f46 !important;
    opacity: 0.4;
}

/* dark mode dots */
.dark .amazing-products-carousel .owl-dots .owl-dot span {
    background: #52525b !important;
}

.dark .amazing-products-carousel .owl-dots .owl-dot.active span {
    background: #EF2933 !important;
}

.dark .amazing-products-carousel .owl-dots .owl-dot:hover span {
    background: #71717a !important;
}


.amazing-products-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: -12px;
    right: -12px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    margin-top: 0;
}

.amazing-products-carousel .owl-nav button.owl-prev,
.amazing-products-carousel .owl-nav button.owl-next {
    pointer-events: auto;
}

.jmall-cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jmall-cat-thumb {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 6px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.jmall-cat-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jmall-cat-thumb-placeholder {
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
}

.dark .jmall-cat-thumb {
    background: #27272a;
    border-color: #3f3f46;
}

.dark .jmall-cat-thumb-placeholder {
    background: #27272a;
    border-color: #52525b;
}



.jm-mobile-bottom-nav {
    height: 72px !important;
    padding-bottom: env(safe-area-inset-bottom);
}

.jm-mobile-bottom-nav-inner {
    height: 72px !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
}

.jm-mobile-bottom-nav-item {
    height: 72px !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-rows: 28px 32px !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 2px !important;
    padding: 6px 2px 5px !important;
    text-align: center !important;
    color: #6b7280;
}

.dark .jm-mobile-bottom-nav-item {
    color: #9ca3af;
}

.jm-mobile-bottom-nav-item:hover {
    color: #374151;
}

.dark .jm-mobile-bottom-nav-item:hover {
    color: #ffffff;
}

.jm-mobile-bottom-nav-icon {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.jm-mobile-bottom-nav-icon svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
}

.jm-mobile-bottom-nav-label {
    min-height: 32px !important;
    max-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow: hidden !important;
}

.jm-mobile-bottom-nav-item.is-primary {
    color: #EF2933 !important;
}

.dark .jm-mobile-bottom-nav-item.is-primary {
    color: #ff5a62 !important;
}

.jm-mobile-cart-badge {
    position: absolute !important;
    top: -3px !important;
    right: -6px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 9px !important;
    line-height: 16px !important;
    text-align: center !important;
    font-weight: 700 !important;
}


.jm-shop-tab{
    display:block;
    text-decoration:none !important;
}

.jm-shop-tab-card{
    width: 140px;
    min-height: 140px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 14px 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: all .25s ease;
}

.dark .jm-shop-tab-card{
    background: #18181b;
    border-color: #27272a;
}

.jm-shop-tab:hover .jm-shop-tab-card{
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.jm-shop-tab-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width: 48px;
    height: 48px;
}

.jm-shop-tab-thumb{
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 999px;
}

.jm-shop-tab-title{
    color: #525252;
    text-align: center;
    line-height: 1.6;
    font-size: 14px;
    font-weight: 500;
}

.dark .jm-shop-tab-title{
    color: #fff;
}

.jm-shop-tab.is-active .jm-shop-tab-card{
    border-color: #EF2933;
    background: #fff5f5;
    box-shadow: 0 6px 18px rgba(239, 41, 51, .10);
}

.dark .jm-shop-tab.is-active .jm-shop-tab-card{
    background: rgba(239,41,51,.08);
}

.jm-shop-tab.is-active .jm-shop-tab-title{
    color: #EF2933;
    font-weight: 700;
}



/* wrapper */
.jm-shop-tabs-wrap{
    position: relative;
    margin-bottom: 1.25rem;
}

/* horizontal scroller */
.jm-shop-tabs-scroller{
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.jm-shop-tabs-scroller::-webkit-scrollbar{
    display: none;
}

/* tab pill */
.jm-shop-tab-pill{
    flex: 0 0 auto;
    min-width: max-content;
    height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #525252;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .22s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.jm-shop-tab-pill:hover{
    color: #111827;
    border-color: #d4d4d8;
    transform: translateY(-1px);
}

.dark .jm-shop-tab-pill{
    background: #18181b;
    border-color: #27272a;
    color: #e5e7eb;
}

.dark .jm-shop-tab-pill:hover{
    border-color: #3f3f46;
    color: #fff;
}

/* active */
.jm-shop-tab-pill.is-active{
    background: #EF2933;
    border-color: #EF2933;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(239, 41, 51, .18);
}

.dark .jm-shop-tab-pill.is-active{
    background: #EF2933;
    border-color: #EF2933;
    color: #fff !important;
}

/* icon */
.jm-shop-tab-pill-icon{
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.jm-shop-tab-pill-thumb{
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 999px;
    display: block;
}

/* text */
.jm-shop-tab-pill-text{
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

/* mobile optimized */
@media (max-width: 640px){
    .jm-shop-tabs-wrap{
        margin-left: -4px;
        margin-right: -4px;
    }

    .jm-shop-tabs-scroller{
        gap: 8px;
        padding-inline: 4px;
    }

    .jm-shop-tab-pill{
        height: 42px;
        padding: 0 12px;
        gap: 7px;
    }

    .jm-shop-tab-pill-text{
        font-size: 12px;
    }
}


.jm-shop-tabs-scroller .jm-shop-tab-pill.is-active{
    background: #EF2933 !important;
    border-color: #EF2933 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(239, 41, 51, .22) !important;
}

.jm-shop-tabs-scroller .jm-shop-tab-pill.is-active span,
.jm-shop-tabs-scroller .jm-shop-tab-pill.is-active svg,
.jm-shop-tabs-scroller .jm-shop-tab-pill.is-active path{
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.jm-shop-tabs-scroller .jm-shop-tab-pill.is-active .jm-shop-tab-pill-text{
    color: #ffffff !important;
    font-weight: 800 !important;
}


.jm-mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.jm-mobile-bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    min-height: 64px;
}

.jm-mobile-bottom-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 64px;
    padding: 8px 6px 10px;
    text-align: center;
    color: #374151;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.jm-mobile-bottom-nav-item:focus,
.jm-mobile-bottom-nav-item:active,
.jm-mobile-bottom-nav-item:hover {
    color: #111827;
    text-decoration: none;
}

.jm-mobile-bottom-nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.jm-mobile-bottom-nav-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.jm-mobile-bottom-nav-label {
    display: block;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jm-mobile-cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    text-align: center;
}

.jm-mobile-cart-badge.hidden {
    display: none;
}


@media (max-width: 1023px) {

    .jm-mobile-bottom-nav {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
        z-index: 99999 !important;
        background: #fff !important;
        border-top: 1px solid #e5e7eb !important;
        overflow: hidden !important;
    }

    .jm-mobile-bottom-nav-inner {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        height: 72px !important;
    }

    .jm-mobile-bottom-nav-item {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 72px !important;
        margin: 0 !important;
        padding: 7px 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;

        text-align: center !important;
        color: #374151 !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .jm-mobile-bottom-nav-icon {
        width: 26px !important;
        height: 26px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }

    .jm-mobile-bottom-nav-icon svg {
        width: 26px !important;
        height: 26px !important;
        display: block !important;
    }

    .jm-mobile-bottom-nav-label {
        width: 100% !important;
        display: block !important;
        font-size: 11.5px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body {
        padding-bottom: 72px !important;
    }
}

/* =========================
   Southmall Amazing Badge
   ========================= */

.product-card-image-wrap {
    position: relative;
}

.southmall-amazing-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 12;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 5px 12px;

    border-radius: 999px 999px 999px 4px;

    background: linear-gradient(135deg, #ef233c 0%, #ff3b30 45%, #ff6b00 100%);
    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
    white-space: nowrap;

    box-shadow: 0 8px 18px rgba(239, 35, 60, 0.28);
    pointer-events: none;

    transform: translateZ(0);
}

.southmall-amazing-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
}

.southmall-amazing-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

/* حالت hover کارت */
.product-box-item:hover .southmall-amazing-badge {
    box-shadow: 0 10px 24px rgba(239, 35, 60, 0.36);
}

/* موبایل */
@media (max-width: 640px) {
    .southmall-amazing-badge {
        top: 6px;
        right: 6px;
        min-height: 26px;
        padding: 4px 10px;
        font-size: 11px;
    }
}

/* دارک مود */
.dark .southmall-amazing-badge {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f97316 100%);
    color: #fff;
}

.product-card-add-btn{
    border-radius:1000px !important;
}








/* latest products cart state */
.latest-products-cart-form.not-in-cart .latest-products-in-cart-box {
    display: none !important;
}

.latest-products-cart-form.not-in-cart .latest-products-add-btn {
    display: inline-flex !important;
}

.latest-products-cart-form.in-cart .latest-products-add-btn {
    display: none !important;
}

.latest-products-cart-form.in-cart .latest-products-in-cart-box {
    display: flex !important;
}

.latest-products-in-cart-box {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.latest-products-qty-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f3f4f6;
    border-radius: 14px;
    padding: 6px;
}

.dark .latest-products-qty-wrap {
    background: rgba(255,255,255,.08);
}

.latest-products-qty-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: .2s;
}

.dark .latest-products-qty-btn {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.latest-products-qty-btn:hover {
    opacity: .9;
}

.latest-products-qty-count {
    min-width: 26px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.dark .latest-products-qty-count {
    color: #fff;
}

.latest-products-view-cart-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f97316, #ef4444);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.latest-products-view-cart-btn:hover {
    color: #fff;
    opacity: .95;
}









/* =========================
   JM Shop Category Tabs
   Fixed: Image Top / Text Bottom
========================= */

.jm-shop-tabs-wrap {
    width: 100%;
    margin: 18px 0 28px;
    overflow: visible !important;
}

.jm-shop-tabs-scroller {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    overflow-x: auto;
    overflow-y: visible !important;

    padding: 10px 8px 22px;
    min-height: 126px;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    white-space: normal !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 41, 51, 0.28) transparent;
}

.jm-shop-tabs-scroller::-webkit-scrollbar {
    height: 4px;
}

.jm-shop-tabs-scroller::-webkit-scrollbar-track {
    background: transparent;
}

.jm-shop-tabs-scroller::-webkit-scrollbar-thumb {
    background: rgba(239, 41, 51, 0.28);
    border-radius: 999px;
}

/* خود آیتم تب */
.jm-shop-tab-pill {
    flex: 0 0 auto;

    width: 96px;
    min-width: 96px;
    height: auto !important;
    min-height: 110px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 8px;
    padding: 0;
    margin: 0;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    text-decoration: none !important;
    color: #111827 !important;

    overflow: visible !important;

    transition: transform 0.25s ease, color 0.25s ease;
}

/* Hover روی کل تب */
.jm-shop-tab-pill:hover {
    transform: translateY(-4px);
    color: #EF2933 !important;
}

/* باکس عکس / آیکن */
.jm-shop-tab-pill-icon {
    width: 74px;
    height: 74px;
    min-width: 74px;
    min-height: 74px;
    flex: 0 0 74px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    background: transparent !important;
    border: none !important;
    border-radius: 24px;
    box-shadow: none;

    overflow: hidden;

    color: #EF2933;
    transition: all 0.28s ease;
}

/* تصویر دسته‌بندی */
.jm-shop-tab-pill-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;

    border-radius: 18px;
    background: transparent !important;
    padding: 0 !important;

    transition: all 0.28s ease;
}

/* SVG مثل همه محصولات */
.jm-shop-tab-pill-icon svg {
    width: 34px;
    height: 34px;
    color: #EF2933 !important;
    stroke: currentColor !important;
    transition: all 0.28s ease;
}

.jm-shop-tab-pill-icon svg path {
    stroke: currentColor !important;
}

/* متن زیر عکس */
.jm-shop-tab-pill-text {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    width: 100% !important;
    height: auto !important;
    min-height: 18px !important;

    text-align: center !important;

    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    color: #111827 !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;

    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;

    transition: color 0.25s ease, font-weight 0.25s ease;
}

/* Hover روی آیکن */
.jm-shop-tab-pill:hover .jm-shop-tab-pill-icon {
    background: rgba(239, 41, 51, 0.10) !important;
    transform: scale(1.05);
    box-shadow: 0 14px 30px rgba(239, 41, 51, 0.16);
}

.jm-shop-tab-pill:hover .jm-shop-tab-pill-text {
    color: #EF2933 !important;
}

/* حالت Active */
.jm-shop-tabs-scroller .jm-shop-tab-pill.is-active {
    background: transparent !important;
    border: none !important;
    color: #EF2933 !important;
    box-shadow: none !important;
    transform: translateY(-4px);
}

/* Active آیکن */
.jm-shop-tabs-scroller .jm-shop-tab-pill.is-active .jm-shop-tab-pill-icon {
    width: 82px;
    height: 82px;
    min-width: 82px;
    min-height: 82px;
    flex-basis: 82px;

    background: rgba(239, 41, 51, 0.10) !important;
    border-radius: 26px;
    box-shadow: 0 14px 30px rgba(239, 41, 51, 0.16);
    transform: scale(1.05);
}

/* Active تصویر */
.jm-shop-tabs-scroller .jm-shop-tab-pill.is-active .jm-shop-tab-pill-icon img {
    width: 70px;
    height: 70px;

    background: transparent !important;
    padding: 0 !important;
    border-radius: 18px;
}

/* Active SVG */
.jm-shop-tabs-scroller .jm-shop-tab-pill.is-active .jm-shop-tab-pill-icon svg {
    width: 36px;
    height: 36px;
    color: #EF2933 !important;
    stroke: #EF2933 !important;
}

.jm-shop-tabs-scroller .jm-shop-tab-pill.is-active .jm-shop-tab-pill-icon svg path {
    stroke: #EF2933 !important;
}

/* Active متن */
.jm-shop-tabs-scroller .jm-shop-tab-pill.is-active .jm-shop-tab-pill-text {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    color: #EF2933 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

/* موبایل */
@media (max-width: 640px) {
    .jm-shop-tabs-wrap {
        margin: 14px 0 22px;
        overflow: visible !important;
    }

    .jm-shop-tabs-scroller {
        gap: 14px;
        padding: 8px 6px 20px;
        min-height: 112px;
        overflow-y: visible !important;
    }

    .jm-shop-tab-pill {
        width: 82px !important;
        min-width: 82px !important;
        min-height: 100px !important;
        gap: 7px;
    }
/* Mobile Bottom Nav Active State */
.jm-mobile-bottom-nav-item {
    color: #6B7280;
    transition: color 0.22s ease;
}

.jm-mobile-bottom-nav-item .jm-mobile-bottom-nav-icon svg {
    color: currentColor;
    stroke: currentColor;
    transition: color 0.22s ease, stroke 0.22s ease;
}

.jm-mobile-bottom-nav-item.jm-active,
.jm-mobile-bottom-nav-item[aria-current="page"] {
    color: #EB1D3B !important;
}

.jm-mobile-bottom-nav-item.jm-active .jm-mobile-bottom-nav-icon svg,
.jm-mobile-bottom-nav-item[aria-current="page"] .jm-mobile-bottom-nav-icon svg {
    color: #EB1D3B !important;
    stroke: #EB1D3B !important;
}

.jm-mobile-bottom-nav-item.jm-active .jm-mobile-bottom-nav-label,
.jm-mobile-bottom-nav-item[aria-current="page"] .jm-mobile-bottom-nav-label {
    color: #EB1D3B !important;
    font-weight: 800;
}
    .jm-shop-tab-pill-icon {
        width: 62px;
        height: 62px;
        min-width: 62px;
        min-height: 62px;
        flex-basis: 62px;
        border-radius: 20px;
    }

    .jm-shop-tab-pill-icon img {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .jm-shop-tab-pill-icon svg {
        width: 28px;
        height: 28px;
    }

    .jm-shop-tab-pill-text {
        display: block !important;
        font-size: 11.5px !important;
        line-height: 1.4 !important;
        color: #111827 !important;
    }

    .jm-shop-tabs-scroller .jm-shop-tab-pill.is-active .jm-shop-tab-pill-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
        flex-basis: 70px;
        border-radius: 22px;
    }

    .jm-shop-tabs-scroller .jm-shop-tab-pill.is-active .jm-shop-tab-pill-icon img {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .jm-shop-tabs-scroller .jm-shop-tab-pill.is-active .jm-shop-tab-pill-icon svg {
        width: 30px;
        height: 30px;
    }

    .jm-shop-tabs-scroller .jm-shop-tab-pill.is-active .jm-shop-tab-pill-text {
        font-size: 12px !important;
        color: #EF2933 !important;
    }
}

html, body {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .woocommerce-account .site,
  .woocommerce-account .site-content,
  .woocommerce-account .content-area,
  .woocommerce-account .woocommerce,
  .woocommerce-account .woocommerce-MyAccount-content,
  .woocommerce-account form,
  .woocommerce-account .address-form,
  .woocommerce-account .woocommerce-address-fields {
    max-width: 100%;
    overflow-x: hidden;
  }
}


@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content,
  .woocommerce-account .woocommerce-address-fields,
  .woocommerce-account .woocommerce-address-fields__field-wrapper,
  .woocommerce-account .form-row,
  .woocommerce-account input,
  .woocommerce-account select,
  .woocommerce-account textarea {
    max-width: 100%;
    box-sizing: border-box;
  }

  .woocommerce-account .form-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* اصلاح عرض صفحه حساب کاربری در موبایل */
@media (max-width: 768px) {
    /* مهار کردن کل کانتینر ووکامرس */
    .woocommerce-account .woocommerce,
    .woocommerce-account .woocommerce-MyAccount-content,
    .woocommerce-account .woocommerce-address-fields,
    .woocommerce-account .woocommerce-address-fields__field-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* اصلاح ردیف‌های فرم که معمولاً دارای منفی مارجین یا فلوت هستند */
    .woocommerce-account .form-row {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: block !important;
    }

    /* اصلاح جداول ووکامرس که در موبایل عریض می‌شوند */
    .woocommerce-account .shop_table, 
    .woocommerce-account table.my_account_orders {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* مهار کردن کل بدنه برای جلوگیری از اسکرول افقی */
    body.woocommerce-account {
        overflow-x: hidden !important;
        position: relative;
    }
}

body.jm-story-open {
    overflow: hidden;
    touch-action: manipulation;
}

body.jm-story-open .mobile-bottom-nav,
body.jm-story-open .bottom-nav,
body.jm-story-open .site-bottom-nav,
body.jm-story-open .jm-mobile-bottom-nav {
    display: none !important;
}

.jm-story-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 999999;
}

.jm-story-modal__dialog {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
}
/* فقط لوگوی فوتر */
.footer-logo-wrap .footer-logo-img{
    height: 44px !important;
    width: auto !important;
    max-width: 50% !important;
    object-fit: contain;
}

@media (min-width: 640px){
    .footer-logo-wrap .footer-logo-img{
        height: 52px !important;
    }
}

@media (min-width: 1024px){
    .footer-logo-wrap .footer-logo-img{
        height: 58px !important;
    }
}

/* Story modal desktop fix */
.jm-story-modal__dialog{
    width:min(420px, calc(100vw - 24px), calc(88vh * 9 / 16)) !important;
    aspect-ratio:9 / 16 !important;
    height:auto !important;
    max-height:88vh !important;
}

.jm-story-stage,
.jm-story-content{
    width:100%;
    height:100%;
    min-height:0;
}

.jm-story-content img,
.jm-story-content video{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
    display:block;
}

/* Mobile full screen */
@media (max-width: 575px){
    .jm-story-modal__dialog{
        width:100vw !important;
        height:100vh !important;
        max-height:none !important;
        aspect-ratio:auto !important;
        margin:0 !important;
        border-radius:0 !important;
    }
}



@media (max-width: 575px){

    body:has(.jm-story-modal.is-open){
        overflow:hidden;
        height:100%;
    }

    .jm-story-modal.is-open{
        position:fixed;
        inset:0;
        width:100vw;
        height:100dvh;
        overflow:hidden;
        overscroll-behavior:none;
    }

    .jm-story-modal__dialog{
        position:fixed;
        inset:0;
        width:100vw !important;
        height:100dvh !important;
        max-width:none !important;
        max-height:none !important;
        margin:0 !important;
        border-radius:0 !important;
        overflow:hidden !important;
        aspect-ratio:auto !important;
    }

    .jm-story-stage,
    .jm-story-content{
        height:100%;
        overflow:hidden;
    }
}