
:root{
  --red:#e63946;
  --red-dark:#c1121f;
  --red-light:#ff6b7a;
  --red-soft:rgba(230,57,70,.08);
  --red-glow:rgba(230,57,70,.35);
  --dark:#0f172a;
  --dark-2:#1e293b;
  --text:#0f172a;
  --text-2:#475569;
  --text-3:#94a3b8;
  --bg:#f8fafc;
  --bg-soft:#f1f5f9;
  --surface:#ffffff;
  --border:#e2e8f0;
  --border-strong:#cbd5e1;
  --green:#16a34a;
  --yellow:#f59e0b;
  --radius:14px;
  --radius-sm:10px;
  --radius-lg:22px;
  --shadow-sm:0 1px 3px rgba(15,23,42,.06);
  --shadow:0 4px 16px rgba(15,23,42,.08);
  --shadow-lg:0 12px 32px rgba(15,23,42,.14);
  --shadow-red:0 10px 30px rgba(230,57,70,.28);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:'Vazirmatn',Tahoma,sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:14px;
  line-height:1.65;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit;}
ul{list-style:none;}
img{max-width:100%;display:block;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}
.container{max-width:1300px;margin:0 auto;padding:0 20px;}

/* ================================================================
   TOP BAR
   ================================================================ */
.top-bar{background:var(--dark);color:#cbd5e1;font-size:12.5px;padding:9px 0;}
.top-bar-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;}
.top-bar-info{display:flex;align-items:center;gap:20px;flex-wrap:wrap;}
.top-bar-info span{display:inline-flex;align-items:center;gap:6px;}
.top-bar-info svg{width:14px;height:14px;color:var(--red-light);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.top-bar-links{display:flex;align-items:center;gap:18px;}
.top-bar-links a{transition:color .2s;}
.top-bar-links a:hover{color:var(--red-light);}

/* ================================================================
   HEADER
   ================================================================ */
.main-header{
  background:var(--surface);
  box-shadow:var(--shadow-sm);
  position:sticky;
  top:0;
  z-index:100;
  transition:box-shadow .2s;
}
.main-header.scrolled{box-shadow:var(--shadow);}
.header-inner{display:flex;align-items:center;gap:24px;padding:16px 0;}

.logo{display:flex;align-items:center;gap:12px;flex-shrink:0;}
.logo-icon{
  width:46px;height:46px;border-radius:12px;
  background:linear-gradient(135deg,var(--red),var(--red-dark));
  display:flex;align-items:center;justify-content:center;
  color:#fff;box-shadow:var(--shadow-red);
}
.logo-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.logo-text h1{font-size:19px;font-weight:900;color:var(--text);letter-spacing:-.3px;}
.logo-text span{font-size:11px;color:var(--text-3);font-weight:500;}

.search-box{flex:1;max-width:600px;position:relative;display:flex;}
.search-box input{
  width:100%;height:48px;padding:0 22px 0 130px;
  background:var(--bg-soft);border:1.5px solid transparent;
  border-radius:12px;font-family:inherit;font-size:14px;color:var(--text);
  transition:all .2s;
}
.search-box input::placeholder{color:var(--text-3);}
.search-box input:focus{outline:none;background:#fff;border-color:var(--red);box-shadow:0 0 0 4px var(--red-glow);}
.search-btn{
  position:absolute;left:5px;top:5px;height:38px;padding:0 22px;
  border-radius:9px;background:linear-gradient(135deg,var(--red),var(--red-dark));
  color:#fff;font-weight:600;font-size:13.5px;
  display:flex;align-items:center;gap:6px;transition:all .2s;
}
.search-btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-red);}
.search-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;}

.header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.action-btn{
  display:flex;align-items:center;gap:8px;padding:10px 14px;
  border-radius:12px;background:var(--bg-soft);color:var(--text);
  font-size:13.5px;font-weight:600;transition:all .2s;position:relative;
}
.action-btn:hover{background:var(--red-soft);color:var(--red);}
.action-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.action-btn .badge{
  position:absolute;top:-4px;left:-4px;min-width:20px;height:20px;
  border-radius:20px;background:var(--red);color:#fff;
  font-size:11px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
  padding:0 5px;border:2px solid var(--surface);
}

/* ================================================================
   NAV BAR
   ================================================================ */
.nav-bar{
  background:linear-gradient(135deg,var(--red),var(--red-dark));
  box-shadow:0 4px 12px rgba(230,57,70,.2);
  position:relative;
  z-index:200;
}
.nav-inner{
  display:flex;
  align-items:center;
  gap:8px;
  padding:4px 0;
  overflow:visible;
  position:relative;
}

.nav-item{
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 20px;
  color:#fff;
  font-size:13.5px;
  font-weight:600;
  border-radius:10px;
  transition:all .2s;
  white-space:nowrap;
}
.nav-item:hover{background:rgba(255,255,255,.15);}
.nav-item.active{background:rgba(255,255,255,.2);}
.nav-item svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.9;}

