/* وزن عادی - Regular (400) */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* وزن ضخیم - Bold (700) */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================= */
/*          CSS Custom Properties (Tokens)       */
/* ============================================= */

/* ------------------- Light Theme (Default) ------------------- */
:root {
    /* Brand & Accent Colors */
    --color-primary: #ff9900;
    --color-primary-light: #ffac33;
    --color-primary-dark: #e68a00;
    --color-accent-neon: #ff9900;

    --surface-color: #0B162B;

    /* Text Colors */
    --color-text-primary: #2d3748;      /* Main text */
    --color-text-secondary: #718096;    /* Subtitles, muted text */
    --color-text-on-primary: #ffffff;   /* Text on primary color background */

    /* Background & Surface Colors */
    --bg-body: #364458;
    --bg-surface: #b0ace9;              /* Cards, modals, etc. */
    --bg-header-translucent: rgba(255, 255, 255, 0.85);
    --bg-glass-nav: rgba(255, 255, 255, 0.1);
    
    /* Border Colors */
    --border-color: #e2e8f0;
    --border-color-strong: #cbd5e0;

    /* Shadows (using RGBA for better blending) */
    --shadow-color-rgb: 0, 0, 0; /* Base color for shadows */
    --shadow-sm: 0 2px 8px rgba(var(--shadow-color-rgb), 0.07);
    --shadow-md: 0 4px 15px rgba(var(--shadow-color-rgb), 0.1);
    --shadow-lg: 0 8px 24px rgba(var(--shadow-color-rgb), 0.15);
    --shadow-accent-glow: 0 4px 15px rgba(255, 153, 0, 0.3);
    --shadow-text: 0 4px 10px rgba(var(--shadow-color-rgb), 0.5);
    
    /* Others */
    --backdrop-blur: 10px;
    --neon-blue: #00E5FF;/* #e5532c */
    box-shadow: 0 0 8px rgba(var(--neon-blue), 0.8);
}

/* ------------------- Dark Theme ------------------- */
[data-theme="dark"] {
    /* Brand & Accent Colors */
    --color-primary: #ffad33;
    --color-primary-light: #ffc266;
    --color-primary-dark: #ff9900;
    /* --color-accent-neon remains the same */

    /* Text Colors */
    --text-primary: #f8f9fa;
    --text-secondary: #9ba4b5;
    --color-text-primary: #f7fafc;
    --color-text-secondary: #a0aec0;
    --color-text-on-primary: #1a202c;

    /* Background & Surface Colors */
    --bg-surface: #2d3748;
    --bg-header-translucent: rgba(32, 32, 32, 0.85);
    --bg-glass-nav: rgba(0, 0, 0, 0.15);

    /* Border Colors */
    --border-color: #4a5568;
    --border-color-strong: #718096;

    /* Shadows */
    --shadow-color-rgb: 0, 0, 0; /* In dark mode, shadows are often darker */
    --shadow-sm: 0 2px 8px rgba(var(--shadow-color-rgb), 0.2);
    --shadow-md: 0 4px 15px rgba(var(--shadow-color-rgb), 0.3);
    --shadow-lg: 0 8px 24px rgba(var(--shadow-color-rgb), 0.4);
    /* --shadow-accent-glow remains the same or can be intensified */
    --shadow-text: 0 4px 10px rgba(var(--shadow-color-rgb), 0.7);

        /* پس‌زمینه اصلی سایت در حالت تاریک */
    --bg-body: #213244;/*#1B2433   */
    /* پس‌زمینه بخش میانی (۹۰٪) طبق درخواست شما */
    --bg-content:#202C3E ;/* #202020 */ 
    --border-color: #38404d;
    --header-bg: rgba(32, 32, 32, 0.85);
}


/* ۱. استایل کانتینر اصلی کارت */
.product-card {
    position: relative; /* مهم: این المان به عنوان مرجع برای موقعیت‌دهی فرزندان absolute عمل می‌کند */
    width: 350px; /* یا هر اندازه دلخواه */
    height: 300px;
    border-radius: 15px;
    overflow: hidden; /* برای اینکه گوشه‌های تصویر هم گرد شود */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); */
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* تصویر را به بهترین شکل در کادر جای می‌دهد */
    display: block;
}

/* ۲. لایه شناور برای قرارگیری المان‌ها */
.details-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    width: auto;
    height: auto;
    display: flex; /* برای چیدمان افقی نقطه، خط و باکس */
    align-items: center; /* تراز عمودی در مرکز */
}

/* ۳. نقطه درخشان و انیمیشن آن */
.pulse-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--accent-glow);
    border-radius: 50%;
    background-color: transparent;
    box-shadow: 0 0 10px var(--accent-glow);
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
    }
    50% {
        transform: scale(1.0);
        box-shadow: 0 0 0 10px rgba(0, 229, 255, 0);
    }
}

/* ۴. خط متصل‌کننده (با یک ترفند ساده CSS) */
.connecting-line {
    width: 30px; /* طول خط */
    height: 1px;
    background-color: var(--glass-border);
    margin: 0 10px; /* فاصله از نقطه و باکس */
}

/* ۵. باکس شیشه‌ای (Glass Badge) */
.glass-badge {
    background: rgba(25, 28, 33, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 18px;
    color: white;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}
.glass-badge .value {
    font-size: 1.5rem;
    font-weight: 600;
}
.glass-badge .details {
    font-size: 0.8rem;
    opacity: 0.8;
}

.nav-button {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-button:hover, .nav-button.active {
    color: var(--accent-glow);
    border-bottom: 2px solid var(--accent-glow);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5); /* سایه متن درخشان */
}

.glass-badge {
    /* افکت شیشه‌ای (Glassmorphism) */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* حاشیه فیروزه‌ای */
    border: 1px solid var(--accent-glow);
    border-radius: 12px;
    padding: 15px;
    
    /* افکت درخشش داخلی و خارجی */
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15), 
                inset 0 0 10px rgba(0, 229, 255, 0.1);
    
    color: white;
    width: fit-content;
    position: absolute; /* برای قرارگیری روی کارت اصلی */
    z-index: 10;
}

.glass-badge .value {
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Vazirmatn, sans-serif;
    /* font-family: system-ui, -apple-system, sans-serif;*/
    background-color:#5777af ;/* var(--bg-body */
    color: #CBD7DE; /* var(--text-primary) */
   /*  transition: background-color 0.3s ease, color 0.3s ease; */
    /* این کد یک منبع نور نرم و مجازی در بالای صفحه ایجاد می‌کند */
    background-image: radial-gradient(circle at 50% 0%, #101C32 0%, #060F1E 70%);
    line-height: 1.6;
}



.main-container {
    max-width: 80%; /* یا یک مقدار ثابت مثل 1440px */
    margin: 40px auto; /* ایجاد فاصله از بالا و پایین و وسط‌چین کردن */
    background-color: #1c2638; /* رنگ پس‌زمینه محتوا از پالت پیشنهادی */
    border: 1px solid #1A2942; /* یک حاشیه بسیار ظریف برای تفکیک لبه‌ها */
    border-radius: 12px; /* گرد کردن گوشه‌ها */
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2); /* سایه برای ایجاد عمق */
    overflow: hidden; /* برای اینکه محتوای داخل از گوشه‌های گرد بیرون نزند */
}

.header {
    /* background-color: var(--surface-color, #1B1D1E); */
    background-color: var(--bg-header-translucent);
    backdrop-filter: blur(var(--backdrop-blur));
}

/* تنظیمات بدنه کلی هدر */

/* =========================================
   تظیمات کلی هدر
   ========================================= */
