/* ═══════════════════════════════════════════════════════
   TechMart Blog — Refined Editorial · Blue & White
   ═══════════════════════════════════════════════════════ */

:root {
  --blue:       #1d5eff;
  --blue-dk:    #1446d4;
  --blue-lt:    #eef2ff;
  --blue-glow:  rgba(29,94,255,.14);
  --ink:        #111827;
  --ink-soft:   #1f2937;
  --body-color: #374151;
  --muted:      #6b7280;
  --hint:       #9ca3af;
  --border:     #e2e8f0;
  --border-lt:  #f1f5f9;
  --canvas:     #ffffff;
  --white:      #ffffff;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --shadow-xs:  0 1px 3px rgba(0,0,0,.05);
  --shadow-sm:  0 4px 14px rgba(0,0,0,.05);
  --shadow-md:  0 10px 30px rgba(0,0,0,.08);
  --shadow-blue: 0 12px 32px rgba(29,94,255,.18);
  --body-font:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:      1260px;
  --px:         24px;
  --sb-w:       268px;
  --hh:          110px; /* ann-bar ~38px + header 70px + 2px */
  --ease:       cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body-font); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }

/* ═══════════════════════════════════════════════════════
   BLOG HEADER — Centered Minimal Breadcrumb
   ═══════════════════════════════════════════════════════ */
.blog-hero {
  background: var(--white);
  border-bottom: 1px solid #f1f5f9;
  padding: 1.1rem 0;
}
.blog-hero .wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.blog-hero-bc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 500;
  color: #64748b;
}
.blog-hero-bc a {
  color: #64748b;
  transition: color .2s;
}
.blog-hero-bc a:hover {
  color: #2563eb;
}
.blog-hero-bc .bc-sep {
  color: #cbd5e1;
  font-weight: 400;
}
.blog-hero-bc .bc-cur {
  color: #0f172a;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════ */
.blog-wrap { padding: 2rem 0 5rem; }
.blog-layout { display: grid; grid-template-columns: var(--sb-w) 1fr; gap: 2rem; align-items: start; }

/* ═══════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════ */
.sidebar {
  background: var(--white);
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  position: sticky;
  top: calc(var(--hh) + 14px);
  max-height: calc(100vh - var(--hh) - 28px);
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.sb-section { padding: 1.25rem 1.25rem; border-bottom: 1px solid var(--border-lt); }
.sb-section:last-child { border-bottom: none; }

.sb-hd {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none; margin-bottom: 1rem;
}
.sb-hd h3 {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.sb-hd svg { color: #d1d5db; transition: transform .2s; flex-shrink: 0; }
.sb-hd.collapsed svg { transform: rotate(-90deg); }
.sb-hd.collapsed + .sb-body { display: none; }

/* Search */
.sb-search { position: relative; }
.sb-search input {
  width: 100%; height: 40px;
  background: var(--canvas); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 0 36px 0 12px;
  font-size: .875rem; color: var(--ink); outline: none; transition: all .2s;
}
.sb-search input::placeholder { color: var(--hint); }
.sb-search input:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px var(--blue-glow); }
.sb-search .si { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--hint); pointer-events: none; }

/* Categories */
.cat-list { display: flex; flex-direction: column; }
.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border-lt);
  font-size: .875rem; font-weight: 500; color: var(--body-color);
  transition: color .18s;
}
.cat-item:last-child { border-bottom: none; }
.cat-item:hover { color: var(--blue); }
.cat-item.active { color: var(--blue); font-weight: 700; }
.cat-name { display: flex; align-items: center; gap: 8px; }
.cat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); transition: background .18s; flex-shrink: 0;
}
.cat-item:hover .cat-dot, .cat-item.active .cat-dot { background: var(--blue); }
.cat-ct {
  font-size: .7rem; font-weight: 600; color: var(--hint);
  background: var(--canvas); padding: 2px 7px; border-radius: 20px;
}
.cat-item.active .cat-ct { background: var(--blue-lt); color: var(--blue); }

