*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{--bg:#0a0e17;--bg-card:#121826;--bg-card-hover:#1a2336;--text:#eef2ff;--text-muted:#94a3b8;--primary:#3b82f6;--primary-dark:#2563eb;--accent:#22d3ee;--success:#10b981;--danger:#ef4444;--gradient:linear-gradient(135deg,#3b82f6,#22d3ee);--radius:14px;--shadow:0 8px 30px rgba(0,0,0,.35);--transition:.25s cubic-bezier(.4,0,.2,1)}
html{scroll-behavior:smooth}
body{font-family:"Vazirmatn",system-ui,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;overflow-x:hidden}
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,94%);margin-inline:auto}
.hidden{display:none!important}

/* Portfolio Notice */
.portfolio-notice{background:linear-gradient(90deg,#1e3a8a,#3b82f6);padding:.7rem 0;font-size:.88rem;position:relative;z-index:110}
.notice-inner{display:flex;align-items:center;justify-content:center;gap:1rem;text-align:center;flex-wrap:wrap}
.portfolio-notice a{color:#fff;font-weight:700;text-decoration:underline}
.notice-close{color:#fff;font-size:1.1rem;opacity:.8;padding:.2rem .5rem}.notice-close:hover{opacity:1}

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

/* Navbar */
.navbar{position:sticky;top:0;z-index:100;background:rgba(10,14,23,.92);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.06)}
.nav-content{display:flex;align-items:center;gap:1.2rem;padding:.85rem 0}
.logo{display:flex;align-items:center;gap:.6rem;white-space:nowrap}
.logo-svg{width:40px;height:40px;flex-shrink:0}
.logo-text{display:flex;flex-direction:column;line-height:1.2}
.logo-text strong{font-size:1.1rem;font-weight:800}
.logo-text small{font-size:.7rem;color:var(--text-muted)}
.search-box{flex:1;display:flex;max-width:460px;background:var(--bg-card);border-radius:12px;border:1px solid rgba(255,255,255,.08);overflow:hidden;transition:var(--transition)}
.search-box:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px rgba(59,130,246,.2)}
.search-box input{flex:1;padding:.65rem 1rem;background:transparent;border:none;color:var(--text);font-size:.9rem;outline:none;font-family:inherit}
.search-box button{padding:0 1rem;color:var(--text-muted)}
.nav-actions{display:flex;align-items:center;gap:.6rem}
.nav-btn,.cart-btn{display:flex;align-items:center;gap:.4rem;background:var(--bg-card);padding:.55rem .9rem;border-radius:10px;color:var(--text);font-weight:600;font-size:.85rem;border:1px solid rgba(255,255,255,.08);transition:var(--transition);position:relative}
.nav-btn:hover,.cart-btn:hover{background:var(--bg-card-hover);border-color:var(--primary)}
.cart-count{background:var(--primary);color:#fff;font-size:.68rem;font-weight:700;min-width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.menu-toggle{display:none;flex-direction:column;gap:5px;padding:4px}
.menu-toggle span{width:22px;height:2px;background:var(--text);border-radius:2px;transition:var(--transition)}
.nav-categories{border-top:1px solid rgba(255,255,255,.05);padding:.55rem 0;overflow-x:auto}
.nav-categories .container{display:flex;gap:.4rem;flex-wrap:nowrap}
.cat-link{white-space:nowrap;padding:.35rem .85rem;border-radius:8px;font-size:.84rem;color:var(--text-muted);transition:var(--transition)}
.cat-link:hover,.cat-link.active{background:rgba(59,130,246,.15);color:var(--primary)}

/* Banners */
.banners{padding:1.5rem 0 1rem}
.banner-slider{position:relative;border-radius:var(--radius);overflow:hidden;height:320px;box-shadow:0 12px 40px rgba(0,0,0,.35)}
.banner-track{position:relative;height:100%;width:100%}
.banner-slide{position:absolute;inset:0;display:flex;align-items:center;padding:2rem 3rem;overflow:hidden;direction:rtl;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility .6s ease;z-index:0}
.banner-slide.active{opacity:1;visibility:visible;z-index:1}
.banner-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:0;display:block}
.banner-overlay{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(15,23,42,.7) 0%,rgba(15,23,42,.4) 55%,rgba(15,23,42,.2) 100%)}
.banner-content{z-index:2;max-width:520px;position:relative}
.banner-tag{display:inline-block;background:rgba(59,130,246,.9);color:#fff;padding:.35rem .9rem;border-radius:50px;font-size:.8rem;font-weight:700;margin-bottom:.9rem;box-shadow:0 4px 12px rgba(59,130,246,.4)}
.banner-content h2{font-size:clamp(1.5rem,3.2vw,2.35rem);font-weight:800;margin-bottom:.55rem;line-height:1.3;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.3)}
.banner-content p{opacity:.95;margin-bottom:1.3rem;font-size:1rem;color:#e2e8f0}
.banner-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.15);backdrop-filter:blur(8px);color:#fff;font-size:1.5rem;display:flex;align-items:center;justify-content:center;z-index:5;transition:var(--transition);border:1px solid rgba(255,255,255,.2)}
.banner-nav:hover{background:rgba(255,255,255,.3)}
.banner-nav.prev{right:1.2rem}.banner-nav.next{left:1.2rem}
.banner-dots{position:absolute;bottom:1.2rem;left:50%;transform:translateX(-50%);display:flex;gap:.45rem;z-index:5}
.banner-dots button{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.45);transition:var(--transition);border:none;cursor:pointer}
.banner-dots button.active{background:#fff;width:26px;border-radius:5px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:.75rem 1.5rem;border-radius:12px;font-weight:600;font-size:.92rem;transition:var(--transition)}
.btn-primary{background:var(--gradient);color:#fff;box-shadow:0 4px 18px rgba(59,130,246,.4)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(59,130,246,.5)}
.btn-light{background:#fff;color:#1e3a8a;font-weight:700}
.btn-light:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,.2)}
.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:.5rem 1rem;font-size:.82rem}

