
        * { margin: 0; padding: 0; box-sizing: border-box; font-family:'vazir', 'Segoe UI', Tahoma, sans-serif; }
        body { direction: rtl; min-height: 200vh; background-color: #fff; overflow-x: hidden; }
        h1, h2, h3, .hero-main-title {
    font-weight: 800; /* وزن ضخیم برای تیترها */
}

/* برای متن‌های معمولی */
p, a, span {
    font-weight: 400; /* وزن معمولی */
}
        /* ================== هدر دسکتاپ ================== */
        header {
            position: absolute; top: 30px; left: 0; right: 0;
            width: 100%; padding: 0 50px;
            display: flex; justify-content: space-between; align-items: center;
            z-index: 1000; transition: all 0.4s ease;
        }
        header.scrolled { position: fixed; top: 0; background: white; padding: 0 50px; height: 80px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .logo { font-size: 2rem; font-weight: 800; color: white; text-decoration: none; text-transform: uppercase; }
        header.scrolled .logo { color: black; }
        .navbar-inner { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-radius: 8px; padding: 5px 15px; display: flex; align-items: center;  gap: 20px; }
        header.scrolled .navbar-inner { background: transparent; backdrop-filter: none; }
        nav ul { list-style: none; display: flex; gap: 25px; }
        nav ul li a { color: #111; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
        .icons { display: flex; gap: 20px; font-size: 1.3rem; border-right: 1px solid #ddd; padding-right: 20px; }

 /* کانتینر اصلی */
.hero-new {
    width: 100%;
    background-color: #fff;

}

.hero-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* در حالت پیش‌فرض (موبایل) زیر هم باشند */
}

.hero-img {
    width: 100%;
    height: auto; /* عکس اصلا بریده نمی‌شود */
    display: block;
}

.hero-content-new {
    padding: 30px 5%;
    background: white;
    z-index: 10;
}

/* --- استایل مخصوص دسکتاپ (متن روی عکس) --- */
@media (min-width: 992px) {
    .hero-container {
        display: block; /* از حالت فلکس خارج شود */
        height: 600px; /* ارتفاع دلخواه برای دسکتاپ */
        overflow: hidden;
    }

    .hero-img {
        height: 100%;
        object-fit: cover; /* در دسکتاپ برای پر کردن کادر کمی برش لازم است */
    }

    .hero-content-new {
        position: absolute;
        bottom: 10%; /* فاصله از پایین */
        right: 5%;   /* فاصله از راست */
        background: transparent; /* حذف پس‌زمینه سفید */
        max-width: 600px;
        color: black; /* تغییر رنگ متن به سفید برای خوانایی روی عکس */
    }

    .hero-main-title, .hero-alert, .hero-description {
        color: black; /* در دسکتاپ متن سفید شود */
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .btn-outline {
        background: transparent;
        color: white;
        border-color: white;
    }
    .btn-outline:hover { background: white; color: black; }
}

/* --- استایل متن و دکمه‌ها --- */
.hero-alert { font-weight: 800; margin-bottom: 5px; }
.hero-main-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 15px;
}
.hero-description { font-size: 1.1rem; margin-bottom: 25px; max-width: 500px; }

.hero-actions { display: flex; gap: 10px; }
.btn-black {
    background: #000; color: #fff; padding: 12px 25px;
    border-radius: 50px; text-decoration: none; font-weight: bold;
}
.btn-outline {
    border: 2px solid #000; padding: 12px 25px;
    border-radius: 50px; text-decoration: none; font-weight: bold; color: #000;
}
        /* ================== موبایل و تبلت ================== */
        .mobile-top-bar { position: fixed; top: 0; width: 100%; padding: 15px 20px; display: none; justify-content: space-between; align-items: center; background: white; z-index: 1001; border-bottom: 1px solid #eee; }
        .mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: white; display: none; justify-content: space-around; padding: 12px 0; border-top: 1px solid #eee; z-index: 1005; }
        .mobile-bottom-nav button, .mobile-bottom-nav a { background: none; border: none; font-size: 0.8rem; color: #333; text-decoration: none; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
        .mobile-menu-overlay { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100%; background: white; z-index: 2000; transition: right 0.4s ease; padding: 20px; }
        .mobile-menu-overlay.active { right: 0; }
        .menu-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1999; display: none; }

        /* ================== بخش دسته‌بندی‌ها ================== */
        .categories-section { background: #f8f8f8; padding: 60px 20px; text-align: center; }
        .categories-list { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
        .category-btn { display: flex; flex-direction: column; align-items: center; background: white; border-radius: 50px; padding: 15px 25px; min-width: 130px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-decoration: none; color: #333; font-weight: 600; transition: 0.3s; }
        .category-btn:hover { transform: translateY(-5px); }
        .category-icon-box { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; margin-bottom: 10px; border: 2px solid #fff; }
        .category-icon-box img { width: 100%; height: 100%; object-fit: cover; }

        /* ================== بنر تبلیغاتی ================== */
        .promo-banner { position: relative; width: 90%; margin: 50px auto; height: 500px; border-radius: 20px; overflow: hidden; color: white; display: flex; align-items: center; }
        .promo-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
        .promo-bg img { width: 100%; height: 100%; object-fit: cover; }
        .promo-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to left, rgba(0,0,0,0.7), transparent); z-index: 2; }
        .promo-content { position: relative; z-index: 3; padding: 0 80px; max-width: 700px; }
        .promo-title { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; }
        .btn { background: white; color: black; padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: bold; display: inline-block; margin-top: 20px; }

        @media (max-width: 1024px) {
            header { display: none; }
            .mobile-top-bar, .mobile-bottom-nav { display: flex; }
            .promo-banner { width: 100%; border-radius: 0; margin: 20px 0; height: 450px; }
            .promo-content { padding: 0 30px; text-align: center; margin: 0 auto; }
            .promo-title { font-size: 2.5rem; }
        }
        /* ================== استایل بخش جدید بلور ================== */
.interactive-grid {
    padding: 50px 5%;
    background-color: #fff;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blur-card {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

/* مخفی کردن چک‌باکس */
.blur-card input[type="checkbox"] {
    display: none;
}

.card-media {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.5s ease;
    backdrop-filter: blur(0px); /* شروع بدون بلور */
    -webkit-backdrop-filter: blur(0px);
}

.overlay-text {
    color: white;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.overlay-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.view-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    border: 1px solid white;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* جادوی کلیک: وقتی چک‌باکس تیک خورد */
.blur-card input:checked ~ .card-overlay {
    opacity: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.blur-card input:checked ~ .card-media {
    transform: scale(1.1);
}

.blur-card input:checked ~ .card-overlay .overlay-text {
    transform: translateY(0);
}

/* ریسپانسیو بخش جدید */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .blur-card {
        height: 300px;
    }
}
/* ================== استایل جامع بخش محصولات جدید ================== */
.latest-products {
    padding: 60px 5%;
    background-color: #fcfcfc;
    direction: rtl;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
}

.view-all {
    color: #0072bc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.view-all:hover {
    border-color: #0072bc;
}

/* کانتینر اسکرول افقی */
.product-scroll-container {
    display: flex;
    overflow-x: auto; /* فعال سازی اسکرول افقی */
    gap: 25px;
    padding: 20px 5px 40px 5px; /* پدینگ پایین برای دیده شدن سایه‌ها */
    scroll-snap-type: x mandatory; /* قفل شدن کارت‌ها هنگام اسکرول */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* استایل اسکرول‌بار مخصوص دسکتاپ */
.product-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.product-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-scroll-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
    transition: 0.3s;
}

.product-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #0072bc;
}

/* استایل کارت محصول */
.product-card {
    /* تعیین عرض ثابت برای اجبار به اسکرول در دسکتاپ */
    min-width: 300px;
    max-width: 300px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    scroll-snap-align: start;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* تصویر محصول */
.product-image {
    position: relative;
    height: 320px;
    width: 100%;
    background-color: #f9f9f9;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}



/* محتوای متنی کارت */
.product-info {
    padding: 20px;
    flex-grow: 1;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
}

/* قیمت و دکمه خرید */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111;
}

.add-to-cart {
    background: #111;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.add-to-cart:hover {
    background: #0072bc;
    transform: rotate(-10deg);
}

/* ریسپانسیو برای تبلت و موبایل */
@media (max-width: 768px) {
    .latest-products {
        padding: 40px 15px;
    }

    .product-card {
        min-width: 250px; /* کارت‌های کوچک‌تر در موبایل */
        max-width: 250px;
    }

    .product-image {
        height: 260px;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    /* مخفی کردن اسکرول‌بار در موبایل برای تمیزی بیشتر */
    .product-scroll-container::-webkit-scrollbar {
        display: none;
    }
}
/* ================== استایل بخش مقالات ================== */
.latest-articles {
    padding: 80px 5%;
    background-color: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.article-thumb {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-thumb img {
    transform: scale(1.1);
}

.article-thumb .date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 20px 0;
}

.article-content h3 {
    font-size: 1.25rem;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: 0.3s;
}

.article-card:hover .article-content h3 {
    color: #0072bc;
}

.article-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #111;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
}

/* ریسپانسیو مقالات */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr; /* در موبایل مقالات زیر هم بیایند */
        gap: 40px;
    }

    .article-thumb {
        height: 200px;
        border-radius: 12px;
    }
}
/* ================== استایل فوتر ایرانی ================== */
.main-footer {
    background-color: #f9f9f9;
    padding: 60px 5% 20px;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #111;
    position: relative;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-column ul li a {
    text-decoration: none;
    color: #555;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: #0072bc;
    padding-right: 5px;
}

.footer-logo img {
    height: 30px;
    margin-bottom: 20px;
}

.footer-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: justify;
}

.contact-col li span {
    font-weight: bold;
    color: #333;
}

.namad-placeholder {
    width: 100px;
    height: 100px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #999;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #888;
}

/* پشتیبانی شناور */
.floating-support {
    position: fixed;
    bottom: 75px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: 0.3s;
}

.floating-support:hover {
    transform: scale(1.1);
}

.floating-support img {
    width: 70px;
}

/* ریسپانسیو فوتر */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo, .namad-placeholder {
        margin: 0 auto 20px;
    }
    .footer-desc {
        text-align: center;
    }
    .main-footer {
        padding-bottom: 80px; /* برای اینکه دکمه منوی موبایل روی فوتر نیفتد */
    }
}
/* بخش پیشنهاد ویژه */
.special-offer {
            margin: 50px 0;
            padding: 30px;
            background: linear-gradient(135deg, #ff6b6b, #f06595);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.3);
            color: white;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .special-offer::before {
            content: '';
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
            animation: shine 10s infinite linear;
        }
        @keyframes shine {
            0% { transform: translate(0,0) rotate(0deg); }
            100% { transform: translate(50%,50%) rotate(360deg); }
        }

        .special-offer h2 {
            font-size: 32px;
            margin-bottom: 10px;
            text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
            position: relative;
            z-index: 1;
        }
        .special-offer p {
            font-size: 20px;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }
        .timer {
            font-size: 48px;
            font-weight: bold;
            letter-spacing: 8px;
            margin: 20px 0;
            text-shadow: 3px 3px 8px rgba(0,0,0,0.6);
            position: relative;
            z-index: 1;
        }

        /* ریسپانسیو بودن در موبایل */
        @media (max-width: 768px) {
            .product-card { min-width: 220px; }
            .special-offer h2 { font-size: 26px; }
            .timer { font-size: 36px; letter-spacing: 4px; }
            .special-offer p { font-size: 18px; }
        }
    /* استایل برای منوی ناوبری */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

/* استایل برای آیتم‌های منوی دراپ‌دان */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown a {
    color: #111;
    text-decoration: none;
    padding: 12px 16px;
    display: block;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;  /* جلوگیری از برش در متون */
}

/* استایل محتویات منوی دراپ‌دان */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    z-index: 1;
    border-radius: 5px;
    top: 100%;
    left: 0;
}

/* نمایش منو در زمان هاور */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #111;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

/* تنظیمات کلی برای نمایش منوی ناوبری به‌درستی */
nav ul li {
    position: relative;
}

nav ul li a {
    display: inline-block;
    padding: 12px 12px;
    text-align: center;
}

/* در حالت موبایل و نمایش به صورت کشویی */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
}


/* استایل برای منوی دراپ‌دان */
#productsDropdown {
    padding-left: 20px; /* فاصله بیشتر برای زیرمنو */
}

#productsDropdown li {
    margin-bottom: 10px;
}

#productsDropdown a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
}

#productsDropdown a:hover {
    color: #0072bc;
}

/* استایل برای منوی دراپ‌دان */
#productsDropdown {
    padding-left: 20px; /* فاصله بیشتر برای زیرمنو */
    max-height: 0; /* در ابتدا منو پنهان است */
    overflow: hidden; /* برای مخفی کردن محتویات اضافی */
    opacity: 0; /* شفافیت صفر در ابتدا */
    transition: opacity 0.5s ease-out, max-height 0.5s ease-out; /* انیمیشن برای نمایش/مخفی کردن منو */
}

#productsDropdown.open {
    max-height: 500px; /* اندازه حداکثری برای منو (مقدار قابل تنظیم) */
    opacity: 1; /* شفافیت 1 برای زمانی که منو باز می‌شود */
}

