/* استایل‌های عمومی -------------------------------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* تعریف متغیرهای رنگی --------------------------------------------------------------------------------*/
:root {
    --new-red-primary: #be1515;
        --new-red-gradient: linear-gradient(to top, #a31111, #be1515);
    --new-red-darker: #a31111;
    --new-red-hover-bg: #f9e3e3;
    --primary-blue: #005691;
    --primary-blue-darker: #003f6b;
    --menu-text-red: #be1515; 
    --menu-hover-pink: #fde8e8; 
    --menu-megamenu-bg: #fce4e4; 
    --menu-megamenu-sidebar-bg: #fbd0d0; 
    --menu-active-shadow: #be1515;
    --footer-red-primary: #be1515;
}
body {
    font-family: 'Vazirmatn','IRANSans', sans-serif;
    direction: rtl;
    background-color: #f8f8f8;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
a:hover {
    color: var(--new-red-primary);
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    max-width: 1300px !important;
    margin: 0 auto;
    padding: 0 15px;
}

/* استایل برای main +---------------------------------------------------------------------------------------*/
.main-content {
    padding: 20px 0;
}

/* تعریف فونت‌های فارسی ------------------------------------------------------------------------------------*/
@font-face {
    font-family: 'IRANSans';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IRANYekan';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/sahel-font@v3.4.0/fonts/webfonts/Sahel-FD.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* //بنر اصلي //-----------------------------------------------------------------------------------------------------*/
.header-banner {
    position: relative;
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
}
.header-banner-container {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
}
.header-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.header-banner-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-banner-text h1 {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    margin: 0;
}
@media (max-width: 768px) {
    .header-banner-container {
        height: 50px;
    }
    .header-banner-text h1 {
        font-size: 18px;
    }
}
@media (max-width: 480px) {
    .header-banner-container {
        height: 40px;
    }
    .header-banner-text h1 {
        font-size: 16px;
    }
}

/* // منوي اصلي ------------------------------------------------------------------------------------------------------------ */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    padding: 10px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ///مديريت منوي اصلي---------------------------------------------------------------------------------------------------------*/

.nav-container {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-links > li {
    position: relative;
}
.nav-links > li > a {
    display: flex;
    align-items: center;
    padding: 1rem 1rem;
    text-decoration: none;
    color: var(--menu-text-red); 
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    gap: 0.5rem;
    flex-direction: row; /* ترتیب عادی */
}
.nav-links > li > a .fas {
    margin-right: 0;
    margin-left: 0.5rem; /* فاصله از متن سمت چپ */
    font-size: 1em;
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
}
.nav-links > li > a:hover {
    color: var(--menu-text-red);
    background: var(--menu-hover-pink); 
}
.megamenu-arrow {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    margin-right: 0.25rem;
}
.nav-links > li:hover .megamenu-arrow {
    transform: rotate(180deg);
}

/* ===== مگا منو =====------------------------------------------------------------------------------------------------------- */
.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--menu-megamenu-bg); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    border: 1px solid #e5e7eb; 
    min-width: 900px;
    max-width: 1100px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    overflow: hidden;
}
.nav-links > li:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-menu-container {
    display: flex;
    min-height: 300px;
}
.mega-menu-sidebar {
    width: 300px;
    background: #fff; 
    border-right: 1px solid #e5e7eb; 
    padding: 0;
    flex-shrink: 0;
}
.mega-menu-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mega-menu-sidebar li {
    border-bottom: 1px solid #e5e7eb; }
.mega-menu-sidebar li:last-child {
    border-bottom: none;
}
.mega-menu-sidebar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--menu-text-red); 
    font-weight: 500;
    transition: all 0.3s ease;
}
.mega-menu-sidebar a .fas.fa-chevron-left {
    margin-right: auto;
}
.mega-menu-sidebar a:hover,
.mega-menu-sidebar a.active {
    border-radius: 5px;
    transition: 1ms ease-in;
    background: var(--menu-hover-pink); 
    color: var(--menu-text-red);       
    box-shadow: inset -3px 0 0 var(--menu-active-shadow); 
}

.mega-menu-content {
    flex: 1;
    padding: 2.5rem;
    background: white; 
}
.mega-menu-content .category-content {
    display: none;
}
.mega-menu-content .category-content.active {
    display: block;
}
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.category-group h5 {
    color: var(--menu-text-red); 
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    border-bottom: 2px solid #e5e7eb; 
    padding-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.category-group li {
    margin-bottom: 0.5rem;
}
.category-group a {
    color: #555; 
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.category-group a:hover {
    color: var(--menu-text-red); 
}

/* ===== منو موبايل ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--menu-text-red); 
    transition: color 0.3s ease;
}
.mobile-menu-btn:hover {
    color: var(--menu-text-red);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white; 
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 10000; 
    overflow-y: auto;
}
.mobile-menu.open {
    right: 0;
}
.mobile-menu-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--menu-hover-pink); 
}
.mobile-menu-header h3 {
    font-size: 1.1rem;
    color: var(--menu-text-red); 
}
.mobile-close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--menu-text-red); 
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
}
.mobile-nav-links > li {
    border-bottom: 1px solid #f3f4f6; 
}
.mobile-nav-links > li > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--menu-text-red); 
    font-weight: 500;
    font-size: 0.9rem;
    gap: 0.5rem;
    flex-direction: row; /* ترتیب عادی */
}
.mobile-nav-links > li > a .fas {
    margin-right: 0;
    margin-left: 0.5rem; /* فاصله از متن سمت چپ */
    font-size: 1em;
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
}
.mobile-nav-links > li > a .mobile-arrow {
    font-size: 0.8em;
}
.mobile-nav-links > li > a:hover {
    background: var(--menu-hover-pink); 
    color: var(--menu-text-red);
}

.mobile-submenu {
    background: var(--menu-hover-pink); 
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.mobile-submenu.open {
    max-height: 1000px; 
}
.mobile-submenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-submenu li {
    border-bottom: 1px solid #e5e7eb; 
}
.mobile-submenu > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    color: var(--menu-text-red);
    font-weight: 500;
    font-size: 0.85rem;
}
.mobile-submenu > ul > li > a .mobile-sub-arrow {
    font-size: 0.75em;
}
.mobile-submenu > ul > li > a:hover {
    background: white; 
    color: var(--menu-text-red);
}

.mobile-sub-submenu {
    background: white; 
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.mobile-sub-submenu.open {
    max-height: 500px;
}
.mobile-sub-submenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-sub-submenu li {
    border-bottom: 1px solid #f3f4f6; 
}
.mobile-sub-submenu a {
    display: block;
    padding: 0.5rem 2.5rem;
    text-decoration: none;
    color: #777; 
    font-size: 0.8rem;
}
.mobile-sub-submenu a:hover {
    background: var(--menu-hover-pink); 
    color: var(--menu-text-red);    
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999; 
}
.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/*  هدر اكشن (دکمه‌های تماس و ...) ----------------------------------------------------------------------------------------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-right: 5px!important;
}
.header-actions a {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 0.5rem;
    text-decoration: none;
    color: #374151; 
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}
.header-actions a:hover {
    background: var(--menu-hover-pink); 
    color: var(--menu-text-red);     
}

.contact-link, .users, .shopping {
    background: var(--menu-text-red) !important; 
    color: white !important;                  }
.contact-link:hover, .users:hover, .shopping:hover { 
    background: #a31111 !important; }

.logo img {
    height: 40px;
    width: 120px;
    object-fit: contain;
    display: block;
    max-width: 100%;
}

@media (min-width: 1116px) {
    .logo img {
        height: 50px !important;
        width: auto !important;
        max-width: 100% !important;
    }
    .nav-links > li > a {
        padding: 1rem 1.2rem;
    }
     .nav-links > li > a:hover {
        padding: 1rem 1.2rem;
        border-radius: 5px;
        transition: 1ms ease-in;
    }
}
@media (min-width: 1025px) and (max-width: 1115px) {
    .logo img {
        height: 45px !important;
        width: auto !important;
        max-width: 100% !important;
    }
    .nav-links > li > a {
    
        padding: 1rem 0.8rem;
        font-size: 0.875rem;
        gap: 0.2rem;
    }
    .nav-links > li > a .fas {
        font-size: 0.825rem;
        margin-left: 0.15rem;
    }
    .header-actions {
        gap: 0.2rem;
    }
    .header-actions a {
        padding: 0.3rem 0.3rem;
        gap: 0.1rem;
        font-size: 0.85rem;
    }
    .header-actions a span {
        display: none;
    }
    .header-actions a .fas {
        font-size: 1rem;
        margin-left: 0;
    }
}
@media (max-width: 1024px) {
    .nav-container .max-w-7xl.mx-auto.px-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .logo img {
        height: 36px;
        max-width: 100%;
    }
    .mobile-menu-btn {
        display: block !important;
        padding: 0.5rem;
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--menu-text-red);
    }
    .mobile-menu-btn .fas {
        display: block;
    }
    .nav-links {
        display: none;
    }
    .mega-menu {
        display: none !important;
    }
    .header-actions {
        gap: 0.3rem;
    }
    .header-actions a {
        padding: 0.5rem 0.6rem;
        gap: 0;
        font-size: 0.85rem;
        min-width: 40px;
        min-height: 40px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .header-actions a span {
        display: none;
    }
    .header-actions a .fas {
        font-size: 1.1rem !important;
        margin-left: 0;
        margin-right: 0;
        display: block !important;
    }
}
@media (max-width: 768px) {
    .nav-container .max-w-7xl.mx-auto.px-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .logo img {
        height: 32px;
        max-width: 100%;
    }
    .mobile-menu-btn {
        font-size: 1.4rem !important;
        padding: 0.4rem !important;
    }
    .header-actions {
        gap: 0.25rem;
    }
    .header-actions a {
        padding: 0.45rem 0.55rem;
        font-size: 0.8rem;
        min-width: 38px;
        min-height: 38px;
    }
    .header-actions a .fas {
        font-size: 1rem !important;
        display: block !important;
    }
}

.mega-menu,
.mega-menu * { 
    z-index: 9999 !important; 
}

/* //////////////////----------------------------------------------------------------------------------------------------------------//////////////////// */

/* Fallback برای آیکون‌های FontAwesome */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* اسلايدر اصلي ----------------------------------------------------------------------------------------------------------------------------------------*/
.main-slider-section {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.main-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 480px;
    width: 100%;
    position: relative;
    will-change: transform;
}

.main-slide {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-slide-content {
    /* این کلاس برای اسلایدرهای قدیمی با متن بود - دیگر استفاده نمی‌شود */
    display: none !important;
}

.main-slide:hover .main-slide-content {
    background-color: rgba(0, 0, 0, 0.5);
}

.main-slide-content h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    font-family: 'IRANYekan', 'IRANSans', sans-serif;
}

.main-slide-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    background-image: var(--main-red-gradient);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-image 0.3s ease, transform 0.2s ease;
    font-family: 'IRANSans', sans-serif;
}

.main-slide-button i {
    color: white;
    font-size: 18px;
    margin-right: 0;
    margin-left: 8px;
}

.main-slide-button:hover {
    background-image: linear-gradient(to top, var(--main-red-darker), var(--main-red-primary));
    transform: translateY(-2px);
}

.main-slider-controls {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.main-slider-controls button {
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

.main-slider-controls button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.main-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.main-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.main-dot.active {
    background-color: #fff;
}

.slider-counter {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 12px;
    min-width: 60px;
    text-align: center;
    font-size: 15px;
    padding: 2px 10px;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

@media (max-width: 768px) {
    .main-slider {
        height: clamp(180px, 45vw, 300px);
    }

    .main-slide img {
        object-fit: contain !important;
    }

    .main-slide {
        background-color: #000;
    }

    .main-slide-content h2 {
        font-size: 20px;
    }

    .main-slide-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .main-slider {
        height: clamp(160px, 50vw, 240px);
    }

    .main-slide img {
        object-fit: contain !important;
    }

    .main-slide-content h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .main-slide-button {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* /كدهاي داخل main-------------------------------------------------------------------------------------------------------------------- */



.bg-gray-50 {
    background-color: #fbf9fa;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-purple-50 {
    background-color: #f5f3ff;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.p-8 {
    padding: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.text-gray-800 {
    color: #371f2d;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.text-gray-600 {
    color: #4b5563;
}

.leading-7 {
    line-height: 1.75rem;
}

.grid {
    display: grid;
}

.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.p-6 {
    padding: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-blue-600 {
    color: #2563eb;
}

.text-green-600 {
    color: #16a34a;
}

.text-purple-600 {
    color: #9333ea;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-center {
    text-align: center;
}


@media (max-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .text-3xl {
        font-size: 1.5rem;
    }

    .p-8 {
        padding: 1.5rem;
    }

    .p-6 {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .text-3xl {
        font-size: 1.25rem;
    }

    .p-8 {
        padding: 1rem;
    }

    .p-6 {
        padding: 0.75rem;
    }
}

/* انواع خدمات ----------------------------------------------------------------------------------------------------------------------*/

/* //استایل بخش دسته‌بندی‌های سریع ---------------------------------------------------------------------------------------------------*/
.quick-categories {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background-color: #fff;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 1;
    position: relative;
}

.quick-categories-title {
    display: block;
    width: 100%;
    text-align: center;
    margin: 19px 0 40px 0;
    font-family: 'IRANYekan', 'IRANSans', sans-serif;
    font-size: 20px;
    color: var(--new-red-primary);
    font-weight: bold;
}

.quick-categories-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    width: 100%;
}

.category-item {
    text-align: center;
    width: 100%;
    max-width: 180px;
    color: #555;
    transition: transform 0.2s ease, color 0.2s ease;
}

.category-item:hover {
    transform: translateY(-4px);
    color: var(--new-red-primary);
}

.category-item img {
    width: 100px;
    height: 80px;
    margin: 0 auto 8px auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-item p {
    font-family: 'IRANSans', sans-serif;
    font-size: 12px;
}

/* استایل‌های ریسپانسیو -----------------------------------------------------------------------------------------------------------------*/
@media (max-width: 1200px) {
    .quick-categories-list {
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    .quick-categories-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .quick-categories-title {
        font-size: 16px;
    }
    .quick-categories-list {
        max-width: 98vw;
        gap: 10px;
    }
    .category-item {
        max-width: 140px;
    }
    .category-item img {
        width: 80px;
        height: 64px;
    }
    .category-item p {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .quick-categories-title {
        font-size: 14px;
    }
    .quick-categories-list {
        grid-template-columns: 1fr;
        max-width: 100vw;
        gap: 8px;
    }
    .category-item {
        max-width: 120px;
    }
    .category-item img {
        width: 60px;
        height: 48px;
    }
    .category-item p {
        font-size: 9px;
    }
}

/*  // چرا بوش؟ -----------------------------------------------------------------------------------------------------------------------/*/
 .why-bosch-red {
        background: linear-gradient(to top, #a31111, #be1515);
    }

/*  // اسلايدر وسط ----------------------------------------------------------------------------------------------------------------------- */

 .red-gradient {
            background-image: linear-gradient(to top, #a31111, #be1515);
        }
        .red-gradient-hover:hover {
            background-image: linear-gradient(to top, #a31111, #be1515);
        }

/* / /جدیدترین محصولات بوش/--------------------------------------------------------------------------------------------------------------- */

       
        .custom-product-pagination .swiper-pagination-bullet {
            width: 8px; 
            height: 8px;
            background-color: #cbd5e1; 
            opacity: 1;
            margin: 0 4px !important; 
            transition: background-color 0.3s, transform 0.3s;
        }
        .custom-product-pagination .swiper-pagination-bullet-active {
            background-color: #be1515; 
            transform: scale(1.25); 
        }
        .custom-swiper-button::after { content: '' !important; }

        .product-title-fixed-height {
            height: 3.5rem; 
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2; /* استاندارد */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.5; 
        }
        .product-card button, .amazing-offers-slider button {
            color: red;border: #dc0f0f 1px solid; ; border-radius: 5px;
            background-color: #f69a9a18;
        }
         .product-card button:hover , .amazing-offers-slider button:hover {
            color: rgb(249, 248, 248);border: #dc0f0f 1px solid; ; border-radius: 5px;
            background-color: #dc0f0f;
            transition: 1.5ms ease-in all;
        }

/* /استایل بخش پیشنهادهای شگفت‌انگیز ----------------------------------------------------------------------------------------------------------- */
.amazing-offers-section {
    background-image: var(--new-red-gradient); 
    padding: 20px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    z-index: 1; 
    position: relative; 
}

.amazing-offers-section-title {
    color: #FBE9E7;
    font-size: 20px; 
    font-weight: bold; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}

.amazing-offers-intro {
    flex-shrink: 0;
    text-align: center;
    padding: 24px;
    width: 100%; 
    max-width: 643px; 
    margin-left: auto; 
    margin-right: auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.amazing-offers-intro-logo {
    width: 140px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.amazing-offers-intro-text {
    color: #fff;
    font-size: 14px;
    margin-bottom: 15px;
}

.amazing-offers-intro-view-all {
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.amazing-offers-intro-view-all:hover {
    opacity: 0.8;
    color: #fff; 
}

.amazing-offers-intro-view-all i {
    font-size: 16px;
}

.amazing-offers-slider {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.amazing-offers-products-grid {
    display: flex;
    gap: 10px;
    padding-bottom: 15px; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; 
    scrollbar-color: var(--new-red-primary) #fff; 
    min-width: 0; 
    width: 100%;
    box-sizing: border-box;
}

/* استایل اسکرول‌بار سفارشی برای  (کروم، سافاری) */
.amazing-offers-products-grid::-webkit-scrollbar {
    height: 8px;
}

.amazing-offers-products-grid::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 10px;
}

.amazing-offers-products-grid::-webkit-scrollbar-thumb {
    background-color: var(--new-red-primary);
    border-radius: 10px;
    border: 2px solid #fff;
}

/* استایل کارت محصول اختصاصی برای این بخش --------------------------------------------------------------------------------------------*/
.amazing-offers-product-card {
    background-color: #fff;
    min-width: 190px; 
    width: 190px;
    border-radius: 8px;
    overflow: hidden;
    text-align: right; 
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid #eee;
    flex-shrink: 0; 
}

.amazing-offers-product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.amazing-offers-product-image-link {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px 0; 
    display: block; 
}

.amazing-offers-product-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.amazing-offers-product-card:hover .amazing-offers-product-image {
    transform: scale(1.05);
}

.amazing-offers-product-title {
    font-size: 13px;
    color: #444;
    margin-bottom: 15px; 
    height: 40px; 
    overflow: hidden; 
    line-height: 1.5; 
}

.amazing-offers-product-title a {
    color: inherit;
    text-decoration: none;
}
.amazing-offers-product-title a:hover {
    color: var(--new-red-primary);
}

.amazing-offers-product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #888;
}

.amazing-offers-product-rating {
    color: #f9bc00; 
}
.amazing-offers-product-rating i {
    font-size: 13px;
}

.amazing-offers-product-countdown {
    font-size: 12px;
    color: var(--new-red-primary);
    text-align: left; 
    margin-top: 5px; 
    direction: ltr; 
}
.amazing-offers-product-countdown i {
    margin-right: 4px; 
}


.amazing-offers-product-price-section {
    text-align: left; 
    margin-top: auto; 
}

.amazing-offers-product-discount-badge {
    background-color: var(--new-red-primary);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px; 
}

.amazing-offers-product-final-price {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    display: inline-block; 
}

.amazing-offers-product-currency {
    font-size: 12px;
    font-weight: normal;
    margin-right: 3px; 
}

.amazing-offers-product-original-price {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
    display: block;
    margin-top: 3px;
}



@media (max-width: 768px) {
    .amazing-offers-intro {
        max-width: 100%; 
        padding: 15px;
    }
    .amazing-offers-section {
        flex-direction: column; 
        align-items: center;
    }
    .amazing-offers-slider {
        width: 100%;
    }
    .amazing-offers-product-card {
        min-width: 160px; 
        width: 160px;
    }
}

@media (max-width: 480px) {
    .amazing-offers-product-card {
        min-width: 140px; 
        width: 140px;
    }
     .amazing-offers-intro-logo {
        width: 100px;
    }
    .amazing-offers-section-title {
        font-size: 18px;
    }
    .amazing-offers-intro-text {
        font-size: 13px;
    }
}

/*/ استایل بخش بنرهای تبلیغاتی ردیفی -------------------------------------------------------------------------------------------------------------*/

.promo-banners-row-responsive {
    display: flex;
    flex-direction: column; 
    gap: 1rem; 
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.promo-banner-responsive {
    position: relative;
    width: 100%; 
    height: 200px; 
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    text-decoration: none;
    color: inherit;
}

.promo-banner-responsive:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transform: scale(1.02); 
}

.promo-banner-img-responsive {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-content-responsive {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease-in-out;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.promo-banner-responsive:hover .promo-content-responsive {
    background-color: rgba(0, 0, 0, 0.5);
}

.promo-text-responsive {
    font-size: 1rem; 
    font-weight: 700;
    margin-bottom: 0.75rem; 
    text-align: center;
}

.promo-button-responsive {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem; 
    padding: 0.5rem 1rem; 
    border-radius: 0.25rem; 
    border: 2px solid white;
    color: white;
    background-color: transparent;
    font-size: 0.875rem; 
    font-weight: 600;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}
.promo-button-responsive i {
    font-size: 0.8em;
}

.promo-button-responsive:hover {
    background-color: #be1515; 
    border-color: #be1515;
    color: white;
}


@media (min-width: 770px) { 
    .promo-banners-row-responsive {
        flex-direction: row; 
    }

    .promo-banner-responsive {
       
        flex: 1;
    }
}

@media (max-width: 480px) {
    .promo-banner-responsive {
        height: 150px; 
    }
    .promo-text-responsive {
        font-size: 0.875rem; 
        margin-bottom: 0.5rem; 
    }
    .promo-button-responsive {
        padding: 0.375rem 0.75rem; 
        font-size: 0.75rem; 
    }
}


/*  استایل بخش آمار سایت ------------------------------------------------------------------------------------------------------------ */
.stats-section { 
    background: #fff;
    border-radius: 10px;
    margin: 30px 0 20px 0; 
    box-shadow: 0 1px 6px rgba(190,21,21,0.04);
    padding: 30px 0 20px 0;
    z-index: 1;
    position: relative;
}

.container {
    max-width: 1300px !important; 
    margin: 0 auto;
    padding: 0 15px;
}


.stats-section .section-title { 
    color: var(--new-red-primary) !important; 
    font-size: 28px !important; 
    font-weight: bold; 
    margin-bottom: 30px; 
    border-bottom: none; 
    text-align: center; 
}

.stats-grid {
    display: flex; 
    justify-content: center;
    flex-wrap: wrap; 
}

.stat-item {
    background: var(--new-red-hover-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(190,21,21,0.06);
    padding: 20px; 
    min-width: 200px;
    max-width: 280px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 10px; 
    transition: box-shadow 0.3s, transform 0.2s;
}.stat-item:hover {
    box-shadow: 0 6px 18px rgba(190,21,21,0.13);
    transform: translateY(-3px) scale(1.04);
}

.counter-value { 
    display: inline-block; 
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 12px;
    font-family: 'IRANYekan','IRANSans',sans-serif; 
    background: linear-gradient(to top, #a31111, #be1515);
    -webkit-background-clip: text;
    -moz-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent; 
    color: transparent; /* جایگزین text-fill-color */
}

/* Instagram banner - Full width section with NO container restriction */
.instagram-banner-tailwind {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Instagram gradient box - FILLS ENTIRE WIDTH like stats section below */
.instagram-banner-tailwind .instagram-gradient-box {
    width: 100%;
    min-height: 150px;
    padding: 45px 80px;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive padding for smaller screens */
@media (max-width: 1024px) {
    .instagram-banner-tailwind .instagram-gradient-box {
        padding: 40px 60px;
    }
}

@media (max-width: 768px) {
    .instagram-banner-tailwind .instagram-gradient-box {
        padding: 32px 40px;
        min-height: 130px;
    }
}

@media (max-width: 480px) {
    .instagram-banner-tailwind .instagram-gradient-box {
        padding: 24px 20px;
        min-height: 120px;
    }
}

.stat-label { 
    font-size: 16px;
    color: #333;
    margin-top: 8px;
    font-weight: 500;
    font-family: 'IRANYekan','IRANSans',sans-serif;
}

/* /مراحل تماس با ما/------------------------------------------------------------------------------------------------------------------------ */


.popular-brands {
    background-color: #fff;
    padding: 20px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 1;
    position: relative; }

.popular-brands .section-title {
    border-bottom: none !important; 
    margin-bottom: 15px !important; 
    margin-right: 40% !important; 
    font-size: 28px !important;   
    color: var(--new-red-primary) !important; 
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-steps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; 
    padding: 20px 0; 
}

.step-card {
    flex-basis: calc(25% - 16px); 
    min-width: 200px;
    max-width: 280px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* border-color اضافه شد */
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: var(--new-red-primary);
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-image: var(--new-red-gradient);
    color: white;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.step-card h4 {
    font-size: 16px;
    color: #222;
    margin-bottom: 10px;
    font-family: 'IRANYekan', 'IRANSans', sans-serif;
}

.step-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    flex-grow: 1;
}

/* واکنش‌گرایی برای کارت‌ها -----------------------------------------------------------------------------------------------------------------------------*/
@media (max-width: 1024px) { 
    .step-card {
        flex-basis: calc(50% - 10px); 
        max-width: calc(50% - 10px);
    }
    .popular-brands .section-title {
        margin-right: 0 !important;
        justify-content: center !important;
        text-align: center;
    }
}

@media (max-width: 600px) { 
    .step-card {
        flex-basis: 100%; 
        max-width: 100%;
    }
     .popular-brands .section-title {
        font-size: 22px !important; 
    }
    .step-card h4 {
        font-size: 15px;
    }
    .step-card p {
        font-size: 12px;
    }
}

/* /كارشناسان/----------------------------------------------------------------------------------------------------------------------------------------- */

.team-member-tailwind.group:hover .team-member-img {
    border-color: var(--new-red-primary); 
}
.section-title-tailwind{
color: var(--new-red-primary);  
}

/*/ نظرات/ ---------------------------------------------------------------------------------------------------------------------------------------------*/

.testimonial-card-tailwind {
    will-change: transform, box-shadow; 
}

.swiper-slide {
  height: auto; 
  display: flex; 
}
.swiper-slide > div { 
    width: 100%;
    height: 100%; 
}


.testimonial-swiper {
    padding-bottom: 40px; 
}

.testimonial-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #cccccc;
    opacity: 1;
    margin: 0 5px !important;
    transition: background-color 0.3s, transform 0.3s;
}

.testimonial-pagination .swiper-pagination-bullet-active {
    background-color: var(--new-red-primary);
    transform: scale(1.2);
}

.custom-swiper-button::after {
    content: '' !important;
}
.custom-swiper-button i {
    color: inherit;
}



/* ////////////-----------------------------------------------------------------------------------------------------------------------------/////////////// */
/* فوتر ------------------------------------------------------------------------------------------------------------------------------------------------------*/


.footer-section {
    background: var(--new-red-gradient) !important;
    color: #ffffff;
    font-family: 'IRANSans', sans-serif;
    direction: rtl;
}

/* Override Tailwind for footer */
.footer-tailwind.footer-section {
    background: var(--new-red-gradient) !important;
    background-color: transparent !important;
}

/* Additional footer overrides */
footer.footer-section,
footer.footer-tailwind {
    background: linear-gradient(to top, #a31111, #be1515) !important;
}

/* Footer contact info styling */
.footer-contact-info-tailwind {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.footer-contact-info-tailwind .phone-number-tailwind {
    color: white !important;
}

.footer-contact-info-tailwind p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-about img {
    max-width: 150px;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.footer-about p,
.footer-links ul li,
.footer-contact ul li {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.8;
}

.footer-links h3,
.footer-contact h3 {
    font-family: 'IRANYekan', 'IRANSans', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-links ul li a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--footer-red-primary);
}

.footer-about .flex a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-about .flex a:hover {
    color: var(--footer-red-primary);
}

.footer-contact ul li i {
    color: var(--footer-red-primary);
}

.border-t {
    border-color: #374151;
}

@media (max-width: 768px) {
    .footer-section .grid {
        grid-template-columns: 1fr;
    }

    .footer-about img {
        max-width: 120px;
    }

    .footer-links h3,
    .footer-contact h3 {
        font-size: 16px;
    }

    .footer-about p,
    .footer-links ul li,
    .footer-contact ul li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-about img {
        max-width: 100px;
    }

    .footer-links h3,
    .footer-contact h3 {
        font-size: 14px;
    }

    .footer-about p,
    .footer-links ul li,
    .footer-contact ul li {
        font-size: 12px;
    }
}


/* ///authModaL/// -----------------------------------------------------------------------------------------------------*/

.btn-primary {
    background-color: var(--new-red-primary);
    transition: background-color 0.3s ease; 
}
.btn-primary:hover {
    background-color: var(--new-red-darker);
}
.text-primary-red {
    color: var(--new-red-primary);
}
.focus\:border-primary-red:focus {
    border-color: var(--new-red-primary) !important;
    box-shadow: 0 0 0 2px rgba(190, 21, 21, 0.25) !important;
}
.input-with-icon {
    padding-right: 2.75rem;
}

#authModal.hidden, #authModalOverlay.hidden {
    display: none;
}

#authModal {
        z-index: 9999;
}
#authModalOverlay {
    transition-property: opacity;
}