/* Tags */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 20px;
  background: var(--canvas); border: 1px solid var(--border);
  font-size: .75rem; font-weight: 600; color: var(--body-color);
  transition: all .18s;
}
.tag-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.tag-pill.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* Top Posts — numbered + thumbnail */
.popular-list { display: flex; flex-direction: column; gap: 0; }
.pop-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 0; border-bottom: 1px solid var(--border-lt); transition: background .15s;
}
.pop-item:first-child { padding-top: 0; }
.pop-item:last-child { border-bottom: none; padding-bottom: 0; }
.pop-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-lt); border: 1.5px solid rgba(29,94,255,.2);
  font-size: .68rem; font-weight: 800; color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pop-thumb-img {
  width: 52px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
  background: var(--blue-lt);
}
.pop-info { flex: 1; min-width: 0; }
.pop-title {
  font-size: .8rem; font-weight: 600; color: var(--ink);
  line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s;
}
.pop-item:hover .pop-title { color: var(--blue); }
.pop-meta { font-size: .68rem; color: var(--hint); margin-top: 2px; }

/* Authors */
.author-list { display: flex; flex-direction: column; gap: 8px; }
.author-item { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: var(--radius); transition: background .15s; }
.author-item:hover { background: var(--canvas); }
.author-item.active { background: var(--blue-lt); }
.author-ava {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--blue-lt); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .7rem; color: var(--blue);
}
.author-name { font-size: .84rem; font-weight: 600; color: var(--ink); }
.author-item.active .author-name { color: var(--blue); }
.author-posts { font-size: .7rem; color: var(--hint); }

