:root {
  --blue: #1a73e8;
  --blue-hover: #1557b0;
  --blue-bg: #e8f0fe;
  --green: #1e8e3e;
  --green-bg: #e6f4ea;
  --red: #d93025;
  --red-bg: #fce8e6;
  --orange: #e8710a;
  --orange-bg: #fef7e0;
  --text: #202124;
  --text-2: #3c4043;
  --text-3: #5f6368;
  --text-muted: #80868b;
  --border: #dadce0;
  --border-light: #e8eaed;
  --bg: #f8f9fa;
  --white: #fff;
  --shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  --shadow-hover: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
  --radius: 8px;
  --radius-lg: 12px;
  --max-w: 1280px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;color:var(--text);background:var(--bg);line-height:1.5;min-height:100vh;display:flex;flex-direction:column}
img{max-width:100%;display:block}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
ul{list-style:none}
input,select,textarea,button{font:inherit}
table{border-collapse:collapse;width:100%}

/* layout */
.wrap{max-width:var(--max-w);margin:0 auto;padding:16px 20px 40px;flex:1;width:100%}
.page-title{font-size:22px;font-weight:700;margin-bottom:16px}
.section{max-width:var(--max-w);margin:0 auto 32px;padding:0 20px}
.section-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}
.section-header h2{font-size:18px;font-weight:700}
.section-header a{font-size:13px;font-weight:500;color:var(--blue)}
.muted{color:var(--text-3);font-size:13px}