.main-header {
    width: 100%;
    background-color: #030f29; /* رنگ پس‌زمینه تیره هدر  */
    border-radius: 12px 12px 0 0; /* گردی گوشه‌های بالا */
    /* border-bottom: 3px solid #1A2942; */
    padding: 15px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

/* --- ردیف اول هدر --- */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.search-container {
    display: flex;
    width: 40%;
    max-width: 500px;
    background-color: #1f232d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden; /* برای جلوگیری از بیرون زدن دکمه از گوشه‌های گرد */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* افکت هنگام کلیک روی جستجو */
.search-container:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.search-container input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.search-container input::placeholder {
    color: #6c7280;
}

/* دکمه جستجو */
.search-btn {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c7280;
    transition: all 0.3s ease;
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* نوار جستجو */
.search-bar {
    position: relative;
    width: 40%;
    max-width: 500px;
}

.search-bar input {
    width: 100%;
    background-color: #1f232d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 15px 10px 40px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar input::placeholder {
    color: #6c7280;
}

.search-bar input:focus {
    border-color: rgba(255, 255, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #6c7280;
}

/* آیکون‌های سمت راست */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-link {
    color: #a0a5b1;
    width: 22px;
    height: 22px;
    transition: color 0.3s ease;
}

.icon-link:hover {
    color: #fff;
}

/* =========================================
   ردیف دوم - منوی شیشه‌ای با خط نئونی
   ========================================= */
.header-bottom {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* محفظه کپسولی شیشه‌ای */
.glass-nav {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 5px 15px;
    gap: 10px;
}

/* آیتم‌های منو */
.nav-item {
    position: relative;
    color: #9ba0ab;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-item:hover, 
.nav-item.active {
    color: #ffffff;
}

/* خط نئونی درخشان زیر آیتم‌ها (مشابه تصویر دوم) */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px; /* تنظیم فاصله خط از نوشته */
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: var(--accent-glow, #00d2ff); /* رنگ خط نئونی */
    box-shadow: 0 0 8px var(--accent-glow, #00d2ff); /* سایه درخشان */
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 2px;
}

.nav-item:hover::after, 
.nav-item.active::after {
    opacity: 1;
    transform: scaleX(1);
}


/* استایل ردیف اول (لوگو و آیکون‌ها) */
.header-top-row {
    display: flex;
    justify-content: space-between; /* لوگو چپ، آیکون‌ها راست */
    align-items: center;
    width: 100%;
}

/* استایل ردیف دوم (منو) */
.header-bottom-row {
    display: flex;
    justify-content: center; /* منو در وسط قرار می‌گیرد */
    width: 100%;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
    font-weight: 500;
}

.main-nav a:hover { color: var(--accent-color); }

.theme-btn {
    background: none; border: none; color: var(--text-primary);
    cursor: pointer; padding: 0.5rem; display: flex;
    transition: color 0.3s;
}
.theme-btn:hover { color: var(--accent-color); }

.btn-primary {
    /*  background-color: var(--accent-color); */
   background-color: var(--color-primary); 
    /* color: #fff; */
    border: none; 
    padding: 0.75rem 2rem; 
    border-radius: 8px;
    cursor: pointer; 
    font-weight: bold; 
    transition: background-color 0.3s;
    color: var(--color-text-on-primary);
    box-shadow: var(--shadow-accent-glow);
}
.btn-primary:hover { background-color: var(--accent-hover); }

/* === Hero Section === */
.hero {
    
    position: relative;
    /* برای کوچک‌تر شدن، عرض را از 100% به مقدار دلخواه تغییر دادیم و وسط‌چین کردیم */
    width: 95%; 
    max-width: 1400px;
    height: 60vh; /* ارتفاع ویدیو را از 100vh به 70vh کاهش دادیم */
    margin: 20px auto; /* فاصله از بالا و اطراف */
    margin-top: 150px;
    border-radius: 5px 5px 18px 18px; /* 0 0 18px 18px گرد کردن گوشه‌های ویدیو (اختیاری) */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* لایه پس‌زمینه */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ویدیو */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
    /* border: 5px solid #1A2942; */
}

/* overlay با تم آبی تیره (#0B162B) */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* استفاده از رنگ #0B162B با شفافیت (Opacity) کمتر برای روشن‌تر شدن */
    /* بالای ویدیو: شفافیت کمتر (از 0.4 به 0.25 رسید) */
/* وسط ویدیو: شفافیت متوسط (از 0.65 به 0.5 رسید) */
/* پایین ویدیو: تیره‌ترین حالت (از 0.95 به 0.85 رسید) */
    background: linear-gradient(
        to bottom,
        rgba(43, 64, 102, 0.25) 0%,   /* بالا: شفافیت ۲۵٪ */
        rgba(11, 22, 43, 0.5) 50%,   /* وسط: شفافیت ۵۰٪ */
        rgba(19, 38, 73, 0.85) 100%  /* پایین: شفافیت ۸۵٪ */
    );
    pointer-events: none;
}

/* محتوای روی Hero */
.hero-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1200px;
    text-align: center;
}


.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    color: var(--accent-color); /* رنگ نارنجی/طلایی صنعتی */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === دکمه‌ها (Buttons) === */
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 2rem;
}

/* استایل پایه دکمه‌های هیرو */
.btn-industrial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px; /* گوشه‌های کمی گرد برای حس صنعتی مدرن */
  cursor: pointer;
  transition: all 0.3s ease;
}

/* دکمه اصلی (استارت/نارنجی) */
.btn-industrial.primary {
  background: linear-gradient(145deg, #f06039, #d94a24);
  color: #fff;
  border: 2px solid #b83c1c; /* حاشیه تیره‌تر برای ایجاد بعد */
  box-shadow: 
    0 6px 15px rgba(229, 83, 44, 0.4), /* درخشش نارنجی بیرون */
    inset 0 2px 4px rgba(255, 255, 255, 0.3); /* انعکاس نور بالا */
}

.btn-industrial.primary:hover {
  background: linear-gradient(145deg, #f56d48, #e5532c);
  box-shadow: 0 8px 20px rgba(229, 83, 44, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.btn-industrial.primary:active {
  transform: translateY(3px); /* حس فشرده شدن دکمه مکانیکی */
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4);
}

/* دکمه ثانویه (پنل/تیره) */
.btn-industrial.secondary {
  background: rgba(30, 30, 30, 0.65); /* تیره و نیمه‌شفاف */
  backdrop-filter: blur(8px); /* تار کردن پس‌زمینه عکس */
  color: #eee;
  border: 2px solid #888;
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.btn-industrial.secondary:hover {
  border-color: #e5532c; /* روشن شدن حاشیه به رنگ سازمانی هنگام هاور */
  color: #fff;
  background: rgba(40, 40, 40, 0.8);
}

.btn-industrial.secondary:active {
  transform: translateY(3px);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.6);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3); /* سایه همرنگ Accent */
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid #ffffff;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #060F1E;
}

/* === Responsive (برای موبایل) === */
@media (max-width: 768px) {
    .hero {
        height: 400px; /* یا هر مقداری مثل 400px */
        min-height: auto;
    }
    /* تنظیم نحوه نمایش ویدیو در موبایل */
    .hero-media {
        height: 100%;
        object-fit: cover; /* حفظ نسبت ابعاد و پر کردن فضا */
        /* اگر می‌خواهید ویدیو کوچک‌تر شود و کل فضا را نگیرد: */
        /* object-fit: contain; */
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
}

.content-wrapper {
    width: 80%;
    margin: 0 auto;
    background-color: var(--bg-content);
    border-radius: 24px 24px 0 0; /* گرد کردن لبه‌های بالای بخش میانی */
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
    min-height: 50vh;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .content-wrapper {
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

/* تنظیمات کلی بخش برندها */
.brands-section {
    width: 100%;
    margin: auto;
    background-color: transparent; /* یا رنگ پس‌زمینه سایت شما */
    position: relative;
    /*background-color: #060F1E;  رنگ پس‌زمینه تیره شما */
    overflow: hidden; /* جلوگیری از بیرون زدن نقطه‌چین‌ها */
    padding: 10px 20px;
   /* border-radius: var(--border-radius-main); , var(--border-radius-main) 0,0 */
    border-radius: var(--border-radius-main), 12px;
    box-shadow: var(--shadow-main);
    overflow: hidden; /* برای جلوگیری از بیرون زدن محتوا از گوشه‌های گرد */
}

.brands-section::before {
  content: "";
  position: absolute;
  inset: 0;
  
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
  background-size: 15px 15px;
  
  /* اضافه شدن وسط بالا و وسط پایین به لیست ماسک‌ها */
  -webkit-mask-image: 
    radial-gradient(circle at top right, black 0%, transparent 250px),
    radial-gradient(circle at top left, black 0%, transparent 250px),
    radial-gradient(circle at bottom right, black 0%, transparent 250px),
    radial-gradient(circle at bottom left, black 0%, transparent 250px),
    radial-gradient(circle at top center, black 0%, transparent 250px),
    radial-gradient(circle at bottom center, black 0%, transparent 250px);
    
  mask-image: 
    radial-gradient(circle at top right, black 0%, transparent 250px),
    radial-gradient(circle at top left, black 0%, transparent 250px),
    radial-gradient(circle at bottom right, black 0%, transparent 250px),
    radial-gradient(circle at bottom left, black 0%, transparent 250px),
    radial-gradient(circle at top center, black 0%, transparent 250px),
    radial-gradient(circle at bottom center, black 0%, transparent 250px);
    
  z-index: 0;
  pointer-events: none;
}


.container {
    width: 100%; /* اعمال عرض ۸۰ درصدی مورد نظر شما */
    margin: 0 auto;
    /* max-width: 1200px; */
    padding: 0 20px;
}

.section-header {
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    color: var(--text-primary, #ffffff);
    font-weight: bold;
    border-right: 4px solid var(--primary-color, #00B8CC); /* خط تزئینی کنار عنوان */
    padding-right: 15px;
}

.section-title-center {
    width: fit-content; /* عرض عنصر دقیقاً به اندازه متن آن می‌شود */
    /*margin: 0 auto;  عنصر را در وسط والد خود قرار می‌دهد */
    border-right: 4px solid var(--primary-color, #00B8CC); /* خط تزئینی */
    padding-right: 15px; /* فاصله بین متن و خط تزئینی */
    margin: 30px auto 0px auto;
}

/* ساختار کاروسل */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.brands-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 15px 0; /* فضای کافی برای سایه کارت‌ها */
    /* مخفی کردن اسکرول‌بار در مرورگرهای مختلف */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.brands-track::-webkit-scrollbar {
    display: none;
}

/* استایل کارت‌های برند */
.brand-card {
    position: relative; /* بسیار مهم برای قرارگیری نوار روی کارت */
    background-color: #24262d;
    border: 1px solid #3a3d46;
    border-radius: 8px;
    padding: 20px;
    flex: 0 0 auto;
    width: max-content;
    background-color: var(--surface-color, #1B1D1E);
    border: 1px solid var(--border-color, #2a2d2f);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 4px solid #00B8CC; /* نوار نارنجی/قرمز پایین کارت */
    border-radius: 12px;
}
/* نوار رنگی بالای کارت */
.brand-card::after {
  content: "";
  position: absolute;
  top: -2px; /* قرارگیری دقیقاً روی حاشیه بالایی (بسته به ضخامت بوردر) */
  right: 30px; /* فاصله از سمت راست */
  width: 45px; /* طول نوار */
  height: 4px; /* ضخامت نوار */
  background-color: #91e8f1;/*#f05a28  رنگ نارنجی/قرمز */
  border-radius: 4px; /* گرد کردن لبه‌های نوار (اختیاری) */
  z-index: 2;
}

/* در صورت نیاز به تغییر رنگ در حالت هاور (Hover) */
.brand-card:hover::after {
  background-color: #00B8CC;
  transition: background-color 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color, #00B8CC);
}

/* کانتینر تصویر با ابعاد ثابت ۱۴۴ پیکسل */
.brand-image-wrapper {
    width: 144px;
    height: 144px;
    background-color: none; /* پس‌زمینه سفید برای خوانایی بهتر لوگوها */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.brand-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* حفظ تناسب تصویر */
}

/* اطلاعات زیر تصویر (متن) */
.brand-info {
    text-align: center;
    width: 100%;
}

.brand-name {
    font-size: 16px;
    color: var(--text-primary, #ffffff);
    margin: 0 0 5px 0;
    font-weight: 600;
}

.brand-count {
    font-size: 13px;
    color: var(--text-secondary, #999999);
}

/* استایل دکمه‌های ناوبری */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: var(--surface-color, #1B1D1E);
    color: var(--text-primary, #ffffff);
    border: 1px solid var(--border-color, #333);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.carousel-btn:hover {
    background-color: var(--primary-color, #00B8CC);
    color: #000;
    border-color: var(--primary-color, #00B8CC);
}

/* تنظیم موقعیت دکمه‌ها برای چیدمان RTL */
.prev-btn { right: -22px; }
.next-btn { left: -22px; }

.carousel-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}





/* استایل کلی دکمه - مستطیل با لبه‌های گرد ۵ پیکسل */
.electric-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 200px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px; /* تغییر به مستطیل با لبه ۵ پیکسل */
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    outline: none;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1), 
        inset 0 -2px 5px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* درپوش فلزی در سمت راست (بهینه‌شده برای چیدمان فارسی) */
.btn-cap {
    position: absolute;
    right: 0; /* انتقال به سمت راست */
    top: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(180deg, #5a5a5a 0%, #2a2a2a 100%);
    /* لبه‌های گرد فقط برای سمت راست درپوش تا با دکمه هم‌تراز شود */
    border-radius: 0 5px 5px 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* لامپ/نور در حالت عادی (شکل لامپ همچنان دایره‌ای می‌ماند) */
.btn-glow {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4a2500;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* استایل متن دکمه */
.btn-text {
    flex: 1;
    text-align: center;
    padding-right: 50px; /* ایجاد فضا برای درپوش در سمت راست */
    padding-left: 0;
    color: #888;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    z-index: 1;
    transition: all 0.4s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* ========================================= */
/* افکت‌های انیمیشن هنگام Hover             */
/* ========================================= */

.electric-btn:hover {
    border-color: rgba(255, 165, 0, 0.3);
}

.electric-btn:hover .btn-glow {
    background: #ffa500;
    box-shadow: 
        0 0 10px #ffa500, 
        0 0 20px #ff7300, 
        0 0 40px #ff3b00;
}

.electric-btn:hover .btn-text {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.6);
}

.electric-btn:active {
    transform: scale(0.97);
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #050505;
    overflow: hidden;
}

.layer, .light-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* تعریف انیمیشن پایه برای همه لایه‌ها */
    transition: opacity 0.8s ease-in-out, filter 1.5s ease-in-out;
}

/* --- تنظیمات اولیه (حالت تاریک و خاموش) --- */
.light-layer { opacity: 0; mix-blend-mode: screen; }
.generators { opacity: 0; filter: brightness(0.2); }

/* --- زمان‌بندی توالی انیمیشن‌ها (Delay) --- */
.light-back   { transition-delay: 0.5s; background-image: url('light-back.webp'); }
.light-middle { transition-delay: 1.0s; background-image: url('light-middle.webp'); }
.light-front  { transition-delay: 1.5s; background-image: url('light-front.webp'); }
.generators   { transition-delay: 1.5s; /* همزمان با چراغ جلو روشن شود */ }

/* --- کلاسی که با جاوااسکریپت اضافه می‌شود (حالت روشن) --- */
.is-active {
    opacity: 1 !important;
}
.generators.is-active {
    filter: brightness(1) !important;
}

.features-section {
  width: 80%;
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 40px 20px;
  /* max-width: 1200px; */
  margin: 0 auto;
}

.feature-card, .service-card, .feature-row, .reverse-row  {
  position: relative;
  flex: 1;
  background-color: var(--surface-color, #1B1D1E);
  border: 1px solid #333;
  border-radius: 12px;
  border-bottom: 4px solid #00B8CC; 
  border-radius: 12px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* افکت هاور برای جذابیت بیشتر */
.feature-card:hover, .service-card:hover, .feature-row:hover, .reverse-row :hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  /* border-color: #e5532c; رنگ نارنجی سازمانی */
  border-color: var(--primary-color, #00B8CC);
}

/* تصویر پس‌زمینه محو شده در لبه‌ها (جایگزین برش‌های نامنظم عکس دوم) */
.feature-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  /* ایجاد یک گرادیان برای محو شدن تصویر در پس‌زمینه تیره کارت */
  mask-image: linear-gradient(to right, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 50%, transparent 100%);
  z-index: 1;
}

/* برای فارسی (RTL)، تصویر را به راست می‌بریم */
[dir="rtl"] .feature-bg {
  left: auto;
  right: 0;
  mask-image: linear-gradient(to left, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
}

.feature-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding-right: 30%; /* فضای خالی برای عکسی که در بک‌گراند است */
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px auto;
  background-color: rgba(229, 83, 44, 0.1);
  color: #e5532c; /* نارنجی سازمانی */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feature-title {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.feature-desc {
  color: #a0a0a0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* تنظیمات ظرف نگهدارنده آیکون */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;      /* عرض پس‌زمینه دایره‌ای دور آیکون */
  height: 80px;     /* ارتفاع پس‌زمینه دایره‌ای دور آیکون */
  border-radius: 50%;
  background-color: rgba(229, 83, 44, 0.1); /* پس‌زمینه محو نارنجی برای زیبایی */
  margin: 0 auto 20px auto; /* وسط‌چین کردن در کارت */
  transition: transform 0.3s ease;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  .features-section {
    flex-direction: column;
  }
  .feature-content {
    padding-right: 0;
  }
  .feature-bg {
    width: 100%;
    opacity: 0.15; /* در موبایل تصویر را کم‌رنگ‌تر و تمام‌صفحه می‌کنیم */
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* تنظیمات خود آیکون SVG */
.svg-icon {
  width: 42px;      /* سایز نهایی نمایش آیکون */
  height: 42px;     /* سایز نهایی نمایش آیکون */
  color: #00E5FF;   /* رنگ نارنجی ممتاز ژن - روی stroke=currentColor اعمال می‌شود */
}

/* تنظیمات کانتینر اصلی و Grid */
.services-section {
      width: 80%;
       margin: 0 auto;
    padding: 40px 0px;
    direction: rtl; /* راست‌چین کردن محتوا */
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ۳ کارت در دسکتاپ */
    gap: 30px;
    /* max-width: 1200px; */
    margin: 0 auto;
}

/* استایل کارت‌ها */
.service-card {
    background-color: var(--surface-color, #1B1D1E);
    border: 1px solid #333;
    border-bottom: 4px solid #00B8CC; /* نوار نارنجی/قرمز پایین کارت */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: #00B8CC; /* روشن شدن حاشیه در حالت Hover */
}

/* افکت هاور روی کارت برای جذابیت بیشتر */
.service-card:hover .feature-icon {
  transform: scale(1.1);
  background-color: rgba(229, 83, 44, 0.2);
}

/* بخش ظرف تصویر و افکت محو شدن به سمت پایین */
.card-image-wrapper {
    width: 100%;
    height: 220px; 
    overflow: hidden;
    /* این ماسک باعث می‌شود پایین عکس در پس‌زمینه محو شود */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    background-color: #1a1a1a; /* ایجاد یک پس‌زمینه کاملا تیره زیر عکس */
}

/* استایل خود تصویر و اعمال تیرگی */
.service-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
    
    /* ✅ راهکار تیرگی: کاهش شفافیت برای ترکیب با رنگ تیره، یا کاهش روشنایی */
    opacity: 0.5; /* عدد بین 0.1 تا 1 - هرچه کمتر، کدرتر و تیره‌تر */
    /* filter: brightness(0.5); /* روش جایگزین: استفاده از فیلتر روشنایی */
}

/* افکت هاور: زوم ملایم و کمی روشن‌تر شدن تصویر (اختیاری اما جذاب) */
.service-card:hover .service-icon {
    transform: scale(1.05);
    opacity: 0.6; /* در حالت هاور کمی واضح‌تر شود */
}

/* بخش محتوای متنی */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* پر کردن فضای خالی کارت */
}

.card-title {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.card-description {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: #e5532c;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #00E5FF;
}

/* واکنش‌گرایی (ریسپانسیو) برای تبلت و موبایل */
@media (max-width: 992px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr); /* ۲ کارت در تبلت */
    }
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr; /* ۱ کارت در موبایل */
    }
}


.hero-divider-glow {
    width: 80%;
    height: 2px;
    /* ایجاد گرادیانت از شفاف به رنگ اصلی و دوباره به شفاف */
    background: linear-gradient(90deg, transparent 0%, #00B8CC 50%, transparent 100%);
    margin: 1px auto; /* فاصله از بالا (ویدیو) و پایین (بخش برندها) */
    /* ایجاد افکت درخشش نئونی ملایم */
    box-shadow: 0 0 15px rgba(229, 83, 44, 0.6); /* 0 0 15px rgba(229, 83, 44, 0.6) */
    opacity: 0.85;
    position: relative;
    z-index: 10;
}

.hero-divider-industrial {
    width: 80%; /* کمی کوتاه‌تر از عرض کل صفحه */
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, #4a4a4a 50%, transparent 100%);
    margin: 10px auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ایجاد المان مرکزی (مثلاً یک نقطه یا مستطیل کوچک نارنجی) */
.hero-divider-industrial::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 4px;
    background-color:  var(--neon-blue);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--neon-blue);/* 0 0 8px rgba(229, 83, 44, 0.8) */
}

.site-footer {
    width: 90%;
    margin: 0 10%;
    background-color: #1B2334; /*#091122 var(--surface-color, #1B1D1E); */
   /*  background-color: var(--header-bg); */
    padding: 1rem 3%;
    text-align: center;
    border-top: 1px solid var(--border-color);


  color: #f3f4f6;
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  margin: 0px auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  
  /* اعمال مستقیم پترن نقطه‌چین در پس‌زمینه فوتر */
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 14px 1s4px; /* تنظیم فاصله نقطه‌ها */
}

/* اطمینان از قرارگیری صحیح محتوا روی پترن پس‌زمینه */
.trust-banner, .footer-main, .footer-bottom {
  position: relative;
  z-index: 1;
}

/* استایل‌دهی به متن کپی‌رایت */
.copyright-text {
  width: 100%; /* اضافه شدن این خط */
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center; 
  letter-spacing: 0.5px;
  margin: 0;
  padding: 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* واکنش‌گرایی عرض فوتر برای نمایشگرهای کوچکتر */
@media (max-width: 992px) {
  .site-footer {
    width: 95%; /* استفاده از فضای بیشتر در موبایل و تبلت */
    margin: 20px auto;
  }
  
  .copyright-text {
    font-size: 0.8rem; /* کوچکتر شدن فونت کپی‌رایت در موبایل */
  }
}


/* --- Trust Banner --- */
.trust-banner {
    width: 90%; /* اضافه شدن این خط */
     margin: 20px auto;
  background-color: var(--footer-bg);
  padding: 20px 0;
  /*border-bottom: 2px solid var(--primary-orange);  خط نارنجی جداکننده */
}

.trust-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.trust-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-orange);
}

.trust-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-color);
}

/* --- Main Footer --- */
.footer-main {
  padding: 30px 0px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.footer-col h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--primary-orange);
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* --- Footer Bottom --- */
.footer-bottom {
  padding: 25px 0;
  border-top: 1px solid var(--border-color);
}

/* کانتینر اصلی نوار پایین فوتر */
.footer-bottom-bar {
  display: flex;
  justify-content: space-between; /* متن را به راست و آیکون‌ها را به چپ هل می‌دهد */
  align-items: center; /* تراز کردن عمودی در مرکز */
  padding-top: 20px;
  /*margin-top: 30px;  فاصله از محتوای بالای فوتر */
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* یک خط جداکننده بسیار محو و زیبا */
  flex-wrap: wrap; /* برای جلوگیری از به هم ریختگی در صفحه‌های کوچک */
  gap: 15px;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 576px) {
  .footer-bottom-bar {
    flex-direction: column; /* در موبایل زیر هم قرار می‌گیرند */
    justify-content: center;
    text-align: center;
  }
}

.bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--primary-orange);
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

.newsletter-form {
  display: flex;
  background-color: #2a2c31;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.newsletter-form input {
  background: transparent;
  border: none;
  padding: 12px 15px;
  color: var(--text-light);
  outline: none;
  font-family: inherit;
  width: 250px;
}

.newsletter-form input::placeholder {
  color: #777;
}

.newsletter-form button {
  background-color: var(--primary-orange);
  color: white;
  border: none;
  padding: 0 25px;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #c44522; /* کمی تیره‌تر در حالت هاور */
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }
  .trust-divider {
    display: none; /* حذف خطوط عمودی در موبایل/تبلت */
  }
  .trust-container {
    gap: 20px;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bottom-container {
    flex-direction: column;
    justify-content: center;
  }
  .newsletter-form {
    width: 100%;
  }
  .newsletter-form input {
    width: 100%;
  }
}

.floating-control-module {
  position: fixed;
  bottom: 30px;
  right: 30px; /* یا left: 30px بر اساس چیدمان */
  background: #1a1a1a;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 
    0 10px 15px rgba(0,0,0,0.6),
    inset 0 1px 1px rgba(255,255,255,0.05),
    0 0 0 1px #0a0a0a;
  z-index: 999;
}

.side-btn {
  position: relative;
  width: 45px;
  height: 45px;
  background: linear-gradient(180deg, #333, #222);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 3px 5px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1);
  transition: all 0.3s;
}

/* چراغ‌های نشانگر جانبی */
.side-btn .indicator {
  position: absolute;
  right: 4px; /* لبه راست دکمه */
  width: 4px;
  height: 12px;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s;
}

/* افکت‌های هاور اختصاصی برای هر کدام */
.side-btn.whatsapp:hover { color: #fff; }
.side-btn.whatsapp:hover .indicator {
  background: #25D366;
  box-shadow: 0 0 8px #25D366;
}

.side-btn.phone:hover { color: #fff; }
.side-btn.phone:hover .indicator {
  background: #e5532c;
  box-shadow: 0 0 8px #e5532c;
}

.side-btn.chat:hover { color: #fff; }
.side-btn.chat:hover .indicator {
  background: #0084ff;
  box-shadow: 0 0 8px #0084ff;
}

.side-btn:active {
  transform: scale(0.95);
  box-shadow: inset 0 3px 5px rgba(0,0,0,0.8);
}


/* ثابت کردن ماژول در گوشه صفحه (مثلا پایین سمت چپ) */
.floating-contact-module {
  position: fixed;
  bottom: 10px;
  left: 0px; /* اگر می‌خواهید سمت راست باشد، left را پاک کرده و right: 30px قرار دهید */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

/* استایل کانتینر دکمه‌های شبکه‌های اجتماعی (مخفی در حالت پیش‌فرض) */
.module-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* تنظیمات مخفی‌سازی */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  /* انیمیشن نرم برای باز شدن */
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
}

/* زمانی که کلاس active توسط جاوااسکریپت اضافه می‌شود */
.floating-contact-module.active .module-items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* استایل دکمه اصلی (پشتیبانی) با ظاهر صنعتی */
.main-toggle-btn {
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  color: #fff;
  /* border: 2px solid #ff6b00; */ /* حاشیه نارنجی صنعتی */
  border: 2px solid var(--neon-blue);
  padding: 12px 25px;
  border-radius: 8px; /* گوشه‌های کمی گرد */
  font-family: inherit;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* افکت هاور دکمه اصلی */
.main-toggle-btn:hover {
  background: linear-gradient(145deg, #383838, #1a1a1a);
  color: #F1F3F5;
  box-shadow: 0 6px 20px rgba(67, 155, 238, 0.4);
}

/* 
  در صورتی که دکمه‌های side-btn استایل ندارند، این استایل پایه را اضافه کنید.
  اگر از قبل در فایل CSS خود استایل دارند، نیازی به این بخش نیست.
*/
.side-btn {
  background: #222;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #444;
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
}

.side-btn:hover {
  border-color: #ff6b00;
  color: #ff6b00;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}


/* رنگ‌بندی آیکون واتس‌اپ */
.float-item.whatsapp svg {
    stroke: #25D366; /* رنگ سبز واتس‌اپ */
}
.float-item.whatsapp:hover {
    border-color: #25D366;
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.4), inset 0 0 8px rgba(37, 211, 102, 0.2);
}
.float-item.whatsapp .led-indicator {
    background-color: #25D366;
    box-shadow: 0 0 5px #25D366;
}

/* رنگ‌بندی آیکون تماس (تلفن) */
.float-item.phone svg {
    stroke: #007bff; /* رنگ آبی تماس */
}
.float-item.phone:hover {
    border-color: #007bff;
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.4), inset 0 0 8px rgba(0, 123, 255, 0.2);
}
.float-item.phone .led-indicator {
    background-color: #007bff;
    box-shadow: 0 0 5px #007bff;
}

/* رنگ‌بندی آیکون چت آنلاین */
.float-item.chat svg {
    stroke: #ff6b00; /* رنگ نارنجی سازمانی ممتاز ژن */
}
.float-item.chat:hover {
    border-color: #ff6b00;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.4), inset 0 0 8px rgba(255, 107, 0, 0.2);
}
.float-item.chat .led-indicator {
    background-color: #ff6b00;
    box-shadow: 0 0 5px #ff6b00;
}

/* استایل عمومی برای آیکون‌های داخل منوی شناور (در صورت نیاز به تنظیم مجدد) */
.float-item svg {
    transition: all 0.3s ease;
}


/* ۲. چرخش آیکون فلش */
.switch-wrapper.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* ۳. روشن شدن LED کلید اصلی وقتی زیرمنو باز است */
.switch-wrapper.has-dropdown:hover .switch-led {
    background-color: #ff6b00;
    box-shadow: 0 0 8px #ff6b00;
}

/* =================================
   Auth Modal Styles (Neon & Glass Theme)
   ================================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 22, 43, 0.85); /* تاریک‌تر و سرمه‌ای برای تم سایت */
    backdrop-filter: blur(8px); /* بلور بیشتر */
    cursor: pointer;
}

.modal-content {
    position: relative;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.85); /* پنل شیشه‌ای */
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 229, 255, 0.2); /* حاشیه نئونی محو */
    border-top: 4px solid #00e5ff; /* خط بالای فیروزه‌ای */
    border-radius: 12px; /* کمی گردتر */
    width: 90%;
    max-width: 420px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.1); /* سایه ترکیبی با هاله نئونی */
    transform: scale(1);
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.hidden .modal-content {
    transform: scale(0.95);
    opacity: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #ff3366; /* قرمز نئونی هنگام هاور */
    text-shadow: 0 0 8px rgba(255, 51, 102, 0.5);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0,0,0,0.3); /* پس‌زمینه تب‌ها تیره‌تر */
    padding: 0.5rem;
    border-radius: 8px;
}

.tab-switch {
    flex-grow: 1;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #cbd5e1;
    background: transparent; /* حذف گرادیانت طوسی */
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-switch:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-switch.active {
    background: rgba(0, 229, 255, 0.1);
    color: #00e5ff; /* متن فیروزه‌ای */
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1); /* هاله داخلی */
}

.form-container {
    display: none;
}

.form-container.active {
    display: block;
}

.modal-form .form-group {
    margin-bottom: 1.25rem;
}

.modal-form label {
    display: block;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="tel"],
.modal-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.2); /* پس‌زمینه شیشه‌ای تیره */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-form input:focus {
    outline: none;
    border-color: #00e5ff; /* بوردر فیروزه‌ای */
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.4);
}

.forgot-password {
    display: block;
    text-align: left;
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: none;
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #00e5ff; /* هاور فیروزه‌ای */
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.4);
}

.submit-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #0b162b; /* متن تیره برای خوانایی روی دکمه روشن */
    background: linear-gradient(145deg, #01a4c5, #00d8f0); /* گرادیانت فیروزه‌ای */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(145deg, #00e5ff, #00b4d8);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5); /* هاله بیشتر در هاور */
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 229, 255, 0.3);
}


/* تنظیم موقعیت والد */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* ثابت کردن جایگاه آیکون در سمت راست */
.input-icon {
    position: absolute;
    right: 15px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s ease;
}

/* ایجاد فضای خالی داخل فیلد برای آیکون */
.modal-form .input-wrapper input,
.input-wrapper input {
    width: 100%;
    padding-right: 45px !important;
    box-sizing: border-box !important;
    z-index: 1;
}

/* افکت تغییر رنگ هنگام فوکوس */
.input-wrapper:focus-within .input-icon {
    color: #00e5ff; /* آیکون فیروزه‌ای در زمان تایپ */
    filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.5));
}


/* استایل هشدارهای شناور (Toast Alerts) */
.custom-toast {
    position: fixed;
    top: 20px;
    left: 50%; /* قرار دادن در وسط خط افقی */
    transform: translateX(-50%); /* تنظیم دقیق مرکز */
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 99999; /* عدد بالا برای اینکه حتماً روی مدال (Modal) و بقیه اجزا قرار بگیرد */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: Tahoma, Arial, sans-serif; /* در صورت نیاز فونت خود را تنظیم کنید */
    direction: rtl;
    text-align: center;
    min-width: 300px; /* حداقل عرض برای زیبایی بیشتر */
    
    /* انیمیشن ورود */
    animation: slideDown 0.4s ease-out forwards;
}

/* اضافه کردن انیمیشن از بالا به پایین برای وسط صفحه */
@keyframes slideDown {
    from {
        top: -50px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

.custom-toast.toast-success {
    border-right-color: #28a745;
}

.custom-toast.toast-error {
    border-right-color: #dc3545;
}

.custom-toast.hide {
    animation: fadeOutToast 0.4s ease forwards;
}

@keyframes slideInToast {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutToast {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* استایل پایه برای نگهدارنده پیام */
.custom-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 6px;
    color: #ffffff;
    font-weight: bold;
    z-index: 99999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    font-family: inherit;
    direction: rtl;
    text-align: center;
    min-width: 320px;
    /* انیمیشن ورود */
    animation: slideDownToast 0.4s ease-out forwards;
}

/* استایل مخصوص حالت موفقیت (سبز صنعتی) */
.toast-success {
    background-color: #1a472a;
    border-right: 5px solid #2ecc71;
}

/* استایل مخصوص حالت خطا (قرمز صنعتی) */
.toast-error {
    background-color: #4a1919;
    border-right: 5px solid #e74c3c;
}

/* انیمیشن ورود از بالا */
@keyframes slideDownToast {
    from {
        top: -60px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}


/* =========================================
   داشبورد (Dashboard Layout)
   ========================================= */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    direction: rtl;
    background-color: #f4f6f8; /* پس‌زمینه روشن برای محتوا */
}

/* سایدبار */
.dashboard-sidebar {
    width: 260px;
    background-color: #1a1a2e; /* رنگ تیره صنعتی */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #f39c12; /* رنگ سازمانی (نارنجی/زرد) */
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #b0b0c0;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background-color: #2C374B;
    color: #ffffff;
    border-right: 4px solid #232c3d;
}

/* محتوای اصلی داشبورد */
.dashboard-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 25px;
}

.dashboard-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #f4f6f8;
    padding-bottom: 10px;
}

/* فرم‌های داخل داشبورد */
.dash-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.dash-form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.dash-form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #bec2cf;
    font-size: 0.9rem;
}

.dash-form-group input, 
.dash-form-group select {
    background-color: #121F2C;
    color:#bec2cf;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.dash-form-group input:focus, 
.dash-form-group select:focus {
    border-color: #f39c12;
}

.btn-submit {
    background-color: #f39c12;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #e67e22;
}

/* =========================================
   Alerts & Toast Messages (Industrial Theme)
   ========================================= */

/* کانتینر دربرگیرنده پیام‌ها */
.alerts-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    pointer-events: none; /* تا مزاحم کلیک روی المان‌های زیرین نشود */
}

/* استایل پایه برای هر پیام */
.alert-box {
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    animation: slideDownToast 0.4s ease-out forwards;
    pointer-events: auto; /* برای امکان کلیک روی خود پیام */
    border-right: 5px solid; /* نوار رنگی ضخیم در سمت راست برای تم صنعتی */
    background-color: #2b2b2b; /* پس‌زمینه تیره */
    color: #273b61;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* پیام خطا (Fail / Error) */
.alert-fail, 
.alert-error {
    border-right-color: #e53935; /* قرمز صنعتی */
    border-left: 1px solid #444;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}
.alert-fail .alert-text {
    color: #ff6b6b;
}

/* پیام موفقیت (Success) */
.alert-success {
    border-right-color: #43a047; /* سبز صنعتی */
    border-left: 1px solid #444;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}
.alert-success .alert-text {
    color: #69f0ae;
}

/* انیمیشن ورود پیام به صفحه */
@keyframes slideDownToast {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* انیمیشن خروج پیام از صفحه (اختیاری برای جاوااسکریپت) */
.alert-fade-out {
    animation: fadeOutToast 0.5s ease-in forwards;
}

@keyframes fadeOutToast {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* استایل مربوط به گروه‌های ابعاد */
.dimensions-group {
    display: flex;
    gap: 15px; /* فاصله بین فیلدها */
    margin-bottom: 20px;
}

.dimensions-group input {
    flex: 1; /* عرض برابر برای هر سه فیلد */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.dimensions-group input:focus {
    border-color: #0056b3; /* رنگ حاشیه هنگام فوکوس - قابل تغییر بر اساس تم شما */
    outline: none;
}


/* --- ساختار کلی فروشگاه --- */
.shop-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 15px;
    align-items: start;
}

/* --- سایدبار و فیلترها --- */
.shop-sidebar {
    background: #283448;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}
.filter-group {
    margin-bottom: 25px;
}
.filter-title {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #ADAFB3;
}
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #CCD5DB;
}

.custom-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #34353b;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    
    /* === کدهای جدید برای تغییر رنگ بدنه === */
    background-color: #1D2534; /* رنگ پس‌زمینه بدنه (مثلاً یک رنگ تیره) */
    color: #F8F9FA;            /* رنگ متن داخل باکس */
}

/* افکت هنگام کلیک و فوکوس شدن روی کامبوباکس */
.custom-select:focus {
    border-color: #BABBBE;     /* تغییر رنگ حاشیه هنگام کلیک */
    background-color: #1f2736; /* تغییر نامحسوس رنگ بدنه هنگام کلیک */
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.2); /* هاله نور ملایم */
}

/* تغییر رنگ آیتم‌های داخل لیست بازشو (آپشن‌ها) */
.custom-select option {
    background-color: #1e1e24; /* رنگ پس‌زمینه لیست بازشو */
    color: #ffffff;            /* رنگ متن لیست بازشو */
    padding: 10px;
}


/* --- اسلایدر دو زبانه (Dual Range Slider) --- */
.range-slider-container {
    width: 100%;
}
.range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #ADAFB3;
    font-weight: bold;
}
.range-slider {
    position: relative;
    width: 100%;
    height: 35px;
}
.slider-track {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    position: absolute;
    margin: auto;
    top: 0; bottom: 0;
    border-radius: 5px;
}
.range-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    outline: none;
    position: absolute;
    margin: auto;
    top: 0; bottom: 0;
    background-color: transparent;
    pointer-events: none;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    background-color: #d8e5f3;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* --- بخش محتوا و هدر آن --- */
.shop-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #253144;/* #19212e */
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.sort-by {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sort-by .custom-select {
    width: auto;
}

/* --- کارت‌های تک‌ستونه محصولات --- */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.product-card-row {
    display: flex;
    background: #19212e;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}
.product-image {
    width: 300px;
    flex-shrink: 0;
    /* background: #f8f9fa; */
    background:#253145 ;/* none */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* کانتینر تصویر (کلاسی که تگ img داخل آن قرار دارد) */
.product-image {
    position: relative;
    overflow: hidden;
    /* border-radius: 12px; (اگر گوشه‌های گرد دارید) */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ایجاد لایه کاور ساده و ملایم روی عکس */
.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* یک لایه مشکی ساده با ۴۰ درصد شفافیت */
    /* اگر می‌خواهید ملایم‌تر باشد عدد 0.4 را به 0.2 یا 0.3 تغییر دهید */
    background-color: rgba(0, 0, 0, 0.15); 
    
    /* برای اینکه لایه مزاحم کلیک کردن روی عکس نشود */
    pointer-events: none; 
    transition: background-color 0.3s ease;
}

/* (اختیاری) در حالت هاور، لایه کمی روشن‌تر شود تا عکس واضح‌تر دیده شود */
.product-image:hover::after {
    background-color: rgba(0, 0, 0, 0.15); 
}

.product-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.badge {
    background: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- استایل‌های دکمه و محتوای قابل باز شدن --- */
.product-description-container {
    position: relative;
}
.product-description {
    max-height: 70px; /* نمایش حدود ۳ خط */
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: #d8dae7;
    line-height: 1.6;
    font-size: 0.95rem;
}
.product-description p {
    margin-bottom: 8px;
}
/* حالت باز شده */
.product-description.expanded {
    max-height: 1000px; /* عدد بزرگ برای جا دادن کل متن */
}
/* ایجاد افکت محو شدگی در پایین متن وقتی بسته است */
.product-description:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, #232e41
    );
}
.btn-read-more {
    margin-top: 15px;
    align-self: flex-start;
    background: none;
    border: none;
    color: #0056b3;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
}
.btn-read-more:hover {
    text-decoration: underline;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 992px) {
    .shop-container {
        grid-template-columns: 1fr;
    }
    .product-card-row {
        flex-direction: column;
    }
    .product-image {
        width: 100%;
        height: 250px;
    }
}

/* =========================================
   استایل‌های سکشن جدید لوگوها (logos-section)
   ========================================= */
.logos-section {
    width: 80%;
    margin: auto;
    padding: 0px 0;
    overflow: hidden;
}

.active-logo-info {
    text-align: center;
    margin-bottom: 20px;
    min-height: 30px;
}

#activeLogoNameDisplay {
    color: #ecebe2;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.logos-container {
    display: flex;
    /* scroll-behavior: smooth; */
    scrollbar-width: none; 
    cursor: grab;
    align-items: center;
    gap: 40px; /* فاصله بین لوگوها */
    overflow-x: hidden;
    padding: 20px 0; /* پدینگ های 50vw چپ و راست باید حذف شوند */
    width: 100%;
}

.logos-container::-webkit-scrollbar {
    display: none; 
}

.logos-container:active {
    cursor: grabbing;
}


.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px; /* کاهش فضای خالی دور لوگوها */
    background: transparent; /* حذف بک‌گراند در صورت وجود */
    border: none; /* حذف تمام بردرهای دور تا دور */
    /* یک بردر شفاف در بالا می‌گذاریم تا وقتی رنگی شد، لوگوها به پایین پرش نکنند */
    border-top: 3px solid transparent; 
    border-radius: 0; /* حذف انحنای بردر در صورت وجود */
    text-decoration: none; /* حذف خط زیر لینک */
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

/* هاور: نمایش بردر فقط در بالای لوگو */
.logo-item:hover {
    border-top: 3px solid #1ca0af; /* رنگ دلخواه صنعتی شما (مثلا زرد یا قرمز) */
}

/* اگر می‌خواهید لوگوی فعال (در وسط) هم بردر بالا داشته باشد، این را اضافه کنید: */
 /*.logo-item.active-logo {
    border-top: 3px solid #ffcc00; 
}*/

.logo-item img {
    height: 40px; /* تنظیم ارتفاع ثابت برای لوگوها */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7); /* حالت خاکستری و کمی محو */
    transition: all 0.3s ease;
}

.logo-item:hover img,
.logo-item.active-logo img {
    filter: grayscale(0%) opacity(1); /* رنگی شدن کامل در حالت هاور و فعال */
    transform: scale(1.1); /* کمی بزرگنمایی */
}


    @media (max-width: 768px) {
        .logo-item img {
            height: 30px;
        }
    }

/* استایل کلی هدر */
.glass-header {
    width: 100%; /* اگر داخل main-container است، 100% باشد تا 80% والد را پر کند */
    /* اگر هدر بیرون از main-container است، خط بالا را پاک کرده و دو خط زیر را فعال کنید: */
    /* max-width: 80%; margin: 0 auto; */
    
    display: flex;
    flex-direction: column; /* نمایش در دو ردیف (ردیف بالا لوگو/آیکون، ردیف پایین منو) */
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    position: relative; /* حذف position: fixed */
    z-index: 100;
}

/* ساختار منوی مرکزی */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* کلیدهای شیشه‌ای (Glassmorphism) برای آیتم‌های منو */
.nav-item {
    background: rgba(255, 255, 255, 0.03); /* پس‌زمینه بسیار محو */
    backdrop-filter: blur(12px); /* افکت بلور شیشه */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* حاشیه شیشه‌ای */
    border-radius: 50px; /* شکل کپسولی / دکمه‌ای */
    color: var(--text-main, #e0e0e0);
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* سایه نرم دکمه */
}

/* هاور و حالت فعال کلیدهای شیشه‌ای (افکت درخشان و نئونی) */
.nav-item:hover, 
.nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-glow, #00f3ff); /* رنگ نئونی تم شما */
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.1);
    transform: translateY(-2px);
}

/* بخش لوگو */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: var(--bg-color);
    border: 2px solid var(--neon-blue);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.4); /* هاله نور لوگو */
}

.logo-text {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* بخش آیکون‌ها */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px; /* مربع با گوشه‌های گرد */
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

/* تنظیمات نقطه اعلان (Notification Dot) */
.notification-wrapper {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--neon-orange);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-orange); /* درخشش نقطه */
}

/* =========================================
   Responsive Design (Tablet & Mobile)
   ========================================= */

/* ----- حالت تبلت (عرض ۹۹۲ پیکسل و کمتر) ----- */
@media (max-width: 992px) {
    .main-header {
        width: 95%; /* عرض بیشتر برای تبلت */
    }
    
    .search-container {
        width: 30%; /* کاهش عرض جستجو برای جا شدن المان‌ها */
    }

    .nav-item {
        padding: 10px 15px; /* کاهش فاصله آیتم‌های منو */
        font-size: 0.85rem;
    }

    /* کوچک‌تر کردن متن بنر */
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* ----- حالت موبایل (عرض ۷۶۸ پیکسل و کمتر) ----- */
@media (max-width: 768px) {
    .main-header {
        width: 100%;
        top: 0; /* چسبیدن هدر به سقف در موبایل */
        border-radius: 0;
        padding: 10px;
        /* پس‌زمینه کمی تیره‌تر برای خوانایی بهتر در موبایل */
         background-color: #0b162b;
    }

    /* شکستن ردیف بالا به چند خط */
    .header-top {
        flex-wrap: wrap; 
        gap: 15px;
    }

    .logo {
        flex: 1 1 40%;
        font-size: 1.2rem;
    }

    .header-icons {
        flex: 1 1 40%;
        justify-content: flex-end;
    }

    /* انتقال نوار جستجو به ردیف پایین‌تر (کل عرض را می‌گیرد) */
    .search-container {
        order: 3; 
        width: 100%;
        max-width: 100%;
    }

    /* تنظیمات منوی شیشه‌ای برای موبایل 
    .header-bottom {
        margin-top: 10px;
    }*/

    .glass-nav {
       /* align-items: flex-start !important;  چینش آیتم‌ها به شروع محور (راست در سایت‌های فارسی) */
        padding-right: 20px; /* ایجاد کمی فاصله از لبه سمت راست صفحه برای زیبایی بیشتر */
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px; /* کاهش فاصله بین کلیدها */
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
        width: 100%; /* گرفتن تمام عرض منو */
        justify-content: flex-start; /* در صورتی که کلیدها حالت flex دارند، محتوایشان به راست برود */
                /* ایجاد فاصله‌ی داخلی متقارن برای کل کانتینر منو */
        box-sizing: border-box; /* جلوگیری از بیرون‌زدگی به دلیل پدینگ */
       /* margin: 5px 0;  ایجاد فاصله کمی بین بالا و پایین دکمه‌ها */
        padding: 20px !important; /* یکسان‌سازی فاصله از لبه‌های کادر */
                
        padding: 0 !important; /* این خط کلیدی است */
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center; /* اطمینان از قرارگیری در مرکز خط */
        margin: 8px 0 !important; /* فاصله فقط در بالا و پایین اعمال شود */
        text-align: center;
    }

    .glass-nav ul {
        margin: 0 !important;
        padding: 0 !important; /* این خط کلیدی است */
        list-style: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* اطمینان از قرارگیری در مرکز خط */
    }

    /* round menu (mobile) buttons corners */
    .glass-nav .nav-item {
        width: 100%;
        box-sizing: border-box;
        margin: 8px 0 !important; /* فاصله فقط در بالا و پایین اعمال شود */
        text-align: center;
    }

    /* پنهان کردن نوار اسکرول */
    .glass-nav::-webkit-scrollbar {
        display: none;
    }

    /* استایل خود کلیدها (آیتم‌های منو) در موبایل */
    .nav-item {
        white-space: nowrap;
        padding: 8px 16px; /* کاهش حاشیه داخلی کلیدها برای ظرافت بیشتر */
        font-size: 0.75rem; /* کاهش سایز فونت کلیدها */
        border-radius: 20px; /* حفظ حالت کپسولی */
        letter-spacing: 0.5px;
        width: 100%; /* گرفتن تمام عرض منو */
        text-align: right; /* راست‌چین کردن متن کلید */
        justify-content: flex-start; /* در صورتی که کلیدها حالت flex دارند، محتوایشان به راست برود */
        box-sizing: border-box; /* اطمینان از اینکه حاشیه‌ها باعث افزایش عرض نمی‌شوند */
        margin: 5px 0; /* ایجاد فاصله کمی بین بالا و پایین دکمه‌ها */
    }

    /* ----- تنظیمات بنر (Hero) در موبایل ----- */
    .hero-section {
        /* افزایش فاصله از بالا به دلیل سه ردیفه شدن هدر در موبایل */
        padding-top: 220px; 
        min-height: 80vh;
    }

    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 0.9rem;
        padding: 0 15px;
    }
}

/* ----- حالت موبایل کوچک (عرض ۴۸۰ پیکسل و کمتر) ----- */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }
}

/* استایل پیش‌فرض دکمه همبرگری (مخفی در دسکتاپ) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* ----------------------------------- */
/* استایل‌های مخصوص موبایل و تبلت */
/* ----------------------------------- */
@media (max-width: 768px) {
    /* نمایش دکمه همبرگری */
    .hamburger-btn {
        display: flex;
        margin-right: 15px; /* فاصله از آیکون‌های مجاور */
    }

    /* تنظیمات منو برای حالت مخفی و کشویی */
    .header-bottom {
        position: absolute;
        top: 100%; /* دقیقا زیر هدر قرار می‌گیرد */
        left: 0;
        width: 100%;
        background: rgba(25, 25, 35, 0.95); /* پس‌زمینه شیشه‌ای تیره برای خوانایی بهتر */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(14, 9, 39, 0.39);
        
        /* انیمیشن باز شدن منو */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    /* کلاسی که با جاوااسکریپت برای باز شدن منو اضافه می‌شود */
    .header-bottom.active {
        max-height: 500px; /* ارتفاع کافی برای نمایش تمام کلیدها */
    }

    /* عمودی کردن کلیدهای منو */
    .glass-nav {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
    }

    .nav-item {
        width: 90%; /* عرض کلیدها در موبایل */
        text-align: center;
        padding: 12px;
        background: rgba(255, 255, 255, 0.05); /* کمی برجسته‌تر شدن کلیدها */
        border-radius: 8px;
    }

    /* انیمیشن تبدیل همبرگر به ضربدر (X) هنگام باز بودن منو */
    .hamburger-btn.toggle span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger-btn.toggle span:nth-child(2) {
        opacity: 0; /* خط وسط محو می‌شود */
    }
    .hamburger-btn.toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }
}

/* استایل دسکتاپ */
header, .main-header { 
    position: absolute; /* تغییر از fixed به absolute */
    top: 20px; /* در صورت نیاز به فاصله از سقف در دسکتاپ */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 9999;
}

main.shop-container {

margin-top: 140px;

}
/* استایل موبایل و تبلت */
@media (max-width: 768px) {
    header, .main-header {
        width: 100%;
        top: 0; /* چسبیدن به سقف در موبایل */
        
        /* اگر می‌خواهید هدر فقط در موبایل هنگام اسکرول ثابت بماند، خط زیر را از کامنت خارج کنید: */
         position: fixed; 
    }
}

.dot-pattern {

      /* اعمال مستقیم پترن نقطه‌چین در پس‌زمینه فوتر */
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px; /* تنظیم فاصله نقطه‌ها */
}

/* Theme Customizer Panel */
.customizer-panel {
    position: fixed;
    bottom: 20px;
    left: -260px; /* مخفی بودن در حالت پیش‌فرض */
    width: 250px;
    background: #fff;
    color: #333;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    transition: left 0.3s ease-in-out;
    z-index: 99998;
    direction: rtl;
}

.customizer-panel.open {
    left: 0;
}

.customizer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f4f4f4;
    border-radius: 0 10px 0 0;
    border-bottom: 1px solid #ddd;
}

.customizer-header h3 {
    margin: 0;
    font-size: 14px;
}

#toggle-customizer {
    position: absolute;
    right: -40px;
    top: 10px;
    background: #333;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customizer-body {
    padding: 15px;
}

.color-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
}

.color-control input[type="color"] {
    width: 40px;
    height: 30px;
    border: none;
    cursor: pointer;
    background: none;
}

#export-css-btn {
    width: 100%;
    padding: 8px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
}
#export-css-btn:hover { background: #218838; }


/* ------------------------------------ */
/* --- Styles for Live Customizer --- */
/* ------------------------------------ */

/* Fix z-index issue for Coloris picker */
.clr-picker {
    z-index: 999999 !important; /* A value higher than the header's z-index */
}

/* Style the container for each color control (label + picker) */
.theme-customizer-body {
    padding: 20px;
    display: grid; /* Use Grid for layout */
    grid-template-columns: auto 1fr; /* Two columns: Label (auto-width) and Color Picker (takes remaining space) */
    gap: 15px 10px; /* 15px vertical gap, 10px horizontal gap */
    align-items: center; /* Vertically align items in the center of each row */
}

.color-control label {
    font-size: 0.9rem;
    white-space: nowrap; /* Prevent label text from wrapping */
}

/* 
  Coloris creates a wrapper with the class .clr-field around the input.
  We will style this wrapper to look like a proper input field.
*/
.clr-field {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px;
    background-color: var(--card-bg-color);
    width: 180px; /* Adjust width as needed */
    transition: border-color 0.3s;
}

.clr-field:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color-faded);
}

