/* ============================================================
   MARKETLAND THEME — Vitrin v2 Digital Store
   تم تیره کامل — جایگزین تم اینستاگرامی
   ============================================================ */

:root{
  --bg:#0a0c12;
  --surface:#12161f;
  --surface-2:#1a1f2e;
  --border:rgba(255,255,255,.08);
  --border-strong:rgba(255,255,255,.14);
  --text:#eef1f8;
  --text-2:#c9d0e0;
  --muted:#8d95ab;
  --muted-2:#6b7280;
  --brand:#7c5cff;
  --brand-2:#22d3ee;
  --brand-3:#4f46e5;
  --gold:#fbbf24;
  --green:#10b981;
  --red:#f43f5e;
  --pink:#ec4899;
  --radius:18px;
  --radius-sm:12px;
  --radius-lg:24px;
  --shadow-sm:0 4px 16px rgba(0,0,0,.35);
  --shadow-md:0 18px 40px -20px rgba(0,0,0,.85);
  --shadow-brand:0 24px 46px -22px rgba(124,92,255,.75);
  --shadow-cyan:0 24px 46px -24px rgba(34,211,238,.6);
  --font:'Vazirmatn',-apple-system,'Segoe UI',Tahoma,sans-serif;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  /* ارتفاع لوگو طوری تنظیم شده که از ارتفاع ردیف هدر (سرچ‌باکس ۴۸px) بیشتر نشود */
  --head-row:48px;   /* ارتفاع واقعی ردیف اول هدر (سرچ‌باکس) */
  --head-logo:48px;  /* حداکثر اندازهٔ لوگو بدون افزایش ارتفاع هدر */
}

/* ---------- BASE RESET ---------- */
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
*::before,*::after{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  overflow-x:hidden;
  max-width:100%;
  background:var(--bg);
  color-scheme:dark;
}
html.modal-lock,html.modal-lock body{overflow:hidden}
body{
  font-family:var(--font);
  color:var(--text);
  line-height:1.7;
  min-height:100vh;
  background:
    radial-gradient(900px 520px at 88% -12%, rgba(124,92,255,.20), transparent 62%),
    radial-gradient(800px 500px at 6% -5%, rgba(34,211,238,.13), transparent 58%),
    var(--bg);
  background-attachment:fixed;
  overflow-x:hidden;
  max-width:100vw;
  width:100%;
  position:relative;
  display:flex;
  flex-direction:column;
  padding-bottom:0;
}
body > main#main{flex:1 0 auto;width:100%}
body > footer.site-footer{flex-shrink:0;width:100%;margin-top:auto}