/* Categories */
.categories-section{padding:1rem 0 1.5rem}
.cat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem}
.cat-card{background:var(--bg-card);border-radius:var(--radius);padding:1.4rem .8rem 1.2rem;text-align:center;border:1px solid rgba(255,255,255,.06);transition:var(--transition);display:flex;flex-direction:column;align-items:center;gap:.7rem}
.cat-card:hover{background:var(--bg-card-hover);border-color:var(--primary);transform:translateY(-5px);box-shadow:0 10px 28px rgba(59,130,246,.15)}
.cat-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:rgba(59,130,246,.12);color:var(--primary);transition:var(--transition)}
.cat-card:hover .cat-icon{background:rgba(59,130,246,.22);color:var(--accent);transform:scale(1.08)}
.cat-icon svg{width:26px;height:26px}
.cat-card p{font-size:.88rem;font-weight:600;margin:0}

/* Products */
.products-section{padding:2rem 0 3.5rem}
.section-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.8rem}
.section-title{font-size:1.55rem;font-weight:700;text-align:center;margin-bottom:1.5rem;position:relative}
.section-header .section-title{margin-bottom:0;text-align:right}
.section-title::after{content:"";display:block;width:50px;height:3px;background:var(--gradient);border-radius:2px;margin:.6rem auto 0}
.section-header .section-title::after{margin:.5rem 0 0 auto}
.filter-tabs{display:flex;flex-wrap:wrap;gap:.35rem}
.filter-btn{padding:.4rem .9rem;border-radius:8px;font-size:.83rem;font-weight:500;color:var(--text-muted);background:var(--bg-card);border:1px solid rgba(255,255,255,.06);transition:var(--transition)}
.filter-btn:hover,.filter-btn.active{background:rgba(59,130,246,.2);color:var(--primary);border-color:rgba(59,130,246,.4)}
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.3rem}
.product-card{background:var(--bg-card);border-radius:var(--radius);overflow:hidden;border:1px solid rgba(255,255,255,.06);transition:var(--transition);display:flex;flex-direction:column;cursor:pointer}
.product-card:hover{transform:translateY(-6px);box-shadow:var(--shadow);border-color:rgba(59,130,246,.3)}
.product-image{height:200px;background:#0f172a;position:relative;overflow:hidden}
.product-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.product-card:hover .product-image img{transform:scale(1.06)}
.product-badge{position:absolute;top:10px;right:10px;background:var(--danger);color:#fff;font-size:.7rem;font-weight:700;padding:.25rem .6rem;border-radius:6px;z-index:2}
.product-badge.new{background:var(--success)}
.product-body{padding:1.1rem;flex:1;display:flex;flex-direction:column}
.product-cat{font-size:.75rem;color:var(--primary);font-weight:500;margin-bottom:.3rem}
.product-title{font-size:1rem;font-weight:600;margin-bottom:.5rem;line-height:1.4}
.product-price{display:flex;align-items:center;gap:.55rem;margin-bottom:1rem;margin-top:auto}
.price-current{font-size:1.1rem;font-weight:700;color:var(--accent)}
.price-old{font-size:.82rem;color:var(--text-muted);text-decoration:line-through}
.add-to-cart{width:100%;padding:.65rem;background:rgba(59,130,246,.15);color:var(--primary);border-radius:10px;font-weight:600;font-size:.88rem;transition:var(--transition);border:1px solid rgba(59,130,246,.25)}
.add-to-cart:hover{background:var(--primary);color:#fff}

/* Articles */
.articles-section{padding:2.5rem 0 3.5rem;background:rgba(59,130,246,.03)}
.articles-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.4rem}
.article-card{background:var(--bg-card);border-radius:var(--radius);overflow:hidden;border:1px solid rgba(255,255,255,.06);transition:var(--transition)}
.article-card:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:rgba(59,130,246,.25)}
.article-img{height:160px;display:flex;align-items:center;justify-content:center;font-size:3.5rem;overflow:hidden;background:#0f172a}
.article-img img{width:100%;height:100%;object-fit:cover}
.article-body{padding:1.2rem}
.article-tag{font-size:.72rem;color:var(--primary);font-weight:600}
.article-body h3{font-size:1.05rem;margin:.4rem 0 .6rem;line-height:1.4}
.article-body p{color:var(--text-muted);font-size:.88rem;margin-bottom:.8rem}
.article-link{color:var(--accent);font-weight:600;font-size:.88rem}
.article-link:hover{color:var(--primary)}

/* Features */
.features{padding:2.2rem 0;border-top:1px solid rgba(255,255,255,.04);border-bottom:1px solid rgba(255,255,255,.04)}
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.4rem}
.feature-item{display:flex;align-items:center;gap:.9rem}
.feature-item span{font-size:1.7rem}
.feature-item strong{display:block;font-size:.92rem}
.feature-item p{font-size:.78rem;color:var(--text-muted)}

/* Footer */
.footer{padding:3rem 0 0}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2rem;margin-bottom:2rem}
.footer-logo{display:flex;align-items:center;gap:.5rem;margin-bottom:.8rem}
.footer-col h4{font-size:.95rem;margin-bottom:.8rem;color:var(--text-muted)}
.footer-col p,.footer-col a{display:block;color:var(--text-muted);font-size:.88rem;margin-bottom:.4rem;transition:var(--transition)}
.footer-col a:hover{color:var(--primary)}
.footer-bottom{text-align:center;padding:1.2rem 0;border-top:1px solid rgba(255,255,255,.06);color:var(--text-muted);font-size:.85rem}
.footer-bottom a{color:var(--accent)}

