
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root{
  --bg:#0a0807;
  --bg-soft:#120e0d;
  --surface:#171211;
  --surface-hover:#1d1716;
  --border:rgba(255,255,255,.08);
  --border-soft:rgba(255,255,255,.05);
  --text:#f3ede9;
  --text-dim:#a99f9a;
  --text-faint:#786e6a;
  --accent:#c8203f;
  --accent-bright:#e63356;
  --accent-soft:rgba(200,32,63,.14);
  --accent-border:rgba(200,32,63,.35);
  --ok:#3fb56a;
  --ok-soft:rgba(63,181,106,.13);
  --off:#6b6360;
  --off-soft:rgba(255,255,255,.05);
  --radius:18px;
  --radius-sm:12px;
  --maxw:1240px;
  --shadow:0 20px 50px -20px rgba(0,0,0,.6);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Vazirmatn',Tahoma,'Segoe UI',sans-serif;
  direction:rtl;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{margin:0;padding:0;list-style:none}
h1,h2,h3,p{margin:0}
button,input{font-family:inherit;color:inherit}

body::before{
  content:"";
  position:fixed;inset:0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(200,32,63,.10), transparent 60%),
    radial-gradient(700px 500px at -10% 10%, rgba(200,32,63,.06), transparent 55%);
  pointer-events:none;
  z-index:0;
}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* ---------- header ---------- */
header.site{
  position:sticky;top:0;z-index:50;
  background:rgba(10,8,7,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border-soft);
}
.header-row{
  display:flex;align-items:center;justify-content:space-between;
  height:68px;
}
.brand{
  display:flex;align-items:center;gap:10px;
  font-weight:800;font-size:19px;letter-spacing:.2px;
}
.brand .dot{
  width:9px;height:9px;border-radius:50%;
  background:var(--accent-bright);
  box-shadow:0 0 12px var(--accent-bright);
}
nav.main-nav{display:flex;align-items:center;gap:2px}
nav.main-nav a{
  padding:9px 14px;border-radius:999px;
  font-size:14.5px;color:var(--text-dim);
  transition:color .15s,background .15s;
  white-space:nowrap;
}
nav.main-nav a:hover{color:var(--text);background:var(--surface)}
nav.main-nav a.active{color:var(--text);background:var(--accent-soft);border:1px solid var(--accent-border)}

.burger{
  display:none;width:40px;height:40px;border-radius:10px;
  background:var(--surface);border:1px solid var(--border);
  align-items:center;justify-content:center;cursor:pointer;
}
.burger span,.burger span::before,.burger span::after{
  content:"";display:block;width:18px;height:1.6px;background:var(--text);
  position:relative;transition:.2s;
}
.burger span::before{position:absolute;top:-6px}
.burger span::after{position:absolute;top:6px}

.mobile-menu{
  display:none;
  border-bottom:1px solid var(--border-soft);
  background:var(--bg-soft);
}
.mobile-menu.open{display:block}
.mobile-menu ul{padding:10px 24px 16px;display:flex;flex-direction:column;gap:2px}
.mobile-menu a{
  padding:12px 6px;border-radius:10px;font-size:15px;color:var(--text-dim);
  border-bottom:1px solid var(--border-soft);
}
.mobile-menu a.active{color:var(--accent-bright)}

@media (max-width:880px){
  nav.main-nav{display:none}
  .burger{display:flex}
}

/* ---------- hero ---------- */
.hero{padding:72px 0 56px;position:relative;z-index:1}
.hero .eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:13px;color:var(--accent-bright);
  background:var(--accent-soft);border:1px solid var(--accent-border);
  padding:6px 14px;border-radius:999px;margin-bottom:22px;
}
.hero h1{
  font-size:clamp(28px,4.6vw,46px);font-weight:800;
  line-height:1.35;max-width:14ch;
}
.hero p.lead{
  margin-top:16px;color:var(--text-dim);font-size:16.5px;
  max-width:56ch;
}
.hero-actions{display:flex;gap:12px;margin-top:30px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:13px 24px;border-radius:12px;font-size:14.5px;font-weight:600;
  border:1px solid transparent;cursor:pointer;transition:.15s;
}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent-bright)}
.btn-ghost{background:var(--surface);border-color:var(--border);color:var(--text)}
.btn-ghost:hover{background:var(--surface-hover)}

/* ---------- category tiles (home) ---------- */
.section-title{
  display:flex;align-items:baseline;justify-content:space-between;
  margin:0 0 22px;
}
.section-title h2{font-size:21px;font-weight:700}
.section-title a{font-size:13.5px;color:var(--accent-bright)}
.section{padding:36px 0;position:relative;z-index:1}

.cat-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:14px;
}
@media (max-width:960px){.cat-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:640px){.cat-grid{grid-template-columns:repeat(2,1fr)}}

