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

/* ===== شایان کامپیوتر — ظاهر کاملاً متفاوت (تک / گیمینگ) ===== */
:root{
  --bg:#07090f;
  --bg2:#0d111c;
  --bg-card:#12181f;
  --bg-elevated:#1a222d;
  --text:#f1f5f9;
  --text-muted:#8b9bb4;
  --primary:#a3e635;          /* لایم نئون */
  --primary-dim:#84cc16;
  --accent:#a78bfa;           /* بنفش */
  --accent2:#38bdf8;          /* آبی روشن */
  --danger:#f43f5e;
  --success:#34d399;
  --warn:#fbbf24;
  --border:rgba(163,230,53,.12);
  --radius:8px;
  --radius-lg:16px;
  --shadow:0 0 0 1px rgba(163,230,53,.08),0 16px 40px rgba(0,0,0,.45);
  --font:"Vazirmatn",system-ui,sans-serif;
  --transition:.2s ease;
}

html{scroll-behavior:smooth}
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
  overflow-x:hidden;
  background-image:
    linear-gradient(rgba(163,230,53,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(163,230,53,.03) 1px,transparent 1px);
  background-size:48px 48px;
  background-attachment:fixed;
}
a{color:inherit;text-decoration:none}
ul{list-style:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
img{max-width:100%;display:block}
.container{width:min(1200px,92%);margin-inline:auto}
.hidden{display:none !important}
.seo-h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* Portfolio notice */
.portfolio-notice{
  background:linear-gradient(90deg,#1a1625,#0f1a12);
  border-bottom:1px solid rgba(167,139,250,.25);
  padding:.65rem 0;
  font-size:.85rem;
  color:var(--text-muted);
  position:relative;z-index:50;
}
.notice-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.portfolio-notice a{color:var(--accent);font-weight:600}
.portfolio-notice a:hover{color:var(--primary)}
.notice-close{color:var(--text-muted);font-size:1rem;padding:.2rem .5rem;border-radius:6px}
.notice-close:hover{background:rgba(255,255,255,.08);color:#fff}

/* Top bar */
.top-bar{
  background:var(--bg2);
  border-bottom:1px solid rgba(255,255,255,.05);
  padding:.45rem 0;
  font-size:.78rem;
  color:var(--text-muted);
}
.top-bar-inner{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;justify-content:space-between}

/* Navbar — flat, tech */
.navbar{
  background:rgba(7,9,15,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:100;
  padding:.85rem 0;
  transition:box-shadow .25s;
}
.navbar.scrolled{box-shadow:0 8px 32px rgba(0,0,0,.5)}
.nav-content{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:.75rem}
.logo-svg{width:42px;height:42px;border-radius:10px}
.logo-text strong{display:block;font-size:1.05rem;font-weight:800;letter-spacing:-.02em}
.logo-text strong span{color:var(--primary)}
.logo-text small{font-size:.7rem;color:var(--text-muted);font-weight:500}

.search-box{
  flex:1;min-width:200px;max-width:480px;
  display:flex;align-items:center;
  background:var(--bg-card);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);
  overflow:hidden;
  transition:var(--transition);
}
.search-box:focus-within{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(163,230,53,.15);
}
.search-box input{
  flex:1;border:none;background:transparent;color:var(--text);
  padding:.7rem 1rem;font-family:inherit;font-size:.9rem;outline:none;
}
.search-box button{
  padding:.7rem 1rem;color:var(--primary);
  background:rgba(163,230,53,.08);
  border-right:1px solid rgba(255,255,255,.06);
}
.search-box button:hover{background:rgba(163,230,53,.18)}

.nav-actions{display:flex;align-items:center;gap:.5rem}
.nav-btn,.cart-btn{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.55rem .9rem;
  background:var(--bg-card);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);
  color:var(--text);font-size:.85rem;font-weight:600;
  transition:var(--transition);
}
.nav-btn:hover,.cart-btn:hover{
  border-color:var(--primary);
  color:var(--primary);
  background:rgba(163,230,53,.08);
}
.cart-count{
  background:var(--primary);color:#0a0f08;
  font-size:.7rem;font-weight:800;
  min-width:18px;height:18px;border-radius:4px;
  display:flex;align-items:center;justify-content:center;
}
.menu-toggle{display:none;flex-direction:column;gap:5px;padding:.4rem}
.menu-toggle span{width:22px;height:2px;background:var(--text);border-radius:2px}

.nav-categories{
  background:var(--bg2);
  border-bottom:1px solid rgba(255,255,255,.05);
  padding:.55rem 0;
}
.nav-categories .container{display:flex;flex-wrap:wrap;gap:.35rem}
.cat-link{
  padding:.4rem .85rem;border-radius:6px;
  font-size:.82rem;font-weight:600;color:var(--text-muted);
  transition:var(--transition);
}
.cat-link:hover,.cat-link.active{
  background:rgba(163,230,53,.12);
  color:var(--primary);
}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
  padding:.7rem 1.35rem;border-radius:var(--radius);
  font-weight:700;font-size:.9rem;transition:var(--transition);
}
.btn-primary{
  background:var(--primary);color:#0a0f08;
  box-shadow:0 0 20px rgba(163,230,53,.25);
}
.btn-primary:hover{background:#b8f04a;transform:translateY(-1px)}
.btn-light{background:#fff;color:#0a0f08}
.btn-light:hover{background:var(--primary)}
.btn-outline{
  background:transparent;color:var(--text);
  border:1.5px solid rgba(255,255,255,.15);
}
.btn-outline:hover{border-color:var(--primary);color:var(--primary)}
.btn-full{width:100%}
.btn-sm{padding:.45rem .9rem;font-size:.8rem}

/* Banners — sharp tech slides */
.banners{padding:1.5rem 0 0}
.banner-slider{position:relative;border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border)}
.banner-track{position:relative;min-height:280px}
.banner-slide{
  position:absolute;inset:0;opacity:0;visibility:hidden;
  transition:opacity .6s ease,visibility .6s;
}
.banner-slide.active{opacity:1;visibility:visible;position:relative}
.banner-bg{width:100%;height:320px;object-fit:cover;filter:brightness(.45) saturate(1.1)}
.banner-overlay{
  position:absolute;inset:0;
  background:linear-gradient(105deg,rgba(7,9,15,.95) 0%,rgba(7,9,15,.55) 55%,transparent 100%);
}
.banner-content{
  position:absolute;inset:0;
  display:flex;flex-direction:column;justify-content:center;
  padding:2rem 2.5rem;max-width:560px;
}
.banner-tag{
  display:inline-block;align-self:flex-start;
  background:var(--primary);color:#0a0f08;
  font-size:.72rem;font-weight:800;
  padding:.3rem .7rem;border-radius:4px;margin-bottom:.85rem;
  letter-spacing:.04em;text-transform:uppercase;
}
.banner-content h2{font-size:clamp(1.4rem,3vw,2.1rem);font-weight:800;margin-bottom:.5rem;line-height:1.3}
.banner-content p{color:var(--text-muted);margin-bottom:1.2rem;font-size:.95rem}
.banner-dots{
  position:absolute;bottom:1rem;left:50%;transform:translateX(-50%);
  display:flex;gap:.4rem;z-index:5;
}
.banner-dot{
  width:8px;height:8px;border-radius:2px;
  background:rgba(255,255,255,.3);cursor:pointer;transition:var(--transition);
}
.banner-dot.active{background:var(--primary);width:22px}

/* Categories — horizontal chips / cards different */
.categories-section{padding:2rem 0 1rem}
.cat-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:.75rem;
}
.cat-card{
  background:var(--bg-card);
  border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius);
  padding:1.15rem .75rem;
  text-align:center;
  transition:var(--transition);
  position:relative;overflow:hidden;
}
.cat-card::before{
  content:"";position:absolute;top:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,var(--primary),var(--accent));
  opacity:0;transition:var(--transition);
}
.cat-card:hover{
  border-color:rgba(163,230,53,.35);
  background:var(--bg-elevated);
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}
.cat-card:hover::before{opacity:1}
.cat-icon{
  width:44px;height:44px;margin:0 auto .65rem;
  display:flex;align-items:center;justify-content:center;
  border-radius:10px;
  background:rgba(163,230,53,.1);
  color:var(--primary);
}
.cat-icon svg{width:22px;height:22px}
.cat-card p{font-size:.82rem;font-weight:700}

