/* MOBILAGID — светлый ритейл-стиль (в духе крупных магазинов техники) */
:root {
    --bg: #f5f7fa;
    --bg2: #ffffff;
    --bg3: #eef2f6;
    --card: #ffffff;
    --border: #e2e8f0;
    --text: #1a2332;
    --text2: #64748b;
    --accent: #00a9e0;
    --accent-hover: #008fc0;
    --accent-dark: #006ba3;
    --accent-soft: rgba(0, 169, 224, 0.1);
    --green: #16a34a;
    --orange: #ea580c;
    --red: #dc2626;
    --purple: #7c3aed;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(15, 30, 60, 0.08);
    --shadow-hover: 0 8px 24px rgba(15, 30, 60, 0.12);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 70px;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top-bar {
    background: var(--accent-dark);
    color: #fff;
    font-size: .8rem;
    padding: 6px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar a { color: #fff; opacity: .95; }
.top-bar a:hover { opacity: 1; text-decoration: underline; }

/* Header */
.header {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.logo:hover { color: var(--accent-hover); }
.logo-icon { font-size: 1.5rem; }

.header-search {
    flex: 1;
    max-width: 520px;
    display: none;
}
.header-search form {
    display: flex;
    width: 100%;
}
.header-search input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    font-size: .95rem;
    background: var(--bg3);
    color: var(--text);
}
.header-search input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}
.header-search button {
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    cursor: pointer;
}
.header-search button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.desktop-nav { display: none; gap: 4px; }
.desktop-nav a {
    color: var(--text);
    font-size: .88rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.desktop-nav a:hover, .desktop-nav a.active {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
    color: var(--text);
    font-size: 1.15rem;
    position: relative;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background .15s;
}
.icon-btn:hover { background: var(--bg3); color: var(--accent-dark); }
.badge {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--accent);
    color: #fff;
    font-size: .65rem;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.burger span {
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 8px 16px 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--text);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: .95rem;
    font-weight: 500;
}
.mobile-contacts { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.mobile-contacts a { border: none; color: var(--accent-dark); }

/* Category strip */
.cat-strip {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.cat-strip-inner {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
    max-width: 1240px;
    margin: 0 auto;
}
.cat-strip a {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg3);
    white-space: nowrap;
}
.cat-strip a:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Main */
.main { min-height: calc(100vh - 220px); padding: 20px 0 40px; }

/* Flash */
.flash {
    position: fixed;
    top: 80px; left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-hover);
    animation: slideDown .3s ease;
}
.flash-success { background: #166534; color: #fff; }
.flash-error { background: #991b1b; color: #fff; }
.flash-info { background: var(--accent-dark); color: #fff; }
.flash-close {
    background: none; border: none; color: inherit;
    font-size: 1.3rem; cursor: pointer; opacity: .8;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    box-shadow: var(--shadow);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #c5d4e8;
}

/* Product grid — retail style */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card .img-wrap {
    aspect-ratio: 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 12px;
}
.product-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-card .badges {
    position: absolute;
    top: 10px; left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 1;
}
.badge-tag {
    font-size: .7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.badge-used { background: var(--orange); }
.badge-new { background: var(--accent); }
.badge-refurb { background: var(--purple); }
.badge-discount { background: var(--red); }
.badge-popular { background: var(--green); }

.product-card .body {
    padding: 12px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card .title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.product-card .title:hover { color: var(--accent-dark); }
.product-card .meta {
    font-size: .78rem;
    color: var(--text2);
    margin-bottom: 8px;
}
.product-card .price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-top: auto;
    letter-spacing: -0.02em;
}
.product-card .stock {
    font-size: .75rem;
    color: var(--green);
    margin-top: 4px;
    font-weight: 500;
}
.product-card .actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}
.product-card .actions .btn-cart {
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 1.2rem;
}
.product-card .price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.product-card .price-block { flex: 1; }
.product-card .old-price {
    font-size: .8rem;
    color: var(--text2);
    text-decoration: line-through;
}
.product-card .card-icons {
    position: absolute;
    top: 10px; right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.product-card .card-icons button,
.product-card .card-icons a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .95rem;
    color: var(--text2);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.product-card .card-icons button:hover,
.product-card .card-icons a:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.product-card .rating {
    font-size: .75rem;
    color: #f59e0b;
    margin-bottom: 4px;
}
.product-card .in-stock {
    font-size: .75rem;
    color: var(--green);
    font-weight: 500;
}
.promo-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
@media (min-width: 900px) {
    .promo-row { grid-template-columns: 1.6fr 1fr; }
}
.promo-side {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
}
.promo-side h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 800;
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin: 24px 0 32px;
}
.brand-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 8px;
    text-align: center;
    font-weight: 700;
    font-size: .85rem;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: border-color .15s, box-shadow .15s;
}
.brand-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    color: var(--accent-dark);
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-head a {
    font-size: .9rem;
    font-weight: 600;
    color: var(--accent-dark);
}
.buy-btn {
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 18px !important;
}
.buy-btn:hover { background: var(--accent-hover) !important; }

/* Hero — retail banner */
.hero {
    background: linear-gradient(120deg, var(--accent-dark) 0%, var(--accent) 100%);
    border-radius: 12px;
    padding: 36px 28px;
    margin-bottom: 28px;
    text-align: left;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero h1 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 800;
}
.hero p {
    color: rgba(255,255,255,0.92);
    margin-bottom: 20px;
    max-width: 480px;
    font-size: .95rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn-primary {
    background: #fff;
    color: var(--accent-dark);
}
.hero .btn-primary:hover { background: #f0f9ff; color: var(--accent-dark); }
.hero .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
}
.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

/* Categories */
.section-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.cat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
    color: var(--text);
    transition: all .15s;
    box-shadow: var(--shadow);
}
.cat-card:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    box-shadow: var(--shadow-hover);
}
.cat-card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.cat-card .name { font-size: .85rem; font-weight: 600; }

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 28px 0;
}
.feature {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow);
}
.feature .icon { font-size: 1.8rem; margin-bottom: 8px; }
.feature h3 { font-size: .95rem; margin-bottom: 4px; font-weight: 700; }
.feature p { font-size: .8rem; color: var(--text2); }

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.quick-link {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: .9rem;
    transition: all .15s;
    box-shadow: var(--shadow);
}
.quick-link:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: .85rem;
    color: var(--text2);
    margin-bottom: 5px;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

/* Filters */
.filters {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}
.filters-row .form-group { margin-bottom: 0; flex: 1; min-width: 120px; }
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.tab {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg3);
    border: 1px solid transparent;
    color: var(--text2);
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
}
.tab:hover, .tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Product page */
.product-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .product-page { grid-template-columns: 1fr 1fr; }
}
.gallery-main {
    aspect-ratio: 1;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    padding: 16px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}
