:root {--accent:#2563eb; --warning:#f59e0b; --bg:#f1f5f9; --text:#1e293b; --muted:#64748b; --border:#e2e8f0; --card:#ffffff}
body {font-family:'Inter', system-ui, sans-serif; background:var(--bg); margin:0; display:flex; height:100vh; overflow:hidden; color:var(--text)}
h1 {font-size:24px; max-width:100%; overflow:hidden; margin-left:10px;font-weight: 500;}
.sidebar {width:260px; background:var(--card); border-right:1px solid var(--border); padding:20px; overflow-y:auto; display:flex; flex-direction:column}
.sidebar nav {display:flex; flex-direction:column; gap:6px}
.site-title, .sidebar .site-title {display:flex; align-items:center; gap:10px; font-weight:600; text-decoration:none; margin-bottom:10px}
.nav-link {display:block; padding:10px; border-radius:8px; text-decoration:none; color:#475569; font-size:.9rem; margin-bottom:4px; transition:.2s}
.nav-link:hover {background:#f8fafc}
.nav-link.active {background:var(--accent); color:#fff; font-weight:600}
.main {flex:1; display:flex; flex-direction:column; overflow:hidden}
header {background:#0f172a; color:#fff; padding:10px 15px; display:flex; flex-direction:column; justify-content:space-between}
.content {flex:1; padding:25px; overflow-y:auto}
.stats-box {background:#f8fafc; padding:15px; border-radius:10px; margin-top:auto; border:1px solid var(--border)}
.stats-inner {font-size:.75rem; color:#444}
.stats-inner img {width:100%; height:auto; border-radius:5px; display:block}
.grid {display:grid; grid-template-columns:repeat(auto-fill, minmax(300px,1fr)); gap:20px}
.grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.card {background:#fff;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;transition:.2s ease;position:relative}
.card:hover {transform:translateY(-3px);box-shadow:0 10px 20px rgba(0,0,0,.08)}
.card img {width:100%;height:180px;object-fit:cover;background:#f1f5f9;border-bottom: 1px solid #ddd;}
.card-body {padding:14px;display:flex;flex-direction:column;gap:10px}
.card-title {font-size:1.05rem;font-weight:600;color:#0f172a;line-height:1.3}
.card-title-link {text-decoration:none;display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
.card-description {font-size:.9rem;line-height:1.5;color:#475569}
.card-badge {float:right}
.card-badge, .seo-links-list a {font-size:.7rem;font-weight:700;background:#eff6ff;color:var(--accent);padding:3px 8px;border-radius:6px;display:inline-block;}
.seo-links-list {text-align:right}
.description-scroll {font-size:.85rem; line-height:1.5; color:#475569; max-height:120px; overflow-y:auto; background:#fbfcfd; padding:10px; border-radius:8px}
.seo-intro {margin:25px 0; padding:20px; background:#f8fafc; border-radius:8px}
.seo-intro h2 {margin:0 0 12px 0; font-size:1.4rem; color:#0f172a}
.seo-intro p {margin:0 0 10px 0; line-height:1.6; color:#334155}
.seo-intro p:last-child {margin-bottom:0}
.filter-bar {display:flex; flex-wrap:wrap; gap:10px; align-items:center; background:#fff; padding:15px; border-radius:12px; margin:0 0 20px 0; box-shadow:0 1px 3px rgba(0,0,0,.05)}
.filter-bar input, .filter-bar select {padding:10px; border:1px solid #cbd5e1; border-radius:8px; font-size:.9rem}
.filter-bar button {background:var(--accent); color:#fff; border:none; padding:10px 25px; border-radius:8px; cursor:pointer; font-weight:600}
.filter-bar button:hover {filter:brightness(1.05)}
.pagination {display:flex; justify-content:center; padding:40px 0; flex-wrap:wrap; gap:10px}
.pagination-inner {display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap}
.pagination-pages {display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:center}
.page-item {display:inline-flex; align-items:center; justify-content:center; min-width:38px; height:38px; padding:0 10px; border-radius:8px; border:1px solid #e2e8f0; background:#fff; color:#334155; text-decoration:none; font-size:.9rem; transition:.2s}
.page-item:hover {background:#f1f5f9; border-color:#cbd5e1}
.page-item.current, .page-item.active {background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600}
.page-ellipsis {display:inline-flex; align-items:center; justify-content:center; padding:0 6px; color:#94a3b8; font-size:.9rem}
.pagination a.prev, .pagination a.next {font-weight:500; padding:0 14px}
.page-select {padding:8px 12px; border-radius:8px; border:1px solid #e2e8f0; background:#fff; font-size:.9rem; cursor:pointer}
.page-select:focus {outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.page-ellipsis {padding:8px 4px; color:var(--muted)}
.detail-container {background:#fff; border-radius:14px; border:1px solid var(--border); padding:30px}
.breadcrumb {font-size:.85rem; color:var(--warning); margin-bottom:20px; padding-left:10px;}
.breadcrumb a {color:var(--bg); text-decoration:none; font-weight:500; text-transform:capitalize;}
.product-grid {display:grid; grid-template-columns:1fr; gap:30px}
.product-image {width:100%; border-radius:10px; border:1px solid var(--border); background:#f8fafc; cursor:zoom-in}
.meta-tag {font-size:.75rem; font-weight:600; background:#eff6ff; color:var(--accent); padding:4px 12px; border-radius:6px; text-decoration:none}
.meta-tag-category {background:#f1f5f9; color:#475569}
.full-desc {font-size:.95rem; line-height:1.6; color:#334155; background:#fbfcfd; padding:20px; border-radius:10px; border:1px solid #f1f5f9; margin-top:20px}
.download-btn {width:250px; background:var(--accent); color:#fff; border:none; padding:12px; border-radius:8px; cursor:pointer; font-weight:600; font-size:1.1rem; display:block; text-align:center; margin:0 auto}
.download-btn:hover {filter:brightness(1.05)}
.site-disclaimer {color:#666; font-size:.8rem; margin-top:20px; line-height:1.5}
.site-footer-link {text-decoration:none; display:block; text-align:center; font-size:1rem; color:var(--accent)}
.visually-hidden {position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0)}
.lightbox {position:fixed; inset:0; background:rgba(0,0,0,.85); display:flex; justify-content:center; align-items:center; z-index:9999; cursor:pointer}
.lightbox img {max-width:90%; max-height:90%; border-radius:8px}
.card-overlay {position:fixed; inset:0; background:rgba(15,23,42,.4); backdrop-filter:blur(8px); z-index:999; display:none}
.card-overlay.show {display:block}
.mobile-nav-btn {display:none}
.related-grid {display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:28px; margin-top:10px}
.related-category {background:#fff; border:1px solid var(--border); border-radius:12px; padding:18px; transition:all 0.2s ease}
.related-category:hover {box-shadow:0 8px 25px rgba(0, 0, 0, 0.07); border-color:#cbd5e1}
.related-category h4 {margin:0 0 16px 0; font-size:1.05rem; color:#0f172a; font-weight:600; padding-bottom:10px; border-bottom:1px solid var(--border)}
.related-category ul {list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px}
.related-category li a {display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text); padding:6px 8px; border-radius:8px; transition:all 0.2s ease}
.related-category li a:hover {background:#f8fafc; transform:translateX(4px)}
.related-category li img {width:48px; height:48px; object-fit:cover; border-radius:6px; border:1px solid #e2e8f0; flex-shrink:0}
.related-category li span {font-size:0.92rem; line-height:1.35; font-weight:500; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}

@media (max-width: 1024px) {
.related-grid {grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));}
}

@media (max-width: 768px) {
.related-grid {gap:20px;}
.related-category {padding:16px;}
}
@media (min-width:1024px) {
.product-grid {grid-template-columns:350px 1fr}
}
@media (max-width:768px) {
.sidebar {position:fixed; top:0; left:0; bottom:0; width:260px; transform:translateX(-100%); transition:transform .3s ease; z-index:1000; background:#fff; box-shadow:10px 0 15px rgba(0,0,0,.1)}
.sidebar.open {transform:translateX(0)}
body.menu-active {overflow:hidden}
.mobile-nav-btn {display:block; position:fixed; right:10px; align-items:center; gap:6px; background:#1e293b; color:#fff; border:none; padding:8px 12px; border-radius:6px; cursor:pointer; font-size:.85rem; z-index:1; width:40px}
}