/* Products */
.products-section{padding:1.5rem 0 3rem}
.section-header{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:1rem;margin-bottom:1.35rem;
}
.section-title{
  font-size:1.35rem;font-weight:800;
  display:flex;align-items:center;gap:.6rem;
}
.section-title::before{
  content:"";width:4px;height:1.1em;border-radius:2px;
  background:var(--primary);box-shadow:0 0 12px rgba(163,230,53,.5);
}
.filters{display:flex;flex-wrap:wrap;gap:.4rem}
.filter-btn{
  padding:.4rem .85rem;border-radius:6px;
  font-size:.8rem;font-weight:600;color:var(--text-muted);
  background:var(--bg-card);border:1px solid rgba(255,255,255,.06);
  transition:var(--transition);
}
.filter-btn:hover{color:var(--text);border-color:rgba(255,255,255,.15)}
.filter-btn.active{
  background:var(--primary)!important;color:#0a0f08!important;
  border-color:var(--primary)!important;
}

.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:1rem;
}
.product-card{
  background:var(--bg-card);
  border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius-lg);
  overflow:hidden;
  cursor:pointer;
  transition:var(--transition);
  display:flex;flex-direction:column;
}
.product-card:hover{
  border-color:rgba(163,230,53,.3);
  box-shadow:0 12px 36px rgba(0,0,0,.4),0 0 0 1px rgba(163,230,53,.15);
  transform:translateY(-4px);
}
.product-image,.product-img{
  position:relative;
  aspect-ratio:1;
  background:var(--bg2);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.product-image img,.product-img img{
  width:100%;height:100%;object-fit:contain;
  transition:transform .35s ease;
}
.product-card:hover .product-image img,
.product-card:hover .product-img img{transform:scale(1.06)}
.product-badge{
  position:absolute;top:.65rem;right:.65rem;z-index:2;
  padding:.28rem .55rem;border-radius:4px;
  font-size:.72rem;font-weight:800;
  background:var(--accent);color:#fff;
}
.discount-badge{background:var(--danger)!important;color:#fff!important}
.product-badge.new{background:var(--primary);color:#0a0f08}
.product-body{padding:1rem;display:flex;flex-direction:column;flex:1;gap:.35rem}
.product-cat{font-size:.72rem;color:var(--primary);font-weight:700;letter-spacing:.02em}
.product-title{
  font-size:.92rem;font-weight:700;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:2.6em;
}
.product-price{margin-top:auto;padding-top:.5rem;display:flex;align-items:baseline;flex-wrap:wrap;gap:.35rem}
.price-current,.price{
  font-size:1.05rem;font-weight:800;color:var(--primary);
  direction:ltr;unicode-bidi:plaintext;
}
.price-old,.old-price{
  font-size:.8rem;color:var(--text-muted);text-decoration:line-through;
  direction:ltr;unicode-bidi:plaintext;
}
.add-to-cart{
  width:100%;margin-top:.65rem;padding:.65rem;
  background:transparent;color:var(--primary);
  border:1px solid rgba(163,230,53,.35);
  border-radius:var(--radius);font-weight:700;font-size:.85rem;
  transition:var(--transition);
}
.add-to-cart:hover{
  background:var(--primary);color:#0a0f08;
  box-shadow:0 0 16px rgba(163,230,53,.3);
}

/* Search page */
.search-page{min-height:70vh;padding:1.5rem 0 3rem}
.search-page.hidden{display:none!important}
.search-page-header{
  display:flex;flex-wrap:wrap;align-items:center;gap:1rem;
  margin-bottom:1.25rem;padding-bottom:1rem;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.search-back{
  display:inline-flex;align-items:center;gap:.4rem;
  background:var(--bg-card);border:1px solid rgba(255,255,255,.1);
  color:var(--text);padding:.5rem 1rem;border-radius:var(--radius);
  font-size:.88rem;font-weight:600;
}
.search-back:hover{border-color:var(--primary);color:var(--primary)}
.search-query-box{flex:1;min-width:180px}
.search-label{color:var(--text-muted);font-size:.88rem;margin-left:.35rem}
.search-query-box strong{color:var(--primary);font-size:1.1rem}
.search-count{
  background:var(--bg-card);color:var(--text-muted);
  padding:.35rem .85rem;border-radius:20px;font-size:.85rem;
  border:1px solid rgba(255,255,255,.06);
}
.search-page-filters{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1.4rem}
.search-empty{text-align:center;padding:4rem 1rem;color:var(--text-muted)}
.search-empty-icon{font-size:2.5rem;margin-bottom:.75rem}
.search-empty h3{color:#fff;margin-bottom:.4rem}
body.search-mode .banners,
body.search-mode .categories-section,
body.search-mode .products-section,
body.search-mode .articles-section,
body.search-mode .features,
body.search-mode .portfolio-notice{display:none!important}
body.search-mode .search-page{display:block!important}

/* Articles */
.articles-section{padding:2rem 0 3rem}
.articles-section .section-title{margin-bottom:1.25rem}
.articles-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;
}
.article-card{
  background:var(--bg-card);border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius-lg);overflow:hidden;transition:var(--transition);cursor:pointer;
}
.article-card:hover{border-color:rgba(167,139,250,.4);transform:translateY(-3px)}
.article-img{height:160px;overflow:hidden;background:var(--bg2)}
.article-img img{width:100%;height:100%;object-fit:cover}
.article-body{padding:1.1rem}
.article-tag{font-size:.72rem;color:var(--accent);font-weight:700}
.article-body h3{font-size:1rem;margin:.4rem 0 .5rem;line-height:1.45}
.article-body p{font-size:.85rem;color:var(--text-muted);margin-bottom:.6rem}
.article-link{font-size:.85rem;font-weight:700;color:var(--primary)}

/* Features / trust */
.features,.trust-bar{padding:1.5rem 0 2.5rem}
.features-grid,.trust-bar{
  display:grid;grid-template-columns:repeat(4,1fr);gap:.85rem;
}
.feature-item,.trust-item{
  background:var(--bg-card);border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius);padding:1.1rem;text-align:center;
}
.feature-item span:first-child,.trust-item span:first-child{font-size:1.6rem;display:block;margin-bottom:.4rem}
.feature-item h4,.trust-item strong{font-size:.9rem;margin-bottom:.2rem}
.feature-item p,.trust-item span:last-child{font-size:.78rem;color:var(--text-muted)}

/* Footer */
.footer{
  background:var(--bg2);
  border-top:1px solid rgba(163,230,53,.1);
  padding:2.5rem 0 1.5rem;margin-top:1rem;
}
.footer-grid{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:1.5rem;
  margin-bottom:1.5rem;
}
.footer-logo{display:flex;align-items:center;gap:.6rem;margin-bottom:.75rem}
.footer-col p{font-size:.85rem;color:var(--text-muted);margin-bottom:.4rem}
.footer-col h4{font-size:.9rem;margin-bottom:.75rem;color:var(--primary)}
.footer-col a{display:block;font-size:.85rem;color:var(--text-muted);margin-bottom:.35rem}
.footer-col a:hover{color:var(--primary)}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.05);
  padding-top:1rem;text-align:center;
  font-size:.8rem;color:var(--text-muted);
}
.footer-bottom a{color:var(--accent);font-weight:600}