/* Style the actual text input inside the wrapper */
.clr-field input[data-coloris] {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-color);
    font-family: 'Vazirmatn', sans-serif; /* Use your site's font */
    width: 100%;
    padding: 5px;
}

/* Style the color preview swatch that Coloris adds */
.clr-field .clr-alpha, .clr-field .clr-color {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    margin-left: 5px;
}

/* ============================================= */
/* ========== استایل کارت محصولات فروشگاه ========== */
/* ============================================= */

/* کانتینر اصلی لیست محصولات */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
}

/* کارت هر محصول - چیدمان ردیفی */
.product-card-row {
    display: grid;
    grid-template-columns: 280px 1fr; /* ستون ثابت برای تصویر و متغیر برای متن */
    gap: 30px;
    background-color: #253144;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #2c3850;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* افکت هاور روی کل کارت */
.product-card-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* بخش تصویر محصول */
.product-image {
    position: relative;
    /* یک پس‌زمینه گرادیانت ملایم برای نمایش بهتر تصاویر بدون پس‌زمینه (PNG) */
    background: linear-gradient(145deg,#061829, #242E40);
    border-radius: 12px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* افکت زوم تصویر هنگام هاور روی کارت */
.product-card-row:hover .product-image img {
    transform: scale(1.1);
}

/* تگ kVA روی تصویر (پیش‌فرض مخفی) */
/* ============================================= */
/* ========== استایل تگ kVA و خط اتصال ========== */
/* ============================================= */

/* کانتینر کلی ویجت */
.kva-widget {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    z-index: 10;
}

/* --- بخش خط اتصال (Wire) --- */
.kva-connection {
    display: flex;
    align-items: center;
    margin-right: -5px; /* برای اتصال دقیق به بدنه تگ */
    z-index: 1;
}

/* نقطه درخشان اتصال */
.kva-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #00d2ff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.6), inset 0 0 6px rgba(0, 210, 255, 0.4);
    position: relative;
    /* انیمیشن پالس برای نقطه */
    animation: pulseGlow 2s infinite alternate;
}

.kva-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: #00d2ff;
    border-radius: 50%;
}

/* خط درخشان (سیم) */
.kva-wire {
    width: 10px;
    height: 2px;
    background-color: #00d2ff;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.8);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- بدنه اصلی تگ شیشه ای --- */
.kva-tag-body {
    width: 20px;
    height: 40px;
    background: rgba(25, 30, 36, 0.75); /* پس‌زمینه تیره و شفاف */
    backdrop-filter: blur(6px); /* افکت شیشه‌ای ملایم */
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 2px solid #00d2ff; /* خط درخشان سمت چپ مشابه عکس */
    border-radius: 12px;
    padding: 12px 18px;
    color: #ffffff;
    text-align: center;
    min-width: 90px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* استایل متن های داخل تگ */
.kva-shield {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #00d2ff;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

.kva-value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.kva-value span {
    font-size: 0.8rem;
    font-weight: normal;
    color: #a0aab5;
}

.kva-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 8px 0;
}

.kva-brand {
    font-size: 0.8rem;
    color: #cbd5e1;
    letter-spacing: 1px;
}

/* ============================================= */
/* ========== افکت های حرکتی (Hover) =========== */
/* ============================================= */

/* وقتی کاربر موس را روی کل کارت محصول می برد */
.product-card-row:hover .kva-wire {
    width: 50px; /* سیم طولانی تر می شود */
}

.product-card-row:hover .kva-tag-body {
    transform: translateX(-5px) translateY(-5px); /* تگ کمی به بالا و چپ حرکت می کند */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 210, 255, 0.2);
}

/* انیمیشن چشمک زن (پالس) برای نقطه اتصال */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 210, 255, 0.4), inset 0 0 3px rgba(0, 210, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.8), inset 0 0 8px rgba(0, 210, 255, 0.6);
    }
}