/* Desktop-only nav items */
.nav-desktop-only{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1;
}

/* ================================================================
   MEGA MENU
   ================================================================ */
.cat-trigger{flex-shrink:0;}
.cat-toggle{
  background:rgba(0,0,0,.2);
  border-radius:10px 10px 0 0;
  margin:4px 0 0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 20px;
  color:#fff;
  font-size:13.5px;
  font-weight:600;
  cursor:pointer;
  transition:all .2s;
  border:none;
  font-family:inherit;
  white-space:nowrap;
}
.cat-toggle:hover{background:rgba(0,0,0,.3);}
.cat-toggle > svg:first-child{
  width:16px;height:16px;
  fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.cat-toggle .arrow-down{
  width:14px;height:14px;
  fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
  transition:transform .3s;
  margin-right:4px;
}
.cat-toggle.open .arrow-down{transform:rotate(180deg);}

/* Mega Menu Container — Full width of nav-bar */
.mega-menu{
  position:absolute;
  top:100%;
  right:0;
  left:0;
  background:var(--surface);
  border-radius:0 0 var(--radius) var(--radius);
  box-shadow:0 20px 60px rgba(15,23,42,.18);
  padding:20px;
  z-index:9999;
  opacity:0;
  visibility:hidden;
  transform:translateY(-10px);
  transition:all .3s cubic-bezier(.4,0,.2,1);
  max-height:calc(100vh - 130px);
  overflow-y:auto;
  overflow-x:hidden;
  pointer-events:none;
  width:100%;
}
.mega-menu.open{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}

/* Navigation structure (3 levels from Mida CMS) */
.navigation--main{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.navigation--main > li{
  background:var(--bg-soft);
  border-radius:12px;
  padding:14px;
  transition:all .25s;
  border:1.5px solid transparent;
}
.navigation--main > li:hover{
  background:#fff;
  border-color:var(--red);
  box-shadow:0 6px 20px rgba(230,57,70,.1);
}
.navigation--main > li > a{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  font-weight:700;
  color:var(--text);
  padding:6px 0;
  transition:color .2s;
}
.navigation--main > li > a::before{
  content:'';
  width:6px;height:6px;
  border-radius:50%;
  background:var(--red);
  flex-shrink:0;
  transition:transform .25s;
}
.navigation--main > li:hover > a{color:var(--red);}
.navigation--main > li:hover > a::before{transform:scale(1.5);}

/* Level 2 */
.navigation--main .sub-menu{
  padding:8px 0 0;
  margin:8px 0 0;
  border-top:1px dashed var(--border);
  display:flex;
  flex-direction:column;
  gap:2px;
}
.navigation--main .sub-menu > li > a{
  display:block;
  padding:8px 12px;
  font-size:13px;
  font-weight:600;
  color:var(--text-2);
  border-radius:8px;
  transition:all .2s;
  position:relative;
}
.navigation--main .sub-menu > li > a::before{
  content:'';
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  width:4px;height:4px;
  border-radius:50%;
  background:var(--border-strong);
  transition:all .2s;
}
.navigation--main .sub-menu > li > a:hover{
  background:var(--red-soft);
  color:var(--red);
  padding-right:20px;
}
.navigation--main .sub-menu > li > a:hover::before{
  background:var(--red);
  box-shadow:0 0 6px var(--red);
}

/* Level 3 */
.navigation--main .sub-menu .sub-menu{
  padding-right:14px;
  margin-right:4px;
  border-top:none;
  border-right:2px solid var(--border);
  padding-top:4px;
  padding-bottom:4px;
  margin-top:4px;
}
.navigation--main .sub-menu .sub-menu > li > a{
  padding:6px 12px;
  font-size:12.5px;
  font-weight:500;
  color:var(--text-3);
}
.navigation--main .sub-menu .sub-menu > li > a::before{display:none;}
.navigation--main .sub-menu .sub-menu > li > a:hover{
  color:var(--red);
  padding-right:18px;
  background:transparent;
}

.navigation--main > li.current-menu-item{
  background:var(--red-soft);
  border-color:var(--red);
}
.navigation--main > li.current-menu-item > a{color:var(--red);}

/* Mega Menu Overlay — ت&#1740;رگ&#1740; خ&#1740;ل&#1740; ملا&#1740;م */
.mega-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.05);
  z-index:998;
  opacity:0;
  visibility:hidden;
  transition:all .3s;
  pointer-events:none;
}
.mega-overlay.open{opacity:1;visibility:visible;pointer-events:auto;}

/* ================================================================
   MOBILE NAV BUTTON + DRAWER
   ================================================================ */
.mobile-nav-btn{
  display:none;
  align-items:center;
  gap:8px;
  padding:12px 16px;
  background:rgba(0,0,0,.2);
  border-radius:10px;
  color:#fff;
  font-size:13px;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  transition:all .2s;
  border:none;
  flex-shrink:0;
  margin:4px 0 4px 6px;
}
.mobile-nav-btn:hover{background:rgba(0,0,0,.3);}
.mobile-nav-btn svg{
  width:18px;height:18px;
  fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}