/* btn */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 16px;border:1px solid var(--border);border-radius:var(--radius);font-size:13px;font-weight:500;cursor:pointer;background:var(--white);color:var(--text-2);transition:background .15s,box-shadow .15s}
.btn:hover{background:var(--bg);box-shadow:var(--shadow);text-decoration:none}
.btn-primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.btn-primary:hover{background:var(--blue-hover);color:#fff}
.btn-danger{background:var(--red);color:#fff;border-color:var(--red)}
.btn-danger:hover{background:#c5221f;color:#fff}
.btn-success{background:var(--green);color:#fff;border-color:var(--green)}
.btn-sm{height:30px;padding:0 12px;font-size:12px}
.btn-block{display:flex;width:100%;justify-content:center}

/* forms */
.form-group{margin-bottom:14px}
.form-group label{display:block;font-size:12px;font-weight:500;color:var(--text-3);margin-bottom:4px}
.form-input,.form-select{width:100%;height:36px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius);font-size:14px;background:var(--white)}
.form-input:focus,.form-select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 2px rgba(26,115,232,.2)}
textarea.form-input{height:auto;min-height:80px;padding:10px 12px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* alerts */
.alert{padding:10px 14px;border-radius:var(--radius);font-size:13px;font-weight:500;margin-bottom:14px}
.alert-success,.alert-ok{background:var(--green-bg);color:var(--green)}
.alert-error{background:var(--red-bg);color:var(--red)}
.alert-warning{background:var(--orange-bg);color:var(--orange)}

/* empty */
.empty-state{text-align:center;padding:60px 20px}
.empty-state h3{font-size:16px;font-weight:600;margin-bottom:6px}
.empty-state p{color:var(--text-3);margin-bottom:16px;font-size:14px}
.empty-icon{width:48px;height:48px;margin:0 auto 14px;background:var(--bg);border-radius:50%;display:flex;align-items:center;justify-content:center}
.empty-icon svg{width:24px;height:24px;color:var(--text-muted)}

/* ── NAV ── */
.nav{background:var(--white);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100}
.nav-inner{display:flex;align-items:center;gap:16px;max-width:var(--max-w);margin:0 auto;padding:0 20px;height:56px}
.nav-logo{font-size:18px;font-weight:800;color:var(--text);flex-shrink:0}
.nav-logo:hover{text-decoration:none;color:var(--text)}
.nav-logo span{color:var(--blue)}
.nav-search{flex:1;max-width:480px;position:relative}
.search-form{display:flex;height:40px;border:1px solid var(--border);border-radius:20px;overflow:hidden;background:var(--bg);transition:border-color .15s,box-shadow .15s}
.search-form:focus-within{border-color:var(--blue);background:var(--white);box-shadow:0 0 0 2px rgba(26,115,232,.15)}
.search-form input{flex:1;border:none;background:transparent;padding:0 16px;font-size:14px;outline:none}
.search-form button{width:40px;background:transparent;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-3)}
.search-form button:hover{color:var(--blue)}
.search-form button svg{width:18px;height:18px}
.search-suggest{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-hover);display:none;z-index:101;max-height:340px;overflow-y:auto}
.suggest-item{display:flex;align-items:center;gap:10px;padding:8px 14px;color:var(--text);font-size:13px}
.suggest-item:hover{background:var(--bg);text-decoration:none}
.suggest-item img{width:40px;height:40px;object-fit:contain;border-radius:4px;background:var(--bg)}
.suggest-noimg{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:var(--bg);border-radius:4px;color:var(--text-muted);font-size:11px}
.suggest-name{font-size:13px;font-weight:500;line-height:1.3}
.suggest-price{font-size:12px;color:var(--red);font-weight:600;margin-top:2px}
.nav-links{display:flex;align-items:center;gap:4px;flex-shrink:0}
.nav-links a,.nav-btn-logout{color:var(--text-2);font-size:13px;font-weight:500;padding:6px 10px;border-radius:var(--radius);transition:background .1s}
.nav-links a:hover{background:var(--bg);text-decoration:none}
.nav-admin{color:var(--blue) !important;font-weight:600 !important}
.nav-btn-logout{background:none;border:none;cursor:pointer;color:var(--text-muted)}
.nav-btn-logout:hover{color:var(--red);background:var(--red-bg)}
.nav-burger{display:none;background:none;border:none;cursor:pointer;padding:6px;color:var(--text-2)}
.nav-cats{display:flex;max-width:var(--max-w);margin:0 auto;overflow-x:auto;scrollbar-width:none;border-top:1px solid var(--border-light);background:var(--white)}
.nav-cats::-webkit-scrollbar{display:none}
.nav-cat-item{position:relative;flex-shrink:0}
.nav-cat-item>a{display:block;padding:8px 14px;font-size:13px;font-weight:500;color:var(--text-2);white-space:nowrap;border-bottom:2px solid transparent}
.nav-cat-item>a:hover{color:var(--blue);background:var(--blue-bg);text-decoration:none;border-bottom-color:var(--blue)}
.nav-cat-dropdown{display:none;position:absolute;top:100%;left:0;min-width:200px;background:var(--white);border:1px solid var(--border);border-radius:0 0 var(--radius-lg) var(--radius-lg);box-shadow:var(--shadow-hover);z-index:99;padding:4px 0}
.nav-cat-item:hover .nav-cat-dropdown{display:block}
.nav-cat-dropdown a{display:block;padding:7px 14px;font-size:13px;color:var(--text-2)}
.nav-cat-dropdown a:hover{background:var(--bg);color:var(--blue);text-decoration:none}

/* ── HERO ── */
.hero{background:var(--white);border-bottom:1px solid var(--border);padding:40px 20px;text-align:center}
.hero-content{max-width:600px;margin:0 auto}
.hero h1{font-size:28px;font-weight:800;margin-bottom:8px;color:var(--text);line-height:1.25}
.hero h1 span{color:var(--blue)}
.hero p{font-size:15px;color:var(--text-3);margin-bottom:24px}
.hero-search{max-width:520px;margin:0 auto 24px;position:relative}
.hero-search .search-form{height:48px;border-radius:24px;border-color:var(--border);box-shadow:var(--shadow)}
.hero-search .search-form:focus-within{box-shadow:var(--shadow-hover)}
.hero-search .search-form input{font-size:15px;padding:0 20px}
.hero-search .search-form button{width:48px}
.hero-stats{display:flex;justify-content:center;gap:32px}
.hero-stat{text-align:center}
.hero-stat strong{display:block;font-size:20px;font-weight:800;color:var(--text)}
.hero-stat{font-size:13px;color:var(--text-3)}

/* ── CATEGORIES ── */
.categories-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.categories-grid.big{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.category-card{background:var(--white);border:1px solid var(--border-light);border-radius:var(--radius);padding:16px 14px;text-align:center;color:var(--text)}
.category-card:hover{box-shadow:var(--shadow);text-decoration:none;color:var(--text)}
.category-icon{font-size:28px;margin-bottom:6px;height:32px;display:flex;align-items:center;justify-content:center;color:var(--text-3)}
.category-icon:empty{background:var(--bg);width:32px;height:32px;border-radius:50%;margin:0 auto 6px}
.category-card h3{font-size:13px;font-weight:600;margin-bottom:2px}
.category-count{font-size:12px;color:var(--text-muted)}
.subcats-row{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.subcat-chip{padding:5px 12px;background:var(--white);border:1px solid var(--border);border-radius:16px;font-size:13px;color:var(--text-2)}
.subcat-chip:hover{border-color:var(--blue);color:var(--blue);text-decoration:none}
.category-header{margin-bottom:16px}
.category-header h1{font-size:20px;font-weight:700}
.category-desc{font-size:14px;color:var(--text-3)}

/* ── CATALOG LAYOUT ── */
.catalog-layout{display:grid;grid-template-columns:220px 1fr;gap:20px;align-items:start}
.filters-sidebar{background:var(--white);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:16px;position:sticky;top:72px}
.filter-title{font-size:15px;font-weight:700;margin-bottom:14px}
.filter-group{margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--border-light)}
.filter-group:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.filter-label{font-size:12px;font-weight:500;color:var(--text-3);margin-bottom:6px;display:block}
.filter-select{height:32px;padding:0 8px;font-size:13px}
.price-inputs{display:flex;align-items:center;gap:6px}
.price-inputs input{flex:1;height:32px;padding:0 8px;border:1px solid var(--border);border-radius:var(--radius);font-size:13px;min-width:0}
.price-inputs input:focus{border-color:var(--blue);outline:none}
.price-inputs span{color:var(--text-muted);font-size:12px}
.catalog-main{min-width:0}
.catalog-top-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.results-count{font-size:13px;color:var(--text-3)}
.compare-go{position:relative}
.compare-badge{background:var(--blue);color:#fff;font-size:10px;border-radius:10px;min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;margin-left:4px;font-weight:600}
.compare-badge:empty{display:none}

/* ── PRODUCT CARDS ── */
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.product-card{background:var(--white);border:1px solid var(--border-light);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .15s}
.product-card:hover{box-shadow:var(--shadow-hover)}
.product-card-link{display:flex;flex-direction:column;color:inherit;flex:1}
.product-card-link:hover{text-decoration:none}
.product-card-img{aspect-ratio:1;background:var(--white);display:flex;align-items:center;justify-content:center;overflow:hidden;border-bottom:1px solid var(--border-light)}
.product-card-img img{width:100%;height:100%;object-fit:contain;padding:12px}
.product-card-noimg{width:100%;aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:var(--bg);color:var(--text-muted);font-size:12px}
.product-card-noimg::after{content:'Нет фото';font-size:12px;color:var(--text-muted)}
.product-card-body{padding:12px;flex:1;display:flex;flex-direction:column}
.product-card-category{font-size:11px;color:var(--text-muted);margin-bottom:4px}
.product-card-title{font-size:13px;font-weight:500;color:var(--text);line-height:1.4;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-card-brand{font-size:12px;color:var(--text-muted);margin-bottom:6px}
.product-card-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:flex-end;padding-top:6px}
.price-main{font-size:15px;font-weight:700;color:var(--text)}
.price-na{font-size:13px;color:var(--text-muted)}
.product-card-rating{font-size:12px;color:var(--orange);font-weight:600;display:flex;align-items:center;gap:2px}
.product-card-rating .review-count{color:var(--text-muted);font-weight:400}
.stars{color:var(--orange)}
.product-card-actions{padding:0 12px 12px}
.btn-compare{width:100%;height:30px;background:var(--bg);border:1px solid var(--border-light);border-radius:var(--radius);cursor:pointer;font-size:12px;color:var(--text-3);font-weight:500;transition:all .1s}
.btn-compare:hover,.btn-compare.active{background:var(--blue-bg);color:var(--blue);border-color:var(--blue)}

/* ── PRODUCT DETAIL ── */
.product-page{margin-bottom:20px}
.product-top{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:20px}
.product-gallery{background:var(--white);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:20px;text-align:center}
.product-main-img img{max-height:380px;margin:0 auto}
.product-noimg{height:280px;display:flex;align-items:center;justify-content:center;background:var(--bg);border-radius:var(--radius);color:var(--text-muted);font-size:14px}
.product-noimg::after{content:'Нет изображения'}
.product-thumbs{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:10px}
.product-thumbs .thumb{width:56px;height:56px;object-fit:contain;border:1px solid var(--border);border-radius:4px;cursor:pointer;padding:3px;background:var(--white)}
.product-thumbs .thumb.active,.product-thumbs .thumb:hover{border-color:var(--blue)}
.product-info{display:flex;flex-direction:column}
.product-brand{font-size:13px;color:var(--text-3);font-weight:600;margin-bottom:4px;text-transform:uppercase;letter-spacing:.03em}
.product-brand:hover{color:var(--blue);text-decoration:none}
.product-info h1{font-size:22px;font-weight:700;line-height:1.3;margin-bottom:8px}
.product-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.product-rating{display:flex;align-items:center;gap:4px;font-size:14px;font-weight:600}
.product-price-box{background:var(--bg);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:16px;margin-bottom:14px}
.price-big{font-size:26px;font-weight:800;color:var(--text)}
.price-range{font-size:13px;color:var(--text-3)}
.price-shops{font-size:13px;color:var(--text-3);margin-top:4px}
.product-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.product-short-desc{font-size:14px;color:var(--text-2);line-height:1.6;padding-top:14px;border-top:1px solid var(--border-light)}
.product-section{background:var(--white);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:20px;margin-bottom:16px}
.product-section h2{font-size:17px;font-weight:700;margin-bottom:14px;padding-bottom:8px;border-bottom:1px solid var(--border-light)}
.prices-table{display:flex;flex-direction:column}
.price-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border-light)}
.price-row:last-child{border-bottom:none}
.price-shop{display:flex;align-items:center;gap:10px;flex:1;min-width:140px}
.shop-logo{width:32px;height:32px;object-fit:contain;border-radius:4px;background:var(--bg)}
.shop-name{font-weight:600;font-size:14px}
.shop-rating{font-size:12px;color:var(--orange)}
.price-val{font-size:16px;font-weight:700;min-width:100px}
.price-stock{min-width:90px}
.stock-badge{font-size:12px;padding:2px 8px;border-radius:10px;font-weight:500}
.stock-badge.in{background:var(--green-bg);color:var(--green)}
.stock-badge.out{background:var(--red-bg);color:var(--red)}
.specs-table{width:100%}
.specs-table tr{border-bottom:1px solid var(--border-light)}
.specs-table tr:last-child{border-bottom:none}
.specs-table td{padding:8px 10px;font-size:13px}
.spec-key{color:var(--text-3);width:40%}
.spec-val{font-weight:500}
.product-desc{font-size:14px;line-height:1.7;color:var(--text-2)}
.review-form-wrap{background:var(--bg);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:16px;margin-bottom:16px}
.review-form-wrap h3{font-size:15px;font-weight:600;margin-bottom:12px}
.star-select{display:flex;gap:2px;direction:rtl;justify-content:flex-end}
.star-select input{display:none}
.star-select label{font-size:22px;color:var(--border);cursor:pointer}
.star-select label:hover,.star-select label:hover~label,.star-select input:checked~label{color:var(--orange)}
.reviews-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.review-card{background:var(--bg);border:1px solid var(--border-light);border-radius:var(--radius);padding:14px}
.review-header{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.review-author{font-weight:600;font-size:14px}
.review-stars{color:var(--orange);font-size:13px}
.review-date{font-size:12px;color:var(--text-muted);margin-left:auto}
.review-title{font-size:14px;font-weight:600;margin-bottom:4px}
.review-pros{font-size:13px;color:var(--green);margin-bottom:3px;padding:4px 8px;background:var(--green-bg);border-radius:4px}
.review-cons{font-size:13px;color:var(--red);margin-bottom:3px;padding:4px 8px;background:var(--red-bg);border-radius:4px}
.review-text{font-size:13px;color:var(--text-2);line-height:1.5;margin-top:6px}

/* ── COMPARE ── */
.compare-table-wrap{overflow-x:auto;border:1px solid var(--border-light);border-radius:var(--radius-lg);background:var(--white)}
.compare-table{min-width:600px;width:100%}
.compare-table th,.compare-table td{padding:8px 12px;border:1px solid var(--border-light);font-size:13px;vertical-align:top;text-align:center}
.compare-label{text-align:left !important;font-weight:600;color:var(--text-2);background:var(--bg);width:160px}
.compare-product{padding:14px 10px}
.compare-product-link{display:flex;flex-direction:column;align-items:center;color:var(--text);gap:6px}
.compare-product-link:hover{text-decoration:none}
.compare-product-link img{max-height:100px}
.compare-product-name{font-weight:600;font-size:13px;line-height:1.3}

/* ── BRANDS ── */
.brands-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.brand-card{background:var(--white);border:1px solid var(--border-light);border-radius:var(--radius);padding:14px;display:flex;align-items:center;gap:12px;color:var(--text)}
.brand-card:hover{box-shadow:var(--shadow);text-decoration:none;color:var(--text)}
.brand-logo{width:44px;height:44px;object-fit:contain;flex-shrink:0;border-radius:4px;background:var(--bg)}
.brand-letter{width:44px;height:44px;background:var(--blue);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;font-weight:700;flex-shrink:0}
.brand-info h3{font-size:14px;font-weight:600}
.brand-country{font-size:12px;color:var(--text-muted)}
.brand-count{font-size:12px;color:var(--text-3)}
.brand-header{display:flex;align-items:center;gap:20px;margin-bottom:20px;padding:20px;background:var(--white);border:1px solid var(--border-light);border-radius:var(--radius-lg)}
.brand-header-logo{width:72px;height:72px;object-fit:contain}

/* ── SHOPS ── */
.shops-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.shop-card{background:var(--white);border:1px solid var(--border-light);border-radius:var(--radius);padding:16px;display:flex;align-items:center;gap:12px}
.shop-card:hover{box-shadow:var(--shadow)}
.shop-card-logo{width:40px;height:40px;object-fit:contain;border-radius:4px;flex-shrink:0;background:var(--bg)}
.shop-card-letter{width:40px;height:40px;background:var(--green);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;font-weight:700;flex-shrink:0}
.shop-card-info h3{font-size:14px;font-weight:600}
.shop-card-rating{font-size:12px;color:var(--orange);font-weight:600}
.shop-card-count{font-size:12px;color:var(--text-muted)}

/* ── AUTH ── */
.auth-wrap{display:flex;justify-content:center;align-items:center;min-height:50vh;padding:32px 20px}
.auth-card{background:var(--white);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:32px;width:100%;max-width:400px;box-shadow:var(--shadow)}
.auth-card h1{text-align:center;margin-bottom:6px;font-size:20px;font-weight:700}
.auth-sub{text-align:center;color:var(--text-3);font-size:14px;margin-bottom:20px}

/* ── PROFILE ── */
.card{background:var(--white);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:20px;margin-bottom:14px}
.card h3{font-size:16px;font-weight:700;margin-bottom:12px}
.review-mini{padding:8px 0;border-bottom:1px solid var(--border-light);display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}
.review-mini:last-child{border-bottom:none}

/* ── BREADCRUMBS ── */
.breadcrumbs{display:flex;align-items:center;gap:4px;padding:10px 0;font-size:13px;flex-wrap:wrap}
.breadcrumbs a{color:var(--text-3)}
.breadcrumbs a:hover{color:var(--blue)}
.breadcrumbs span{color:var(--text-muted)}
.breadcrumbs .current{color:var(--text);font-weight:500}

/* ── PAGINATION ── */
.pagination{display:flex;align-items:center;justify-content:center;gap:4px;margin:24px 0 10px;flex-wrap:wrap}
.pg-btn{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 8px;border:1px solid var(--border);border-radius:var(--radius);font-size:13px;font-weight:500;color:var(--text-2)}
.pg-btn:hover{background:var(--bg);text-decoration:none}
.pg-btn.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.pg-dots{color:var(--text-muted);padding:0 4px}
.pg-info{font-size:12px;color:var(--text-muted);margin-left:8px}

/* ── FEATURES ── */
.features-section{padding:32px 20px;margin:0;background:var(--white);border-top:1px solid var(--border-light)}
.features-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;max-width:var(--max-w);margin:0 auto}
.feature-card{text-align:center;padding:16px 12px}
.feature-card h3{font-size:14px;font-weight:600;margin-bottom:4px}
.feature-card p{font-size:13px;color:var(--text-3);line-height:1.5}
.feature-icon{width:40px;height:40px;margin:0 auto 10px;background:var(--bg);border-radius:50%;display:flex;align-items:center;justify-content:center}
.feature-icon svg{width:20px;height:20px;color:var(--blue)}

/* ── ADMIN ── */
.admin-layout{display:grid;grid-template-columns:200px 1fr;gap:20px;align-items:start}
.admin-sidebar{background:var(--white);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:10px;position:sticky;top:72px}
.admin-sidebar a,.admin-nav-item{display:block;padding:8px 12px;font-size:13px;font-weight:500;color:var(--text-2);border-radius:var(--radius);margin-bottom:2px}
.admin-sidebar a:hover,.admin-nav-item:hover{background:var(--bg);text-decoration:none}
.admin-sidebar a.active,.admin-nav-item.active{background:var(--blue);color:#fff}
.admin-main{min-width:0}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:20px}
.stat-card{background:var(--white);border:1px solid var(--border-light);border-radius:var(--radius);padding:16px;text-align:center}
.stat-value{font-size:24px;font-weight:800;color:var(--text)}
.stat-label{font-size:11px;color:var(--text-muted);margin-top:2px;font-weight:500;text-transform:uppercase;letter-spacing:.03em}
.admin-table{width:100%;font-size:13px;background:var(--white);border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border-light)}
.admin-table thead{background:var(--bg)}
.admin-table th{padding:8px 10px;text-align:left;font-weight:600;font-size:12px;color:var(--text-3);border-bottom:1px solid var(--border)}
.admin-table td{padding:8px 10px;border-bottom:1px solid var(--border-light);vertical-align:middle}
.admin-table tr:last-child td{border-bottom:none}
.admin-table tr:hover td{background:var(--bg)}
.admin-form{background:var(--white);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:20px;margin-bottom:14px}
.status-badge{display:inline-flex;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:500}
.status-badge.pending{background:var(--orange-bg);color:var(--orange)}
.status-badge.running{background:var(--blue-bg);color:var(--blue)}
.status-badge.done{background:var(--green-bg);color:var(--green)}
.status-badge.error{background:var(--red-bg);color:var(--red)}
.badge{display:inline-flex;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:500}
.badge-warning{background:var(--orange-bg);color:var(--orange)}
.badge-success{background:var(--green-bg);color:var(--green)}
.badge-danger{background:var(--red-bg);color:var(--red)}
.btn-outline{background:var(--white);border:1px solid var(--border);color:var(--text-2)}
.btn-outline:hover{background:var(--bg)}

