* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #f4f5f7; color: #222; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 15px; }

/* Верхняя панель */
.top-bar { background: #1e293b; color: #cbd5e1; font-size: 13px; padding: 8px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-links a { margin-right: 15px; }
.admin-link { color: #38bdf8; font-weight: bold; }

/* Шапка */
.header { background: #fff; padding: 15px 0; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.burger-btn { display: none; font-size: 24px; background: none; border: none; cursor: pointer; }
.logo { font-size: 26px; font-weight: 800; color: #0f172a; }
.logo span { color: #e11d48; }
.header-phone a { font-size: 17px; font-weight: bold; display: block; }
.header-phone small { color: #64748b; font-size: 12px; }

.search-box { display: flex; flex: 1; max-width: 480px; }
.search-box input { width: 100%; padding: 10px; border: 2px solid #e11d48; border-radius: 4px 0 0 4px; outline: none; }
.search-box button { background: #e11d48; color: #fff; border: none; padding: 0 18px; font-weight: bold; border-radius: 0 4px 4px 0; cursor: pointer; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.mobile-call-btn { display: none; background: #16a34a; color: #fff; padding: 5px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; white-space: nowrap; }
.badge { background: #e11d48; color: #fff; padding: 2px 6px; border-radius: 10px; font-size: 12px; }

/* Меню каталога */
.catalog-nav { background: #0f172a; color: #fff; }
.catalog-list { display: flex; flex-wrap: wrap; list-style: none; }
.catalog-list li a { display: block; padding: 12px 14px; font-size: 13px; }
.catalog-list li a:hover { background: #e11d48; }

/* Карточки товаров */
.section-title { font-size: 22px; margin: 25px 0 15px; }
.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.product-card { background: #fff; border-radius: 6px; padding: 12px; border: 1px solid #e2e8f0; display: flex; flex-direction: column; position: relative; }
.product-badge { position: absolute; top: 10px; left: 10px; background: #16a34a; color: #fff; font-size: 11px; padding: 3px 7px; border-radius: 3px; text-transform: uppercase; }
.product-badge.hit { background: #ea580c; }
.product-badge.sale { background: #e11d48; }
.product-card img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 10px; }
.product-title { font-size: 14px; font-weight: bold; margin-bottom: 6px; }
.product-specs { font-size: 12px; color: #64748b; margin-bottom: 8px; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-size: 17px; font-weight: bold; }
.buy-btn { background: #e11d48; color: #fff; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-weight: bold; }

/* Админка */
.admin-box { max-width: 480px; margin: 30px auto; background: #fff; padding: 20px; border-radius: 6px; }
.admin-form { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.admin-form input, .admin-form select { padding: 10px; border: 1px solid #cbd5e1; border-radius: 4px; }

/* Подвал */
.footer { background: #0f172a; color: #cbd5e1; margin-top: 40px; padding: 30px 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.footer-logo { color: #fff; margin-bottom: 10px; }
.footer h4 { color: #fff; margin-bottom: 10px; }
.footer p { margin-bottom: 6px; }

/* Адаптация под смартфоны */
@media (max-width: 768px) {
    .top-bar, .header-phone { display: none; }
    .burger-btn { display: block; font-size: 22px; }
    .mobile-call-btn { display: inline-block; }
    .header { padding: 10px 0; }
    .header-inner { flex-wrap: wrap; gap: 6px; }
    .logo { font-size: 18px; }
    .header-actions { font-size: 13px; }
    .search-box { order: 3; flex: 1 1 100%; max-width: 100%; width: 100%; margin-top: 6px; }
    .catalog-nav { display: none; }
    .catalog-nav.active { display: block; }
    .catalog-list { flex-direction: column; }
    .catalog-list li { border-bottom: 1px solid #1e293b; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; }
}