/* نمایش تگ kVA هنگام هاور روی کارت */
.product-card-row:hover .kva-tag {
    opacity: 1;
    transform: translateY(0);
}

/* بخش جزئیات محصول */
.product-details {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    flex-grow: 1;
}

 /*   استایل‌دهی به خود ویجت */
.kva-widget-animated {
    position: absolute;
    bottom: 25px; /* فاصله از پایین کادر توضیحات */
    left: 25px;   /* فاصله از چپ کادر توضیحات */
    
    /* استایل ظاهری شیشه‌ای و زیبا */
    background: rgba(30, 30, 37, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 20px;
    
    /* چینش عدد و واحد کنار هم */
    display: flex;
    align-items: baseline; /* برای تراز بهتر عدد بزرگ و واحد کوچک */
    gap: 8px;

    /* --- حالت اولیه (مخفی) --- */
    opacity: 0.5;
    transform: translateY(20px); /* کمی پایین‌تر باشد تا افکت بالا آمدن داشته باشد */
    /* visibility: hidden; */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* انیمیشن نرم */
}

/*  مرحله ۳: تعریف حالت هاور
  وقتی ماوس روی کل product-card قرار گرفت، ویجت را نمایش بده
*/
.product-card:hover .kva-widget-animated {
    opacity: 1;
    transform: translateY(0); /* به جای اصلی خود برمی‌گردد */
    visibility: visible;
}

/* استایل عدد توان (مثلا 150) */
.kva-widget-animated .kva-value {
    color: #ffffff;
    font-size: 2.5rem; /* اندازه بزرگ و خوانا */
    font-weight: 700;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
     color: #E4E6EF;
    margin-bottom: 15px;
    line-height: 1.4;
}
/* دکمه مشاهده بیشتر */
.btn-read-more {
    margin-top: auto;
    align-self: flex-start;
    padding: 0px;
    background-color: transparent;
    color: #ADAFB3; /* در صورت نیاز به رنگ قالب پروژه تغییر دهید */
    border-bottom: 2px solid #00EEFF;
    /* border-radius: 8px; */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: #20293C;
    color: #ffffff;
    text-decoration: none;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
    .product-card-row {
        grid-template-columns: 1fr; /* تبدیل به یک ستون در موبایل */
        padding: 15px;
        gap: 15px;
    }
    
    .product-image {
        height: 200px;
    }
}

/* کانتینر اصلی ویجت (مخفی در حالت عادی) */
.kva-mockup-widget {
    position: absolute;
    top: 30px; /* فاصله از پایین کادر توضیحات - قابل تغییر */
    left: 20px;   /* فاصله از چپ کادر توضیحات - قابل تغییر */
    display: flex;
    align-items: center;
    z-index: 10;
    
    /* افکت محو بودن و انیمیشن */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px); /* کمی پایین‌تر است */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ظاهر شدن ویجت هنگام هاور روی کل کارت محصول */
.product-card:hover .kva-mockup-widget,
.product-list .product-card-row:hover .kva-mockup-widget { /* با توجه به کلاس‌های قبلی شما */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* نقطه درخشان (نقطه شروع) */
.kva-mockup-widget .glow-dot {
    width: 8px;
    height: 8px;
    background-color: #00d2ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d2ff, 0 0 20px #00d2ff; /* افکت درخشش */
    position: absolute;
    left: 0;
}

/* خط اتصال (سیم) */
.kva-mockup-widget .connecting-wire {
    width: 0px; /* در حالت عادی عرض صفر است (مخفی کنار دایره) */
    height: 2px;
    background: linear-gradient(90deg, #00d2ff, rgba(255,255,255,0.4));
    position: absolute;
    left: 8px; 
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-delay: 0.1s; /* کمی تاخیر تا اول کل ویجت ظاهر شود بعد خط باز شود */
}

/* باکس شیشه‌ای kVA */
.kva-mockup-widget .glass-box {
    margin-left: 48px; 
    background: rgba(20, 20, 25, 0.5); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 16px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    
    /* تنظیمات انیمیشن حرکت از چپ به راست */
    transform: translateX(-30px); /* در حالت عادی ۳۰ پیکسل به سمت چپ (روی دایره) جمع شده است */
    opacity: 0; /* در ابتدا محو است */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-delay: 0.1s; /* همگام با باز شدن خط اتصال */
}

/* حرکت باکس شیشه‌ای به سمت راست هنگام هاور */
.product-card:hover .kva-mockup-widget .glass-box,
.product-list .product-card-row:hover .kva-mockup-widget .glass-box {
    transform: translateX(0); /* به جایگاه اصلی خود در سمت راست برمی‌گردد */
    opacity: 1; /* کاملا نمایان می‌شود */
}

/* باز شدن خط اتصال هنگام هاور */
.product-card:hover .kva-mockup-widget .connecting-wire,
.product-list .product-card-row:hover .kva-mockup-widget .connecting-wire {
    width: 40px; /* به طول اصلی خود می‌رسد */
}

/* استایل عدد */
.kva-mockup-widget .value {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* استایل واحد */
.kva-mockup-widget .unit {
    color: #00d2ff;
    font-size: 1rem;
    font-weight: 500;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #333; /* خط جداکننده ملایم */
}

.btn-apply-filter, .btn-clear-filter {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-apply-filter {
    background-color: #fca311; /* رنگ متناسب با تم سایت شما */
    color: #14213d;
}

.btn-apply-filter:hover {
    background-color: #e5940f;
    transform: translateY(-2px);
}

.btn-clear-filter {
    background-color: #2b2b36;
    color: #e63946;
    border: 1px solid #e63946;
}

.btn-clear-filter:hover {
    background-color: #e63946;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Styling for the search result count */
.result-count {
    font-size: 1rem;
    color: #a0a0b0; /* رنگ خاکستری روشن */
     /*background-color: #2a2a33; پس‌زمینه کمی تیره‌تر */
    padding: 5px 15px;
/*     border-radius: 20px;
    border: 1px solid #444; */
    margin-right: auto; /* برای اینکه به سمت چپ هدر برود */
    font-weight: 300;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* کانتینر اصلی بخش پیشنهادات */
.fallback-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    width: 100%;
}

/* باکس پیام اطلاع‌رسانی */
.fallback-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #fff8e6; /* زرد بسیار ملایم */
    border: 1px solid #ffe08a;
    color: #8a6d3b;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    text-align: right;
}

/* آیکون داخل باکس پیام */
.fallback-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #d8a000;
}

/* دکمه درخواست از ادمین */
.btn-request-device {
    display: inline-block;
    background-color: #ffffff;
    color: #0056b3; /* رنگ آبی سازمانی (می‌توانید با تم سایت هماهنگ کنید) */
    border: 2px solid #0056b3;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 86, 179, 0.15);
}

/* افکت Hover برای دکمه */
.btn-request-device:hover {
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
    transform: translateY(-2px);
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
    .fallback-alert {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-request-device {
        width: 100%;
        text-align: center;
    }
}

/* Modal Overlay */
.device-modal-overlay {
display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 22, 43, 0.85); /* استفاده از رنگ تیره اصلی سایت با ۸۵٪ شفافیت */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px); /* تار کردن بیشتر پس‌زمینه برای جلوه بهتر */
    transition: all 0.3s ease-in-out;
}

.device-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Content Box */
.device-modal-content {
    background: #242E40;
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    direction: rtl;
}

.device-modal-overlay.active .device-modal-content {
    transform: translateY(0);
}

/* استایل دارک/شیشه‌ای برای باکس محتوای مُدال */
.device-modal-overlay .modal-content {
    background: rgba(15, 23, 42, 0.6); /* پس‌زمینه تیره و نیمه‌شفاف */
    backdrop-filter: blur(12px); /* افکت شیشه‌ای (Glassmorphism) */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, 0.2); /* حاشیه ملایم نئونی */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.1); /* سایه تیره + هاله ملایم نئونی */
    color: #ffffff; /* رنگ متن روشن */
    padding: 30px;
    border-radius: 16px; /* گوشه‌های گرد */
    width: 90%;
    max-width: 500px;
    transform: translateY(-20px);
    opacity: 0;
    animation: modalFadeIn 0.4s ease forwards;
}

/* در صورت وجود دکمه بستن در مُدال، این استایل به آن ظاهر هماهنگ می‌دهد */
.device-modal-overlay .close-modal {
    color: #00e5ff;
    float: left; /* یا right بسته به زبان سایت */
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.device-modal-overlay .close-modal:hover {
    color: #fff;
    text-shadow: 0 0 8px #00e5ff; /* درخشش در حالت هاور */
}

/* انیمیشن برای ظاهر شدن نرم باکس */
@keyframes modalFadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* خط جداکننده محوتر */
    background: #36435C;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #e2e8f0;
    font-weight: 600;
}


.modal-header h2 { margin: 0; font-size: 1.5rem; color: #e7e4e4; }
.modal-close-btn {
    background: none; border: none; font-size: 2rem;
    cursor: pointer; color: #666; transition: color 0.2s;
}
.modal-close-btn:hover { color: #dc3545; }

/* Modal Body & Split */
.modal-body { padding: 20px; }
.modal-split {
    display: flex; gap: 20px; margin-bottom: 20px;
}
.modal-image-container {
    flex: 1; border-radius: 12px; overflow: hidden; background: #f4f4f4;
    display: flex; align-items: center; justify-content: center;
}
.modal-image-container img {
    max-width: 100%; height: auto; object-fit: contain;
}
.modal-specs { flex: 1.5; }
.modal-specs ul {
    list-style: none; padding: 0; margin: 0;
}
.modal-specs li {
    padding: 10px 0; border-bottom: 1px dashed #ddd;
    display: flex; justify-content: space-between;
}
.modal-specs li strong { color: #f5f2f2; }

/* Actions & Buttons */
.modal-actions {
    display: flex; gap: 15px; padding-top: 15px; border-top: 1px solid #eee;
}
.btn-action {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border: none; border-radius: 8px;
    font-family: inherit; font-size: 1rem; cursor: pointer; transition: 0.2s;
    flex: 1;
}
.btn-contact-admin {
    background: #0d6efd; color: white;
}
.btn-contact-admin:hover { background: #0b5ed7; }
.btn-bookmark {
    background: #f8f9fa; color: #333; border: 1px solid #ddd;
}
.btn-bookmark:hover { background: #e2e6ea; }
.btn-bookmark.saved {
    color: #dc3545; border-color: #dc3545; background: #fff5f5;
}
.btn-bookmark.saved svg { fill: #dc3545; }

/* Responsive */
@media (max-width: 768px) {
    .modal-split { flex-direction: column; }
    .modal-actions { flex-direction: column; }
}

.btn-view {
    width: fit-content; /* عرض دکمه به اندازه محتوا */
    white-space: nowrap; /* جلوگیری از دو خط شدن متن */
    margin-left: auto; /* برای وسط‌چین یا راست‌چین کردن در صورت نیاز */
    margin-right: auto;
    
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 16px; /* فاصله داخلی (پدینگ چپ و راست عرض نهایی را تعیین می‌کند) */
    background: rgba(0, 229, 255, 0.05);
    color: #ffffff;
    font-weight: 500;
    border: 1.5px solid #00e5ff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(0, 229, 255, 0.2), 
        inset 0 0 8px rgba(0, 229, 255, 0.15);
    margin-bottom: 12px;
}

/* خط نورانی زیر دکمه */
.btn-view::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #00e5ff;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
    opacity: 1;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: rgba(0, 229, 255, 0.15);
    box-shadow: 
        0 0 15px rgba(0, 229, 255, 0.4), 
        inset 0 0 10px rgba(0, 229, 255, 0.3);
    cursor: pointer;
}

.btn-view:hover::after {
    width: 80%;
    box-shadow: 0;
}


/* =========================================
   Contact Us Page Styles
   ========================================= */

.contact-page {
    padding: 60px 0;
    min-height: 80vh;
    color: #fff;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header .page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

/* استفاده از رنگ نئونی (فیروزه‌ای یا نارنجی تم شما) برای کلمه 'ما' */
.contact-header .page-title span {
    color: #00e5ff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.contact-header .page-subtitle {
    color: #d9d0d0;
    font-size: 1.1rem;
    font-weight: 600;
}

.page-subtitle {
    margin-top: 30px;
}

.contact-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* افکت پنل شیشه‌ای برای کارت‌ها */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* --- بخش اطلاعات (راست) --- */
.contact-info-card {
    flex: 1;
}

.contact-info-card h3,
.contact-form-card h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

/* خط نئونی زیر عنوان کارت‌ها */
.contact-info-card h3::after,
.contact-form-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: #00e5ff;
    box-shadow: 0 0 8px #00e5ff;
    border-radius: 2px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.info-list li i {
    font-size: 1.5rem;
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.1);
    padding: 12px;
    border-radius: 50%;
}

.info-list li div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-list li strong {
    color: #ccc;
    font-weight: 500;
}

.info-list li span {
    color: #fff;
    font-size: 0.95rem;
}

/* --- بخش فرم (چپ) --- */
.contact-form-card {
    flex: 2;
}

.form-group-row {
    display: flex;
    gap: 20px;
}

.form-group-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #bbb;
}

/* استایل فیلدهای فرم متناسب با تم تاریک */
.form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* افکت روشن شدن کادر هنگام تایپ */
.form-control:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

/* دکمه ارسال با ظاهر نئونی (مشابه دکمه جزئیات دستگاه) */
.btn-submit-neon {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background: rgba(0, 229, 255, 0.05);
    border: 1.5px solid #00e5ff;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1), 0 0 10px rgba(0, 229, 255, 0.1);
}

.btn-submit-neon:hover {
    background: #00e5ff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* --- ریسپانسیو (برای موبایل و تبلت) --- */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
    
    .form-group-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-info-card, 
    .contact-form-card {
        width: 100%;
        padding: 25px;
    }
}


/* =========================================
   About Us Page Styles
   ========================================= */

.about-page {
    padding: 60px 0;
    min-height: 80vh;
    color: #fff;
}

.text-center {
    text-align: center;
}

.about-header {
    margin-bottom: 60px;
}

.about-header .page-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.about-header .page-title span {
    color: #00e5ff; /* رنگ نئونی تم */
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.about-header .page-subtitle {
    color: #aaa;
    font-size: 1.2rem;
}

/* ساختار بخش متن و تصویر */
.about-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text {
    flex: 1;
    line-height: 1.8;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: #00e5ff;
    box-shadow: 0 0 8px #00e5ff;
    border-radius: 2px;
}

.about-text p {
    color: #ccc;
    font-size: 1.05rem;
    margin-bottom: 15px;
    text-align: justify;
}

.about-text strong {
    color: #fff;
}

/* افکت تصویر */
.about-image-container {
    flex: 1;
    position: relative;
    border-radius: 20px;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* هاله نئونی پشت تصویر */
.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: #00e5ff;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
}

/* آمارها (Stats) */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #00e5ff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    margin-bottom: 10px;
    font-family: Arial, sans-serif; /* برای نمایش بهتر اعداد */
}

.stat-label {
    color: #bbb;
    font-size: 1rem;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 992px) {
    .about-content-wrapper {
        flex-direction: column-reverse;
    }
    
    .about-image-container {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}


/* =========================================
   Services Page Styles
   ========================================= */

.services-page {
    padding: 60px 0;
    min-height: 80vh;
    color: #fff;
}

.section-header {
    margin-bottom: 60px;
}

.section-header .page-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-header .page-title span {
    color: #00e5ff;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.section-header .page-subtitle {
    color: #aaa;
    font-size: 1.2rem;
}

/* شبکه (Grid) کارت‌ها */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* دقیقاً ۳ ستون با عرض مساوی */
    gap: 30px; /* فاصله بین کارت‌ها (میتوانید تغییر دهید) */
    width: 100%;
}

/* استایل کارت‌های خدمات */
.services-card {
    padding: 40px 30px;
    text-align: center;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.services-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

/* آیکون کارت‌ها */
.services-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
}

.services-icon svg {
    width: 40px;
    height: 40px;
    color: #00e5ff;
}

.services-card:hover .services-card {
    background: #00e5ff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
}

.services-card:hover .services-icon svg {
    color: #0b0c10; /* رنگ تیره پس‌زمینه سایت برای تضاد */
}

/* متون کارت */
.services-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.services-desc {
    color: #bbb;
    font-size: 1rem;
    line-height: 1.8;
}

/* بخش Call to Action (CTA) */
.services-cta {
    padding: 50px 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,229,255,0.05) 100%);
    border: 1px solid rgba(0, 229, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,229,255,0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.services-cta h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.services-cta p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* دکمه داخل CTA از کلاس قبلی .btn-view ارث‌بری می‌کند، فقط z-index می‌دهیم */
.services-cta .btn-view {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 12px 35px;
    font-size: 1.1rem;
}

/* واکنش‌گرایی: در تبلت‌ها ۲ کارت در هر ردیف */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* واکنش‌گرایی: در موبایل ۱ کارت در هر ردیف (زیر هم) */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .section-header .page-title {
        font-size: 2.2rem;
    }
    
    .services-cta h2 {
        font-size: 1.6rem;
    }
}

.product-badges .badge {
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* در صورتی که از تگ a استفاده کنید */
    display: inline-block;
}

.product-badges .badge:hover {
    background: rgba(0, 229, 255, 0.15); /* پس‌زمینه ملایم نئونی */
    border-color: #00e5ff;
    color:#00FF00;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3); /* درخشش در حالت هاور */
    transform: translateY(-2px);
}

/* اجبار به اعمال پس‌زمینه شیشه‌ای برای فیلدهای مُدال */
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"],
.modal-content input[type="password"] {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: #e2e8f0 !important;
}

.modal-content input:focus {
    background-color: rgba(0, 0, 0, 0.4) !important;
}

/* حل مشکل پس‌زمینه سفید هنگام Autofill مرورگر (مخصوصا کروم) */
.modal-content input:-webkit-autofill,
.modal-content input:-webkit-autofill:hover, 
.modal-content input:-webkit-autofill:focus, 
.modal-content input:-webkit-autofill:active {
    /* استفاده از سایه داخلی برای تغییر رنگ پس‌زمینه autofill به تیره */
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    caret-color: #00e5ff;
    /* حفظ استایل بوردر و گردی حاشیه */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* افکت هاور و فوکوس در حالت Autofill */
.modal-content input:-webkit-autofill:focus {
    border-color: #00e5ff !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2) !important;
}


/* =========================================
   Admin Dashboard - Lighter/Cleaner Theme
   ========================================= */

/* پس‌زمینه کل بادی برای پنل ادمین - کمی روشن‌تر از سایت اصلی */
body.admin-page {
    background-color: #f8fafc; /* یک رنگ خاکستری بسیار روشن مایل به آبی */
    color: #334155; /* رنگ متن تیره برای خوانایی روی پس‌زمینه روشن */
}

/* کانتینر اصلی داشبورد */
.admin-dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #142230;
    font-family: Tahoma, 'IRANSans', sans-serif; /* فونت استاندارد */
}

/* سایدبار (منوی سمت راست) */
.admin-sidebar {
    width: 260px;
    background: #1e293b; /* سرمه‌ای تیره اما ملایم‌تر از مشکی */
    color: #f1f5f9;
    padding: 20px 0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.admin-sidebar h2 {
    text-align: center;
    font-size: 1.5rem;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #38bdf8; /* آبی روشن برای عنوان */
}

/* لیست منوها */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

/* دکمه‌ها و لینک‌های سایدبار */
.tab-btn, .sidebar-link {
    width: 100%;
    text-align: right;
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 15px 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.tab-btn:hover, .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-right: 4px solid #38bdf8;
}

/* وضعیت فعال (Active) در منو */
.tab-btn.active {
    background: #0f172a;
    color: #38bdf8;
    border-right: 4px solid #38bdf8;
    font-weight: bold;
}

/* بخش محتوای اصلی (سمت چپ) */
.main-content {
    flex: 1;
    padding: 30px 40px;
    background-color: #f8fafc;
    overflow-y: auto;
}

/* تب کانتنت‌ها (پنل‌هایی که با کلیک منو نمایش داده می‌شوند) */
.tab-content {
    display: none;
    background: #ffffff; /* پس‌زمینه کاملا سفید برای باکس‌های محتوا */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* فرم‌ها و اینپوت‌ها در پنل ادمین */
.tab-content input[type="text"],
.tab-content input[type="email"],
.tab-content input[type="password"],
.tab-content input[type="number"],
.tab-content input[type="url"],
.tab-content select,
.tab-content textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0 20px;
    background: #121f2c;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    transition: all 0.3s;
}

.tab-content input:focus,
.tab-content select:focus,
.tab-content textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    outline: none;
    background: #2e5991;
}

/* دکمه‌های اکشن (ذخیره، افزودن و ...) */
.admin-btn {
    background: #0ea5e9;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.admin-btn:hover {
    background: #0284c7;
}

/* جداول در پنل ادمین */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
}

.admin-table tr:hover {
    background: #f8fafc;
}

/* انیمیشن سوییچ تب‌ها */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-industrial {
    /* سایر استایل‌های قبلی شما در اینجا قرار دارند */
    text-decoration: none !important; /* این خط را اضافه کنید */
}

.btn-industrial:hover {
    text-decoration: none !important;
}

/* اضافه کردن پوزیشن relative و overflow برای نگه داشتن نور داخل دکمه */
.btn-industrial {
    position: relative;
    overflow: hidden;
}

/* ساخت هاله نور */
.btn-industrial::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine-sweep 3s infinite;
}

/* انیمیشن حرکت نور از چپ به راست */
@keyframes shine-sweep {
    0% { left: -150%; }
    50% { left: 200%; }
    100% { left: 200%; } /* ایجاد یک وقفه کوتاه قبل از تکرار مجدد */
}



/* استایل دهی به تگ h3 درون باکس لوگو */
#activeLogoNameDisplay {
    font-family: "Arial Black", Impact, sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    
    /* گرادیانت با رنگ پایه #00E5FF و درخشش سفید */
    background: linear-gradient(90deg, #00E5FF 0%, #B3F8FF 50%, #00E5FF 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* انیمیشن درخشش */
    animation: shine-text 3s linear infinite;
}

@keyframes shine-text {
    to {
        background-position: 400% center;
    }
}



.feature-card, .service-card, .feature-row, .reverse-row {
    transition: all 0.3s ease;
}

/* افکت هاله نور و حرکت ملایم به سمت بالا در زمان قرار گرفتن موس */
/* .feature-card:hover, .service-card:hover { */
.feature-card:hover, .service-card:hover, .feature-row:hover, .reverse-row:hover {
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.3); /* هاله نور نئونی ملایم */
    transform: translateY(-5px); /* حرکت ظریف کارت به سمت بالا */
}


/* نگهدارنده لامپ‌ها در بخش Hero */
.hero-lamps {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 15; /* بالاتر از ویدیو و overlay */
    pointer-events: none; /* جلوگیری از بلاک شدن کلیک‌های کاربر */
}

/* ساختار کلی لامپ */
.lamp-structure {
    position: absolute;
    top: -30px; /* کمی بالاتر از لبه ویدیو تا حس نصب شدن بدهد */
    width: 80px;
    height: 100px;
}

/* موقعیت ۳ لامپ مختلف */
.lamp-left { left: 15%; }
.lamp-center { left: 50%; transform: translateX(-50%); }
.lamp-right { right: 15%; left: auto; }

/* بازوی خمیده فلزی */
.lamp-structure .lamp-arm {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 40px;
    height: 70px;
    border-top: 6px solid #95a5a6;
    border-right: 6px solid #95a5a6;
    border-top-right-radius: 30px;
    box-shadow: inset -2px 2px 3px rgba(255,255,255,0.4), 
                inset 2px -2px 3px rgba(0,0,0,0.4);
    transform: translateX(-50%) rotate(-15deg);
}

/* قاب پروژکتور */
.lamp-structure .lamp-head {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) perspective(200px) rotateX(25deg);
    width: 60px;
    height: 30px;
    background: linear-gradient(to bottom, #bdc3c7 0%, #7f8c8d 100%);
    border-radius: 15px 15px 5px 5px;
    border-bottom: 2px solid #34495e;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.6),
                inset 0 2px 5px rgba(255, 255, 255, 0.5);
    z-index: 2;
}

/* افکت نور */
.lamp-structure .light-bulb {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 10px;
    background-color: #fff9e6;
    border-radius: 50%;
    /* تنظیم قدرت نور روی ویدیو */
    box-shadow: 
        0 5px 15px 5px #00E5FF,          /* نور نزدیک (آبی روشن یا زرد به دلخواه) */
        0 15px 40px 15px rgba(0, 229, 255, 0.5), /* هاله نور */
        0 40px 100px 40px rgba(255, 255, 255, 0.2); /* تابش محیطی */
    z-index: 1;
}



/* =========================================
   Features Slide-in Section
   ========================================= */
.features-section {
    overflow-x: hidden; /* بسیار مهم: جلوگیری از اسکرول افقی در هنگام اجرای انیمیشن */
    padding: 60px 0;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
   /*  margin-bottom: 80px; */
}

/* برای برعکس کردن جهت در ردیف‌های زوج */
.feature-row.reverse-row {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    color: #e0e0e0;
    line-height: 1.8;
}

.feature-text h3 {
    color: #00E5FF;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.feature-image {
    flex: 1;
    text-align: center;
}

.feature-image img {
    width: 100%;
    max-width: 600px; /* حداکثر عرض مجاز */
    aspect-ratio: 4 / 3; /* نسبت ابعاد یکسان برای همه (می‌توانید 1/1 یا 16/9 بگذارید) */
    object-fit: cover; /* جلوگیری از دفرمه شدن عکس در صورت تفاوت سایز */
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.15);
}


