/* =========================================
RESET
========================================= */
*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:"Dana",sans-serif;
overflow-x:hidden;
background:#f4f6fb;
color:#1f2937;
}

/* =========================================
VARIABLES
========================================= */
:root{

--blue:#3E63D7;
--blueLight:#5D8CFF;
--blueDark:#183A90;

--green:#19C38F;
--greenDark:#12A97B;

--header-bg:#183A90;
--surface-bg:#ffffff;
--mobile-active-bg:#dbe8f8;

--text-dark:#1f2937;
--text-light:#ffffff;

--border-soft:#e5e7eb;

--transition-fast:0.18s cubic-bezier(.4,0,.2,1);
--transition-smooth:0.28s cubic-bezier(.4,0,.2,1);

}

/* =========================================
HEADER
========================================= */

.header-wrapper{
width:100%;
background:var(--header-bg);
position:sticky;
top:0;
z-index:1000;
padding:18px 40px;
border-bottom:1px solid rgba(255,255,255,.08);
}

.header-container{
max-width:1600px;
margin:auto;
display:flex;
align-items:center;
justify-content:space-between;
}
/* استایل کانتینر برند */
.brand-container {
    color: #75aff1;
  display: flex;
  align-items: center;
  gap: 6px; /* فاصله لوگو و متن */
  flex-direction: row-reverse; /* این باعث میشه لوگو بره سمت راست، متن سمت چپ */
}

.site-logo-img {
  height: 60px; /* اندازه لوگو رو اینجا تنظیم کن */
  width: auto;
  margin-right: 20px;
}

.site-title-en {
  font-size: 1.5rem;
  color: var(--text-main);
  margin: 0;
  /* فونت انگلیسی مدنظرت رو اینجا بده */
  /* font-family: 'Poppins', sans-serif; */
}

/* اصلاح بخش راست برای موبایل */
@media (max-width: 1024px) {
  .header-right {
    gap: 10px;
  }
}

/* =========================================
SIDES
========================================= */

.header-side{
flex:1;
display:flex;
align-items:center;
gap:20px;
}

.header-right{
justify-content:flex-start;
}

.header-left{
justify-content:flex-end;
    display: flex;
    align-items: center;
    gap: 0px; /* از 14 یا 20 که معمولاً هست کمتر می‌کنیم */

}

/* =========================================
LOGO
========================================= */

.site-logo{
font-size:34px;
color:#ffffff !important;
font-weight:800;
cursor:pointer;
transition:var(--transition-fast);
}

.site-logo:hover{
transform:scale(1.05);
color:var(--blueLight);
}

/* =========================================
NAVIGATION
========================================= */

.desktop-nav{
display:flex;
align-items:center;
gap:42px;
}

.desktop-nav-link{

position:relative;
text-decoration:none;
color:#ffffff;
font-size:15px;
font-weight:700;
transition:var(--transition-fast);

}

.desktop-nav-link:hover{

color:var(--blueLight);
transform:translateY(-2px);

}

.desktop-nav-link::after{

content:"";
position:absolute;
bottom:-6px;
left:50%;
transform:translateX(-50%);
width:0;
height:2px;
background:var(--blueLight);
border-radius:999px;
transition:var(--transition-smooth);

}

.desktop-nav-link:hover::after{
width:100%;
}

/* =========================================
LOGIN BUTTON
========================================= */

.login-btn{

background: linear-gradient(
135deg,
#4F8CFF 0%,
#3E63D7 35%,
#2746B6 70%,
#1A2F80 100%
);

color:#fff;
border:none;

padding:11px 24px;

border-radius:14px;

font-weight:700;
font-size:14px;

cursor:pointer;

position:relative;
overflow:hidden;

transition:all .35s ease;

box-shadow:
0 6px 18px rgba(62,99,215,.28),
0 2px 6px rgba(0,0,0,.08);


    white-space: nowrap;
    display: inline-flex;
    align-items: center;
     margin-left: 0 !important;
    margin-right: 0 !important;
}


/* افکت براق حرفه‌ای */

.login-btn::before{

content:"";

position:absolute;
top:0;
left:-120%;

width:90%;
height:100%;

background:linear-gradient(
90deg,
transparent,
rgba(255,255,255,.22),
transparent
);

transform:skewX(-25deg);

transition:.7s;

}

.login-btn:hover::before{
left:130%;
}

.login-btn:hover{

background: linear-gradient(
135deg,
#6BA5FF 0%,
#4F7DFF 30%,
#3557D6 65%,
#22379B 100%
);

transform:translateY(-4px);

box-shadow:
0 14px 30px rgba(62,99,215,.35),
0 6px 14px rgba(0,0,0,.12);

}



/* =========================================
CART BUTTON
========================================= */


.cart-btn{

background:transparent;
border:none;
cursor:pointer;

display:flex;
align-items:center;
justify-content:center;

color:#ffffff;

font-size:22px;

padding:10px;

border-radius:12px;

transition:all .25s ease;

}

/* آیکون svg */

.cart-btn svg{

width:24px;
height:24px;
fill:currentColor;

}

/* hover */

.cart-btn:hover{

background:#ffffff; /* بکگراند سفید */

color:var(--blue); /* آیکون آبی */

transform:translateY(-3px); /* بالا آمدن */

box-shadow:0 8px 20px rgba(62,99,215,.35); /* سایه آبی */

}


/* =========================================
HAMBURGER
========================================= */

.menu-btn{

display:none;
background:none;
border:none;
color:#ffffff;
cursor:pointer;
font-size:28px;
padding:5px;

}

/* =========================================
SIDE MENU
========================================= */

.side-menu{

position:fixed;
top:0;
right:0;
width:290px;
height:100vh;

background:var(--surface-bg);

padding:24px;

display:flex;
flex-direction:column;

transform:translateX(100%);

transition:transform var(--transition-smooth);

z-index:3000;

box-shadow:-10px 0 30px rgba(15,23,42,.2);

}

.active-menu{
transform:translateX(0);
}

/* =========================================
MENU HEADER
========================================= */

.menu-header{

display:flex;
align-items:center;
justify-content:space-between;

margin-bottom:20px;

}

.menu-title{

font-size:30px;
font-weight:800;
color:var(--blue);

}

.menu-close{

background:none;
border:none;
color:#6b7280;
font-size:24px;
cursor:pointer;
transition:var(--transition-fast);

}