/* Modals */
.modal-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.75);
  z-index:300;display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;transition:var(--transition);padding:1rem;
  backdrop-filter:blur(4px);
}
.modal-overlay.open{opacity:1;visibility:visible}
.modal{
  background:var(--bg-card);border-radius:var(--radius-lg);
  max-width:640px;width:100%;max-height:90vh;overflow-y:auto;
  position:relative;border:1px solid rgba(163,230,53,.15);
  transform:scale(.96);transition:var(--transition);
  box-shadow:0 24px 64px rgba(0,0,0,.55);
}
.modal-overlay.open .modal{transform:scale(1)}
.modal-close{
  width:36px;height:36px;display:flex;align-items:center;justify-content:center;
  font-size:1.1rem;color:var(--text-muted);border-radius:8px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);
  cursor:pointer;transition:var(--transition);
}
.modal-close:hover{color:#fff;background:rgba(244,63,94,.25);border-color:rgba(244,63,94,.4)}

/* Auth modal */
.auth-modal{max-width:420px;padding:0 0 1.4rem;overflow:hidden}
.auth-modal-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:1.1rem 1.2rem .8rem;border-bottom:1px solid rgba(255,255,255,.06);
}
.auth-modal-title{font-size:1.05rem;font-weight:800;margin:0;padding-left:0}
.auth-close-btn{position:static!important;flex-shrink:0}
.auth-tabs{
  display:flex;gap:4px;margin:1.1rem 1.2rem 1rem;padding:4px;
  background:var(--bg2);border-radius:var(--radius);
}
.auth-tab{
  flex:1;padding:.6rem;border-radius:6px;font-weight:700;font-size:.88rem;
  color:var(--text-muted);background:transparent;cursor:pointer;transition:var(--transition);
}
.auth-tab.active{background:var(--primary);color:#0a0f08}
.auth-tab:not(.active):hover{color:#fff;background:rgba(255,255,255,.05)}
.auth-tabs.hidden{display:none!important}
.auth-form{padding:0 1.2rem}
.auth-demo-msg{padding:.5rem 1.2rem}
.auth-success{text-align:center;padding:1rem .5rem}
.auth-success h3{color:var(--success);margin-bottom:.7rem;font-size:1.1rem}
.auth-success p{color:var(--text-muted);line-height:1.7;font-size:.9rem}

.form-group{margin-bottom:1rem}
.form-group label{display:block;margin-bottom:.3rem;font-size:.82rem;font-weight:600;color:var(--text-muted)}
.form-group input{
  width:100%;padding:.7rem .95rem;
  background:var(--bg2);border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius);color:var(--text);font-family:inherit;font-size:.9rem;outline:none;
}
.form-group input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(163,230,53,.15);
}