.gallery-thumbs img {
    width: 64px; height: 64px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--border);
    cursor: pointer;
    background: #fff;
    padding: 4px;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover {
    border-color: var(--accent);
}
.product-info h1 {
    font-size: 1.45rem;
    margin-bottom: 8px;
    font-weight: 800;
}
.product-info .price-big {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 12px 0;
    color: var(--text);
}
.specs { margin: 16px 0; background: var(--bg3); border-radius: 8px; padding: 4px 14px; }
.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .label { color: var(--text2); }
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th, .cart-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.cart-table th { color: var(--text2); font-size: .85rem; font-weight: 600; background: var(--bg3); }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control button {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
}
.cart-summary {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}
.cart-summary .total {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 12px 0;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    overflow-x: auto;
    display: block;
    background: #fff;
}
.compare-table th, .compare-table td {
    padding: 10px;
    border: 1px solid var(--border);
    text-align: center;
    min-width: 120px;
}
.compare-table th { background: var(--bg3); }

/* Footer */
.footer {
    background: #1a2332;
    color: #cbd5e1;
    padding: 40px 0 20px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}
.footer-col h3, .footer-col h4 {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #fff;
}
.footer-col a, .footer-col p {
    display: block;
    color: #94a3b8;
    font-size: .9rem;
    margin-bottom: 6px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 16px;
    text-align: center;
    color: #64748b;
    font-size: .85rem;
}

/* Bottom nav */
.bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 90;
    padding: 6px 0 env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,.06);
}
.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text2);
    font-size: .68rem;
    font-weight: 500;
    padding: 6px 0;
}
.bottom-nav a span { font-size: 1.2rem; }
.bottom-nav a.active { color: var(--accent); }

/* Help widget */
.help-widget {
    position: fixed;
    bottom: 80px; right: 16px;
    z-index: 80;
}
.help-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
}
.help-menu {
    display: none;
    position: absolute;
    bottom: 50px; right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 200px;
    box-shadow: var(--shadow-hover);
}
.help-menu.open { display: block; }
.help-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-size: .9rem;
}
.help-menu a:hover { background: var(--bg3); }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 60, .5);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-hover);
}
.modal h2 { margin-bottom: 12px; }
.modal p { color: var(--text2); margin-bottom: 16px; }
.modal-close {
    position: absolute;
    top: 12px; right: 12px;
    background: none; border: none;
    color: var(--text2); font-size: 1.5rem;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text2);
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }

.result-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow);
}
.result-card.best {
    border-color: var(--green);
    box-shadow: 0 0 0 1px var(--green);
}
.result-card .rank {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

/* Admin */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
    width: 240px;
    background: #1a2332;
    padding: 20px 0;
    flex-shrink: 0;
}
.admin-sidebar a {
    display: block;
    padding: 10px 20px;
    color: #94a3b8;
    font-size: .9rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: #243044;
    color: #fff;
}
.admin-content { flex: 1; padding: 24px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.table th { color: var(--text2); font-weight: 600; background: var(--bg3); }
.table tr:hover td { background: #f8fafc; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.stat-card .value { font-size: 1.6rem; font-weight: 800; }
.stat-card .label { color: var(--text2); font-size: .85rem; }

@media (min-width: 768px) {
    .desktop-nav { display: flex; }
    .header-search { display: block; }
    .burger { display: none; }
    .bottom-nav { display: none; }
    body { padding-bottom: 0; }
    .help-widget { bottom: 24px; }
    .hero h1 { font-size: 2.2rem; }
}
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-card { animation: fadeInUp .35s ease backwards; }

.text-center { text-align: center; }
.text-muted { color: var(--text2); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