#productsDropdown li {
    margin-bottom: 10px;
}

#productsDropdown a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
}

#productsDropdown a:hover {
    color: #0072bc;
}
@media (max-width: 991px) {
    .hero-container {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .hero-img {
        /* بزرگتر کردن عکس */
        width: 150% !important;
        /* جابجایی به سمت پایین و متمایل کردن به چپ برای حذف سمت راست */
        margin-top: 20px;
        margin-right: -20% !important; /* عکس را به سمت راست هل می‌دهد تا سمت چپ تصویر که شخص هست فیت شود */
        height: 450px !important; /* ارتفاع ثابت برای کنترل بهتر کراپ */
        object-fit: cover;
        object-position: left center; /* تمرکز روی سمت چپ عکس */
    }

    .hero-content-new {
        position: static !important;
        padding: 20px 5%;
        background: white;
        text-align: right; /* اگر متن فارسی است */
    }

    .hero-main-title, .hero-alert, .hero-description {
        color: black !important;
        text-shadow: none !important;
    }
}

             /* استایل کارت محصول */
         .product-item {
             transition: all 0.3s ease;
             border: 1px solid #f0f0f0;
             border-radius: 8px;
         }

        image-wrapper {
            position: relative !important;
            overflow: hidden;
        }

        .main-product-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: opacity 0.3s ease;
        }



        /* استایل تصاویر کوچک زیر محصول */
        .color-swatches {
            display: flex;
            gap: 6px;
            overflow-x: auto;
            padding: 5px 0;
            scrollbar-width: thin; /* برای مرورگرهای مدرن */
        }

        .swatch {
            width: 40px;
            height: 40px;
            border: 1px solid #ddd;
            cursor: pointer;
            padding: 2px;
            border-radius: 4px;
            flex-shrink: 0;
        }

        .swatch img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 2px;
        }

        .swatch.active {
            border-color: #000;
            box-shadow: 0 0 2px rgba(0,0,0,0.5);
        }

        .product-name {
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 5px;
            height: 40px; /* جلوگیری از بهم ریختگی ارتفاع */
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }


        /* دکمه افزودن سریع روی عکس */
        .image-wrapper {
            position: relative;
        }

        .quick-add-btn {
            position: absolute;
            bottom: 10px;
            left: 10px;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0; /* در حالت عادی مخفی */
            transition: 0.3s;
            transform: translateY(10px);
            z-index: 5;
        }

        .product-item:hover .quick-add-btn {
            opacity: 1;
            transform: translateY(0);
        }

        /* استایل قیمت و درصد */
        .badge.bg-danger {
            padding: 4px 6px;
            font-weight: 500;
        }

        .current-price {
            line-height: 1;
        }

        /* هماهنگ کردن ارتفاع کارت‌ها */
        .product-item {
            border: 1px solid #eee;
            background-color: #fff;
            border-radius: 12px !important;
        }
        .special-offer .product-item {
            position: relative;
            z-index: 10; /* اطمینان از قرارگیری روی لایه‌های پس‌زمینه */
        }

        .color-swatches, .quick-add-btn, .swatch {
            position: relative;
            z-index: 20; /* بالاتر از همه لایه‌ها */
            cursor: pointer !important; /* اجبار به نمایش نشانگر کلیک */
            pointer-events: auto !important; /* اطمینان از فعال بودن رویدادهای کلیک */
        }

        .product-scroll-container {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch; /* اسکرول نرم در موبایل */
            display: flex;
            gap: 15px;
            padding-bottom: 15px;
        }
        /* حذف تمام بج‌های سرگردان در کل صفحه */
        body > .promo-badge,
        body > .badge {
            display: none !important;
        }

        /* اصلاح ظرف تصویر برای مهار کردن بج تخفیف */
        .image-wrapper {
            position: relative !important;
            overflow: hidden !important;
            display: block !important;
            width: 100%;
        }




        /* ردیف قیمت قبلی و درصد تخفیف */
        .discount-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }

        .old-price {
            color: #999;
            text-decoration: line-through;
            font-size: 0.85rem;
        }

        .percent-badge {
            background-color: #ff3f3f;
            color: #fff;
            font-size: 0.75rem;
            font-weight: bold;
            padding: 2px 6px;
            border-radius: 4px;
        }

        /* قیمت نهایی */
        .current-price {
            font-size: 1.2rem;
            font-weight: 800;
            color: #111;
        }

        .current-price.text-danger {
            color: #ff3f3f !important;
        }
        /* اصلاح نهایی برای حذف تداخل‌ها */

        /* ۱. مهار کردن بج تخفیف روی عکس */
        .image-wrapper {
            position: relative !important;
            display: block !important;
            width: 100% !important;
            overflow: hidden !important;
        }

        .image-wrapper .promo-badge {
            position: absolute !important;
            top: 10px !important;
            right: 10px !important;
            left: auto !important;
            background: #ff3f3f !important;
            color: #fff !important;
            padding: 2px 10px !important;
            font-size: 12px !important;
            font-weight: bold !important;
            border-radius: 6px !important;
            z-index: 100 !important;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
        }

        /* ۲. مرتب‌سازی بخش قیمت (قیمت قبلی راست، درصد چپ) */
        .price-box {
            display: flex !important;
            flex-direction: column !important;
            width: 100% !important;
            margin-top: 12px !important;
        }

        .price-top-row {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            margin-bottom: 5px !important;
            width: 100% !important;
        }

        .old-price {
            color: #aaa !important;
            text-decoration: line-through !important;
            font-size: 0.85rem !important;
        }

        .discount-percent {
            background-color: #ff3f3f !important;
            color: white !important;
            font-size: 0.75rem !important;
            font-weight: bold !important;
            padding: 1px 6px !important;
            border-radius: 4px !important;
        }

        .current-price {
            font-size: 1.2rem !important;
            font-weight: 800 !important;
            color: #111 !important;
            text-align: right !important;
        }

        .text-danger {
            color: #ff3f3f !important;
        }

        /* ۳. حذف بج‌های سرگردان که در بدنه سایت (خارج از کارت) ظاهر می‌شوند */
        body > .promo-badge,
        body > .badge,
        section > .promo-badge {
            display: none !important;
        }
        .cart-badge {
            font-size: 0.65rem;
            padding: 3px 6px;
            /* اگر سبد خالی بود، عدد صفر نمایش داده نشود یا کلاس مخفی اضافه شود */
        }
        .cart-badge:empty, .cart-badge[data-count="0"] {
            display: none;
        }