.menu-close:hover{

color:#1f2937;
transform:rotate(-15deg);

}

/* =========================================
DIVIDER
========================================= */

.menu-divider{

width:100%;
height:1px;
background:var(--border-soft);
margin-bottom:20px;

}

/* =========================================
MENU NAV
========================================= */

.menu-nav{

display:flex;
flex-direction:column;
gap:10px;

}

.menu-item{

text-decoration:none;

color:var(--text-dark);

padding:14px 16px;

border-radius:14px;

transition:var(--transition-fast);

font-size:15px;

display:flex;
align-items:center;
justify-content:space-between;

}

.menu-item:hover{

background:rgba(62,99,215,.1);

color:var(--blue);

transform:translateX(-4px);

}

.menu-item.active{

background:var(--mobile-active-bg);

color:var(--blue);

position:relative;

}

.menu-item.active::after{

content:"";
position:absolute;

left:8px;
top:8px;
bottom:8px;

width:3px;

border-radius:999px;

background:var(--blue);

}

/* =========================================
OVERLAY
========================================= */

.overlay{

position:fixed;
inset:0;

background:rgba(15,23,42,.45);

opacity:0;
visibility:hidden;

transition:opacity var(--transition-smooth),visibility var(--transition-smooth);

z-index:2000;

}

.overlay.active{

opacity:1;
visibility:visible;

}

/* =========================================
RESPONSIVE
========================================= */

@media (max-width:1024px){

.menu-btn{
display:flex;
}

.desktop-nav{
display:none;
}

.header-wrapper{
padding:16px 20px;
}

.site-logo{
font-size:28px;
}

.login-btn{
padding:8px 14px;
font-size:13px;
}

}

@media (max-width:768px){

.header-wrapper{
padding:14px 16px;
}

.login-btn{
padding:7px 12px;
font-size:12px;
}

.side-menu{
width:100%;
max-width:300px;
}

}


/* Extra Small Mobile (under 340px) */
@media (max-width: 340px) {

    .site-logo {
        font-size: 20px; /* کوچکتر شدن لوگو */
        line-height: 1.1;
    }

    .login-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .cart-btn svg {
        width: 20px;
        height: 20px;
    }

    .menu-btn {
        font-size: 24px;
    }
}
:root {
  --search-bg: rgba(255, 255, 255, 0.08);
  --search-border: rgba(255, 255, 255, 0.12);
  --search-placeholder: rgba(255, 255, 255, 0.65);
  --search-icon: #bcd4ff;
  --search-focus: #4F8CFF;
  --search-dropdown-bg: #ffffff;
  --search-dropdown-border: #e5e7eb;
  --search-dropdown-text: #111827;
  --search-muted: #6b7280;
  --search-hover: #f3f6fb;
  --search-active: #eef4ff;
  --search-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

body.dark {
  --search-bg: rgba(255, 255, 255, 0.06);
  --search-border: rgba(255, 255, 255, 0.10);
  --search-text: #f8fafc;
  --search-placeholder: rgba(226, 232, 240, 0.7);
  --search-icon: #93c5fd;
  --search-focus: #60a5fa;
  --search-dropdown-bg: #0f172a;
  --search-dropdown-border: #1e293b;
  --search-dropdown-text: #f8fafc;
  --search-muted: #94a3b8;
  --search-hover: #162033;
  --search-active: #1d2a44;
  --search-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* =========================
HEADER SEARCH
========================= */

.header-search {
  position: relative;
  width: min(420px, 34vw);
  margin-left: 14px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  border-radius: 18px;
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: 
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.search-box:focus-within {
  border-color: var(--search-focus);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.16);
  transform: translateY(-1px);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--search-icon);
  margin-right: 16px;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--search-text);
  font-size: 14px;
  font-weight: 500;
  padding: 0 12px;
  font-family: inherit;
  text-align: right;
}

.search-input::placeholder {
  color: var(--search-placeholder);
}

.search-clear {
  width: 34px;
  height: 34px;
  margin-left: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--search-icon);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.search-clear:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: scale(1.05);
}

.search-clear.show {
  display: inline-flex;
}

/* =========================
DROPDOWN
========================= */

.search-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 100%;
  background: var(--search-dropdown-bg);
  border: 1px solid var(--search-dropdown-border);
  border-radius: 20px;
  box-shadow: var(--search-shadow);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
  z-index: 5000;
}

.search-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--search-dropdown-border);
  color: var(--search-dropdown-text);
  font-size: 13px;
  font-weight: 700;
}

.search-count {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 140, 255, 0.12);
  color: var(--search-focus);
  font-size: 12px;
  font-weight: 800;
}

.search-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--search-dropdown-text);
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover {
  background: var(--search-hover);
}

.search-result-item.active {
  background: var(--search-active);
}

.search-result-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(79, 140, 255, 0.12);
  color: var(--search-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.search-result-content {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--search-dropdown-text);
}

.search-result-desc {
  font-size: 12.5px;
  color: var(--search-muted);
  line-height: 1.8;
}

.search-result-type {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--search-focus);
  background: rgba(79, 140, 255, 0.08);
  padding: 4px 8px;
  border-radius: 999px;
}

.search-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--search-muted);
  font-size: 13px;
  line-height: 1.9;
}

/* =========================
MOBILE
========================= */

.mobile-search-box {
  display: none;
  margin: 18px 0 10px;
  position: relative;
  align-items: center;
  height: 50px;
  border-radius: 16px;
  border: 1px solid var(--search-dropdown-border);
  background: var(--search-dropdown-bg);
  padding: 0 12px;
}

.mobile-search-box .search-icon {
  margin-right: 0;
  margin-left: 8px;
  color: var(--search-muted);
}

.mobile-search-box .search-input {
  color: var(--search-dropdown-text);
}

.mobile-search-box .search-input::placeholder {
  color: var(--search-muted);
}

@media (max-width: 1200px) {
  .header-search {
    width: min(320px, 30vw);
  }
}

@media (max-width: 1024px) {
  .header-search {
    display: none;
  }

  .mobile-search-box {
    display: flex;
  }
}
.search-result-title mark,
.search-result-desc mark {
  background: rgba(79, 140, 255, 0.18);
  color: inherit;
  padding: 0 4px;
  border-radius: 6px;
}
:root {
    --s-bg: rgba(255, 255, 255, 0.05);
    --s-border: rgba(255, 255, 255, 0.1);
    --s-focus: #3e63d7;
    --s-text: #fff;
}