.mobile-nav-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.5);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  z-index:9998;
  opacity:0;
  visibility:hidden;
  transition:all .3s;
  pointer-events:none;
}
.mobile-nav-overlay.open{opacity:1;visibility:visible;pointer-events:auto;}

.mobile-nav-drawer{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  width:320px;
  max-width:85vw;
  background:var(--surface);
  z-index:9999;
  display:flex;
  flex-direction:column;
  transform:translateX(100%);
  transition:transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow:-10px 0 40px rgba(15,23,42,.15);
  overflow:hidden;
}
.mobile-nav-drawer.open{transform:translateX(0);}

.mobile-nav-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(135deg,var(--red),var(--red-dark));
  flex-shrink:0;
}
.mobile-nav-brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
}
.mobile-nav-brand-icon{
  width:42px;height:42px;
  border-radius:12px;
  background:rgba(255,255,255,.15);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.mobile-nav-brand-icon svg{
  width:22px;height:22px;
  fill:none;stroke:#fff;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}
.mobile-nav-brand h4{font-size:15px;font-weight:800;margin:0;line-height:1.2;}
.mobile-nav-brand span{font-size:11px;opacity:.85;}
.mobile-nav-close{
  width:38px;height:38px;
  border-radius:10px;
  background:rgba(255,255,255,.15);
  border:none;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all .2s;
  flex-shrink:0;
}
.mobile-nav-close:hover{background:rgba(255,255,255,.25);}
.mobile-nav-close svg{
  width:20px;height:20px;
  fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}

.mobile-nav-body{
  flex:1;
  overflow-y:auto;
  padding:12px;
  scrollbar-width:thin;
  scrollbar-color:var(--border-strong) transparent;
}
.mobile-nav-body::-webkit-scrollbar{width:5px;}
.mobile-nav-body::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:3px;}

.mobile-nav-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 16px;
  border-radius:12px;
  color:var(--text);
  font-size:14px;
  font-weight:600;
  transition:all .2s;
  margin-bottom:2px;
  position:relative;
}
.mobile-nav-item:hover{
  background:var(--red-soft);
  color:var(--red);
  padding-right:20px;
}
.mobile-nav-item.active{
  background:linear-gradient(90deg,var(--red-soft),transparent);
  color:var(--red);
}
.mobile-nav-item.active::before{
  content:'';
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  width:3px;
  height:60%;
  border-radius:0 3px 3px 0;
  background:var(--red);
}
.mobile-nav-item > svg:first-child{
  width:20px;height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  color:var(--text-3);
  flex-shrink:0;
  transition:color .2s;
}
.mobile-nav-item:hover > svg:first-child,
.mobile-nav-item.active > svg:first-child{color:var(--red);}
.mobile-nav-item > span{flex:1;}
.mobile-nav-item .arrow{
  width:16px;height:16px;
  fill:none;stroke:var(--text-3);stroke-width:2;
  opacity:.6;
  transition:opacity .2s;
}
.mobile-nav-item:hover .arrow{opacity:1;stroke:var(--red);}

.mobile-nav-divider{
  height:1px;
  background:var(--border);
  margin:12px 8px;
}

.mobile-nav-footer{
  padding:14px;
  border-top:1px solid var(--border);
  background:var(--bg-soft);
  flex-shrink:0;
}
.mobile-nav-contact{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px;
  background:var(--surface);
  border:1.5px solid var(--border);
  border-radius:12px;
  color:var(--text);
  font-size:13.5px;
  font-weight:700;
  transition:all .2s;
}
.mobile-nav-contact:hover{border-color:var(--red);color:var(--red);}
.mobile-nav-contact svg{
  width:18px;height:18px;
  fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
  color:var(--red);
}

/* ================================================================
   HERO SLIDER
   ================================================================ */