.cat-tile{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:22px 16px;
  display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;
  transition:.18s;
}
.cat-tile:hover{border-color:var(--accent-border);background:var(--surface-hover);transform:translateY(-2px)}
.cat-tile .icon{
  width:44px;height:44px;border-radius:12px;
  background:var(--accent-soft);color:var(--accent-bright);
  display:flex;align-items:center;justify-content:center;
}
.cat-tile .icon svg{width:22px;height:22px}
.cat-tile .name{font-size:14.5px;font-weight:600}
.cat-tile .count{font-size:12px;color:var(--text-faint)}

/* ---------- product grid & card ---------- */
.product-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px;
}
@media (max-width:1080px){.product-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){.product-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:460px){.product-grid{grid-template-columns:1fr}}

.card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;
  display:flex;flex-direction:column;
  transition:.18s;
}
.card:hover{border-color:var(--accent-border);transform:translateY(-3px);box-shadow:var(--shadow)}
.card .media{
  aspect-ratio:1/1;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(200,32,63,.16), transparent 60%),
    var(--bg-soft);
  display:flex;align-items:center;justify-content:center;
  position:relative;border-bottom:1px solid var(--border-soft);
}
.card .media svg{width:38%;height:38%;color:var(--text-faint);opacity:.85}
.card .stock{
  position:absolute;top:10px;left:10px;
  display:flex;align-items:center;gap:6px;
  font-size:11.5px;font-weight:600;padding:5px 10px;border-radius:999px;
  backdrop-filter:blur(6px);
}
.stock.in{background:var(--ok-soft);color:var(--ok);border:1px solid rgba(63,181,106,.3)}
.stock.out{background:rgba(255,255,255,.06);color:var(--off);border:1px solid var(--border)}
.stock .d{width:6px;height:6px;border-radius:50%;background:currentColor}

.card .body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:5px;flex:1}
.card .brand{font-size:11.5px;color:var(--accent-bright);font-weight:600;letter-spacing:.3px}
.card .name{font-size:14.5px;font-weight:700;color:var(--text)}
.card .spec{font-size:12.5px;color:var(--text-dim);margin-top:2px;line-height:1.6}

/* ---------- toolbar / search ---------- */
.page-head{padding:44px 0 8px;position:relative;z-index:1}
.page-head .icon-badge{
  width:52px;height:52px;border-radius:14px;background:var(--accent-soft);
  color:var(--accent-bright);display:flex;align-items:center;justify-content:center;margin-bottom:16px;
}
.page-head .icon-badge svg{width:26px;height:26px}
.page-head h1{font-size:clamp(24px,4vw,32px);font-weight:800}
.page-head .meta{color:var(--text-dim);font-size:14px;margin-top:8px}

.toolbar{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  margin:22px 0 28px;
}
.search-box{
  position:relative;flex:1;min-width:220px;max-width:420px;
}
.search-box svg{
  position:absolute;right:14px;top:50%;transform:translateY(-50%);
  width:16px;height:16px;color:var(--text-faint);pointer-events:none;
}
.search-box input{
  width:100%;padding:12px 40px 12px 14px;border-radius:12px;
  background:var(--surface);border:1px solid var(--border);color:var(--text);
  font-size:14px;outline:none;transition:.15s;
}
.search-box input::placeholder{color:var(--text-faint)}
.search-box input:focus{border-color:var(--accent-border);background:var(--surface-hover)}

.chip-row{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  padding:9px 15px;border-radius:999px;font-size:13px;
  background:var(--surface);border:1px solid var(--border);color:var(--text-dim);
  cursor:pointer;transition:.15s;
}
.chip:hover{color:var(--text)}
.chip.active{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent-bright)}

.empty-state{
  text-align:center;padding:70px 20px;color:var(--text-dim);
  border:1px dashed var(--border);border-radius:var(--radius);
}
.empty-state .icon{color:var(--text-faint);margin-bottom:14px}
.empty-state .icon svg{width:36px;height:36px;margin:0 auto}
.empty-state h3{font-size:16px;color:var(--text);margin-bottom:6px;font-weight:700}
.empty-state p{font-size:13.5px}

/* ---------- footer ---------- */
footer.site{
  border-top:1px solid var(--border-soft);
  margin-top:70px;padding:40px 0;position:relative;z-index:1;
}
footer.site .foot-row{
  display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap;
}
footer.site .note{color:var(--text-dim);font-size:13.5px;max-width:44ch;line-height:1.9}
footer.site .contact{font-size:13px;color:var(--text-faint)}
footer.site .contact strong{color:var(--text-dim);display:block;margin-bottom:6px;font-size:13.5px}

.section-sep{height:1px;background:var(--border-soft);margin:8px 0}