body.dark {
    --s-bg: rgba(0, 0, 0, 0.2);
    --s-border: rgba(255, 255, 255, 0.05);
}

.header-search-v2 {
    position: relative;
    width: 320px;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5000;
}

.header-search-v2:focus-within {
    width: 450px;
}

.search-field {
    display: flex;
    align-items: center;
    background: var(--s-bg);
    border: 1px solid var(--s-border);
    border-radius: 16px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-search-v2:focus-within .search-field {
    background: var(--search-dropdown-bg); /* از متغیرهای قبلی */
    border-color: var(--s-focus);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#searchInputV2 {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    /* رنگ آبی ملایم و شفاف برای متن تایپ شده */
    color: #bcd4ff; 
    padding: 10px;
    font-size: 14px;
    direction: rtl;
    font-weight: 500;
}
/* انیمیشن لودینگ */
.search-status-icon {
    position: relative;
    width: 20px;
    height: 20px;
    color: var(--s-focus);
}

.search-loader {
    position: absolute;
    inset: 0;
    border: 2px solid var(--s-focus);
    border-top-color: transparent;
    border-radius: 50%;
    display: none;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading .icon-search { display: none; }
.loading .search-loader { display: block; }

/* کیبورد Shortcut */
.search-kbd {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--s-border);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #888;
    margin-right: 10px;
}

/* Overlay Results */
.search-overlay-v2 {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 100%;
    background: var(--search-dropdown-bg);
    border-radius: 20px;
    border: 1px solid var(--search-dropdown-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header-search-v2:focus-within .search-overlay-v2.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Group Styling */
.search-group-title {
    padding: 15px 20px 5px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--s-focus);
    font-weight: 900;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 15px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: var(--search-dropdown-text);
}

.search-item:hover, .search-item.selected {
    background: var(--search-hover);
    padding-right: 28px; /* افکت کشویی */
}

.search-item .item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(62, 99, 215, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.search-footer {
    padding: 12px 20px;
    background: rgba(0,0,0,0.03);
    border-top: 1px solid var(--search-dropdown-border);
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #777;
}
.search-actions {
    display: flex;
    align-items: center;
    margin-right: auto; /* هل دادن ضربدر به سمت چپ */
    padding-left: 5px;
}
.clear-btn {
    background: transparent;
    border: none;
    color: rgba(188, 212, 255, 0.7);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    display: none; /* فقط وقتی متن هست نشان داده شود */
    transition: color 0.2s;
}
.clear-btn:hover {
    color: #fff;
}
.has-text .clear-btn {
    display: block;
}
.search-kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-family: sans-serif;
    color: var(--search-muted);
    background: rgba(120, 120, 120, 0.1);
    border: 1px solid var(--search-border);
    border-radius: 4px;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* وقتی کاربر شروع به تایپ میکند، اسلش محو شود */
.header-search-v2:focus-within .search-kbd {
    opacity: 0;
}
#searchInputV2::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
#searchInputV2 {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--search-text);
    padding: 10px;
    font-size: 14px;
    direction: rtl;
}
.search-query-hint {
    padding: 12px 20px;
    font-size: 13px;
    border-bottom: 1px solid var(--search-dropdown-border);
    color: var(--search-muted);
}

.highlight-text {
    color: var(--s-focus);
    font-weight: bold;
}

.search-item mark {
    background: rgba(62, 99, 215, 0.15);
    color: var(--s-focus);
    border-radius: 2px;
    padding: 0 2px;
}

/* ==============================
THEME SWITCHER IN MOBILE MENU
============================== */
/* Toggle wrapper */
.theme-switch {
     display: inline-block;
    align-items: center;
    cursor: pointer;
}

/* Hide default checkbox */
.theme-switch input {
    display: none;
}

/* Base slider */
.switch-slider {
    position: relative;
    width: 64px;
    height: 32px;
    background: #dfe6ee;
    border-radius: 40px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .3s ease;
}
/* دکمه آیکون جستجو */
.search-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--search-icon, #555);
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s;
}
.search-toggle-btn:hover {
  background: var(--search-hover, rgba(0, 0, 0, 0.05));
}

/* لایه تار کننده کل صفحه */
.search-blur-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 900;
}
.search-blur-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* سرچ باکس به صورت پاپ‌آپ - مخفی به صورت پیش‌فرض */
#searchPopup {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: min(640px, 90vw);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 950;
}
#searchPopup.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Icons */
.switch-slider .icon {
    font-size: 17px;
    pointer-events: none;
}

.switch-slider .moon {
    color: #cbd5e1;
    margin-left: 10px;
}

.switch-slider .sun {
    color: #f59e0b;
    margin-right: 10px;
}

/* Moving circle (thumb) */
.thumb {
     position: absolute;
    width: 26px;
    height: 26px;
    background: #ffffff;
    border-radius: 50%;
    left: 3px;
    top: 3px;
    transition: transform .28s ease;
}

/* --------------------------
   ACTIVE: Sun mode (checked)
--------------------------- */
.theme-switch input:checked + .switch-slider {
   background: #1d2533; /* روشن وقتی خورشید فعال است */
}

.theme-switch input:checked + .switch-slider .thumb {
    transform: translateX(30px);
}

/* header dark mod */

/* ---------------------------
   DARK MODE FOR HEADER (ALL)
---------------------------- */

/* خود هدر */
body.dark header {
    background: #0f172a !important;
    border-bottom-color: #1e293b !important;
}

/* لوگو */
body.dark .site-logo {
    color: var(--blue) !important;
}

/* لینک‌های دسکتاپ */
body.dark .desktop-nav-link {
    color: #cbd5e1 !important;
}

body.dark .desktop-nav-link:hover {
    color: #ffffff !important;
}


.login-btn:active{

transform:scale(.97);

box-shadow:
0 4px 10px rgba(62,99,215,.2);

}

/* دکمه ورود / ثبت‌نام */

body.dark .login-btn{

background: linear-gradient(
135deg,
#5AA2FF 0%,
#4678FF 35%,
#3157D4 70%,
#1E347E 100%
);

color:#fff;

box-shadow:
0 8px 24px rgba(76,120,255,.32);

}

body.dark .login-btn:hover{

background: linear-gradient(
135deg,
#74B2FF 0%,
#5D8CFF 30%,
#4166E0 65%,
#2840A0 100%
);

box-shadow:
0 16px 34px rgba(93,140,255,.42);

}