.hero-slider{
  position:relative;
  overflow:hidden;
  border-radius:0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom:40px;
  min-height:520px;
  background:linear-gradient(135deg,var(--dark),var(--dark-2));
}
.slider-track{position:relative;height:520px;}
.slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .7s ease, visibility .7s ease;
  display:flex;
  align-items:center;
}
.slide.active{opacity:1;visibility:visible;}
.slide::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(230,57,70,.85),rgba(193,18,31,.85));
  z-index:1;
}
.slide .bg-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.slide-content{
  position:relative;
  z-index:2;
  color:#fff;
  max-width:600px;
  padding:0 60px;
}
.slide-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 16px;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.25);
  border-radius:30px;
  font-size:12.5px;
  font-weight:600;
  margin-bottom:20px;
}
.slide-badge::before{
  content:'';
  width:8px;height:8px;
  background:#fff;
  border-radius:50%;
  animation:pulse 1.5s ease-in-out infinite;
}
@keyframes pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.3);opacity:.7;}}
.slide-content h2{font-size:46px;font-weight:900;line-height:1.15;margin-bottom:18px;letter-spacing:-1px;}
.slide-content p{font-size:16px;line-height:1.7;opacity:.95;margin-bottom:28px;}
.slide-btns{display:flex;gap:12px;flex-wrap:wrap;}
.btn-white{
  display:inline-flex;align-items:center;gap:8px;
  padding:14px 28px;background:#fff;color:var(--text);
  border-radius:12px;font-size:14.5px;font-weight:700;
  transition:all .25s;box-shadow:0 8px 24px rgba(0,0,0,.15);
}
.btn-white:hover{transform:translateY(-3px);}
.btn-outline{
  display:inline-flex;align-items:center;gap:8px;
  padding:14px 28px;background:transparent;color:#fff;
  border:2px solid rgba(255,255,255,.4);border-radius:12px;
  font-size:14.5px;font-weight:700;transition:all .25s;
}
.btn-outline:hover{background:rgba(255,255,255,.1);border-color:#fff;}
.btn-white svg,.btn-outline svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;}

.slider-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px;height:52px;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all .25s;
  z-index:3;
}
.slider-arrow:hover{background:rgba(255,255,255,.25);transform:translateY(-50%) scale(1.08);}
.slider-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;}
.slider-prev{right:24px;}
.slider-next{left:24px;}
.slider-dots{
  position:absolute;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:10px;
  z-index:3;
}
.dot{
  width:32px;height:5px;
  border-radius:5px;
  background:rgba(255,255,255,.35);
  cursor:pointer;
  transition:all .3s;
}
.dot.active{background:#fff;width:50px;}

/* ================================================================
   SECTIONS
   ================================================================ */
.section{margin-bottom:50px;}
.section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:22px;
  flex-wrap:wrap;
  gap:12px;
}
.section-title{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:22px;
  font-weight:800;
  color:var(--text);
}
.section-title::before{
  content:'';
  width:5px;height:26px;
  border-radius:3px;
  background:linear-gradient(180deg,var(--red),var(--red-dark));
}
.section-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--red);
  font-size:13.5px;
  font-weight:600;
  transition:gap .2s;
}
.section-link:hover{gap:10px;}
.section-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;}

/* CATEGORY CARDS */
.cat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;}
.cat-card{
  background:var(--surface);
  border:1.5px solid var(--border);
  border-radius:var(--radius);
  padding:22px 12px;
  text-align:center;
  transition:all .3s;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  display:block;
}
.cat-card::before{
  content:'';
  position:absolute;
  top:0;right:0;
  width:100%;height:4px;
  background:linear-gradient(90deg,var(--red),var(--red-light));
  transform:scaleX(0);
  transform-origin:right;
  transition:transform .3s;
}
.cat-card:hover{border-color:var(--red);transform:translateY(-5px);box-shadow:var(--shadow-lg);}
.cat-card:hover::before{transform:scaleX(1);}
.cat-icon{
  width:64px;height:64px;
  margin:0 auto 12px;
  border-radius:18px;
  background:var(--red-soft);
  color:var(--red);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .3s;
}
.cat-icon img{width:40px;height:40px;object-fit:contain;}
.cat-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2;}
.cat-card:hover .cat-icon{
  background:linear-gradient(135deg,var(--red),var(--red-dark));
  color:#fff;
  transform:scale(1.1) rotate(-5deg);
  box-shadow:var(--shadow-red);
}
.cat-card h3{font-size:13.5px;font-weight:700;color:var(--text);margin-bottom:4px;}
.cat-card span{font-size:11.5px;color:var(--text-3);font-weight:500;}

/* PRODUCTS */
.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.product-card{
  background:var(--surface);
  border-radius:var(--radius);
  overflow:hidden;
  border:1.5px solid var(--border);
  transition:all .3s;
  position:relative;
  display:flex;
  flex-direction:column;
}
.product-card:hover{border-color:var(--red);transform:translateY(-6px);box-shadow:var(--shadow-lg);}
.product-badges{
  position:absolute;
  top:12px;right:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  z-index:3;
}
.p-badge{
  padding:4px 12px;
  border-radius:20px;
  font-size:11px;
  font-weight:700;
  color:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}