button,input,select,textarea{font-family:var(--font)}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
mark{background:rgba(124,92,255,.4);color:#fff;border-radius:3px;padding:0 1px}

/* ---------- CONTAINER ---------- */
.container{max-width:1200px;margin:0 auto;padding:0 20px;width:100%}
.wrap{max-width:1200px;margin:0 auto;padding:18px 20px;width:100%}

/* ---------- FLASH ---------- */
.vt-flash{
  margin:12px auto;
  max-width:1100px;
  padding:12px 16px;
  border-radius:12px;
  font-size:13.5px;
  font-weight:500;
  background:rgba(16,185,129,.15);
  color:#6ee7b7;
  border:1px solid rgba(16,185,129,.35);
  width:calc(100% - 32px);
  box-sizing:border-box;
}
.vt-flash.err{
  background:rgba(244,63,94,.15);
  color:#fda4af;
  border-color:rgba(244,63,94,.35);
}

/* ============================================================
   HEADER
============================================================ */
.site-head{
  padding:calc(20px + var(--safe-top)) 0 18px;
  position:sticky;
  top:0;
  z-index:70;
  background:rgba(10,12,18,.75);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid transparent;
  transition:border-color .2s;
}
.site-head.scrolled{border-bottom-color:var(--border)}
.site-head .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:20px;
  text-decoration:none;
  color:var(--text);
  flex:none;
  cursor:pointer;
  transition:.2s;
}
.brand:hover{transform:scale(1.02)}
.brand .logo{
  width:var(--head-logo,48px);
  height:var(--head-logo,48px);
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:25px;
  background:linear-gradient(135deg,var(--brand),#3b82f6);
  box-shadow:0 8px 22px -8px rgba(124,92,255,.9);
  color:#fff;
}
/* لوگوی تصویری — بزرگ و کاملاً واضح، بدون افزایش ارتفاع هدر
   (object-fit:contain یعنی لوگو برش نمی‌خورد و کل نشان دیده می‌شود) */
.brand__logo{
  height:var(--head-logo,48px);
  width:auto;
  max-width:min(230px,46vw);
  object-fit:contain;
  object-position:center;
  display:block;
  border-radius:13px;
  background:rgba(255,255,255,.05);
  padding:2px;
  flex:none;
}
.brand span{
  background:linear-gradient(90deg,#fff,#b9a8ff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.head-links{
  display:flex;
  align-items:center;
  gap:22px;
  font-size:14px;
  color:var(--muted);
}
.head-links a{
  color:inherit;
  text-decoration:none;
  transition:.2s;
  cursor:pointer;
  font-weight:500;
}
.head-links a:hover{color:#fff}
.head-btn{
  font-family:inherit;
  font-size:13.5px;
  font-weight:600;
  color:#fff;
  cursor:pointer;
  flex:none;
  padding:9px 20px;
  border:0;
  border-radius:12px;
  background:linear-gradient(135deg,var(--brand),#4f46e5);
  box-shadow:0 10px 24px -12px rgba(124,92,255,1);
  transition:.2s;
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
}
.head-btn:hover{filter:brightness(1.15);transform:translateY(-1px)}

/* Header icons (cart, account) */
.head-icons{
  display:flex;
  align-items:center;
  gap:6px;
  flex:none;
}
.head-ico{
  position:relative;
  width:40px;
  height:40px;
  border-radius:12px;
  display:grid;
  place-items:center;
  color:var(--muted);
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  transition:.18s;
  text-decoration:none;
}
.head-ico:hover{color:#fff;background:rgba(255,255,255,.09);border-color:var(--border-strong)}
.head-ico svg{width:19px;height:19px}
.head-badge{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:linear-gradient(135deg,#f43f5e,#f97316);
  color:#fff;
  font-size:10px;
  font-weight:700;
  display:grid;
  place-items:center;
  border:2px solid var(--bg);
  line-height:1;
}
.head-badge.zero{display:none}

/* ============================================================
   SEARCH
============================================================ */
.search-wrap{
  position:relative;
  flex:1 1 260px;
  max-width:430px;
  min-width:0;
}
.search{
  display:flex;
  align-items:center;
  gap:9px;
  height:44px;
  padding:0 14px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  border-radius:14px;
  transition:.22s;
}
.search:focus-within{
  border-color:rgba(124,92,255,.65);
  background:rgba(255,255,255,.09);
  box-shadow:0 0 0 4px rgba(124,92,255,.13);
}
.search .s-ico{
  width:18px;
  height:18px;
  flex:none;
  stroke:var(--muted);
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
}
.search input{
  flex:1;
  min-width:0;
  border:0;
  background:transparent;
  outline:none;
  font-family:inherit;
  font-size:13.5px;
  color:var(--text);
}
.search input::placeholder{color:var(--muted)}
.search input::-webkit-search-cancel-button{display:none}
.search-clear{
  flex:none;
  width:22px;
  height:22px;
  border:0;
  border-radius:50%;
  cursor:pointer;
  background:rgba(255,255,255,.12);
  color:var(--muted);
  display:grid;
  place-items:center;
  font-size:15px;
  line-height:1;
  font-family:inherit;
  transition:.18s;
}
.search-clear:hover{background:rgba(255,255,255,.2);color:#fff}

/* ============================================================
   CAT NAV (sticky toolbar)
============================================================ */
.cat-nav{
  position:sticky;
  top:74px;
  z-index:60;
  background:rgba(10,12,18,.8);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  margin-bottom:36px;
}
.cat-nav .container{
  display:flex;
  gap:6px;
  overflow-x:auto;
  padding:10px 20px;
  scrollbar-width:none;
}
.cat-nav .container::-webkit-scrollbar{display:none}
.chip{
  padding:9px 16px;
  border-radius:999px;
  font-size:13.5px;
  font-weight:500;
  color:var(--muted);
  text-decoration:none;
  white-space:nowrap;
  transition:.22s;
  border:1px solid transparent;
  flex:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:transparent;
}
.chip:hover{color:#fff;background:rgba(255,255,255,.06)}
.chip.active{
  color:#fff;
  background:linear-gradient(135deg,rgba(124,92,255,.95),rgba(59,130,246,.95));
  box-shadow:0 10px 24px -12px rgba(124,92,255,1);
}

/* ============================================================
   SECTION
============================================================ */
section{
  scroll-margin-top:140px;
  margin-bottom:54px;
}
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:20px;
  flex-wrap:wrap;
}
.section-title{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.section-title .icon{
  width:42px;
  height:42px;
  border-radius:13px;
  display:grid;
  place-items:center;
  font-size:19px;
  background:var(--icon-bg,rgba(124,92,255,.14));
  border:1px solid var(--border);
  flex:none;
}
.section-title h2{font-size:19px;font-weight:700;line-height:1.3}
.section-title .count{
  font-size:11.5px;
  color:var(--muted);
  font-weight:400;
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
  padding:2px 10px;
  border-radius:999px;
  white-space:nowrap;
}
.see-all{
  font-size:13px;
  color:var(--muted);
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  transition:.2s;
  white-space:nowrap;
}
.see-all:hover{color:var(--brand-2)}
.section-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
  gap:14px;
}
.section-title-row h2{font-size:19px;font-weight:700}
.section-title-row a{font-size:13px;color:var(--muted);text-decoration:none;cursor:pointer;transition:.2s}
.section-title-row a:hover{color:var(--brand-2)}

/* ============================================================
   GRIDS
============================================================ */
.grid{display:grid;gap:20px}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-auto{grid-template-columns:repeat(auto-fill,minmax(235px,1fr))}
.grid-3{grid-template-columns:repeat(3,1fr)}

/* ============================================================
   PRODUCT CARD
============================================================ */
.card{
  position:relative;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:var(--radius);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));
  border:1px solid var(--border);
  transition:.28s;
  cursor:pointer;
  color:inherit;
  text-decoration:none;
}
.card:hover{
  transform:translateY(-6px);
  border-color:rgba(124,92,255,.5);
  box-shadow:var(--shadow-brand);
}
.card .thumb{
  position:relative;
  aspect-ratio:16/10;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:linear-gradient(135deg,var(--g1,#6366f1),var(--g2,#a855f7));
}
.card .thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 72% 18%,rgba(255,255,255,.30),transparent 48%);
}
.card .thumb .emoji{
  font-size:44px;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.35));
  z-index:1;
  user-select:none;
}
.card .body{
  padding:14px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:9px;
  flex:1;
}
.card .title{
  font-size:14px;
  font-weight:600;
  line-height:1.65;
  color:var(--text);
  text-decoration:none;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  cursor:pointer;
}
.card .desc{
  font-size:12.5px;
  color:var(--muted);
  line-height:1.85;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.card .meta{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11.5px;
  color:var(--muted);
  flex-wrap:wrap;
}
.card .stars{color:var(--gold);letter-spacing:1px;font-size:12px}
.card .foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:auto;
  padding-top:12px;
  border-top:1px dashed rgba(255,255,255,.09);
}
.card .price{
  display:flex;
  align-items:baseline;
  gap:6px;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  flex-wrap:wrap;
}
.card .price s{
  font-size:11px;
  font-weight:400;
  color:var(--muted);
  text-decoration:line-through;
}
.card .price small{font-size:11px;font-weight:400;color:var(--muted)}
.card .price.free{color:var(--green);font-size:15px}

/* Featured card (اولین کارت بزرگ) */
.card--featured{
  grid-column:span 2;
  grid-row:span 2;
  border-color:rgba(124,92,255,.35);
}
.card--featured .thumb{flex:1;aspect-ratio:auto;min-height:230px}
.card--featured .thumb .emoji{font-size:66px}
.card--featured .body{padding:18px 20px 20px;gap:11px}
.card--featured .title{font-size:17px;font-weight:700;line-height:1.6}
.card--featured .price{font-size:17px}

/* Badges on card */
.tag{
  position:absolute;
  top:10px;
  left:10px;
  z-index:2;
  font-size:11px;
  font-weight:600;
  color:#fff;
  padding:4px 11px;
  border-radius:999px;
  background:rgba(0,0,0,.32);
  border:1px solid rgba(255,255,255,.28);
  backdrop-filter:blur(8px);
}
.tag--hot{background:linear-gradient(135deg,#f43f5e,#f97316);border-color:transparent}
.tag--new{background:linear-gradient(135deg,#10b981,#22d3ee);border-color:transparent}
.tag--sale{background:linear-gradient(135deg,#ec4899,#8b5cf6);border-color:transparent}
.tag--free{background:linear-gradient(135deg,#22c55e,#10b981);border-color:transparent}

/* Rank badge */
.rank{
  position:absolute;
  top:10px;
  right:10px;
  z-index:2;
  width:30px;
  height:30px;
  border-radius:10px;
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:800;
  color:#161006;
  background:linear-gradient(135deg,#fde68a,#f59e0b);
  box-shadow:0 8px 18px -6px rgba(245,158,11,.8);
}
.rank-2{background:linear-gradient(135deg,#e5e7eb,#9ca3af)}
.rank-3{background:linear-gradient(135deg,#fdba74,#c2703b);color:#1a0f06}
.rank-x{background:rgba(0,0,0,.42);color:#fff;border:1px solid rgba(255,255,255,.25);backdrop-filter:blur(8px)}

/* Buy button in card */
.buy{
  font-family:inherit;
  font-size:12.5px;
  font-weight:600;
  color:#fff;
  cursor:pointer;
  white-space:nowrap;
  padding:8px 15px;
  border:0;
  border-radius:11px;
  background:linear-gradient(135deg,var(--brand),#4f46e5);
  transition:.2s;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.buy:hover{filter:brightness(1.18);transform:translateY(-1px)}

/* Wishlist heart on card */
.wish-btn{
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(8px);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size:15px;
  color:#fff;
  transition:.15s;
  padding:0;
  line-height:1;
}
.wish-btn:hover{transform:scale(1.1);background:rgba(0,0,0,.55)}
.wish-btn.on{color:var(--red);background:rgba(244,63,94,.15);border-color:rgba(244,63,94,.5)}

/* ============================================================
   POST CARD
============================================================ */
.post, .post-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:var(--radius);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));
  border:1px solid var(--border);
  transition:.28s;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
}
.post:hover, .post-card:hover{
  transform:translateY(-6px);
  border-color:rgba(34,211,238,.45);
  box-shadow:var(--shadow-cyan);
}
.post .thumb, .post-card .thumb{
  position:relative;
  aspect-ratio:16/9;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:linear-gradient(135deg,var(--g1,#6366f1),var(--g2,#a855f7));
}
.post .thumb::after, .post-card .thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 72% 18%,rgba(255,255,255,.25),transparent 48%);
}
.post .thumb .emoji, .post-card .thumb .emoji{
  font-size:38px;
  z-index:1;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.3));
}
.post-body, .post-card .body{
  padding:16px 18px 18px;
  display:flex;
  flex-direction:column;
  gap:9px;
  flex:1;
}
.post-cat, .post-card .cat{
  align-self:flex-start;
  font-size:11px;
  font-weight:600;
  padding:3px 11px;
  border-radius:999px;
  color:var(--brand-2);
  background:rgba(34,211,238,.12);
  border:1px solid rgba(34,211,238,.28);
}
.post h3, .post-card h3{
  font-size:14.5px;
  font-weight:600;
  line-height:1.7;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.post p, .post-card p{
  font-size:12.5px;
  color:var(--muted);
  line-height:1.85;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.post-meta, .post-card .meta{
  margin-top:auto;
  padding-top:10px;
  font-size:11.5px;
  color:var(--muted);
  display:flex;
  gap:12px;
  border-top:1px dashed rgba(255,255,255,.09);
  flex-wrap:wrap;
}

/* ============================================================
   HERO / PRODUCT PAGE
============================================================ */
.breadcrumb{
  font-size:12.5px;
  color:var(--muted);
  margin-bottom:24px;
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.breadcrumb a{
  color:inherit;
  text-decoration:none;
  transition:.2s;
  cursor:pointer;
}
.breadcrumb a:hover{color:var(--brand-2)}
.breadcrumb span{opacity:.5}

.product-hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  margin-bottom:40px;
}
.hero-gallery{
  background:linear-gradient(135deg,rgba(255,255,255,.05),rgba(255,255,255,.01));
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:16px;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.hero-gallery::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 50%,rgba(124,92,255,.15),transparent 70%);
  pointer-events:none;
}
.main-img{
  width:100%;
  aspect-ratio:16/10;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:80px;
  box-shadow:0 20px 40px -10px rgba(124,92,255,.4);
  position:relative;
  z-index:1;
  overflow:hidden;
  background:linear-gradient(135deg,var(--g1,#6366f1),var(--g2,#a855f7));
}
.main-img img{width:100%;height:100%;object-fit:cover}
.thumbnails{display:flex;gap:10px;z-index:1;flex-wrap:wrap;justify-content:center}
.thumb-item{
  width:70px;
  height:50px;
  border-radius:8px;
  border:2px solid transparent;
  cursor:pointer;
  background:linear-gradient(135deg,#1f2937,#111827);
  display:grid;
  place-items:center;
  font-size:24px;
  transition:.2s;
  opacity:.6;
  padding:0;
}
.thumb-item:hover{opacity:.9}
.thumb-item.active, .thumb-item:hover{border-color:var(--brand);opacity:1}

.hero-info{display:flex;flex-direction:column;gap:16px}
.product-title{font-size:26px;font-weight:800;line-height:1.4}
.product-meta{
  display:flex;
  align-items:center;
  gap:16px;
  font-size:13px;
  color:var(--muted);
  flex-wrap:wrap;
}
.product-meta .rating{color:var(--gold);display:flex;align-items:center;gap:4px}
.product-meta a{color:var(--brand-2);text-decoration:none}

.price-box-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px 20px;
  margin-top:8px;
  flex-wrap:wrap;
}
.price-tag{
  font-size:24px;
  font-weight:800;
  color:#fff;
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
}
.price-tag s{font-size:14px;font-weight:400;color:var(--muted);text-decoration:line-through}
.price-tag small{font-size:14px;font-weight:400;color:var(--muted)}
.btn-buy{
  background:linear-gradient(135deg,var(--brand),#4f46e5);
  color:#fff;
  border:0;
  padding:12px 28px;
  border-radius:12px;
  font-family:inherit;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
  box-shadow:0 10px 24px -12px rgba(124,92,255,1);
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
}
.btn-buy:hover{filter:brightness(1.15);transform:translateY(-2px)}
.btn-buy[disabled]{opacity:.5;cursor:not-allowed;filter:none;transform:none}

.features-list-hero{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
  list-style:none;
}
.features-list-hero li{
  font-size:13.5px;
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--text);
}
.features-list-hero li::before{
  content:"✓";
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  background:rgba(16,185,129,.2);
  color:var(--green);
  border-radius:50%;
  font-size:12px;
  font-weight:bold;
  flex:none;
}

/* Product details tabs */
.product-main-grid{
  display:grid;
  grid-template-columns:2.5fr 1fr;
  gap:30px;
  margin-bottom:50px;
}
.tabs-container{min-width:0}
.tabs-nav{
  display:flex;
  gap:6px;
  border-bottom:1px solid var(--border);
  margin-bottom:20px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:none;
}
.tabs-nav::-webkit-scrollbar{display:none}
.tab-btn{
  background:transparent;
  border:0;
  border-bottom:2px solid transparent;
  padding:12px 20px;
  font-family:inherit;
  font-size:14px;
  font-weight:500;
  color:var(--muted);
  cursor:pointer;
  white-space:nowrap;
  transition:.2s;
}
.tab-btn:hover{color:#fff}
.tab-btn.active{color:#fff;border-bottom-color:var(--brand)}
.tab-content{display:none}
.tab-content.active{display:block}
.content-box{
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px;
}
.content-box h3{
  font-size:16px;
  margin-bottom:12px;
  color:#fff;
  display:flex;
  align-items:center;
  gap:8px;
}
.content-box p{font-size:14px;color:var(--text-2);line-height:1.9;margin-bottom:20px}
.content-box ul{margin-bottom:20px;padding-right:20px;color:var(--text-2);font-size:14px;line-height:2}
.content-box li{margin-bottom:8px}
.content-box img{max-width:100%;border-radius:12px;margin:10px 0}

/* Changelog */
.changelog-item{
  padding:16px;
  border-right:2px solid var(--brand);
  background:rgba(255,255,255,.02);
  border-radius:8px;
  margin-bottom:12px;
}
.changelog-item h4{
  font-size:14px;
  color:#fff;
  margin-bottom:6px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.changelog-item h4 span{font-size:12px;color:var(--muted);font-weight:400}
.changelog-item p{font-size:13px;color:var(--text-2);margin-bottom:0}

/* Comments */
.comment{
  display:flex;
  gap:12px;
  margin-bottom:20px;
  padding-bottom:20px;
  border-bottom:1px dashed var(--border);
}
.comment:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  background:linear-gradient(135deg,#6366f1,#a855f7);
  display:grid;
  place-items:center;
  font-size:18px;
  flex:none;
  color:#fff;
  font-weight:700;
}
.comment-body{flex:1;min-width:0}
.comment-head{display:flex;justify-content:space-between;margin-bottom:6px;gap:10px;flex-wrap:wrap}
.comment-author{font-size:13.5px;font-weight:600}
.comment-date{font-size:11.5px;color:var(--muted)}
.comment-text{font-size:13px;color:var(--text-2);line-height:1.8}
.comment-stars{color:var(--gold);font-size:11px;letter-spacing:1px;margin-top:3px}

/* FAQ */
.faq-item{
  border:1px solid var(--border);
  border-radius:12px;
  margin-bottom:10px;
  overflow:hidden;
  background:rgba(255,255,255,.02);
}
.faq-question{
  width:100%;
  text-align:right;
  padding:16px;
  background:transparent;
  border:0;
  color:#fff;
  font-family:inherit;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.faq-question::after{
  content:"+";
  font-size:18px;
  color:var(--brand);
  transition:.2s;
  flex:none;
}
.faq-question.active::after{content:"−"}
.faq-answer{
  padding:0 16px 16px;
  font-size:13px;
  color:var(--text-2);
  line-height:1.8;
  display:none;
}
.faq-answer.show{display:block}

/* Sidebar */
.sidebar{display:flex;flex-direction:column;gap:20px;min-width:0}
.side-box{
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:16px;
  padding:20px;
}
.side-box h4{
  font-size:15px;
  margin-bottom:16px;
  display:flex;
  align-items:center;
  gap:8px;
  border-bottom:1px dashed var(--border);
  padding-bottom:12px;
}
.price-box{text-align:center}
.price-box .price-tag{
  font-size:28px;
  margin-bottom:16px;
  display:flex;
  justify-content:center;
  color:var(--brand-2);
}
.price-box .btn-buy{width:100%;justify-content:center}
.side-features{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:20px;
  text-align:right;
}
.side-features li{
  font-size:13px;
  color:var(--text-2);
  display:flex;
  align-items:center;
  gap:8px;
}
.side-features li::before{content:"✓";color:var(--green);font-weight:bold}
.author-box{display:flex;align-items:center;gap:12px}
.author-box .avatar{width:56px;height:56px;font-size:24px}
.author-info h5{font-size:14px;margin-bottom:4px}
.author-info p{font-size:12px;color:var(--muted);margin:0}
.demo-box{
  background:linear-gradient(135deg,#1f2937,#111827);
  text-align:center;
  border-color:rgba(124,92,255,.3);
}
.demo-box h4{justify-content:center;border:0;padding:0;margin-bottom:8px;color:#fff}
.demo-box p{font-size:12px;color:var(--muted);margin-bottom:16px}
.btn-demo{
  width:100%;
  padding:10px;
  border-radius:10px;
  background:rgba(255,255,255,.1);
  color:#fff;
  border:1px solid rgba(255,255,255,.2);
  font-family:inherit;
  font-size:13px;
  cursor:pointer;
  transition:.2s;
  text-decoration:none;
  display:inline-block;
}
.btn-demo:hover{background:rgba(255,255,255,.2)}

/* ============================================================
   BLOG
============================================================ */
.blog-grid{
  display:grid;
  gap:20px;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  width:100%;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
}
.post-hero{text-align:center;margin-bottom:40px}
.post-hero .post-cat{
  display:inline-block;
  font-size:12px;
  font-weight:600;
  padding:4px 14px;
  border-radius:999px;
  color:var(--brand-2);
  background:rgba(34,211,238,.12);
  border:1px solid rgba(34,211,238,.3);
  margin-bottom:16px;
  text-decoration:none;
}
.post-title{
  font-size:32px;
  font-weight:800;
  line-height:1.5;
  margin-bottom:20px;
  max-width:800px;
  margin-left:auto;
  margin-right:auto;
}
.post-meta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
  font-size:13px;
  color:var(--muted);
  margin-bottom:30px;
}
.post-meta .meta-item{display:flex;align-items:center;gap:6px}
.post-meta .author-avatar{
  width:28px;
  height:28px;
  border-radius:50%;
  background:linear-gradient(135deg,#6366f1,#a855f7);
  display:grid;
  place-items:center;
  font-size:12px;
  color:#fff;
}
.post-meta a{color:var(--text);text-decoration:none;font-weight:500}
.featured-image{
  width:100%;
  aspect-ratio:21/9;
  border-radius:var(--radius);
  overflow:hidden;
  display:grid;
  place-items:center;
  font-size:80px;
  border:1px solid var(--border);
  box-shadow:0 20px 50px -20px rgba(124,92,255,.4);
  position:relative;
  background:linear-gradient(135deg,var(--g1,#6366f1),var(--g2,#a855f7));
}
.featured-image img{width:100%;height:100%;object-fit:cover}
.post-layout{
  display:grid;
  grid-template-columns:2.5fr 1fr;
  gap:40px;
  margin-top:40px;
  margin-bottom:50px;
}
.article-content{
  background:rgba(255,255,255,.02);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:36px 40px;
  min-width:0;
}
.article-content h2{
  font-size:22px;
  font-weight:700;
  margin:32px 0 16px;
  padding-right:12px;
  border-right:3px solid var(--brand);
  line-height:1.4;
  color:#fff;
  scroll-margin-top:140px;
}
.article-content h2:first-child{margin-top:0}
.article-content h3{font-size:18px;font-weight:700;margin:24px 0 12px;color:#fff}
.article-content p{
  font-size:15px;
  color:var(--text-2);
  line-height:2;
  margin-bottom:20px;
  text-align:justify;
}
.article-content ul{margin-bottom:20px;padding-right:20px;color:var(--text-2);font-size:15px;line-height:2}
.article-content li{margin-bottom:8px}
.article-content img{max-width:100%;border-radius:12px;margin:20px 0}
.article-content a{color:var(--brand-2);text-decoration:underline}
.blockquote{
  background:rgba(124,92,255,.08);
  border-right:4px solid var(--brand);
  border-radius:8px;
  padding:20px 24px;
  margin:24px 0;
  font-size:15.5px;
  font-style:italic;
  color:#d1d5db;
  position:relative;
}
.post-footer-tags{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
  margin-top:36px;
  padding-top:24px;
  border-top:1px dashed var(--border);
}
.tags-list{display:flex;gap:8px;flex-wrap:wrap}
.tags-list a{
  font-size:12px;
  padding:4px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
  color:var(--muted);
  text-decoration:none;
  cursor:pointer;
  transition:.2s;
}
.tags-list a:hover{background:rgba(124,92,255,.15);border-color:rgba(124,92,255,.4);color:#fff}
.author-bio-box{
  display:flex;
  gap:20px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  margin-top:30px;
  align-items:center;
}
.author-bio-box .avatar{width:70px;height:70px;font-size:30px}
.author-bio-box h4{font-size:16px;margin-bottom:6px;color:#fff}
.author-bio-box p{font-size:13px;color:var(--muted);margin:0;line-height:1.8}
.comments-section{margin-top:40px}
.comments-section h3{font-size:20px;margin-bottom:20px;display:flex;align-items:center;gap:8px}
.comment-form{
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  margin-bottom:30px;
}
.comment-form textarea{
  width:100%;
  height:100px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px;
  color:var(--text);
  font-family:inherit;
  font-size:14px;
  outline:none;
  resize:vertical;
  margin-bottom:12px;
  transition:border-color .15s;
}
.comment-form textarea:focus{border-color:var(--brand)}
.comment-form .btn-submit{
  background:var(--brand);
  color:#fff;
  border:0;
  padding:10px 24px;
  border-radius:10px;
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
}
.comment-form .btn-submit:hover{filter:brightness(1.15)}
.comment-item{display:flex;gap:14px;margin-bottom:24px}
.c-body{
  flex:1;
  background:rgba(255,255,255,.02);
  border:1px solid var(--border);
  padding:16px;
  border-radius:12px;
  min-width:0;
}
.c-head{display:flex;justify-content:space-between;margin-bottom:8px;gap:10px;flex-wrap:wrap}
.c-author{font-size:14px;font-weight:600;color:#fff}
.c-date{font-size:11.5px;color:var(--muted)}
.c-text{font-size:13.5px;color:var(--text-2);line-height:1.8}

/* TOC */
.toc-list{list-style:none;display:flex;flex-direction:column;gap:10px}
.toc-list a{
  font-size:13px;
  color:var(--muted);
  text-decoration:none;
  display:block;
  padding-right:12px;
  border-right:2px solid transparent;
  cursor:pointer;
  transition:.15s;
}
.toc-list a:hover{color:var(--brand-2);border-right-color:var(--brand-2)}
.popular-posts{display:flex;flex-direction:column;gap:16px}
.pop-item{display:flex;gap:12px;cursor:pointer;text-decoration:none;color:inherit}
.pop-img{
  width:60px;
  height:60px;
  border-radius:10px;
  display:grid;
  place-items:center;
  font-size:24px;
  flex:none;
  background:linear-gradient(135deg,var(--g1,#6366f1),var(--g2,#a855f7));
}
.pop-info{flex:1;min-width:0}
.pop-title{font-size:13px;font-weight:600;line-height:1.6;margin-bottom:4px}
.pop-item:hover .pop-title{color:var(--brand-2)}
.pop-date{font-size:11px;color:var(--muted)}
.footer-seal{margin-top:14px;display:grid;place-items:center;background:#fff;border-radius:12px;padding:10px;max-width:150px}
.footer-seal img{max-width:100%;height:auto;display:block}

/* ============================================================
   CART / CHECKOUT / ACCOUNT
============================================================ */
.two-col{
  display:grid;
  gap:16px;
  max-width:1100px;
  margin:0 auto;
  padding:16px 14px;
  width:100%;
}
@media(min-width:860px){
  .two-col{grid-template-columns:1.4fr 1fr;align-items:start}
}
.panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:20px;
  min-width:0;
  max-width:100%;
}
.panel h3{
  margin:0 0 14px;
  font-size:15px;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
}
.panel h3 small{font-size:11px;font-weight:500;color:var(--muted)}
.cart-item{
  display:flex;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
  min-width:0;
}
.cart-item:last-child{border-bottom:0}
.ci-img{
  width:70px;
  height:70px;
  border-radius:12px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  font-size:28px;
  overflow:hidden;
  background:linear-gradient(135deg,var(--g1,#6366f1),var(--g2,#a855f7));
}
.ci-img img{width:100%;height:100%;object-fit:cover}
.ci-body{flex:1;min-width:0}
.ci-body b{font-size:13px;font-weight:700;display:block;line-height:1.6;word-break:break-word;color:#fff}
.ci-body .ci-color{font-size:11px;color:var(--muted);margin-top:2px;word-break:break-word}
.ci-body .ci-price{font-size:13px;font-weight:800;margin-top:6px;color:var(--brand-2)}
.ci-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  flex:0 0 auto;
}
.qty{
  display:flex;
  align-items:center;
  border:1.5px solid var(--border);
  border-radius:10px;
  overflow:hidden;
  height:32px;
  background:var(--surface-2);
}
.qty button{
  border:0;
  background:transparent;
  width:30px;
  height:100%;
  cursor:pointer;
  font-size:15px;
  font-weight:700;
  color:var(--text);
  transition:.15s;
}
.qty button:hover{background:rgba(255,255,255,.08)}
.qty span{min-width:32px;text-align:center;font-size:12.5px;font-weight:700;color:#fff}
.ci-remove{
  border:0;
  background:none;
  color:var(--muted);
  font-size:11px;
  cursor:pointer;
  transition:.15s;
  padding:4px;
}
.ci-remove:hover{color:var(--red)}
.summary-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12.5px;
  padding:9px 0;
  color:var(--text-2);
  gap:8px;
  min-width:0;
}
.summary-row.total{
  border-top:1px solid var(--border);
  margin-top:6px;
  padding-top:13px;
  font-size:14.5px;
  font-weight:800;
  color:#fff;
}
.summary-row .val{font-weight:700}
.summary-row .free{color:var(--green);font-size:11px;font-weight:700}
.coupon-row{display:flex;gap:8px;margin:10px 0 4px}
.coupon-row input{
  flex:1;
  border:1.5px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  font-size:12px;
  outline:0;
  min-width:0;
  background:var(--surface-2);
  color:var(--text);
  font-family:inherit;
}
.coupon-row input:focus{border-color:var(--brand)}
.coupon-row button{
  border:0;
  background:var(--brand);
  color:#fff;
  font-weight:700;
  font-size:12px;
  padding:0 16px;
  border-radius:10px;
  cursor:pointer;
  transition:.2s;
}
.coupon-row button:hover{filter:brightness(1.15)}

/* Buttons */
.btn-primary{
  width:100%;
  border:0;
  cursor:pointer;
  color:#fff;
  font-weight:800;
  font-size:14px;
  padding:15px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--brand),var(--brand-3));
  transition:transform .15s, filter .2s;
  margin-top:12px;
  box-shadow:0 8px 22px rgba(124,92,255,.35);
  text-decoration:none;
  display:inline-block;
  text-align:center;
  font-family:inherit;
}
.btn-primary:hover{filter:brightness(1.1)}
.btn-primary:active{transform:scale(.98)}
.btn-primary[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none}
.btn-ghost{
  width:100%;
  border:1.5px solid var(--border-strong);
  background:rgba(255,255,255,.04);
  cursor:pointer;
  color:var(--text);
  font-weight:700;
  font-size:12.5px;
  padding:12px;
  border-radius:12px;
  margin-top:8px;
  transition:.15s;
  display:block;
  text-align:center;
  text-decoration:none;
  font-family:inherit;
}
.btn-ghost:hover{border-color:var(--brand);background:rgba(124,92,255,.1)}

/* Auth */
.auth-wrap{max-width:420px;margin:20px auto;padding:0 14px;width:100%}
.auth-tabs{
  display:flex;
  background:rgba(255,255,255,.04);
  border-radius:12px;
  padding:4px;
  margin-bottom:16px;
  border:1px solid var(--border);
}
.auth-tabs a, .auth-tabs button{
  flex:1;
  padding:10px;
  border-radius:9px;
  font-size:12.5px;
  font-weight:700;
  color:var(--muted);
  text-align:center;
  text-decoration:none;
  border:0;
  background:none;
  cursor:pointer;
  transition:.15s;
}
.auth-tabs a.active, .auth-tabs button.active{
  background:var(--surface-2);
  color:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.3);
}
.account-head{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:16px;
  margin:16px auto;
  max-width:1100px;
  background:linear-gradient(135deg,rgba(124,92,255,.15),rgba(34,211,238,.1));
  width:100%;
}
.acc-avatar{
  width:56px;
  height:56px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--brand),#a855f7);
  display:grid;
  place-items:center;
  color:#fff;
  font-size:22px;
  font-weight:800;
  flex:0 0 auto;
}
.acc-info{flex:1;min-width:0}
.acc-info b{display:block;font-size:15px;font-weight:800;word-break:break-word;color:#fff}
.acc-info small{font-size:11.5px;color:var(--muted);display:block;margin-top:2px;word-break:break-all}
.acc-logout{
  border:1.5px solid var(--border-strong);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  padding:8px 12px;
  border-radius:10px;
  cursor:pointer;
  transition:.15s;
  white-space:nowrap;
  flex:0 0 auto;
  font-family:inherit;
}
.acc-logout:hover{border-color:var(--red);color:var(--red)}
.acc-tabs{
  display:flex;
  gap:4px;
  overflow-x:auto;
  margin:0 auto 14px;
  max-width:1100px;
  padding:0 14px;
  scrollbar-width:none;
  border-bottom:1px solid var(--border);
  width:100%;
}
.acc-tabs::-webkit-scrollbar{display:none}
.acc-tabs a, .acc-tabs button{
  padding:10px 14px;
  font-size:12.5px;
  font-weight:700;
  color:var(--muted);
  white-space:nowrap;
  border-bottom:2.5px solid transparent;
  margin-bottom:-1px;
  text-decoration:none;
  border:0;
  background:none;
  cursor:pointer;
  transition:.15s;
}
.acc-tabs a.active, .acc-tabs button.active{color:#fff;border-bottom-color:var(--brand)}
.stat-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:16px;
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
  padding:0 14px;
  width:100%;
}
.stat{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px 12px;
  text-align:center;
  background:var(--surface);
}
.stat b{display:block;font-size:20px;font-weight:800;margin-bottom:2px;color:#fff}
.stat small{font-size:10.5px;color:var(--muted)}
.order-card{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  margin-bottom:10px;
  background:var(--surface);
  min-width:0;
}
.order-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  flex-wrap:wrap;
}
.order-top b{font-size:13px;font-weight:800;word-break:break-word;color:#fff}
.order-top small{font-size:11px;color:var(--muted)}
.status-pill{
  font-size:10.5px;
  font-weight:800;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(251,191,36,.15);
  color:var(--gold);
  border:1px solid rgba(251,191,36,.3);
  white-space:nowrap;
}
.status-pill.delivered{background:rgba(16,185,129,.15);color:var(--green);border-color:rgba(16,185,129,.3)}
.status-pill.cancelled{background:rgba(244,63,94,.15);color:var(--red);border-color:rgba(244,63,94,.3)}
.order-items{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.order-items span{
  font-size:10.5px;
  background:rgba(255,255,255,.04);
  padding:3px 8px;
  border-radius:6px;
  color:var(--text-2);
  word-break:break-word;
  max-width:100%;
  border:1px solid var(--border);
}
.order-total{font-size:12.5px;color:var(--text-2);word-break:break-word}
.order-total b{font-weight:800;color:var(--brand-2)}

/* Pay options */
.pay-options{display:grid;gap:8px;margin-top:4px}
.pay-opt{
  display:flex;
  align-items:center;
  gap:10px;
  border:1.5px solid var(--border);
  border-radius:12px;
  padding:12px 14px;
  cursor:pointer;
  transition:.15s;
  font-size:12.5px;
  font-weight:600;
  min-width:0;
  background:rgba(255,255,255,.02);
}
.pay-opt:hover{border-color:var(--border-strong);background:rgba(255,255,255,.04)}
.pay-opt.active{border-color:var(--brand);background:rgba(124,92,255,.08)}
.pay-opt input{accent-color:var(--brand);width:16px;height:16px;margin:0;flex:0 0 auto}
.pay-opt span{flex:1;min-width:0;word-break:break-word;color:var(--text)}
.pay-opt small{font-size:10.5px;font-weight:400;color:var(--muted);display:block;margin-top:2px}

/* Forms */
.form-grid{display:grid;gap:10px}
@media(min-width:600px){.form-grid.two{grid-template-columns:1fr 1fr}}
.field label{
  display:block;
  font-size:11.5px;
  font-weight:700;
  margin-bottom:5px;
  color:var(--text-2);
}
.field label .req{color:var(--red)}
.field input, .field select, .field textarea{
  width:100%;
  border:1.5px solid var(--border);
  border-radius:10px;
  padding:11px 12px;
  font-size:12.5px;
  outline:0;
  background:var(--surface-2);
  color:var(--text);
  transition:border-color .15s;
  box-sizing:border-box;
  max-width:100%;
  font-family:inherit;
}
.field input:focus, .field select:focus, .field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(124,92,255,.12)}
.field textarea{resize:vertical;min-height:70px}
.field.full{grid-column:1 / -1}

/* ============================================================
   STATIC PAGES
============================================================ */
.page-static{max-width:780px;margin:0 auto;padding:20px 14px;width:100%}
.page-static h1{font-size:24px;font-weight:800;margin:0 0 6px;word-break:break-word;color:#fff}
.page-static .lead{font-size:13px;color:var(--muted);line-height:1.9;margin:0 0 20px}
.page-static h3{font-size:16px;font-weight:800;margin:22px 0 8px;color:#fff}
.page-static p, .page-static li{font-size:14px;line-height:2.1;color:var(--text-2);word-break:break-word}
.page-static ul{padding-inline-start:20px;margin:0 0 14px}

/* Empty states */
.empty{text-align:center;padding:50px 20px;color:var(--muted);font-size:13px}
.empty b{display:block;font-size:15px;color:#fff;margin-bottom:6px}
.empty .empty-ico{font-size:42px;margin-bottom:12px;display:block}

/* ============================================================
   FOOTER
============================================================ */
.site-footer{
  margin-top:80px;
  border-top:1px solid var(--border);
  background:linear-gradient(180deg,transparent,rgba(18,22,31,.5));
}
.site-footer .container{padding-top:50px;padding-bottom:0}
.footer-grid{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1.4fr;
  gap:48px;
  padding-bottom:44px;
}
.footer-brand .brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-weight:800;
  font-size:19px;
  text-decoration:none;
  color:var(--text);
  margin-bottom:14px;
  cursor:pointer;
}
.footer-brand p{
  font-size:12.5px;
  color:var(--muted);
  line-height:2;
  margin-bottom:18px;
  max-width:280px;
}
.social-links{display:flex;gap:8px}
.social-links a{
  width:34px;
  height:34px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  color:var(--muted);
  transition:.2s;
  cursor:pointer;
  text-decoration:none;
}
.social-links a:hover{color:var(--brand-2);border-color:rgba(34,211,238,.4);transform:translateY(-2px)}
.social-links svg{width:15px;height:15px}
.footer-col h4{
  font-size:13.5px;
  font-weight:700;
  color:#fff;
  margin-bottom:16px;
}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.footer-col ul a{
  font-size:12.5px;
  color:var(--muted);
  text-decoration:none;
  cursor:pointer;
  transition:.15s;
}
.footer-col ul a:hover{color:var(--text)}

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding:20px 0 24px;
  border-top:1px solid var(--border);
  font-size:12px;
  color:var(--muted);
}
.pay-icons{display:flex;gap:8px}
.pay-icons span{
  font-size:11px;
  padding:3px 10px;
  border-radius:6px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
}

/* ============================================================
   MOBILE NAV
============================================================ */
.mobile-nav{
  display:none;
  position:fixed;
  bottom:0;
  right:0;
  left:0;
  z-index:100;
  background:rgba(10,12,18,.9);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-top:1px solid var(--border);
  padding:7px 8px calc(7px + var(--safe-bottom));
  grid-template-columns:repeat(4,1fr);
  gap:2px;
}
.mn-item{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  padding:8px 4px;
  border:0;
  border-radius:14px;
  background:transparent;
  font-family:inherit;
  font-size:10.5px;
  font-weight:500;
  color:var(--muted);
  cursor:pointer;
  text-decoration:none;
  transition:.2s;
}
.mn-item.active{color:#fff}
.mn-ico{position:relative;font-size:19px;display:block}
.mn-item.active .mn-ico::after{
  content:"";
  position:absolute;
  bottom:-7px;
  left:50%;
  transform:translateX(-50%);
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--brand);
  box-shadow:0 0 10px 2px rgba(124,92,255,.9);
}
.mn-badge{
  position:absolute;
  top:-5px;
  right:-11px;
  min-width:16px;
  height:16px;
  padding:0 4px;
  border-radius:999px;
  background:linear-gradient(135deg,#f43f5e,#f97316);
  color:#fff;
  font-size:9.5px;
  font-weight:700;
  line-height:1;
  display:grid;
  place-items:center;
  box-shadow:0 0 0 2px rgba(10,12,18,.95);
}
.mn-badge[hidden]{display:none}

/* ============================================================
   SHEET (mobile bottom drawer)
============================================================ */
.sheet-overlay{
  position:fixed;
  inset:0;
  z-index:110;
  background:rgba(0,0,0,.62);
  backdrop-filter:blur(3px);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s;
}
.sheet-overlay.open{opacity:1;pointer-events:auto}
.sheet{
  position:fixed;
  bottom:0;
  right:0;
  left:0;
  z-index:120;
  background:var(--surface);
  border-top:1px solid var(--border);
  border-radius:24px 24px 0 0;
  padding:12px 20px calc(26px + var(--safe-bottom));
  transform:translateY(100%);
  transition:transform .32s cubic-bezier(.32,.72,0,1);
  max-height:78vh;
  overflow-y:auto;
}
.sheet.open{transform:translateY(0)}
.sheet-handle{
  width:44px;
  height:4px;
  border-radius:99px;
  background:rgba(255,255,255,.18);
  margin:0 auto 18px;
}
.sheet h3{font-size:16px;font-weight:700;margin-bottom:16px;display:flex;align-items:center;gap:8px}
.sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sheet-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 14px;
  border-radius:14px;
  text-decoration:none;
  color:var(--text);
  background:rgba(255,255,255,.045);
  border:1px solid var(--border);
  font-size:13px;
  font-weight:500;
  transition:.2s;
  cursor:pointer;
}
.sheet-item:hover{border-color:rgba(124,92,255,.55);background:rgba(124,92,255,.13)}
.sheet-item .si-ico{font-size:19px}
.sheet-item .si-c{font-size:10.5px;color:var(--muted);font-weight:400;margin-right:auto}

/* ============================================================
   TOAST
============================================================ */
.toast{
  position:fixed;
  bottom:88px;
  left:50%;
  transform:translate(-50%,14px);
  z-index:130;
  pointer-events:none;
  background:rgba(24,28,40,.96);
  border:1px solid rgba(124,92,255,.45);
  color:#fff;
  font-size:12.5px;
  font-weight:500;
  padding:10px 20px;
  border-radius:999px;
  white-space:nowrap;
  box-shadow:0 16px 36px -14px rgba(0,0,0,.9);
  opacity:0;
  transition:opacity .25s, transform .25s;
  max-width:88vw;
  text-align:center;
}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ============================================================
   PAGINATION
============================================================ */
.pager{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  padding:24px 0 4px;
  flex-wrap:wrap;
}
.pager a, .pager span{
  min-width:36px;
  height:36px;
  padding:0 10px;
  border-radius:10px;
  border:1.5px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text-2);
  font-size:12.5px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:.15s;
}
.pager a:hover{border-color:var(--brand);color:#fff;background:rgba(124,92,255,.1)}
.pager .cur, .pager .active{background:linear-gradient(135deg,var(--brand),var(--brand-3));border-color:transparent;color:#fff;box-shadow:0 6px 18px -6px rgba(124,92,255,.7)}
.pager .dots{padding:0 4px;border:0;background:none;color:var(--muted)}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width:1000px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .card--featured{grid-column:span 2;grid-row:span 1}
  .card--featured .thumb{min-height:190px}
}
@media (max-width:992px){
  .product-hero{grid-template-columns:1fr}
  .product-main-grid{grid-template-columns:1fr}
  .sidebar{flex-direction:row;flex-wrap:wrap}
  .side-box{flex:1 1 300px}
  .post-layout{grid-template-columns:1fr}
  .toc-box{display:none}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr;gap:36px}
}
@media (max-width:860px){
  .head-links{display:none}
  .search-wrap{order:3;flex:1 1 100%;max-width:none}
  .search input{font-size:16px}
  .cat-nav{top:0}
}
@media (max-width:768px){
  body{padding-bottom:0}
  body > main#main{padding-bottom:96px}
  .mobile-nav{display:grid}
  .cat-nav{margin-bottom:26px}
  .product-title{font-size:22px}
  .price-box-hero{flex-direction:column;align-items:flex-start}
  .btn-buy{width:100%;justify-content:center}
  .post-title{font-size:24px}
  .featured-image{aspect-ratio:16/9;font-size:60px}
  .article-content{padding:24px 20px}
  .author-bio-box{flex-direction:column;text-align:center}
  .post-footer-tags{flex-direction:column;align-items:flex-start}
  .site-footer{padding-bottom:calc(86px + var(--safe-bottom))}
  input,textarea,select{
    font-size:16px !important;
  }
}
@media (max-width:600px){
  .grid-4{grid-template-columns:1fr}
  .card--featured{grid-column:span 1}
  .section-title h2, .section-title-row h2{font-size:16.5px}
  .container,.wrap{padding-left:16px;padding-right:16px}
}
@media (max-width:540px){
  .site-footer{margin-top:60px}
  .site-footer .container{padding-top:36px}
  .footer-grid{grid-template-columns:1fr;gap:28px;padding-bottom:32px}
  .footer-bottom{justify-content:center;text-align:center}
}
/* هدر موبایل: ردیف اول ارتفاعش را از دکمه‌های ۴۰px می‌گیرد، پس لوگو هم ۴۰px می‌شود */
@media (max-width:860px){
  :root{--head-logo:40px}
}
@media (max-width:480px){
  .grid-3{grid-template-columns:1fr}
  .post-meta{flex-direction:column;gap:10px}
  .tab-btn{padding:12px 10px;font-size:13px}
  .brand{font-size:17px}
  .brand .logo{width:40px;height:40px;font-size:20px}
  .brand__logo{height:40px;max-width:min(170px,52vw)}
}

/* Print */
@media print{
  .mobile-nav, .site-head, .site-footer, .cat-nav, .toast, .sheet, .sheet-overlay{display:none !important}
  body{background:#fff;color:#000;padding-bottom:0}
  .card, .panel, .content-box{border:1px solid #ccc;background:#fff;color:#000}
}

/* لینک‌های داخل باکس دانلود نباید خط زیرینِ لینک‌های متن مقاله را به ارث ببرند. */
.article-content .dl-box a,
.article-content .dl-box a:hover,
.article-content .dl-box a:focus,
.article-content .dl-box a:visited { text-decoration: none; }
.article-content .dl-box .dl-source-value a:hover,
.article-content .dl-box .dl-source-value a:focus-visible { text-decoration: underline; }