/* --- تنظیمات انیمیشن ورود از اطراف --- */

.slide-from-right {
    opacity: 0;
    transform: translateX(150px); /* 150 پیکسل بیرون از سمت راست */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-from-left {
    opacity: 0;
    transform: translateX(-150px); /* 150 پیکسل بیرون از سمت چپ */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* کلاسی که توسط جاوااسکریپت هنگام رسیدن به المان اضافه می‌شود */
.slide-from-right.visible,
.slide-from-left.visible {
    opacity: 1;
    transform: translateX(0); /* بازگشت به جایگاه اصلی */
}

/* ریسپانسیو برای موبایل و تبلت */
@media (max-width: 768px) {
    .feature-row,
    .feature-row.reverse-row {
        flex-direction: column; /* در موبایل عکس و متن زیر هم قرار می‌گیرند */
        text-align: center;
    }

    /* در موبایل بهتر است به جای چپ و راست، از پایین به بالا بیایند */
    .slide-from-right,
    .slide-from-left {
        transform: translateY(50px); 
    }
}


/* کانتینر اصلی - نمایش یک کارت در هر ردیف */
.premium-features-section {
    display: grid;
    grid-template-columns: 1fr; /* فقط یک ستون (عرض کامل) */
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* استایل بدنه کارت */
.premium-card {
    position: relative;
    width: 100%;
    min-height: 350px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #0F172A; /* رنگ پس زمینه تاریک پایه */
    /* افکت حاشیه و درخشش مطابق عکس */
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-bottom: 3px solid #00E5FF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

/* تنظیمات عکس پس‌زمینه */
.premium-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* لایه گرادیان (مهم‌ترین بخش برای افکت محو شدن عکس) */
.premium-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* گرادیان: سمت راست کاملا تیره، سمت چپ شفاف برای نمایش عکس */
    /* اگر می‌خواهید عکس سمت راست باشد، جای to left را با to right عوض کنید */
    background: linear-gradient(to left, #0F172A 10%, #0F172A 50%, rgba(15, 23, 42, 0.7) 70%, transparent 100%);
}

/* تنظیمات محتوای متنی و آیکون */
.premium-card-content {
    position: relative;
    z-index: 3;
    width: 50%; /* متن نیمی از کارت را می‌گیرد */
    padding: 50px;
    text-align: center; /* راست‌چین یا وسط‌چین بسته به سلیقه */
    color: #fff;
    /* برای سایت‌های فارسی (راست‌چین) */
    margin-right: 0; 
    margin-left: auto;
}

/* استایل آیکون دایره‌ای */
.premium-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: #00E5FF;
    font-size: 32px;
    box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.1);
}

.premium-card-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffffff;
}

.premium-card-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .premium-card-overlay {
        /* در موبایل کل عکس تاریک می‌شود تا متن خوانا باشد */
        background: linear-gradient(to top, #0F172A 20%, rgba(15, 23, 42, 0.85) 100%);
    }
    
    .premium-card-content {
        width: 100%;
        padding: 30px 20px;
    }
}


.feature-image-container {
    position: relative;
    /* در صورت نیاز به گوشه‌های گرد */
    border-radius: 16px; 
    overflow: hidden;
    width: 100%;
    height: 100%; /* یا ارتفاع ثابت بسته به طراحی شما */
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* اگر می‌خواهید نور پایه عکس هم در کل کمی کم شود، می‌توانید خط زیر را اضافه کنید */
    /* filter: brightness(0.85); */
}

.radial-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* گرادیان شعاعی از مرکز به بیرون */
    /* 0% (مرکز): بسیار شفاف تا عکس دیده شود */
    /* 100% (لبه‌ها): کاملا تیره تا با پس‌زمینه ترکیب شود */
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.6) 60%, rgba(15, 23, 42, 0.95) 100%);
    pointer-events: none; /* تا مزاحم کلیک کردن روی عکس نشود */
}