/* سبد خرید در دارک مود */
body.dark .cart-btn {
    color: var(--blue) !important;
    transition: all .25s ease;
}

/* هاور سبد خرید */
body.dark .cart-btn:hover {
    background: rgba(62,99,215,.45) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgb(175, 195, 255);
}

/* رنگ خود SVG هنگام هاور */
body.dark .cart-btn:hover svg {
    fill: var(--#ffffff);
}

/* دکمه منوی موبایل */
body.dark .menu-toggle-btn span {
    background: #ffffff !important;
}

/* پس‌زمینه ساید منو موبایل */
body.dark .side-menu {
    background: #1e293b !important;
}

/* لینک‌های منوی موبایل */
body.dark .menu-item {
    color: #e2e8f0 !important;
}

body.dark .menu-item:hover {
    background: rgba(255,255,255,0.08) !important;
}

/* اورلی منوی موبایل */
body.dark .overlay {
    background: rgba(0,0,0,0.55) !important;
}
.theme-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.theme-switch input {
  display: none;
}

.switch-slider {
  position: relative;
  width: 64px;
  height: 32px;
  background: #dfe6ee;
  border-radius: 40px;
  overflow: hidden;
  transition: background .3s ease;
}

/* آیکون‌ها */
.switch-slider .icon {
    position: absolute;
    top: 50%;
    font-size: 15px;
    pointer-events: none;
    z-index: 4;
}

/* خورشید */
.switch-slider .sun {
    left: 8px;
    transform: translateY(-50%);
    margin-top: 2px; /* پایین‌تر */
}

/* ماه */
.switch-slider .moon {
    right: 8px;
    transform: translateY(-50%);
    margin-top: 2px; /* پایین‌تر */
}


/* دکمه سفید */
.switch-slider .thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  z-index: 3;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}

/* حالت checked */
#toggleTheme:checked ~ .switch-slider {
  background: #1d2533;
}
#toggleTheme:checked ~ .switch-slider .thumb{
    transform: translateX(26px);
}


/* =========================
DESKTOP ONLY DARK MODE BUTTON
========================= */

.desktop-theme-switch{
display:flex;
align-items:center;
margin-right:14px;
}

/* موبایل و تبلت مخفی شود */

@media (max-width:1025px){

.desktop-theme-switch{
display:none !important;
}

}


/* main */
/* ===========================
   RESPONSIVE IMPROVEMENTS
   =========================== */

/* ===========================
   HERO SLIDER (FULL CSS)
   =========================== */

.hero-slider {
    width: 100%;
    height: 100vh;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Slide Image */
.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.slide.active .slide-img {
    transform: scale(1);
}

/* Overlay */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.55)
    );
}
.slide-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* قرارگیری روی عکس و لایه‌های دیگر */
  display: block;
  text-decoration: none;
  background-color: transparent; /* نامرئی بودن */
}

/* اگر می‌خواهی وقتی کاربر روی اسلاید نگه می‌دارد (Hover) نشانگر ماوس تغییر کند */
.slide-link:hover {
  cursor: pointer;
}

/* ===========================
   CENTER CONTENT (Glass Morph)
   =========================== */



/* Fade + Blur + Scale Animation */
@keyframes contentFade {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%) scale(0.9);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

.slide-content h2 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    animation: titleUp 1s 0.3s both;
}

.slide-content p {
    font-size: 18px;
    opacity: 0.9;
    animation: textUp 1s 0.6s both;
}

/* Title Animation */
@keyframes titleUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Paragraph Animation */
@keyframes textUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   DESKTOP NAVIGATION ARROWS
   =========================== */

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;

    width: 100%;
    display: flex;
    justify-content: space-between;

    transform: translateY(-50%);
    padding: 0 22px;

    pointer-events: none;
}