.p-badge.new{background:linear-gradient(135deg,#16a34a,#15803d);}
.p-badge.sale{background:linear-gradient(135deg,var(--red),var(--red-dark));}
.p-badge.hot{background:linear-gradient(135deg,#f59e0b,#d97706);}
.wishlist-btn{
  position:absolute;
  top:12px;left:12px;
  width:36px;height:36px;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  color:var(--text-3);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .2s;
  z-index:3;
  box-shadow:var(--shadow-sm);
}
.wishlist-btn:hover,.wishlist-btn.active{color:var(--red);background:#fff;transform:scale(1.1);}
.wishlist-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;}
.product-img{
  height:220px;
  background:linear-gradient(135deg,var(--bg-soft),#e2e8f0);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.product-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s;}
.product-card:hover .product-img img{transform:scale(1.08);}
.product-info{padding:16px;display:flex;flex-direction:column;flex:1;}
.product-brand{font-size:11.5px;color:var(--text-3);font-weight:600;margin-bottom:4px;letter-spacing:.5px;}
.product-title{
  font-size:14px;font-weight:700;color:var(--text);line-height:1.5;
  margin-bottom:8px;min-height:42px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.product-price{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
  flex-wrap:wrap;
  margin-top:auto;
}
.price-current{font-size:18px;font-weight:900;color:var(--red);direction:rtl;}
.price-current small{font-size:11px;font-weight:500;color:var(--text-3);}
.price-old{font-size:13px;color:var(--text-3);text-decoration:line-through;direction:rtl;}
.add-cart-btn{
  width:100%;height:42px;border-radius:10px;
  background:var(--bg-soft);color:var(--text);
  font-size:13.5px;font-weight:700;
  display:flex;align-items:center;justify-content:center;gap:8px;
  transition:all .25s;
}
.add-cart-btn:hover{
  background:linear-gradient(135deg,var(--red),var(--red-dark));
  color:#fff;
  box-shadow:var(--shadow-red);
}
.add-cart-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;}

/* FEATURES BAR */
.features-bar{
  background:var(--surface);
  border-radius:var(--radius);
  padding:26px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  box-shadow:var(--shadow-sm);
  margin-bottom:50px;
}
.feature{display:flex;align-items:center;gap:14px;}
.feature-icon{
  width:52px;height:52px;
  border-radius:14px;
  background:var(--red-soft);
  color:var(--red);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.feature-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;}
.feature-text h4{font-size:14px;font-weight:700;color:var(--text);margin-bottom:2px;}
.feature-text p{font-size:12px;color:var(--text-3);font-weight:500;}

/* BREADCRUMB */
.breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  padding:20px 0;
  font-size:13px;
  color:var(--text-2);
  flex-wrap:wrap;
}
.breadcrumb a{color:var(--text-2);transition:color .2s;}
.breadcrumb a:hover{color:var(--red);}
.breadcrumb .sep{color:var(--text-3);}

/* NEWS / PRODUCT DETAIL */
.news-article{
  background:var(--surface);
  border-radius:var(--radius);
  padding:32px;
  box-shadow:var(--shadow-sm);
  margin-bottom:30px;
}
.news-article h1{font-size:28px;font-weight:800;color:var(--text);margin-bottom:20px;line-height:1.4;}
.news-article .news-content{font-size:15px;line-height:2;color:var(--text-2);}
.news-article .news-content img{max-width:100%;height:auto;border-radius:12px;margin:16px 0;}
.news-article .keywords{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--border);
}
.news-article .keywords span{
  padding:5px 12px;
  background:var(--bg-soft);
  border-radius:20px;
  font-size:12px;
  color:var(--text-2);
}

/* COMMENTS */
.comments-section{
  background:var(--surface);
  border-radius:var(--radius);
  padding:28px;
  box-shadow:var(--shadow-sm);
  margin-bottom:30px;
}
.comments-section h3{
  font-size:18px;font-weight:800;color:var(--text);
  margin-bottom:20px;
  display:flex;align-items:center;gap:10px;
}
.comments-section h3::before{
  content:'';width:5px;height:22px;border-radius:3px;
  background:linear-gradient(180deg,var(--red),var(--red-dark));
}
.comment-tree{display:flex;flex-direction:column;gap:16px;}
.comment-box{
  display:flex;gap:14px;padding:16px;
  background:var(--bg-soft);border-radius:12px;transition:background .2s;
}
.comment-box:hover{background:#eef2f7;}
.comment-box img{width:48px;height:48px;border-radius:50%;flex-shrink:0;object-fit:cover;}
.comment-content{flex:1;min-width:0;}
.comment-content h6{
  font-size:13.5px;font-weight:700;color:var(--text);
  margin-bottom:4px;
  display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
}
.comment-content h6 span{font-size:11.5px;color:var(--text-3);font-weight:500;}
.comment-content p{font-size:13.5px;color:var(--text-2);line-height:1.8;}
.comment-tree .depth{
  padding-right:62px;margin-top:12px;
  display:flex;flex-direction:column;gap:12px;
}
.comment-tree .depth .comment-box{
  background:rgba(230,57,70,.05);
  border-right:3px solid var(--red);
}
.comment-form{margin-top:24px;padding-top:24px;border-top:1px solid var(--border);}
.comment-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px;}
.comment-form input,
.comment-form textarea{
  width:100%;padding:12px 16px;
  background:var(--bg-soft);border:1.5px solid transparent;
  border-radius:10px;font-family:inherit;font-size:14px;color:var(--text);
  transition:all .2s;
}
.comment-form input:focus,
.comment-form textarea:focus{
  outline:none;background:#fff;border-color:var(--red);box-shadow:0 0 0 4px var(--red-glow);
}
.comment-form textarea{min-height:120px;resize:vertical;}
.comment-form .btn-send{
  margin-top:12px;padding:12px 32px;
  background:linear-gradient(135deg,var(--red),var(--red-dark));
  color:#fff;border-radius:10px;
  font-size:14px;font-weight:700;
  transition:all .25s;box-shadow:var(--shadow-red);
}
.comment-form .btn-send:hover{transform:translateY(-2px);}

/* SEARCH PAGE */
.search-header{
  background:linear-gradient(135deg,var(--red),var(--red-dark));
  border-radius:var(--radius);
  padding:36px 30px;
  margin-bottom:30px;
  color:#fff;
  text-align:center;
}
.search-header h1{font-size:24px;font-weight:900;margin-bottom:8px;}
.search-header p{font-size:14px;opacity:.9;}
.search-header p b{
  color:#fff;font-weight:800;
  background:rgba(0,0,0,.2);padding:2px 10px;border-radius:6px;
}

/* CONTACT */
.contact-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;margin-bottom:50px;}
.contact-form-card{
  background:var(--surface);border-radius:var(--radius);
  padding:30px;box-shadow:var(--shadow-sm);
}
.contact-form-card h2{font-size:20px;font-weight:800;color:var(--text);margin-bottom:20px;}
.contact-form-card input,
.contact-form-card textarea{
  width:100%;padding:12px 16px;
  background:var(--bg-soft);border:1.5px solid transparent;
  border-radius:10px;font-family:inherit;font-size:14px;color:var(--text);
  margin-bottom:12px;transition:all .2s;
}
.contact-form-card input:focus,
.contact-form-card textarea:focus{
  outline:none;background:#fff;border-color:var(--red);box-shadow:0 0 0 4px var(--red-glow);
}
.contact-form-card textarea{min-height:120px;resize:vertical;}
.contact-form-card button{
  padding:12px 32px;
  background:linear-gradient(135deg,var(--red),var(--red-dark));
  color:#fff;border-radius:10px;font-size:14px;font-weight:700;
  transition:all .25s;box-shadow:var(--shadow-red);
}
.contact-form-card button:hover{transform:translateY(-2px);}
.contact-info-card{
  background:linear-gradient(135deg,var(--dark),var(--dark-2));
  border-radius:var(--radius);padding:30px;color:#fff;
}
.contact-info-card h2{font-size:18px;font-weight:800;margin-bottom:20px;}
.contact-info-item{
  display:flex;align-items:flex-start;gap:12px;
  padding:14px 0;border-bottom:1px solid rgba(255,255,255,.1);
}
.contact-info-item:last-child{border-bottom:none;}
.contact-info-item svg{
  width:20px;height:20px;color:var(--red-light);
  fill:none;stroke:currentColor;stroke-width:2;
  flex-shrink:0;margin-top:3px;
}
.contact-info-item .label{font-size:11.5px;color:#94a3b8;margin-bottom:2px;}
.contact-info-item .value{font-size:13.5px;color:#e2e8f0;font-weight:500;line-height:1.6;}

/* PROMO */
.promo-section{
  background:linear-gradient(135deg,#fef3c7,#fde68a);
  border-radius:var(--radius-lg);padding:40px 30px;
  text-align:center;margin-bottom:50px;
  border:2px dashed #f59e0b;
}
.promo-section h2{font-size:24px;font-weight:900;color:#92400e;margin-bottom:12px;}
.promo-section .promo-content{font-size:14.5px;color:#78350f;line-height:1.8;max-width:700px;margin:0 auto;}

/* SUBSCRIBE */
.subscribe-section{
  background:linear-gradient(135deg,var(--red),var(--red-dark));
  border-radius:var(--radius-lg);padding:40px 30px;
  text-align:center;color:#fff;margin-bottom:50px;
  position:relative;overflow:hidden;
}
.subscribe-section h2{font-size:26px;font-weight:900;margin-bottom:10px;position:relative;z-index:1;}
.subscribe-section p{font-size:14.5px;opacity:.9;margin-bottom:24px;position:relative;z-index:1;}
.subscribe-form{
  display:flex;gap:10px;max-width:500px;margin:0 auto;
  position:relative;z-index:1;
}
.subscribe-form input{
  flex:1;height:52px;padding:0 20px;
  background:rgba(255,255,255,.15);
  border:1.5px solid rgba(255,255,255,.3);
  border-radius:12px;color:#fff;font-family:inherit;font-size:14px;
}
.subscribe-form input::placeholder{color:rgba(255,255,255,.7);}
.subscribe-form input:focus{outline:none;background:rgba(255,255,255,.22);border-color:#fff;}
.subscribe-form button{
  padding:0 32px;height:52px;background:#fff;color:var(--red);
  border-radius:12px;font-size:14px;font-weight:700;transition:all .25s;
}
.subscribe-form button:hover{transform:translateY(-2px);}

/* SOCIAL BAR */
.social-bar{padding:30px 0;text-align:center;}
.social-bar ul{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;}
.social-bar a{
  width:46px;height:46px;border-radius:12px;
  background:var(--surface);border:1.5px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  color:var(--text-2);transition:all .25s;
}
.social-bar a:hover{
  background:var(--red);color:#fff;border-color:var(--red);
  transform:translateY(-4px);box-shadow:var(--shadow-red);
}
.social-bar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;}

/* FOOTER */
.footer{background:var(--dark);color:#cbd5e1;padding:50px 0 0;margin-top:60px;}
.footer-grid{
  display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr;
  gap:36px;padding-bottom:36px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-col h4{
  color:#fff;font-size:15px;font-weight:700;
  margin-bottom:18px;display:flex;align-items:center;gap:8px;
}
.footer-col h4::before{
  content:'';width:4px;height:16px;border-radius:2px;background:var(--red);
}
.footer-about p{font-size:13px;line-height:1.9;color:#94a3b8;margin-bottom:18px;}
.footer-social{display:flex;gap:10px;}
.footer-social a{
  width:38px;height:38px;border-radius:10px;
  background:rgba(255,255,255,.06);
  display:flex;align-items:center;justify-content:center;transition:all .25s;
}
.footer-social a:hover{background:var(--red);color:#fff;transform:translateY(-3px);}
.footer-social svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;}
.footer-links li{margin-bottom:10px;}
.footer-links a{
  font-size:13px;color:#94a3b8;transition:all .2s;
  display:inline-flex;align-items:center;gap:6px;
}
.footer-links a::before{
  content:'';width:4px;height:4px;border-radius:50%;
  background:var(--red);transition:transform .2s;
}
.footer-links a:hover{color:#fff;transform:translateX(-4px);}
.footer-contact li{
  display:flex;align-items:flex-start;gap:10px;
  margin-bottom:14px;font-size:13px;color:#94a3b8;
}
.footer-contact svg{
  width:16px;height:16px;color:var(--red);
  fill:none;stroke:currentColor;stroke-width:2;
  flex-shrink:0;margin-top:3px;
}
.footer-contact b{color:#fff;font-weight:600;}
.footer-bottom{
  padding:20px 0;text-align:center;
  font-size:12.5px;color:#64748b;
}
.footer-bottom a{color:var(--red);font-weight:600;}

/* TO TOP */
.to-top{
  position:fixed;bottom:24px;left:24px;
  width:48px;height:48px;border-radius:14px;
  background:linear-gradient(135deg,var(--red),var(--red-dark));
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;opacity:0;visibility:hidden;
  transform:translateY(20px);transition:all .3s;
  box-shadow:var(--shadow-red);z-index:99;
}
.to-top.visible{opacity:1;visibility:visible;transform:none;}
.to-top:hover{transform:translateY(-4px);}
.to-top svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* &#9472;&#9472;&#9472; تا 1100px: موبا&#1740;ل و تبلت — Drawer فعال &#9472;&#9472;&#9472; */
@media (max-width:1100px){
  /* موبا&#1740;ل: اسکرول افق&#1740; رو&#1740; nav-inner */
  .nav-inner{
    overflow:visible;
    flex-wrap:nowrap;
  }

  /* مخف&#1740; کردن nav items دسکتاپ */
  .nav-desktop-only{display:none !important;}

  /* نما&#1740;ش دکمه منو */
  .mobile-nav-btn{display:inline-flex;}

  .products-grid{grid-template-columns:repeat(3,1fr);}
  .cat-grid{grid-template-columns:repeat(4,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;gap:30px;}
  .navigation--main{grid-template-columns:repeat(3,1fr);}

  .mega-menu{
    min-width:auto;
    max-height:calc(100vh - 120px);
    padding:16px;
  }
  .navigation--main > li{padding:12px;}
  .navigation--main > li > a{font-size:13px;}
  .navigation--main .sub-menu > li > a{font-size:12.5px;padding:7px 10px;}
}

/* &#9472;&#9472;&#9472; تبلت 700-900px &#9472;&#9472;&#9472; */
@media (max-width:900px){
  .top-bar-info span:nth-child(2){display:none;}
  .header-inner{flex-wrap:wrap;gap:14px;}
  .search-box{order:3;width:100%;max-width:100%;flex-basis:100%;}
  .slider-track{height:440px;}
  .slide-content{padding:0 40px;}
  .slide-content h2{font-size:34px;}
  .features-bar{grid-template-columns:1fr 1fr;}
  .contact-grid{grid-template-columns:1fr;}
  .comment-form .form-grid{grid-template-columns:1fr;}

  .mega-menu{
    padding:14px;
    max-height:calc(100vh - 100px);
  }
  .navigation--main{
    grid-template-columns:repeat(2,1fr);
    gap:10px;
  }
  .navigation--main > li{padding:10px;}
  .navigation--main > li > a{font-size:12.5px;}
  .navigation--main .sub-menu > li > a{font-size:12px;padding:6px 10px;}
  .navigation--main .sub-menu .sub-menu > li > a{font-size:11.5px;}
}

/* &#9472;&#9472;&#9472; موبا&#1740;ل < 700px &#9472;&#9472;&#9472; */
@media (max-width:700px){
  .container{padding:0 14px;}

  .top-bar{font-size:11.5px;padding:7px 0;}
  .top-bar-links{gap:12px;}

  .header-inner{padding:12px 0;gap:10px;}
  .logo-icon{width:40px;height:40px;border-radius:10px;}
  .logo-icon svg{width:20px;height:20px;}
  .logo-text h1{font-size:16px;}

  .action-btn{padding:8px 10px;font-size:12px;}
  .action-btn span.label{display:none;}
  .action-btn svg{width:20px;height:20px;}

  .search-box input{height:44px;font-size:13.5px;padding:0 14px 0 110px;}
  .search-btn{height:34px;padding:0 16px;font-size:12.5px;}

  /* Nav Items رو&#1740; موبا&#1740;ل &#8594; مخف&#1740; */
  .nav-inner{overflow:visible;}
  .mobile-nav-btn{padding:11px 14px;font-size:12.5px;}
  .mobile-nav-btn svg{width:16px;height:16px;}

  .cat-toggle{padding:11px 14px;font-size:12.5px;}

  /* Mega Menu &#8594; Bottom Sheet */
  .navigation--main{grid-template-columns:1fr;gap:10px;}

  .mega-menu{
    position:fixed;
    top:auto;
    bottom:0;
    right:0;
    left:0;
    border-radius:20px 20px 0 0;
    max-height:80vh;
    padding:24px 20px 30px;
    transform:translateY(100%);
    min-width:auto;
    box-shadow:0 -10px 40px rgba(15,23,42,.2);
    z-index:9999;
  }
  .mega-menu.open{transform:translateY(0);}

  .mega-menu::before{
    content:'';
    position:absolute;
    top:10px;
    left:50%;
    transform:translateX(-50%);
    width:40px;
    height:4px;
    border-radius:4px;
    background:var(--border-strong);
  }

  .navigation--main > li{padding:12px;}
  .navigation--main > li > a{font-size:13.5px;}
  .navigation--main .sub-menu > li > a{font-size:12.5px;padding:7px 10px;}
  .navigation--main .sub-menu .sub-menu > li > a{font-size:12px;padding:6px 10px;}

  /* Slider */
  .slider-track{height:380px;}
  .slide-content{padding:0 24px;max-width:100%;}
  .slide-badge{padding:5px 12px;font-size:11.5px;margin-bottom:14px;}
  .slide-content h2{font-size:26px;margin-bottom:12px;}
  .slide-content p{font-size:13px;margin-bottom:20px;}
  .slide-btns{flex-direction:column;gap:10px;}
  .btn-white,.btn-outline{padding:12px 20px;font-size:13px;justify-content:center;}
  .slider-arrow{width:40px;height:40px;}
  .slider-arrow svg{width:18px;height:18px;}
  .slider-prev{right:10px;}
  .slider-next{left:10px;}

  .section{margin-bottom:34px;}
  .section-title{font-size:18px;}
  .cat-grid{grid-template-columns:repeat(3,1fr);gap:10px;}
  .cat-card{padding:14px 8px;}
  .cat-icon{width:48px;height:48px;border-radius:14px;margin-bottom:8px;}
  .cat-card h3{font-size:12px;}

  .products-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .product-img{height:170px;}
  .product-info{padding:12px;}
  .product-title{font-size:12.5px;min-height:38px;}
  .price-current{font-size:15px;}
  .add-cart-btn{height:38px;font-size:12px;}

  .features-bar{grid-template-columns:1fr;padding:18px;gap:14px;}
  .feature-icon{width:44px;height:44px;}
  .feature-text h4{font-size:13px;}

  .footer{padding:34px 0 0;}
  .footer-grid{grid-template-columns:1fr;gap:26px;}
  .footer-col h4{font-size:14px;margin-bottom:14px;}

  .subscribe-form{flex-direction:column;}
  .subscribe-form input,.subscribe-form button{height:48px;padding:0 20px;}

  .contact-form-card,.contact-info-card{padding:20px;}
  .news-article{padding:20px 16px;}
  .news-article h1{font-size:20px;}
  .comments-section{padding:20px 16px;}
  .comment-box{flex-direction:column;gap:10px;}
  .comment-tree .depth{padding-right:20px;}

  .to-top{bottom:14px;left:14px;width:42px;height:42px;}

  .mobile-nav-drawer{width:290px;}
}

@media (max-width:380px){
  .products-grid{grid-template-columns:1fr;}
  .cat-grid{grid-template-columns:repeat(2,1fr);}
  .slide-content h2{font-size:22px;}
}


@media (min-width:1101px){
  .mobile-nav-btn{display:none;}
  .nav-desktop-only{display:flex;}
}