.features-section container{
    margin-bottom: 1200px;
}

/* ساختار گرید برای کارت‌ها */
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 120px;
}

/* استایل کارت خدمات */
.service-pro-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

.service-pro-card.visible:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 229, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
    transition: all 0.15s ease;
}

/* بخش تصویر */
.service-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-pro-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}

/* هاله تاریک روی تصویر */
.service-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 1) 100%);
}

/* محتوای کارت */
.service-pro-content {
    padding: 20px 25px 30px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.service-pro-icon {
    font-size: 2.5rem;
    margin-top: -40px; /* کشیدن آیکون به سمت بالا روی تصویر */
    margin-bottom: 15px;
    background: #0f172a;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid #00E5FF;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* استایل خود تصویر و اعمال تیرگی */
.service-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
    
    /* ✅ راهکار تیرگی: کاهش شفافیت برای ترکیب با رنگ تیره، یا کاهش روشنایی */
    opacity: 0.5; /* عدد بین 0.1 تا 1 - هرچه کمتر، کدرتر و تیره‌تر */
    /* filter: brightness(0.5); /* روش جایگزین: استفاده از فیلتر روشنایی */
}

/* افکت هاور: زوم ملایم و کمی روشن‌تر شدن تصویر (اختیاری اما جذاب) */
.service-card:hover .service-icon {
    transform: scale(1.05);
    opacity: 0.6; /* در حالت هاور کمی واضح‌تر شود */
}

.service-pro-content h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.service-pro-content p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* دکمه داخل کارت */
.service-btn {
    display: inline-block;
    padding: 8px 20px;
    color: #00E5FF;
    border: 1px solid #00E5FF;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background: #00E5FF;
    color: #000;
}

/* انیمیشن محو شدن به سمت بالا */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* واکنش‌گرایی: در تبلت‌ها ۲ کارت در هر ردیف */
@media (max-width: 992px) {
    .services-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* واکنش‌گرایی: در موبایل ۱ کارت در هر ردیف (زیر هم) */
@media (max-width: 768px) {
    .services-page-grid {
        grid-template-columns: 1fr;
    }
}



.static-map-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 22, 0.6); /* رنگ تیره نیمه‌شفاف برای هماهنگی با تم سایت */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.map-btn {
    background: #00E5FF; /* رنگ فیروزه‌ای تم شما */
    color: #0a0f16;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* افکت هاور */
.static-map-container:hover .static-map-img {
    transform: scale(1.05); /* زوم ملایم تصویر */
}

.static-map-container:hover .map-overlay {
    opacity: 1; /* نمایش لایه تیره */
}

.static-map-container:hover .map-btn {
    transform: translateY(0); /* حرکت دکمه به سمت بالا */
}

/* کانتینر اصلی نقشه */
.static-map-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    
    /* 1. ایجاد حاشیه ظریف برای افکت برآمدگی (لبه بالایی کمی روشن‌تر است) */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.12); 
    
    /* 2. سایه قوی‌تر و چندلایه برای ایجاد عمق و خارج کردن نقشه از حالت تو رفته */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),   /* سایه پخش شده و بزرگ */
        0 8px 16px rgba(0, 0, 0, 0.4),    /* سایه متمرکزتر زیر کادر */
        0 2px 4px rgba(0, 0, 0, 0.3);     /* سایه تیز برای لبه‌ها */
        
    /* رنگ پس‌زمینه برای اطمینان از عملکرد درست سایه‌ها در لبه‌های گرد */
    background-color: #1c212c; 
}