/* Filters */
.chk-filters { display: flex; flex-direction: column; gap: 10px; }
.chk-filter { display: flex; align-items: center; gap: 9px; }
.chk-filter input[type=checkbox] { width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer; }
.chk-filter label { font-size: .875rem; color: #334155; cursor: pointer; font-weight: 600; }
.chk-filter input:checked + label { color: #2563eb; font-weight: 700; }

/* Clear all */
.clear-all-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px 16px;
  border: 1.5px solid #fca5a5; background: #fef2f2;
  border-radius: 10px; color: #dc2626;
  font-size: .82rem; font-weight: 700; transition: all .18s;
  box-shadow: 0 2px 6px rgba(220,38,38,0.08);
}
.clear-all-btn:hover { background: #fee2e2; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════
   TOOLBAR — 3D Control Bar
   ═══════════════════════════════════════════════════════ */
.blog-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #ffffff; border: 1px solid #cbd5e1; border-radius: 14px;
  padding: .9rem 1.25rem; margin-bottom: 1.75rem;
  box-shadow: 0 6px 20px -4px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03); flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mob-filter-btn {
  display: none; height: 38px; padding: 0 14px; align-items: center; gap: 6px;
  background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: .82rem; font-weight: 700; color: #0f172a; transition: all .18s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.mob-filter-btn:hover { border-color: #2563eb; color: #2563eb; }
.result-count { font-size: .85rem; color: #64748b; }
.result-count strong { color: #0f172a; font-weight: 700; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.sort-select {
  height: 38px; padding: 0 32px 0 12px;
  background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: .82rem; font-weight: 700; color: #0f172a;
  outline: none; cursor: pointer; transition: all .18s; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 13px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.sort-select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.view-toggle { display: flex; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.03); }
.view-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: #64748b; transition: all .18s; background: #ffffff; }
.view-btn:hover { background: #f1f5f9; color: #2563eb; }
.view-btn.active { background: #2563eb; color: #ffffff; }
.view-btn + .view-btn { border-left: 1px solid #cbd5e1; }

/* Active filter chips */
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1d4ed8;
  font-size: .78rem; font-weight: 700; padding: 5px 13px; border-radius: 20px;
  box-shadow: 0 2px 6px rgba(37,99,235,0.08);
}
.filter-tag-clear { background: #ffffff; border-color: #cbd5e1; color: #64748b; }

/* ═══════════════════════════════════════════════════════
   ARTICLE CARDS — 3D Pop Elevated Cards
   ═══════════════════════════════════════════════════════ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.post-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s ease;
  box-shadow: 0 10px 25px -5px rgba(15,23,42,0.08), 0 4px 10px -2px rgba(15,23,42,0.04);
}
.post-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 20px 40px -10px rgba(37,99,235,0.22), 0 8px 20px -4px rgba(15,23,42,0.08);
  transform: translateY(-8px) scale(1.008);
}

.pc-thumb {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 16/9;
  border-bottom: 1px solid #e2e8f0;
}
.pc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .pc-thumb img {
  transform: scale(1.06);
}

.pc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0f172a;
  color: #ffffff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.pc-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pc-meta-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: .6rem;
  font-size: .78rem;
  color: #64748b;
  flex-wrap: wrap;
}
.pc-cat {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .68rem;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(37,99,235,0.08);
  transition: all .2s;
}
.pc-cat:hover { background: #2563eb; color: #ffffff; border-color: #2563eb; }
.pc-dot { color: #94a3b8; font-weight: 700; }
.pc-date, .pc-read-time { color: #64748b; font-weight: 500; }

.pc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.38;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-title a {
  color: #0f172a;
  transition: color .2s;
}
.post-card:hover .pc-title a {
  color: #2563eb;
}

.pc-excerpt {
  font-size: .875rem;
  color: #475569;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 1.1rem;
}

.pc-footer {
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pc-author {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pc-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 800;
  color: #1e293b;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.pc-author-name {
  font-size: .82rem;
  font-weight: 700;
  color: #334155;
}
.pc-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 13px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(37,99,235,0.08);
  transition: all .2s;
}
.post-card:hover .pc-arrow {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

/* List view 3D Card */
.post-list { display: flex; flex-direction: column; gap: 1.35rem; }

.post-card-list {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s ease;
  box-shadow: 0 10px 25px -5px rgba(15,23,42,0.08), 0 4px 10px -2px rgba(15,23,42,0.04);
}
.post-card-list:hover {
  border-color: #3b82f6;
  box-shadow: 0 18px 36px -8px rgba(37,99,235,0.2), 0 6px 16px -2px rgba(15,23,42,0.06);
  transform: translateY(-5px);
}

.pl-thumb {
  width: 240px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}
.pl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card-list:hover .pl-thumb img {
  transform: scale(1.06);
}

.pl-body {
  flex: 1;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.pl-meta-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: .55rem;
  font-size: .78rem;
  color: #64748b;
  flex-wrap: wrap;
}
.pl-cat {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .68rem;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(37,99,235,0.08);
  transition: all .2s;
}
.pl-cat:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.pl-dot { color: #94a3b8; font-weight: 700; }
.pl-date, .pl-read-time { color: #64748b; font-weight: 500; }

.pl-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: .5rem;
  line-height: 1.38;
}
.pl-title a {
  color: #0f172a;
  transition: color .2s;
}
.post-card-list:hover .pl-title a {
  color: #2563eb;
}

.pl-excerpt {
  font-size: .875rem;
  color: #475569;
  line-height: 1.58;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid #f1f5f9;
}
.pl-author {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pl-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 800;
  color: #1e293b;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.pl-author-name {
  font-size: .82rem;
  font-weight: 700;
  color: #334155;
}
.pl-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 13px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(37,99,235,0.08);
  transition: all .2s;
}
.post-card-list:hover .pl-arrow {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

@media (max-width: 640px) {
  .post-card-list {
    flex-direction: column;
  }
  .pl-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
}

/* ═══════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════ */
.empty-state {
  padding: 4rem 2rem; text-align: center;
  background: var(--white); border-radius: var(--radius-xl); border: 1px solid var(--border);
}
.empty-ic { width: 68px; height: 68px; background: var(--blue-lt); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.empty-ic svg { width: 30px; height: 30px; color: var(--blue); }
.empty-state h3 { font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.empty-state p { font-size: .875rem; color: var(--muted); max-width: 320px; margin: 0 auto 1.5rem; }
.btn { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; padding: .7rem 1.4rem; border-radius: var(--radius); transition: all .18s; cursor: pointer; border: none; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 14px rgba(29,94,255,.3); }
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════
   PAGINATION — rounded circles matching reference
   ═══════════════════════════════════════════════════════ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2.75rem; flex-wrap: wrap; }
.pg-btn {
  width: 40px; height: 40px; border-radius: 50%;
  font-weight: 700; font-size: .875rem; color: var(--body-color);
  background: var(--white); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s; cursor: pointer; box-shadow: var(--shadow-xs);
}
.pg-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.pg-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 4px 14px rgba(29,94,255,.4); }
.pg-btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.pg-sep { color: var(--hint); padding: 0 2px; }

/* ═══════════════════════════════════════════════════════
   MOBILE SIDEBAR OVERLAY
   ═══════════════════════════════════════════════════════ */
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 850; }
.sb-overlay.show { display: block; }

/* ═══════════════════════════════════════════════════════
   TOAST & BACK TO TOP
   ═══════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--white); padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: .85rem; z-index: 9999; opacity: 0; transition: opacity .3s, transform .3s;
  white-space: nowrap; pointer-events: none; display: flex; align-items: center; gap: 9px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-left: 3px solid #10b981; }
.toast.error   { border-left: 3px solid #ef4444; }

#btt {
  position: fixed; bottom: 22px; right: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  z-index: 800; opacity: 0; transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .18s; pointer-events: none;
  box-shadow: 0 4px 16px rgba(29,94,255,.35);
}
#btt.show { opacity: 1; transform: translateY(0); pointer-events: all; }
#btt:hover { background: var(--blue-dk); }

/* ═══════════════════════════════════════════════════════
   SEARCH AUTOCOMPLETE
   ═══════════════════════════════════════════════════════ */
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0,0,0,.12); max-height: 340px; overflow-y: auto;
  display: none; z-index: 999;
}
.search-results.show { display: block; }
.sr-item { display: flex; align-items: center; gap: 11px; padding: 10px 13px; transition: background .15s; }
.sr-item:hover { background: var(--canvas); }
.sr-item img { width: 42px; height: 42px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; background: var(--canvas); }
.sr-item-name  { font-weight: 600; font-size: .84rem; color: var(--ink); }
.sr-item-price { font-size: .7rem; color: var(--hint); }
.sr-empty { padding: 16px; text-align: center; font-size: .84rem; color: var(--hint); }
.sr-all { display: block; padding: 9px; text-align: center; font-size: .78rem; font-weight: 700; color: var(--blue); border-top: 1px solid var(--border-lt); }
.sr-all:hover { background: var(--canvas); }

#mob-search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,.1); max-height: 280px; overflow-y: auto; z-index: 999; display: none;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1060px) {
  :root { --sb-w: 240px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar {
    display: none; position: fixed; top: 0; left: 0; bottom: 0;
    max-height: none; width: min(290px,88vw); z-index: 860;
    border-radius: 0; overflow-y: auto;
  }
  .sidebar.mob-open { display: block; }
  .mob-filter-btn { display: flex; }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card-list { flex-direction: column; }
  .pl-thumb { width: 100%; aspect-ratio: 16/9; }
  .pl-body { padding: 1rem 1.1rem; }
  .blog-toolbar { flex-direction: column; align-items: flex-start; }
  .toolbar-right { width: 100%; justify-content: flex-end; }
  .blog-hero-inner { flex-direction: column; align-items: flex-start; }
}