/* Product detail modal */
.pd-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;padding:1.5rem}
.pd-image{background:var(--bg2);border-radius:var(--radius);padding:1rem;display:flex;align-items:center;justify-content:center}
.pd-image img{max-height:280px;object-fit:contain}
.pd-info{padding:.5rem 0}
.pd-cat{color:var(--primary);font-size:.82rem;font-weight:700;margin-bottom:.5rem}
.pd-info h2{font-size:1.25rem;margin-bottom:.75rem}
.pd-price{margin-bottom:1rem}
.pd-price .current{font-size:1.3rem;font-weight:800;color:var(--primary)}
.pd-price .old{font-size:.9rem;color:var(--text-muted);text-decoration:line-through;margin-right:.5rem}
.pd-desc{color:var(--text-muted);font-size:.9rem;margin-bottom:1rem}
.pd-specs h4{font-size:.9rem;margin-bottom:.5rem}
.pd-specs ul{padding-right:1rem}
.pd-specs li{font-size:.85rem;color:var(--text-muted);margin-bottom:.3rem;list-style:disc}
.pd-actions{margin-top:1.2rem}

/* Cart sidebar — از سمت راست در RTL */
.cart-sidebar{
  position:fixed;top:0;right:0;width:min(400px,100%);height:100%;
  background:var(--bg-card);z-index:250;
  transform:translateX(110%);transition:transform .3s ease;
  border-left:1px solid rgba(163,230,53,.2);
  display:flex;flex-direction:column;
  box-shadow:-12px 0 40px rgba(0,0,0,.5);
}
.cart-sidebar.open{transform:translateX(0)}
.cart-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:1.15rem 1.25rem;border-bottom:1px solid rgba(255,255,255,.08);
  flex-shrink:0;
}
.cart-header h3{font-size:1.05rem;font-weight:800}
.cart-items{flex:1;overflow-y:auto;padding:1rem 1.25rem}
.empty-cart{text-align:center;color:var(--text-muted);padding:3rem 1rem;font-size:.95rem}
.cart-item{
  display:flex;gap:.85rem;padding:1rem 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  align-items:flex-start;
}
.cart-item-img{flex-shrink:0}
.cart-item-img img,.cart-item img{
  width:72px;height:72px;object-fit:contain;
  background:var(--bg2);border-radius:8px;border:1px solid rgba(255,255,255,.06);
}
.cart-item-info{flex:1;min-width:0}
.cart-item-info h4{
  font-size:.88rem;margin-bottom:.35rem;font-weight:700;line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.cart-item-info .price{font-size:.9rem;color:var(--primary);font-weight:800;margin-bottom:.5rem}
.cart-item-actions{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.qty-btn{
  width:28px;height:28px;border-radius:6px;
  background:var(--bg2);border:1px solid rgba(255,255,255,.1);
  color:var(--text);font-weight:700;font-size:1rem;
  display:flex;align-items:center;justify-content:center;
}
.qty-btn:hover{border-color:var(--primary);color:var(--primary)}
.qty-value{min-width:24px;text-align:center;font-weight:700;font-size:.9rem}
.remove-item{
  margin-right:auto;font-size:.78rem;color:var(--danger);font-weight:600;
  padding:.25rem .5rem;border-radius:4px;
}
.remove-item:hover{background:rgba(244,63,94,.12)}
.cart-footer{
  padding:1.15rem 1.25rem;border-top:1px solid rgba(255,255,255,.08);
  flex-shrink:0;background:var(--bg2);
}
.cart-total{
  display:flex;justify-content:space-between;align-items:center;
  font-weight:800;margin-bottom:1rem;font-size:1rem;
}
.cart-total strong{color:var(--primary);font-size:1.1rem}
.cart-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:240;
  opacity:0;visibility:hidden;transition:var(--transition);
  backdrop-filter:blur(2px);
}
.cart-overlay.open{opacity:1;visibility:visible}

/* Category image icons */
.cat-icon{
  width:64px;height:64px;margin:0 auto .65rem;
  border-radius:12px;overflow:hidden;
  background:var(--bg2);border:1px solid rgba(163,230,53,.15);
  display:flex;align-items:center;justify-content:center;padding:0;
}
.cat-icon img{width:100%;height:100%;object-fit:cover}
.cat-icon svg{display:none}

/* Article modal */
.article-modal{max-width:680px;padding:1.5rem}
.article-detail img{width:100%;border-radius:var(--radius);margin-bottom:1rem;max-height:240px;object-fit:cover}
.article-detail .article-tag{display:inline-block;margin-bottom:.5rem}
.article-detail h2{font-size:1.3rem;margin-bottom:1rem}
.article-detail p{color:var(--text-muted);margin-bottom:.85rem}

/* Responsive */
@media(max-width:900px){
  .cat-grid{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .pd-grid{grid-template-columns:1fr}
  .features-grid,.trust-bar{grid-template-columns:repeat(2,1fr)!important}
  .banner-bg{height:260px}
}
@media(max-width:640px){
  .nav-btn span,.cart-btn span:not(.cart-count){display:none}
  .cat-grid{grid-template-columns:repeat(2,1fr)}
  .search-box{order:3;max-width:100%;flex-basis:100%}
  .footer-grid{grid-template-columns:1fr}
  .banner-content{padding:1.25rem}
  .banner-bg{height:220px}
  .menu-toggle{display:flex}
}

.close-cart{
  width:36px;height:36px;display:flex;align-items:center;justify-content:center;
  border-radius:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);
  color:var(--text-muted);font-size:1.1rem;cursor:pointer;
}
.close-cart:hover{color:#fff;background:rgba(244,63,94,.2);border-color:rgba(244,63,94,.35)}
.toast{
  position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%) translateY(100px);
  background:var(--bg-elevated);color:var(--text);padding:.75rem 1.25rem;
  border-radius:8px;border:1px solid rgba(163,230,53,.25);z-index:400;
  opacity:0;transition:.3s ease;font-size:.9rem;font-weight:600;
  box-shadow:0 8px 24px rgba(0,0,0,.4);
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}


/* ===== Digikala-style mega menu ===== */
.cat-menu-btn{
  display:inline-flex;align-items:center;gap:.45rem;
  padding:.55rem 1rem;border-radius:8px;
  background:rgba(163,230,53,.12);border:1px solid rgba(163,230,53,.3);
  color:var(--primary);font-weight:700;font-size:.88rem;
  cursor:pointer;transition:var(--transition);white-space:nowrap;
}
.cat-menu-btn:hover,.cat-menu-btn.open{
  background:var(--primary);color:#0a0f08;
}
.mega-wrap{position:relative}
.mega-menu{
  position:absolute;top:calc(100% + 8px);right:0;
  width:min(920px,92vw);max-height:70vh;overflow:auto;
  background:var(--bg-card);
  border:1px solid rgba(163,230,53,.2);
  border-radius:12px;
  box-shadow:0 20px 50px rgba(0,0,0,.55);
  display:none;z-index:200;
  padding:0;
}
.mega-menu.open{display:flex}
.mega-side{
  width:200px;flex-shrink:0;
  background:var(--bg2);
  border-left:1px solid rgba(255,255,255,.06);
  padding:.75rem 0;
}
.mega-side-item{
  display:flex;align-items:center;justify-content:space-between;
  width:100%;padding:.7rem 1rem;
  font-size:.88rem;font-weight:600;color:var(--text-muted);
  text-align:right;cursor:pointer;border:none;background:transparent;
  font-family:inherit;transition:var(--transition);
}
.mega-side-item:hover,.mega-side-item.active{
  background:rgba(163,230,53,.1);color:var(--primary);
}
.mega-main{flex:1;padding:1.25rem 1.5rem;display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.mega-col h4{
  font-size:.9rem;font-weight:800;color:var(--primary);
  margin-bottom:.75rem;padding-bottom:.4rem;
  border-bottom:2px solid rgba(163,230,53,.25);
}
.mega-col a{
  display:block;font-size:.84rem;color:var(--text-muted);
  padding:.35rem 0;transition:var(--transition);
}
.mega-col a:hover{color:var(--primary);padding-right:.35rem}
.mega-backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:150;
  display:none;
}
.mega-backdrop.open{display:block}
@media(max-width:768px){
  .mega-menu{flex-direction:column;width:min(100vw - 1rem,400px);right:0;left:auto}
  .mega-side{width:100%;display:flex;overflow-x:auto;border-left:none;border-bottom:1px solid rgba(255,255,255,.06)}
  .mega-side-item{white-space:nowrap}
  .mega-main{grid-template-columns:1fr 1fr}
  .features-grid{grid-template-columns:repeat(2,1fr)!important}
}