/* افکت هاور روی نقشه (اختیاری: برای اینکه با هاور شدن برآمده‌تر هم بشود) */
.static-map-container:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6), 
        0 10px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px); /* با رفتن موس روی آن کمی بالا می‌آید */
    transition: all 0.4s ease;
}

.static-map-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.static-map-container:hover .static-map-img {
    transform: scale(1.03); 
}


.map-section {
    padding: 60px 20px; /* ایجاد فاصله از بالا/پایین و چپ/راست */
    display: flex;
    justify-content: center; /* وسط‌چین کردن نقشه در صفحه */
    align-items: center;
}

/* استایل بخش نقشه */
.map-section {
    margin-top: 60px;
    margin-bottom: 60px;
    width: 100%;
}

/* استایل عنوان نقشه */
.map-header {
    text-align: center;
    margin-bottom: 30px;
}

.map-header h2 {
    color: #ffffff; /* رنگ عنوان */
    font-size: 28px;
    margin-bottom: 10px;
}

.map-header p {
    color: #a0aabf; /* رنگ متن توضیحات */
    font-size: 15px;
}



/* =========================================
   FAQ Section Styles
   ========================================= */
.faq-section {
    padding: 40px 20px;
   /*  background-color: #0d1117; */ /* رنگ پس‌زمینه تیره هماهنگ با سایت */
    color: #c9d1d9;
    direction: rtl;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.faq-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #00bcd4; /* رنگ آبی فیروزه‌ای برای خط زیر عنوان */
    border-radius: 2px;
}

.faq-header p {
    color: #8b949e;
    font-size: 1.1rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #1B2334;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #00bcd4;
}

.faq-question {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    list-style: none; /* مخفی کردن فلش پیش‌فرض مرورگر */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ساخت فلش سفارشی */
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #00bcd4;
    transition: transform 0.3s ease;
}

/* تغییر شکل فلش در حالت باز شده */
.faq-item[open] .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

/* مخفی کردن فلش پیش‌فرض در مرورگرهای وب‌کیت */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 20px 20px;
    color: #a3b0c2;
    line-height: 1.8;
    border-top: 1px solid #21262d;
    margin-top: 10px;
    padding-top: 15px;
}

.faq-answer ul {
    margin-top: 10px;
    padding-right: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* برای لینک متنی ساده */
.contact-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}
.contact-link:hover {
    text-decoration: underline;
}

/* برای دکمه‌ها */
.btn-primary, .btn-consultation {
    display: inline-block;
    background-color: #ff9800; /* رنگ دکمه - قابل تغییر */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}
.btn-primary:hover, .btn-consultation:hover {
    background-color: #e68a00;
}


 /*  انیمیشن‌های اسکرول صفحه درباره ما */
/* حالت اولیه: مخفی و کمی جابجا شده */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px); /* در زبان فارسی چون راست‌چین است، از راست می‌آید */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* حالت فعال: زمانی که کلاس show توسط جاوا اسکریپت اضافه می‌شود */
.fade-in-up.show,
.fade-in-right.show,
.fade-in-left.show {
    opacity: 1;
    transform: translate(0); /* بازگشت به جایگاه اصلی */
}

/* برای اینکه اگر جاوا اسکریپت لود نشد، سایت خالی نماند (اختیاری ولی حرفه‌ای) */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up, .fade-in-right, .fade-in-left {
        opacity: 1;
        transform: translate(0);
    }
}


.image-wrapper {
    position: relative;
    display: inline-block; /* یا block بسته به نیاز شما */
    border-radius: 12px; /* گرد کردن گوشه‌ها */
    overflow: hidden; /* جلوگیری از بیرون زدن عکس از لبه‌های گرد */
}

/* ایجاد لایه تاریک و گرادیان روی عکس */
.image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* گرادیان از بالا (کمی تاریک) به پایین (کاملا تاریک) */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none; /* تا مزاحم کلیک کردن روی عکس نشود */
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    /* در صورت نیاز به زوم شدن عکس هنگام هاور شدن */
    transition: transform 0.3s ease;
}

/* افکت اختیاری: وقتی موس روی عکس می‌رود کمی روشن‌تر شود */
.image-wrapper:hover::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
}




/* تنظیمات کانتینر فوتر */
.footer-container {
    display: grid;
    /* این خط فوتر را ۳ ستونه می‌کند */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* در تبلت و موبایل ساختار ستون‌ها تغییر کند */
@media (max-width: 992px) {
    .footer-container {
        /* در تبلت ۲ ستونه */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        /* در موبایل ۱ ستونه (زیر هم) */
        grid-template-columns: 1fr;
        text-align: center; /* وسط چین کردن محتوا در موبایل */
    }
    
    .contact-info li, 
    .footer-socials {
        justify-content: center;
    }
}


.hero-video-container {
    position: relative; /* برای جای‌گیری لایه فرزند */
    width: 100%;
    height: 100vh;
}

/* لایه گرادیان */
.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* گرادیان از مشکی نیمه‌شفاف به شفاف */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1; /* لایه را روی ویدئو قرار می‌دهد */
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* محتوا باید روی لایه گرادیان قرار گیرد */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* بالاتر از لایه گرادیان */
    color: white;
    text-align: center;
}


/* ایجاد حاشیه فلزی در بالا و پایین سکشن هیرو (اختیاری) */
.hero.video-hardware-style {
    border-top: 6px solid #2c3e50;
    border-bottom: 6px solid #2c3e50;
    overflow: visible; /* برای اینکه بست‌ها بیرون از کادر دیده شوند */
}

/* استایل مشترک بست‌های فلزی */
.clamp {
    position: absolute;
    width: 45px;
    height: 80px;
    background: linear-gradient(135deg, #7f8c8d 0%, #34495e 100%);
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.4), 3px 3px 10px rgba(0,0,0,0.6);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 10; /* قرارگیری روی همه چیز */
}

/* موقعیت‌دهی دقیق هر بست نسبت به خود سکشن Hero */
.clamp-top-right { top: -40px; right: 5%; }
.clamp-top-left { top: -40px; left: 5%; }
.clamp-bottom-right { bottom: -40px; right: 5%; transform: rotate(180deg); }
.clamp-bottom-left { bottom: -40px; left: 5%; transform: rotate(180deg); }

/* ساخت پیچ و چراغ LED (بدون تغییر نسبت به قبل) */
.screw {
    width: 12px;
    height: 12px;
    background: #bdc3c7;
    border-radius: 50%;
    box-shadow: inset -1px -1px 3px rgba(0,0,0,0.5);
    position: relative;
}
.screw::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 2px;
    width: 8px;
    height: 2px;
    background: #2c3e50;
    transform: rotate(45deg);
}

/* استایل پایه برای تمام LED ها */
.led-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ecc71;
    box-shadow: 0 0 5px #2ecc71, 0 0 10px #2ecc71;
}

/* چراغ اول: دو چشمک متوالی با زمان ۴ ثانیه */
.led-light-1 {
    animation: blink-type-1 4s infinite;
}

/* چراغ دوم: یک چشمک کوتاه با زمان ۳.۵ ثانیه و ۱ ثانیه تاخیر شروع */
.led-light-2 {
    animation: blink-type-2 3.5s infinite 1s;
}

/* چراغ سوم: سه چشمک سریع با زمان ۵ ثانیه و نیم ثانیه تاخیر */
.led-light-3 {
    animation: blink-type-3 5s infinite 0.5s;
}

/* چراغ چهارم: همان دو چشمک اما با زمان طولانی‌تر و ۲ ثانیه تاخیر */
.led-light-4 {
    animation: blink-type-1 4.7s infinite 2.5s;
}


/* --- فریم‌های انیمیشن (Keyframes) --- */

/* نوع ۱: دو چشمک */
@keyframes blink-type-1 {
    0%, 78%, 100% {
        background-color: #2ecc71;
        box-shadow: 0 0 5px #2ecc71, 0 0 10px #2ecc71;
    }
    80%, 86% {
        background-color: #145a32;
        box-shadow: none;
    }
    82%, 88% {
        background-color: #2ecc71;
        box-shadow: 0 0 8px #2ecc71;
    }
}

/* نوع ۲: یک چشمک سریع */
@keyframes blink-type-2 {
    0%, 85%, 100% {
        background-color: #2ecc71;
        box-shadow: 0 0 5px #2ecc71, 0 0 10px #2ecc71;
    }
    90%, 95% {
        background-color: #145a32;
        box-shadow: none;
    }
}

/* نوع ۳: سه چشمک رگباری */
@keyframes blink-type-3 {
    0%, 70%, 100% {
        background-color: #2ecc71;
        box-shadow: 0 0 5px #2ecc71, 0 0 10px #2ecc71;
    }
    72%, 78%, 84% {
        background-color: #145a32;
        box-shadow: none;
    }
    75%, 81%, 87% {
        background-color: #2ecc71;
        box-shadow: 0 0 8px #2ecc71;
    }
}


/* کانتینر دربرگیرنده ویدئو (باید relative باشد تا بست‌ها روی آن قرار بگیرند) */
.hero-video-container {
    position: relative;
    /* سایر استایل‌های کانتینر ویدئو شما */
}

/* استایل پایه بست‌های فلزی */
.metal-bracket {
    position: absolute;
    width: 60px;
    height: 60px;
    /* ایجاد یک تکسچر فلزی با گرادیانت */
    background: linear-gradient(135deg, #7f8c8d 0%, #bdc3c7 50%, #95a5a6 100%);
    border: 2px solid #444;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 8px;
    /* سایه برای ایجاد عمق */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.4), 2px 2px 10px rgba(0,0,0,0.5);
}

/* تنظیم گوشه‌ها و ایجاد شکل L مانند یا اریب برای هر بست */
.metal-bracket.top-right { 
    top: -5px; 
    right: -5px; 
    border-radius: 5px 5px 5px 30px; 
}
.metal-bracket.top-left { 
    top: -5px; 
    left: -5px; 
    border-radius: 5px 5px 30px 5px; 
}
.metal-bracket.bottom-right { 
    bottom: -5px; 
    right: -5px; 
    border-radius: 30px 5px 5px 5px; 
}
.metal-bracket.bottom-left { 
    bottom: -5px; 
    left: -5px; 
    border-radius: 5px 30px 5px 5px; 
}

/* استایل پیچ‌های روی بست فلزی */
.screw {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ecf0f1 0%, #95a5a6 100%);
    border-radius: 50%;
    border: 1px solid #333;
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.6), inset -1px -1px 3px rgba(0,0,0,0.6);
    position: relative;
}

/* ایجاد شیار چهارسو روی پیچ */
.screw::before, 
.screw::after {
    content: '';
    position: absolute;
    background-color: #2c3e50;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.screw::before {
    width: 6px;
    height: 1px;
}
.screw::after {
    width: 1px;
    height: 6px;
}


/* *************************** screw OLD ************************** */
/* ایجاد حاشیه فلزی در بالا و پایین سکشن هیرو (اختیاری) */
.hero.video-hardware-style {
    border-top: 6px solid #2c3e50;
    border-bottom: 6px solid #2c3e50;
    overflow: visible; /* برای اینکه بست‌ها بیرون از کادر دیده شوند */
}

/* استایل مشترک بست‌های فلزی */
.clamp {
    position: absolute;
    width: 45px;
    height: 80px;
    background: linear-gradient(135deg, #7f8c8d 0%, #34495e 100%);
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.4), 3px 3px 10px rgba(0,0,0,0.6);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 10; /* قرارگیری روی همه چیز */
}

/* موقعیت‌دهی دقیق هر بست نسبت به خود سکشن Hero */
.clamp-top-right { top: -40px; right: 5%; }
.clamp-top-left { top: -40px; left: 5%; }
.clamp-bottom-right { bottom: -40px; right: 5%; transform: rotate(180deg); }
.clamp-bottom-left { bottom: -40px; left: 5%; transform: rotate(180deg); }