/* Modals */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:300;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:var(--transition);padding:1rem}
.modal-overlay.open{opacity:1;visibility:visible}
.modal{background:var(--bg-card);border-radius:var(--radius);max-width:640px;width:100%;max-height:90vh;overflow-y:auto;position:relative;border:1px solid rgba(255,255,255,.08);transform:scale(.95);transition:var(--transition)}
.modal-overlay.open .modal{transform:scale(1)}
.modal-close{position:absolute;top:1rem;left:1rem;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:1.15rem;color:var(--text-muted);z-index:10;padding:0;border-radius:10px;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(239,64,86,.25);border-color:rgba(239,64,86,.4)}

/* Product Detail */
.product-detail{padding:1.5rem}
.pd-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:1.5rem}
.pd-image{border-radius:12px;overflow:hidden;background:#0f172a;aspect-ratio:1;display:flex;align-items:center;justify-content:center}
.pd-image img{width:100%;height:100%;object-fit:cover}
.pd-info h2{font-size:1.35rem;margin-bottom:.5rem}
.pd-cat{color:var(--primary);font-size:.85rem;font-weight:500;margin-bottom:.8rem}
.pd-price{display:flex;align-items:center;gap:.7rem;margin-bottom:1rem}
.pd-price .current{font-size:1.4rem;font-weight:800;color:var(--accent)}
.pd-price .old{font-size:.95rem;color:var(--text-muted);text-decoration:line-through}
.pd-specs{margin:1.2rem 0}
.pd-specs h4{font-size:.95rem;margin-bottom:.6rem}
.pd-specs ul{display:grid;gap:.4rem}
.pd-specs li{font-size:.88rem;color:var(--text-muted);padding:.35rem .6rem;background:rgba(255,255,255,.04);border-radius:6px}
.pd-desc{color:var(--text-muted);font-size:.9rem;margin-bottom:1.2rem;line-height:1.7}
.pd-actions{display:flex;gap:.7rem}
.pd-actions .btn{flex:1}

/* Auth */
.auth-modal{max-width:420px;padding:0 0 1.5rem;overflow:hidden}
.auth-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.15rem 1.25rem 0.85rem;border-bottom:1px solid rgba(255,255,255,.06);position:relative}
.auth-modal-title{font-size:1.05rem;font-weight:700;color:#fff;margin:0;padding-left:2.5rem}
.auth-close-btn{position:static !important;flex-shrink:0;margin:0}
.auth-tabs{display:flex;gap:.5rem;margin:1.15rem 1.25rem 1rem;padding:4px;background:rgba(255,255,255,.04);border-radius:12px}
.auth-tab{flex:1;padding:.65rem;border-radius:10px;font-weight:600;font-size:.9rem;color:var(--text-muted);background:transparent;border:none;cursor:pointer;font-family:inherit;transition:var(--transition)}
.auth-tab.active{background:#ef4056;color:#fff;box-shadow:0 4px 12px rgba(239,64,86,.35)}
.auth-tab:not(.active):hover{color:#fff;background:rgba(255,255,255,.06)}
.auth-form{padding:0 1.25rem}
.auth-demo-msg{padding:0.5rem 1.25rem 0.25rem}
.auth-success{text-align:center;padding:1rem 0.5rem}
.auth-success h3{color:#22c55e;margin-bottom:.75rem;font-size:1.15rem}
.auth-success p{color:#cbd5e1;line-height:1.7;font-size:.92rem}
.auth-tabs.hidden{display:none !important}
.form-group{margin-bottom:1.1rem}
.form-group label{display:block;margin-bottom:.35rem;font-size:.85rem;font-weight:500}
.form-group input{width:100%;padding:.75rem 1rem;background:rgba(0,0,0,.3);border:1px solid rgba(255,255,255,.1);border-radius:10px;color:var(--text);font-family:inherit;font-size:.9rem;outline:none;transition:var(--transition)}
.form-group input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(59,130,246,.2)}
.demo-box{text-align:center;padding:1rem 0}
.demo-box h3{font-size:1.2rem;margin-bottom:.8rem}
.demo-box p{color:var(--text-muted);font-size:.9rem;margin-bottom:.6rem}
.demo-box .btn{margin-top:1rem}

/* Article detail */
.article-modal{max-width:680px}
.article-detail{padding:2rem 1.5rem}
.article-detail h2{font-size:1.4rem;margin-bottom:1rem}
.article-detail .meta{color:var(--text-muted);font-size:.85rem;margin-bottom:1.2rem}
.article-detail .content{color:var(--text-muted);font-size:.95rem;line-height:1.9}
.article-detail .content p{margin-bottom:1rem}

/* Cart */
.cart-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:200;opacity:0;visibility:hidden;transition:var(--transition)}
.cart-overlay.open{opacity:1;visibility:visible}
.cart-sidebar{position:fixed;top:0;left:0;width:min(380px,92vw);height:100vh;background:var(--bg-card);z-index:210;display:flex;flex-direction:column;transform:translateX(-100%);transition:transform .35s cubic-bezier(.4,0,.2,1);box-shadow:10px 0 40px rgba(0,0,0,.4)}
.cart-sidebar.open{transform:translateX(0)}
.cart-header{display:flex;justify-content:space-between;align-items:center;padding:1.2rem 1.4rem;border-bottom:1px solid rgba(255,255,255,.08)}
.cart-header h3{font-size:1.1rem}
.close-cart{font-size:1.2rem;color:var(--text-muted)}
.cart-items{flex:1;overflow-y:auto;padding:1rem 1.4rem}
.empty-cart{text-align:center;color:var(--text-muted);padding:3rem 0}
.cart-item{display:flex;gap:.9rem;padding:.9rem 0;border-bottom:1px solid rgba(255,255,255,.06)}
.cart-item-img{width:60px;height:60px;background:#1e293b;border-radius:10px;overflow:hidden;flex-shrink:0}
.cart-item-img img{width:100%;height:100%;object-fit:cover}
.cart-item-info{flex:1}
.cart-item-info h4{font-size:.88rem;margin-bottom:.25rem}
.cart-item-info .price{color:var(--accent);font-weight:600;font-size:.88rem}
.cart-item-actions{display:flex;align-items:center;gap:.45rem;margin-top:.35rem}
.qty-btn{width:26px;height:26px;border-radius:6px;background:rgba(255,255,255,.08);color:var(--text);font-size:1rem;display:flex;align-items:center;justify-content:center}
.qty-btn:hover{background:rgba(59,130,246,.3)}
.qty-value{font-size:.88rem;min-width:20px;text-align:center}
.remove-item{color:var(--danger);font-size:.78rem;margin-right:auto}
.cart-footer{padding:1.2rem 1.4rem;border-top:1px solid rgba(255,255,255,.08)}
.cart-total{display:flex;justify-content:space-between;margin-bottom:1rem;font-size:1.05rem}

/* Toast */
.toast{position:fixed;bottom:2rem;left:50%;transform:translateX(-50%) translateY(100px);background:var(--success);color:#fff;padding:.85rem 1.5rem;border-radius:12px;font-weight:600;font-size:.88rem;z-index:400;opacity:0;transition:all .35s ease;box-shadow:0 8px 25px rgba(16,185,129,.4)}
.toast.show{transform:translateX(-50%) translateY(0);opacity:1}

/* Responsive */
@media(max-width:900px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .pd-grid{grid-template-columns:1fr}
  .banner-slider{height:260px}
}
@media(max-width:700px){
  .search-box{display:none}
  .menu-toggle{display:flex}
  .nav-categories{display:none}
  .nav-categories.open{display:block}
  .nav-btn span,.cart-btn span:not(.cart-count){display:none}
  .footer-grid{grid-template-columns:1fr}
  .banner-slide{padding:1.5rem}
  
  .banner-slider{height:240px}
  .top-bar-inner{justify-content:center}
}
@media(max-width:480px){
  .products-grid{grid-template-columns:1fr 1fr;gap:.8rem}
  .product-image{height:140px}
  .product-body{padding:.8rem}
  .product-title{font-size:.85rem}
  .price-current{font-size:.95rem}
}

/* Auth logged in */
.nav-btn.logged-in{border-color:var(--success);color:var(--success)}
.auth-success{text-align:center;padding:1.5rem 0}
.auth-success h3{color:var(--success);margin-bottom:.8rem;font-size:1.2rem}
.auth-success p{color:var(--text-muted);font-size:.9rem;margin-bottom:.5rem}
.auth-success .btn{margin-top:1rem}
.form-error{color:var(--danger);font-size:.8rem;margin-top:.35rem;display:none}
.form-group.error input{border-color:var(--danger)}
.form-group.error .form-error{display:block}


/* SEO */
.seo-h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* Digikala-like polish */
.product-card{
  transition:transform .2s ease, box-shadow .2s ease;
}
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 32px rgba(0,0,0,.35);
}
.product-card .price{
  font-size:1.05rem;
  font-weight:800;
  color:#ef4056;
  direction:ltr;
  text-align:right;
}
.product-card .old-price{
  text-decoration:line-through;
  opacity:.5;
  font-size:.85rem;
  margin-left:.4rem;
}
.product-img{
  background:#0f172a;
  aspect-ratio:1;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.product-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform .3s ease;
}
.product-card:hover .product-img img{
  transform:scale(1.05);
}
.filter-btn.active{
  background:#ef4056 !important;
  border-color:#ef4056 !important;
  color:#fff !important;
}
.btn-primary{
  background:linear-gradient(135deg,#ef4056,#d62848) !important;
  border:none;
}
.btn-primary:hover{
  filter:brightness(1.08);
}
.banner-tag{
  background:#ef4056 !important;
}
.cart-count{
  background:#ef4056 !important;
}
.navbar.scrolled{
  box-shadow:0 4px 20px rgba(0,0,0,.4);
}
.trust-bar{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1rem;
  padding:1.5rem 0;
  margin:1rem 0 2rem;
}
.trust-item{
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:1rem;
  background:var(--bg-card, #111827);
  border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
}
.trust-item span:first-child{font-size:1.5rem}
.breadcrumb{
  display:flex;
  gap:.5rem;
  align-items:center;
  font-size:.85rem;
  color:#94a3b8;
  padding:1rem 0 .5rem;
  flex-wrap:wrap;
}
.breadcrumb a{color:#94a3b8;text-decoration:none}
.breadcrumb a:hover{color:#ef4056}
.breadcrumb span{opacity:.5}
@media(max-width:768px){
  .trust-bar{grid-template-columns:repeat(2,1fr)}
}

.discount-badge{
  background:#ef4056 !important;
  color:#fff !important;
  font-weight:800;
  font-size:.8rem;
}
.product-badge{
  position:absolute;
  top:.75rem;
  right:.75rem;
  z-index:2;
  padding:.25rem .55rem;
  border-radius:6px;
  font-size:.75rem;
  font-weight:700;
}
.product-image{position:relative}

/* ===== Search Results Page (Digikala style) ===== */
.search-page{
  min-height:70vh;
  padding:1.5rem 0 3rem;
  background:var(--bg, #0a0e17);
}
.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,.08);
}
.search-back{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  background:var(--bg-card, #111827);
  border:1px solid rgba(255,255,255,.1);
  color:#e2e8f0;
  padding:.5rem 1rem;
  border-radius:10px;
  cursor:pointer;
  font-family:inherit;
  font-size:.9rem;
  transition:all .2s;
}
.search-back:hover{border-color:#ef4056;color:#ef4056}
.search-query-box{
  flex:1;
  min-width:200px;
}
.search-label{color:#94a3b8;font-size:.9rem;margin-left:.35rem}
.search-query-box strong{
  color:#fff;
  font-size:1.15rem;
}
.search-count{
  color:#94a3b8;
  font-size:.9rem;
  background:var(--bg-card, #111827);
  padding:.4rem .9rem;
  border-radius:20px;
}
.search-page-filters{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin-bottom:1.5rem;
}
.search-empty{
  text-align:center;
  padding:4rem 1rem;
  color:#94a3b8;
}
.search-empty.hidden{display:none !important}
.search-empty-icon{font-size:3rem;margin-bottom:1rem}
.search-empty h3{color:#fff;margin-bottom:.5rem}
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}
@media(max-width:600px){
  .search-page-header{flex-direction:column;align-items:flex-start}
}

/* Category icons as images */
.cat-icon{
  width:64px;height:64px;margin:0 auto .65rem;
  border-radius:14px;overflow:hidden;
  background:rgba(59,130,246,.08);
  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}


/* Digikala-style mega menu */
.cat-menu-btn{
  display:inline-flex;align-items:center;gap:.45rem;
  padding:.55rem 1rem;border-radius:10px;
  background:rgba(59,130,246,.15);border:1px solid rgba(59,130,246,.35);
  color:var(--primary,#3b82f6);font-weight:700;font-size:.88rem;
  cursor:pointer;transition:.2s;white-space:nowrap;font-family:inherit;
}
.cat-menu-btn:hover,.cat-menu-btn.open{background:var(--primary,#3b82f6);color:#fff}
.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,#121826);
  border:1px solid rgba(59,130,246,.25);
  border-radius:14px;box-shadow:0 20px 50px rgba(0,0,0,.5);
  display:none;z-index:200;padding:0;
}
.mega-menu.open{display:flex}
.mega-side{
  width:200px;flex-shrink:0;background:rgba(0,0,0,.25);
  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,#94a3b8);text-align:right;cursor:pointer;
  border:none;background:transparent;font-family:inherit;
}
.mega-side-item:hover,.mega-side-item.active{
  background:rgba(59,130,246,.12);color:var(--primary,#3b82f6);
}
.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,#3b82f6);
  margin-bottom:.75rem;padding-bottom:.4rem;
  border-bottom:2px solid rgba(59,130,246,.3);
}
.mega-col a{display:block;font-size:.84rem;color:var(--text-muted,#94a3b8);padding:.35rem 0}
.mega-col a:hover{color:var(--primary,#3b82f6)}
.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)}
  .mega-side{width:100%;display:flex;overflow-x:auto;border-left:none}
  .mega-main{grid-template-columns:1fr 1fr}
}