.nav-btn {
    pointer-events: all;

    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(7px);

    color: white;
    width: 48px;
    height: 48px;

    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

/* ===========================
   RESPONSIVE IMPROVEMENTS
   =========================== */

@media (max-width: 768px) {

    .hero-slider {
        height: 55vh;
        min-height: 360px;
    }

    .slide-content {
        width: 80%;
        padding: 22px 28px;
        border-radius: 16px;
    }

    .slide-content h2 {
        font-size: 22px;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .slide-content p {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {

    .hero-slider {
        height: 50vh;
        min-height: 300px;
    }

    .slide-content {
        width: 85%;
        padding: 18px 24px;
        border-radius: 14px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .slide-content p {
        font-size: 13px;
    }
}

/* =========================================
   HERO SLIDER — DARK MODE
========================================= */

body.dark .hero-slider {
    background: #0f172a; /* بک‌گراند fallback در صورت لود نشدن عکس */
}

/* تیره کردن عکس پس‌زمینه برای خوانایی بهتر */
body.dark .slide-img {
    filter: brightness(0.55) contrast(1.1);
}

/* Overlay تیره‌تر در حالت دارک */
body.dark .slide-overlay {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.85)
    ) !important;
}

/* رنگ متن */
body.dark .slide-content {
    color: #ffffff !important;
}

body.dark .slide-content h2 {
    color: #f8fafc !important; /* سفید شفاف و چشم‌نواز */
}

body.dark .slide-content p {
    color: rgba(255,255,255,0.85) !important;
}

/* دکمه‌های ناوبری */
body.dark .nav-btn {
    background: rgba(255,255,255,0.10) !important;
    border-color: rgba(255,255,255,0.25) !important;
    color: #ffffff !important;
}

body.dark .nav-btn:hover {
    background: rgba(255,255,255,0.20) !important;
}
/* =========================
    STATS SECTION
========================= */

.pro-stats-section {
  width: 100%;
  padding: 90px 20px;
  background: linear-gradient(180deg,#f7f9fc 0%,#eef3ff 100%);
  position: relative;
  overflow: hidden;
}

body.dark .pro-stats-section {
  background: linear-gradient(180deg,#0f172a 0%,#1e293b 100%);
}

.stats-wrapper {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  position: relative;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 50px 20px 44px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(62,99,215,0.1);
  transition: transform .4s ease, box-shadow .4s ease;
}

body.dark .stat-card {
  background: rgba(30,41,59,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}

.stat-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 16px 45px rgba(62,99,215,0.2);
}

.stat-icon {
  font-size: 42px;
  margin-bottom: 18px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.stat-number {
  font-size: 46px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
  transition: color .3s;
}

body.dark .stat-number {
  color: #7aa2ff;
}

.stat-title {
  color: #64748b;
  font-weight: 600;
}

body.dark .stat-title {
  color: #cbd5e1;
}

/* Responsive */
@media(max-width: 992px){
  .stats-wrapper {
    grid-template-columns: repeat(2,1fr);
  }
}
@media(max-width: 576px){
  .stats-wrapper {
    grid-template-columns: 1fr;
  }
  .stat-number { font-size: 38px; }
}

@media (max-width: 768px) {
  .stats-wrapper {
    grid-template-columns: 1fr 1fr; /* دو ستون در موبایل */
    gap: 1rem;
    padding: 0 1rem;
  }

  .stat-card {
    padding: 1.2rem 0.8rem;
    border-radius: 12px;
  }

  .stat-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .stat-title {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .stats-wrapper {
    grid-template-columns: 1fr; /* فقط یک کارت در هر ردیف */
    gap: 0.8rem;
  }

  .stat-card {
    padding: 1rem 0.6rem;
  }

  .stat-icon {
    font-size: 1.6rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-title {
    font-size: 0.8rem;
  }
}
/* کاهش ارتفاع اسلایدر در موبایل */
@media (max-width: 768px) {
  .slider-container,
  .hero-slider {
    height: 65vh !important;
  }

  .hero-slide img {
    height: 65vh !important;
    object-fit: cover;
  }
}
/* Container */
/* ====== بخش اصلی ====== */
.stats-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

/* ====== متن هدر ====== */
.stats-title-text {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0057ff, #00c2ff, #4cf1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

/* ====== خط زیر عنوان ====== */
.stats-title-line {
  width: 120px;
  height: 4px;
  margin: 0.7rem auto 0;
  background: linear-gradient(90deg, #0057ff, #00c2ff);
  border-radius: 50px;
  animation: lineGrow 1.2s ease forwards;
  transform: scaleX(0);
  transform-origin: center;
}

/* ====== ریسپانسیو ====== */
@media (max-width: 768px) {
  .stats-title-text {
    font-size: 1.3rem;    /* کوچیک‌تر از نسخه قبلی */
    letter-spacing: -0.2px;
  }

  .stats-title-line {
    width: 70px;
    height: 3px;
  }

  .stats-section-title {
    margin-bottom: 1.8rem;
  }
}

@media (max-width: 480px) {
  .stats-title-text {
    font-size: 1rem;      /* 👈 خیلی کوچک‌تر */
    letter-spacing: -0.1px;
  }

  .stats-title-line {
    width: 50px;
    height: 2px;
  }

  .stats-section-title {
    margin-bottom: 1.6rem;
  }
}


/* Fade-up animation */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Line animation */
@keyframes lineGrow {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .stats-title-text {
    font-size: 1.65rem;
  }
  .stats-title-line {
    width: 90px;
  }
}


/* Root section */
.mj-cooperate {
    padding: 70px 0;
    background: linear-gradient(180deg, #f6f8ff 0%, #e6edff 100%);
    position: relative;
    overflow: visible;
}

/* Container */
.mj-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Grid layout */
.mj-coop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Right side */
.mj-coop-content {
    padding-right: 28px;
}

/* Title main with gradient */
.mj-title-main {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #0057ff; /* fallback */
    background: linear-gradient(135deg, #0057ff, #00c2ff, #4cf1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    opacity: 0;
    transform: translateY(30px);
    animation: mjFadeUp .8s forwards .1s;
}

/* Sub title */
.mj-title-sub {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #1a1a1a;

    opacity: 0;
    transform: translateY(30px);
    animation: mjFadeUp .8s forwards .2s;
}

/* Text */
.mj-coop-text {
    font-size: 16px;
    color: #333;
    line-height: 1.9;
    margin-bottom: 26px;

    opacity: 0;
    transform: translateY(30px);
    animation: mjFadeUp .8s forwards .3s;
}


@keyframes mjLoaderAnim {
    from { transform: scale(1); opacity: .4; }
    to   { transform: scale(1.07); opacity: 1; }
}

/* Hidden state */
.mj-hidden {
    display: none;
}

/* Contact box */
.mj-contact-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.55);
    padding: 16px 22px;
    border-radius: 16px;
    backdrop-filter: blur(18px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.mj-contact-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Phone icon */
.mj-phone-icon {
    font-size: 26px;
}

/* Phone number */
.mj-phone-text {
    font-size: 20px;
    font-weight: 700;
    color: #0057ff;
    text-decoration: none;
    transition: color .25s ease;
}

.mj-phone-text:hover {
    color: #003fcc;
}

/* Left side image */
.mj-coop-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.14);
    opacity: 0;
    transform: translateY(30px);
    animation: mjFadeUp .9s forwards .35s;
}

/* FadeUp animation */
@keyframes mjFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media(max-width: 900px) {
    .mj-coop-grid {
        grid-template-columns: 1fr;
    }
    .mj-coop-content {
        padding-right: 0;
        text-align: center;
    }
}
/* 🔹 سکشن اصلی */
.mj-cooperate {
    padding: 100px 0; /* افزایش فاصله بالا و پایین */
    background: linear-gradient(180deg, #f6f8ff 0%, #eef3ff 100%);
    overflow: visible;
    position: relative;
}

/* 🔹 گرید اصلی محتوا */
.mj-coop-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* نسبت کمی تغییر کرد تا تصویر بزرگ‌تر دیده شود */
    align-items: center;
    gap: 50px;
    min-height: 450px; /* ارتفاع حداقلی برای کل سکشن */
}

/* 🔹 تصویر سمت چپ */
.mj-coop-image img {
    width: 100%;
    height: 600px;          /* ارتفاع مشخص و بیشتر */
    object-fit: cover;       /* تصویر رو فیت می‌کنه تا کش نیاد */
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateY(30px);
    animation: mjFadeUp 0.9s forwards .35s;
}

/* 🔹 برای اطمینان ریسپانسیو */
@media (max-width: 900px) {
  .mj-coop-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto; /* لغو ارتفاع ثابت در موبایل */
  }

  .mj-coop-image img {
    height: 280px; /* در موبایل کمی کمترش کنیم */
  }
}
/* عنوان زیر تیتر اصلی - بزرگ‌تر و شاخص‌تر */
.mj-title-sub {
    font-size: 24px; /* ↑ از 20px بیشتر شد */
    font-weight: 800;
    margin-bottom: 18px;
    color: #0a0a0a;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: mjFadeUp .8s forwards .2s;
}

/* متن توضیحات بدون تغییر چشمگیر */
.mj-coop-text {
    font-size: 16px;
    color: #333;
    line-height: 1.9;
    margin-bottom: 26px;
}

/* کارت شماره — برداشتن زمینه */
.mj-contact-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;              /* ❌ برداشتن پس‌زمینه */
    padding: 0;                    /* کاهش padding اضافه */
    backdrop-filter: none;         /* حذف شیشه‌ای بودن */
    box-shadow: none;              /* بدون سایه */
    transition: color .25s ease, transform .25s ease;
}

/* آیکون تماس */
.mj-phone-icon {
    font-size: 26px;
    color: #e91e63; /* کمی صورتی برای تضاد لطیف */
}

/* متن شماره */
.mj-phone-text {
    font-size: 22px;   /* کمی بزرگ‌تر شد تا با عنوان بخونه */
    font-weight: 700;
    color: #0057ff;
    text-decoration: none;
    letter-spacing: 0.8px;
}

.mj-phone-text:hover {
    color: #003fcc;
}
/* ================================
   📌 ترتیب موبایل (عکس بیاد بالا)
   ================================ */
@media (max-width: 900px) {

.mj-coop-image {
      width: 100%;
      max-width: 100%;
      align-self: stretch; /* خیلی مهم */
  }

  .mj-coop-image img {
      width: 100%;
      height: 500px;
      display: block;
      object-fit: cover;
  }


    .mj-coop-content {
        order: 2;
        padding-right: 0;
        text-align: center;
    }

    .mj-contact-box {
        justify-content: center;
    }

    .mj-coop-image img {
        height: 500;
        object-fit: cover;
    }

}


/* ==================================
   🌙 دارک مود (برای کل سکشن همکاری)
   ================================== */
body.dark .mj-cooperate {
    background: linear-gradient(180deg, #0d1117 0%, #111827 100%);
}

body.dark .mj-title-sub {
    color: #f8f8f8;
}

body.dark .mj-coop-text {
    color: #d0d7de;
}

body.dark .mj-phone-text {
    color: #58a6ff;
}

body.dark .mj-phone-text:hover {
    color: #1f6feb;
}

body.dark .mj-phone-icon {
    color: #ff72a6;
}

body.dark .mj-coop-image img {
    box-shadow: 0 10px 40px rgba(0,0,0,0.55);
}



:root {
    --faq-bg: #f4f7fe;
    --faq-card: #ffffff;
    --faq-question: #2563eb;
    --faq-accent: #00d1ff;
    --faq-answer: #64748b;
    --faq-border: rgba(0, 0, 0, 0.05);
}

/* هماهنگی با دکمه دارک مود هدر شما */
body.dark {
    --faq-bg: #0b1120;
    --faq-card: #1e293b;
    --faq-question: #f8fafc;
    --faq-accent: #38bdf8;
    --faq-answer: #94a3b8;
    --faq-border: rgba(255, 255, 255, 0.05);
}

.faq-section {
    background-color: var(--faq-bg);
    padding: 60px 20px;
    transition: background 0.4s ease;
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

/* استایل تایتل طبق کلاس شما */
.stats-section-title {
    text-align: center;
    margin-bottom: 40px;
}
.stats-title-text {
    color: var(--faq-accent);
    font-size: 2rem;
    font-weight: 800;
}
.stats-title-line {
    width: 60px;
    height: 4px;
    background: var(--faq-question);
    margin: 10px auto;
    border-radius: 5px;
}

/* آیتم‌های لیست */
.faq-item {
    background: var(--faq-card);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--faq-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-button {
    width: 100%;
    padding: 22px 25px;
    display: flex;
    justify-content: space-between; /* متن راست، آیکون چپ */
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}

/* تعریف متغیرها */
:root {
  --faq-text-color: #000000; /* رنگ مشکی در حالت روشن */
}

body.dark {
  --faq-text-color: #ffffff; /* رنگ سفید در حالت دارک */
}

/* اعمال متغیر به کلاس */
.question-text {
  font-weight: 700;
  color: var(--faq-text-color); /* استفاده از متغیر به جای رنگ ثابت */
  font-size: 1.05rem;
  text-align: right;
  transition: color 0.3s ease; /* برای اینکه تغییر رنگ نرم باشد */
}

/* --- طراحی آیکون پلاس/منها --- */
.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-line {
    position: absolute;
    background-color: var(--faq-accent);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* خط افقی (همیشه هست) */
.icon-line.horizontal {
    width: 100%;
    height: 2.5px;
}

/* خط عمودی (فقط در حالت پلاس هست) */
.icon-line.vertical {
    width: 2.5px;
    height: 100%;
}

/* وقتی سوال باز می‌شود (کلاس active توسط JS اضافه می‌شود) */
.faq-item.active .icon-line.vertical {
    transform: rotate(90deg); /* چرخش برای زیبایی */
    opacity: 0; /* محو شدن برای تبدیل به منها */
}

.faq-item.active {
    border-color: var(--faq-accent);
}

/* انیمیشن باز شدن متن */
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer-content {
    overflow: hidden;
}

.faq-answer-content p {
    padding: 0 25px 20px;
    color: var(--faq-answer);
    line-height: 1.7;
}
/* footer */
/* پالت رنگی خودت - دست نخورده */
:root {
    --footer-bg: #1e40af;
    --footer-card: #ffffff;
    --footer-text: #ffffff;
    --footer-border: transparent;
    --footer-accent: #93c5fd;
}

.dark {
    --footer-bg: #0f172a;
    --footer-card: #111827;
    --footer-text: #cbd5f5;
    --footer-border: transparent;
    --footer-accent: #818cf8;
}

.footer {
    background: var(--footer-bg);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.footer-inner {
    /* تغییرات اصلی اینجاست */
    max-width: 1400px; /* عریض‌تر شدن فوتر */
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px; /* فاصله بیشتر بین ستون‌ها */
    padding: 0 40px 60px; /* فاصله مناسب از بغل در حالت عریض */
    align-items: start;
}

/* افکت ها و استایل های متون */
.footer-logo {
    width: 120px; /* طبق عکس لوگوی شما جمع و جورتر بهتره */
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-5px);
}

.footer-text {
    line-height: 2;
    color: #fff; /* چون بکگراند آبی پررنگه، متن باید روشن باشه */
    font-size: 14.5px;
    opacity: 0.9;
}

.footer-links h4, .footer-trust h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 17px;
    font-weight: 700;
    position: relative;
}

/* خط زیر عنوان ها برای جذابیت بیشتر */
.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--footer-accent);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

.footer-social {
    display: flex;
    flex-direction: column;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
}

.footer-social-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: currentColor;
}

.footer-social-icon svg,
.footer-social-icon .fa,
.footer-social-icon img {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
}

.footer-social-icon .fa {
    font-size: 18px;
}

/* بخش اینماد */
.enamad {
    width: 100px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.enamad:hover {
    transform: scale(1.05) rotate(2deg);
    background: rgba(255, 255, 255, 0.2);
}

/* Skeleton Loading (برای زمانی که محتوا لود نشده) */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.footer-bottom {
    text-align: center;
    padding: 25px;
    border-top: 1px solid transparent;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.footer::before {
    display: none;
}
/* --- بخش ریسپانسیو حرفه‌ای --- */

/* برای تبلت (حالت دو ستونه) */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr; /* تبدیل به ۲ ستون */
        gap: 40px;
        padding: 0 30px 50px;
    }
}

/* برای موبایل (حالت تک ستونه - دقیقاً برای همون عکسی که فرستادی) */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr; /* همه ستون‌ها زیر هم */
        gap: 40px;
        padding: 0 20px 40px;
        text-align: center; /* وسط‌چین کردن محتوا برای زیبایی بیشتر در موبایل */
    }

    .footer-links h4::after {
        right: 50%;
        transform: translateX(50%); /* وسط‌چین کردن خط زیر عنوان‌ها */
    }

    .footer-logo {
        margin: 0 auto 20px; /* وسط‌چین کردن لوگو */
    }

    .enamad {
        margin: 0 auto; /* وسط‌چین کردن اینماد */
    }

    .footer-links a:hover {
        transform: translateY(-3px); /* در موبایل TranslateX حس خوبی نداره، بهتره بره بالا */
    }
}

/* برای موبایل‌های خیلی کوچک (مثل SE) */
@media (max-width: 350px) {
    .footer-inner {
        gap: 30px;
        padding: 0 15px 30px;
    }
    
    .footer-text {
        font-size: 13px; /* کمی کوچک‌تر برای خوانایی بهتر */
    }
}
:root {
  --sky-section-bg: #f8fafc;
  --sky-card-bg: #ffffff;
  --sky-card-border: #e2e8f0;
  --sky-card-shadow: 0 4px 15px rgba(0,0,0,0.05);

  --sky-title-color: #1e293b;
  --sky-text-color: #64748b;
  --sky-price-color: #22c55e;

  --sky-footer-border: #f1f5f9;

  --sky-arrow-bg: #ffffff;
  --sky-arrow-color: #1e293b;
  --sky-arrow-border: #e2e8f0;
  --sky-arrow-hover-bg: #3e63d7;
  --sky-arrow-hover-color: #ffffff;
  --sky-arrow-hover-border: #3e63d7;
  --sky-arrow-hover-shadow: 0 4px 12px rgba(62, 99, 215, 0.2);

  --sky-btn-bg: #3e63d7;
  --sky-btn-color: #ffffff;

  --sky-image-placeholder: #cbd5e1;
  --sky-like-color: #bbb;
  --sky-like-active: #ff3b3b;
}

body.dark {
  --sky-section-bg: #0f172a;
  --sky-card-bg: #111827;
  --sky-card-border: #1f2937;
  --sky-card-shadow: 0 10px 30px rgba(0,0,0,0.30);

  --sky-title-color: #f8fafc;
  --sky-text-color: #94a3b8;
  --sky-price-color: #4ade80;

  --sky-footer-border: #1e293b;

  --sky-arrow-bg: #111827;
  --sky-arrow-color: #e2e8f0;
  --sky-arrow-border: #334155;
  --sky-arrow-hover-bg: #3e63d7;
  --sky-arrow-hover-color: #ffffff;
  --sky-arrow-hover-border: #3e63d7;
  --sky-arrow-hover-shadow: 0 6px 18px rgba(62, 99, 215, 0.35);

  --sky-btn-bg: #3e63d7;
  --sky-btn-color: #ffffff;

  --sky-image-placeholder: #1e293b;
  --sky-like-color: #94a3b8;
  --sky-like-active: #ff5a5a;
}
.sky-section {
  padding: 50px 0;
  direction: rtl;
  background: var(--sky-section-bg);
  transition: background 0.3s ease;
}

.sky-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sky-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.sky-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 20px;
}

.sky-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-out;
  padding: 10px 5px;
}

.sky-item {
  min-width: calc(25% - 15px);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .sky-item {
    min-width: calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .sky-item {
    min-width: 85%;
  }
}

.sky-card {
  background: var(--sky-card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--sky-card-shadow);
  border: 1px solid var(--sky-card-border);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.sky-card:hover {
  transform: translateY(-4px);
}

.sky-img-box {
  width: 100%;
  height: 160px;
  background: var(--sky-image-placeholder);
  transition: background 0.3s ease;
}

.sky-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.dark .sky-img-box img {
  filter: brightness(0.9);
}

.sky-content {
  padding: 15px;
}

.sky-content h3,
.sky-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--sky-title-color);
  transition: color 0.3s ease;
}

.sky-content span {
  font-size: 13px;
  color: var(--sky-text-color);
  transition: color 0.3s ease;
}

.sky-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid var(--sky-footer-border);
  transition: border-color 0.3s ease;
}

.sky-price {
  color: var(--sky-price-color);
  font-weight: 800;
  font-size: 14px;
  transition: color 0.3s ease;
}

.sky-btn {
  background: var(--sky-btn-bg);
  color: var(--sky-btn-color);
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.sky-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(62, 99, 215, 0.22);
}

.sky-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sky-arrow {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--sky-arrow-border);
  background: var(--sky-arrow-bg);
  color: var(--sky-arrow-color);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    all 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
  outline: none;
}

.sky-arrow:hover {
  background: var(--sky-arrow-hover-bg);
  color: var(--sky-arrow-hover-color);
  border-color: var(--sky-arrow-hover-border);
  transform: scale(1.1);
  box-shadow: var(--sky-arrow-hover-shadow);
}

.sky-arrow:active {
  transform: scale(0.95);
}

#goNext {
  font-weight: bold;
}

.sky-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sky-like {
  cursor: pointer;
  font-size: 18px;
  color: var(--sky-like-color);
  transition: 0.3s;
}

.sky-like.active {
  color: var(--sky-like-active);
  transform: scale(1.1);
}
/* تنظیم رنگ کلی صفحه */
:root {
  --page-bg: #f4f7fe; /* رنگ پس‌زمینه حالت روشن */
}

body.dark {
  --page-bg: #0b1120; /* رنگ پس‌زمینه حالت دارک */
}

/* اعمال به بدنه و تگ اصلی */
body, main {
  background-color: var(--page-bg);
  transition: background-color 0.3s ease;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* اگر سکشن مقالات کلاسی مثل article-slider-section دارد */
.article-slider-section {
  background-color: var(--page-bg) !important;
  width: 100%; /* مطمئن شو که عرض کامل دارد */
}

body.dark .sky-article-item{
    background:#1e1e1e;
    color:#ddd;
}

body.dark .sky-article-desc{
    color:#aaa;
}


:root {
  --article-bg: #ffffff;
  --article-card-bg: #ffffff;
  --article-title: #222;
  --article-text: #666;
  --article-border: #d7dce9;
  --article-arrow-bg: #ffffff;
  --article-arrow-color: #1e1e1e;
  --article-btn-bg: #4f46e5;
}
body.dark {
  --article-bg: #0b1120;
  --article-card-bg: #1e293b;
  --article-title: #f8fafc;
  --article-text: #94a3b8;
  --article-border: rgba(255,255,255,0.08);
  --article-arrow-bg: #1e293b;
  --article-arrow-color: #e2e8f0;
  --article-btn-bg: #4f46e5;
}

.article-slider-section {
  width: 90%;
  max-width: 1128px;
  margin: 50px auto;
  direction: rtl;
  background: var(--article-bg);
  transition: background .3s ease;
}


/* ===== Header Layout ===== */
.article-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

/* عنوان وسط */
.article-title {
  flex: 1;
  text-align: center;
  font-size: 27px;
  font-weight: 800;
  color: #222;
}

/* مشاهده همه راست */
.article-viewall-btn {
  background: #4f46e5;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
}

/* دکمه‌های ناوبری سمت چپ */
.article-nav-buttons {
  display: flex;
  gap: 10px;
}

.article-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--article-border);
  background: var(--article-arrow-bg);
  color: var(--article-arrow-color);
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all .25s ease;
}


/* حالت هاور دقیقاً مطابق تصویر */
.article-arrow:hover {
  background: #3f51f7;         /* آبی پررنگ */
  color: #fff;                 /* فلش سفید */
  border-color: transparent;   /* حذف خط دور */
  transform: translateY(-2px); /* کمی برخاستن */
  box-shadow: 0 4px 15px #3f51f750;
}


/* ===== Slider ===== */
.article-slider-container {
  overflow:hidden;
width:100%;
direction: ltr; /* حرکت اسلایدر */
}

.article-track{
    display: flex;
    gap: 20px;
    transition: transform .4s ease;
    direction: ltr; /* مهم */gap:20px;
transition: transform .4s ease;
}


/* ===== چهار اسلاید کنار هم ===== */
.article-item{
flex: 0 0 calc(25% - 20px);
    direction: rtl;      /* متن از راست */
    text-align: right;   /* تراز متن */
}

/* ===== Card Style ===== */
.article-card {
  background: var(--article-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px #0001;
  display: flex;
  flex-direction: column;
}

.article-img {
  height: 180px;
}
.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding: 16px;
}

.article-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--article-title);
}
.article-desc {
  font-size: 14px;
  color: var(--article-text);
  line-height: 1.7;

  /* دو خطی */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-btn {
  margin-top: 16px;
  background: var(--article-btn-bg);
  color: #fff;
  padding: 7px 14px;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  cursor: pointer;
}
body.dark main {
  background: #0b1120;
}

/* ========= حالت موبایل ========= */
@media (max-width: 992px) {
    .article-item {
        flex: 0 0 calc(50% - 20px); /* دو تا */
    }

    #articlePrev { left: 5px; }
    #articleNext { right: 5px; }
}

@media (max-width: 576px) {
    .article-item {
        flex: 0 0 100%; /* یک کارت */
    }

    .article-arrow {
        top: 50%;
        width: 36px;
        height: 36px;
    }
}
@media (max-width: 500px) {
  h2.stats-title-text {
    font-size: 0.85rem !important;
  }

  .stats-title-line {
    width: 36px;
  }
}
@media (max-width: 700px) {
  h2.stats-title-text {
    font-size: 1rem !important;
  }

  .stats-title-line {
    width: 36px;
  }
  /* Dropdown Menu Styles */
.desktop-nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-icon {
    display: inline-block;
    margin-right: 4px;
    transition: transform 0.3s ease;
}

.desktop-nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-color, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.desktop-nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-color, #374151);
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: var(--hover-bg, #f3f4f6);
}

/* Active Link Style */
.desktop-nav-link.active,
.menu-item.active {
    color: var(--primary-color, #3b82f6);
    font-weight: 600;
}

/* User Menu Styles */
.user-menu-wrapper {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background: var(--hover-bg, #f3f4f6);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color, #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-name {
    font-size: 14px;
    color: var(--text-color, #374151);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-menu-wrapper:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color, #374151);
    text-decoration: none;
    transition: background 0.2s ease;
}

.user-dropdown-item:hover {
    background: var(--hover-bg, #f3f4f6);
}

.logout-form {
    margin: 0;
    padding: 0;
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-color, #374151);
    cursor: pointer;
    text-align: right;
}

/* Cart Badge */
.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Mobile Dropdown */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-dropdown-menu {
    display: none;
    padding-right: 20px;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-color, #374151);
    text-decoration: none;
    font-size: 14px;
}

/* Mobile User Section */
.mobile-user-section {
    margin-top: 16px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color, #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.mobile-user-name {
    font-weight: 600;
    color: var(--text-color, #374151);
}

.logout-mobile-btn {
    width: 100%;
    text-align: right;
    background: none;
    border: none;
    cursor: pointer;
    color: #ef4444;
}

.mobile-cart-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 8px;
}

}