/* ── FOOTER ── */
.footer{background:#1a1a1a;color:#999;padding:32px 20px 16px;margin-top:auto}
.footer-inner{max-width:var(--max-w);margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:24px}
.footer-logo{font-size:16px;font-weight:800;color:#fff;margin-bottom:6px}
.footer-col p{font-size:13px;line-height:1.5}
.footer-col h4{color:#fff;font-size:12px;font-weight:600;margin-bottom:8px;text-transform:uppercase;letter-spacing:.04em}
.footer-col a{display:block;color:#999;font-size:13px;padding:2px 0}
.footer-col a:hover{color:#fff;text-decoration:none}
.footer-bottom{max-width:var(--max-w);margin:20px auto 0;padding-top:14px;border-top:1px solid #333;font-size:12px;color:#666;text-align:center}

/* 404 */
.error-page{text-align:center;padding:80px 20px}
.error-code{font-size:80px;font-weight:900;color:var(--border);line-height:1}

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  .catalog-layout{grid-template-columns:200px 1fr}
  .product-top{grid-template-columns:1fr 1fr}
  .admin-layout{grid-template-columns:180px 1fr}
  .footer-inner{grid-template-columns:1fr 1fr}
  .features-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .nav-inner{flex-wrap:wrap}
  .nav-search{order:3;max-width:100%;flex-basis:100%;margin-top:0;padding-bottom:8px}
  .nav-links{display:none;flex-direction:column;width:100%;gap:2px;padding:8px 0;border-top:1px solid var(--border-light);order:4}
  .nav-links.open{display:flex}
  .nav-burger{display:flex}
  .nav-cats{display:none}
  .hero{padding:28px 20px}
  .hero h1{font-size:22px}
  .catalog-layout{grid-template-columns:1fr}
  .filters-sidebar{position:static}
  .product-top{grid-template-columns:1fr}
  .admin-layout{grid-template-columns:1fr}
  .admin-sidebar{position:static;display:flex;flex-wrap:wrap;gap:4px;padding:8px}
  .admin-sidebar a{margin-bottom:0;padding:6px 10px;font-size:12px}
  .products-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
  .footer-inner{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .products-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .categories-grid{grid-template-columns:repeat(2,1fr)}
  .brands-grid{grid-template-columns:1fr}
  .shops-grid{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr}
  .features-grid{grid-template-columns:1fr}
  .hero h1{font-size:20px}
  .hero-stats{gap:16px}
}