/* ساخت پیچ و چراغ LED (بدون تغییر نسبت به قبل) */
.screw {
    width: 12px;
    height: 12px;
    background: #bdc3c7;
    border-radius: 50%;
    box-shadow: inset -1px -1px 3px rgba(0,0,0,0.5);
    position: relative;
}
.screw::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 2px;
    width: 8px;
    height: 2px;
    background: #2c3e50;
    transform: rotate(45deg);
}

.led-light {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    animation: blink-twice 4s infinite;
}

@keyframes blink-twice {
    0%, 78%, 100% {
        background-color: #2ecc71;
        box-shadow: 0 0 5px #2ecc71, 0 0 10px #2ecc71;
    }
    80%, 86% {
        background-color: #145a32;
        box-shadow: none;
    }
    82%, 88% {
        background-color: #2ecc71;
        box-shadow: 0 0 8px #2ecc71;
    }
}

/* تنظیمات مخصوص موبایل و تبلت‌های کوچک */
@media (max-width: 768px) {
/*     .metal-bracket {
        width: 35px !important;  
        height: 35px !important; 
        padding: 3px !important;
    } */
    
    /* کوچکتر شدن پیچ‌ها برای تناسب با بست */
/*     .screw {
        width: 8px;
        height: 8px;
    }
    .screw::before { width: 4px; }
    .screw::after { height: 4px; } */
}


/* استایل‌های بخش صفحه‌بندی */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.pagination li .page-link {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
}

.pagination li .page-link:hover {
    background-color: #f1f1f1;
    color: #0056b3;
}

.pagination li.active .page-link {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

.pagination li.disabled .page-link {
    color: #999;
    background-color: #f9f9f9;
    border-color: #ddd;
    cursor: not-allowed;
}

        .product-container { max-width: 1200px; margin: 20px auto; padding: 0 15px; margin-top: 60px; }
        .breadcrumb { 
            font-size: 14px;  margin-bottom: 20px; 
                display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9rem; /* سایز فونت مناسب */
    color: #8b9bb4; /* رنگ خاکستری متمایل به آبی برای مسیرهای غیرفعال */
    list-style: none; /* حذف بولت‌ها در صورت استفاده از ul/li */
    background-color: #212C3D;
    padding: 15px;
    border-radius: 10px;
        }
     .breadcrumb a {
    color: #8b9bb4;
    text-decoration: none;
    transition: color 0.3s ease;
}
/* افکت هاور (Hover) برای لینک‌ها */
.breadcrumb a:hover {
    color: #00e5ff; /* تغییر رنگ به فیروزه‌ای تم سایت هنگام رفتن ماوس */
}

/* استایل جداکننده‌ها (علامت / یا /) */
.breadcrumb .separator {
    margin: 0 8px;
    color: #4a5568;
    font-size: 0.8rem;
}

/* استایل صفحه فعلی (آخرین آیتم که لینک نیست) */
.breadcrumb .current {
    color: #ffffff; /* رنگ سفید و روشن برای صفحه فعلی */
    font-weight: bold;
}
        .breadcrumb span { color: #F2F9FF; }
        
        .product-top { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
        .product-gallery { flex: 1; min-width: 300px; }
        .product-gallery img { width: 100%; border-radius: 8px; border: 1px solid #eee; }
        
        .product-summary { flex: 1; min-width: 300px; }
        .product-summary h1 { font-size: 24px; margin-bottom: 15px; color:#BFBFBF }
        .short-specs { list-style: none; padding: 0; margin-bottom: 25px; }
        .short-specs li { padding: 10px 0; border-bottom: 1px dashed #ccc; display: flex; justify-content: space-between; }
        .btn-inquiry { display: inline-block; padding: 12px 25px; background: #28a745; color: #fff; text-decoration: none; border-radius: 5px; font-weight: bold; }
        
        .product-tabs { margin-top: 40px; }
        .tab-buttons { display: flex; gap: 10px; border-bottom: 2px solid #ddd; margin-bottom: 20px; }
        .tab-btn { padding: 10px 20px; background: #0060CA; border: 1px solid #ddd; border-bottom: none; cursor: pointer; font-weight: bold; }
        .tab-btn.active { background: #0056b3; color: white; border-color: #0056b3; }
        
        .tab-content { display: none; padding: 20px; border: 1px solid #ddd; border-radius: 5px; background: #fff; }
        .tab-content.active { display: block; background-color:#1C2638;}
        
        .tech-table { width: 100%; border-collapse: collapse; }
        .tech-table th, .tech-table td { padding: 12px; border: 1px solid #ddd; text-align: right; }
        .tech-table th { background: #1C2638; width: 40%; }
        
        .pdf-download-box { background: #1C2638; border: 1px solid #f5c6cb; padding: 20px; border-radius: 8px; text-align: center; }
        .btn-pdf { display: inline-block; padding: 10px 20px; background: #dc3545; color: white; text-decoration: none; border-radius: 5px; margin-top: 10px; }

        /* اصلاح رنگ فیلد ایمیل و رمز عبور هنگام فوکوس */
input[type="email"]:focus,
input[type="password"]:focus,
.form-control[type="email"]:focus,
.form-control[type="password"]:focus {
    background-color: transparent !important; /* یا رنگ پس‌زمینه فرم شما */
    color: #fff !important; 
    border-color: #00e5ff; 
    outline: none;
}

/* جلوگیری از تغییر رنگ فیلدهای ایمیل و رمز عبور هنگام Autofill مرورگر */
input[type="email"]:-webkit-autofill,
input[type="email"]:-webkit-autofill:hover,
input[type="email"]:-webkit-autofill:focus,
input[type="email"]:-webkit-autofill:active,
input[type="password"]:-webkit-autofill,
input[type="password"]:-webkit-autofill:hover,
input[type="password"]:-webkit-autofill:focus,
input[type="password"]:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a2e inset !important; /* رنگ #1a1a2e را با پس‌زمینه فرم جایگزین کنید */
    -webkit-text-fill-color: #fff !important; 
    transition: background-color 5000s ease-in-out 0s;
}

.password-wrapper {
    position: relative;
    display: block; /* یا flex بسته به ساختار فرم شما */
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-left: 45px; /* ایجاد فضای خالی در سمت چپ برای قرارگیری آیکون */
    padding-right: 15px;
}

.toggle-password {
    position: absolute;
    left: 15px; /* فاصله آیکون از سمت چپ */
    top: 50%;
    transform: translateY(-50%); /* قرارگیری دقیق در مرکز عمودی فیلد */
    cursor: pointer;
    color: #888; /* رنگ پیش‌فرض آیکون SVG */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #333; /* تغییر رنگ آیکون هنگام قرار گرفتن ماوس روی آن */
}

/* در صورت نیاز، می‌توانید این ویژگی را برای رمز عبور و شماره تماس هم اعمال کنید */
#loginIdentifier,
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
.ltr-input {
    direction: ltr;
    text-align: left;
}


/* اطمینان از اینکه کانتینر اصلی بتواند عناصر absolute را نگه دارد */
.product-card-row {
    position: relative;
}

/* کانتینر بج‌ها */
.corner-badges-container {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

/* استایل پایه بج - شبیه به دکمه‌های سایت */
.corner-badge {
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px; /* گوشه‌های کاملا گرد مثل دکمه تصویر */
    text-align: center;
    background-color: rgba(15, 23, 42, 0.85); /* پس‌زمینه تیره و کمی شیشه‌ای */
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
}

/* --- استایل‌های نئونی برای حالت‌های مختلف --- */

/* فیروزه‌ای (هماهنگ با دکمه تصویر شما) - برای محصولات جدید */
.badge-new {
    color: #00e5ff; /* رنگ متن فیروزه‌ای */
    border: 1px solid #00e5ff; /* حاشیه فیروزه‌ای */
    /* سایه بیرونی و داخلی برای ایجاد درخشش نئونی */
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.4), 
                inset 0 0 4px rgba(0, 229, 255, 0.2);
}

/* قرمز/صورتی نئونی - برای فروش ویژه */
.badge-hot {
    color: #ff2a5f;
    border: 1px solid #ff2a5f;
    box-shadow: 0 0 8px rgba(255, 42, 95, 0.4), 
                inset 0 0 4px rgba(255, 42, 95, 0.2);
}

/* طلایی نئونی - برای تخفیف‌ها */
.badge-sale {
    color: #ffb800;
    border: 1px solid #ffb800;
    box-shadow: 0 0 8px rgba(255, 184, 0, 0.4), 
                inset 0 0 4px rgba(255, 184, 0, 0.2);
}

/* خاکستری/سفید - برای ناموجود */
.badge-sold {
    color: #9ca3af;
    border: 1px solid #9ca3af;
    box-shadow: 0 0 8px rgba(156, 163, 175, 0.3), 
                inset 0 0 4px rgba(156, 163, 175, 0.1);
}

/* بنفش نئونی - برای توصیه شده */
.badge-recommended {
    color: #b829ff;
    border: 1px solid #b829ff;
    box-shadow: 0 0 8px rgba(184, 41, 255, 0.4), 
                inset 0 0 4px rgba(184, 41, 255, 0.2);
}

/* نارنجی نئونی - برای پرفروش‌ترین (پیشنهاد اضافی) */
.badge-popular {
    color: #ff7300;
    border: 1px solid #ff7300;
    box-shadow: 0 0 8px rgba(255, 115, 0, 0.4), 
                inset 0 0 4px rgba(255, 115, 0, 0.2);
}

/* استایل پایه برای تمام بج‌ها (Border و Glow یکسان) */
.corner-badge {
    border: 1px solid #00f3ff;
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.4), 
                inset 0 0 4px rgba(0, 243, 255, 0.2);
    /* سایر استایل‌های پایه مانند padding و border-radius که از قبل دارید */
}

/* فقط تغییر رنگ متن */
.badge-new {
    color: #00f3ff;
}
.badge-hot {
    color: #ff0055;
}
.badge-sale {
    color: #ffcc00;
}
.badge-recommended {
    color: #b829ff;
}
.badge-popular {
    color: #ff7300;
}

/* استایل‌های رنگی کامل (متن، حاشیه، سایه و پس‌زمینه شفاف) */

.badge-new {
    color: #00f3ff;
    border: 1px solid #00f3ff;
    background-color: rgba(0, 243, 255, 0.1); /* پس‌زمینه شیشه‌ای */
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.4), 
                inset 0 0 4px rgba(0, 243, 255, 0.2);
}

.badge-hot {
    color: #ff0055;
    border: 1px solid #ff0055;
    background-color: rgba(255, 0, 85, 0.1);
    box-shadow: 0 0 8px rgba(255, 0, 85, 0.4), 
                inset 0 0 4px rgba(255, 0, 85, 0.2);
}

.badge-sale {
    color: #ffcc00;
    border: 1px solid #ffcc00;
    background-color: rgba(255, 204, 0, 0.1);
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.4), 
                inset 0 0 4px rgba(255, 204, 0, 0.2);
}

.badge-recommended {
    color: #b829ff;
    border: 1px solid #b829ff;
    background-color: rgba(184, 41, 255, 0.1);
    box-shadow: 0 0 8px rgba(184, 41, 255, 0.4), 
                inset 0 0 4px rgba(184, 41, 255, 0.2);
}

.badge-popular {
    color: #ff7300;
    border: 1px solid #ff7300;
    background-color: rgba(255, 115, 0, 0.1);
    box-shadow: 0 0 8px rgba(255, 115, 0, 0.4), 
                inset 0 0 4px rgba(255, 115, 0, 0.2);
}

/* --- 1. کانتینر اصلی دربرگیرنده گالری و اطلاعات --- */
.product-details-container {
    display: flex;
    flex-direction: row; /* گالری و خلاصه محصول کنار هم قرار می‌گیرند */
    gap: 40px; /* فاصله بین گالری و متن اطلاعات */
    align-items: flex-start; /* چسبیدن المان‌ها به بالای کانتینر */
    width: 100%;
    background-color: #253144;
    padding: 10px;
    border-radius: 10px;
}

/* --- 2. ستون گالری (سمت راست) --- */
.gallery-wrapper {
    flex: 1; /* عرض برابر یا درصدی */
    max-width: 50%;
    display: flex;
    flex-direction: column; /* این دستور باعث می‌شود تصویر اصلی و تامنیل‌ها زیر هم قرار بگیرند */
    align-items: center; /* تامنیل‌ها و تصویر اصلی را نسبت به هم وسط‌چین می‌کند */
    gap: 15px; /* فاصله دقیق و استاندارد بین تصویر اصلی و تامنیل‌ها */
    height: fit-content; /* اضافه شدن این خط برای تنظیم ارتفاع بر اساس محتوا */
}

/* --- 3. بخش تصویر اصلی --- */
.main-image-container {
    width: 100%;
    /* max-width: 500px; - این خط را در صورت نیاز می‌توانید حذف کنید تا کادر به صورت کامل فضای سمت راست را پر کند */
    aspect-ratio: 16 / 9;
     /*background-color: #1a1e29; اگر می‌خواهید کادر تیره داشته باشد */
    /* background-color: transparent; - اگر می‌خواهید پس‌زمینه کادر نامرئی باشد */
    background: linear-gradient(145deg, #061829, #242E40);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 10px 20px;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* جلوگیری از برش خوردن عکس */
        border: 1px solid rgba(255, 255, 255, 0.15); /* خط سفید کم‌رنگ */
    border-radius: 10px; /* گرد کردن گوشه‌ها (اختیاری) */
    box-sizing: border-box;
}

/* --- 4. بخش تامنیل‌ها --- */
.thumbnail-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start; /* این دستور در حالت RTL تامنیل‌ها را به سمت راست می‌برد */
    margin-top: 5px; /* تنظیم و کاهش فاصله تامنیل از عکس اصلی (این عدد را می‌توانید به دلخواه کم و زیاد کنید) */
    flex-wrap: wrap; /* برای جلوگیری از به هم ریختگی در صورت زیاد بودن عکس‌ها */
}

.thumbnail-container img {
    width: 65px; /* عرض تامنیل (کاهش یافته) */
    height: 65px; /* ارتفاع تامنیل (کاهش یافته) */
    object-fit: contain; /* برای جلوگیری از دفرمه شدن عکس */
    object-fit: cover; /* تامنیل‌ها به صورت مربع‌های مرتب نمایش داده شوند */
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
     background-color: #1e293b; /* پس‌زمینه تیره برای هماهنگی با تم */
    transition: all 0.3s ease;
}

/* افکت انتخاب شدن تامنیل */
.thumbnail-container img.active {
   border-color: #00e5ff; /* رنگ فیروزه‌ای دور تامنیل فعال */
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.4); /* سایه نرم */
}

/* --- 5. ستون اطلاعات محصول (سمت چپ) --- */
.product-summary {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px; /* فاصله بین عنوان، لیست و دکمه */
    padding: 14px;
}


/* --- اصلاحات واکنش‌گرایی برای موبایل و تبلت --- */
@media (max-width: 768px) {
    /* تغییر چیدمان کانتینر اصلی به ستونی */
    .product-details-container {
        flex-direction: column !important;
        gap: 20px;
    }

    /* اختصاص عرض کامل به گالری تصاویر */
    .gallery-wrapper {
        max-width: 100% !important;
        width: 100%;
        margin-bottom: 15px;
    }

    /* اختصاص عرض کامل به بخش اطلاعات محصول */
    .product-info { /* اگر کلاس کانتینر متن متفاوت است، نام آن را جایگزین کنید */
        max-width: 100% !important;
        width: 100%;
    }

    /* اطمینان از اینکه تامنیل‌ها در موبایل افقی چیده می‌شوند */
    .thumbnail-container {
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* اصلاح سایز فونت عنوان در موبایل (اختیاری) */
    .product-title {
        font-size: 1.5rem;
        text-align: center;
    }
}


/* استایل بج ویرایش برای ادمین */
a.badge-admin-edit {
    background-color: #f59e0b; /* رنگ زرد/نارنجی هشدار برای تمایز */
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

a.badge-admin-edit:hover {
    background-color: #d97706;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
}


