﻿* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #222; background: #f6f7f9; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.topbar { background: #1a237e; color: #fff; padding: 14px 0; }
.topbar .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo { color: #fff; font-size: 22px; font-weight: 700; text-decoration: none; }
.logo span { color: #ffca28; }
.topbar nav { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.topbar nav a { color: #cfd6ff; text-decoration: none; font-size: 14px; }
.topbar nav a:hover { color: #fff; }
main { padding: 26px 0 20px; }
h1 { font-size: 28px; margin-bottom: 8px; color: #1a237e; }
h2 { color: #1a237e; }
.subtitle { color: #666; margin-bottom: 22px; }
.sec-h { font-size: 20px; margin: 26px 0 14px; color: #1a237e; }
.crumbs { font-size: 13px; color: #667; margin-bottom: 14px; }
.crumbs a { color: #1a237e; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: #667; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.product { background: #fff; border: 1px solid #e2e6ee; border-radius: 12px; padding: 16px; display: flex; gap: 14px; }
.product-img { font-size: 44px; width: 70px; text-align: center; }
.product-img.big { font-size: 110px; width: 170px; }
.product h3 { font-size: 16px; margin-bottom: 6px; color: #1a237e; }
.product h3 a { color: #1a237e; text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }
.product-desc { font-size: 13px; color: #666; margin-bottom: 8px; }
.price { font-size: 18px; font-weight: 700; color: #c62828; margin-bottom: 8px; }
.add_to_cart_button { display: inline-block; background: #1a237e; color: #fff; padding: 7px 14px; border-radius: 6px; text-decoration: none; font-size: 13px; }
.btn-ghost { display: inline-block; border: 1px solid #1a237e; color: #1a237e; padding: 7px 14px; border-radius: 6px; text-decoration: none; font-size: 13px; }
.buy-row { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.in-stock { color: #2e7d32; font-size: 13px; margin-top: 10px; }
.pagination { display: flex; gap: 10px; align-items: center; margin-top: 24px; justify-content: center; }
.pagination a, .page { padding: 8px 14px; border: 1px solid #c9cedb; border-radius: 6px; text-decoration: none; color: #1a237e; background: #fff; }
.page.current { background: #1a237e; color: #fff; border-color: #1a237e; }
.cart-form { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.cart-form input { padding: 11px; border: 1px solid #c9cedb; border-radius: 6px; }
.cart-table { border-collapse: collapse; width: 100%; background: #fff; margin-bottom: 6px; }
.cart-table th, .cart-table td { border: 1px solid #e2e6ee; padding: 10px; text-align: left; }
.btn-buy { background: #c62828; color: #fff; border: 0; padding: 12px; border-radius: 6px; font-size: 15px; cursor: pointer; }
.footer { background: #1a237e; color: #cfd6ff; padding: 24px 0 16px; margin-top: 30px; font-size: 14px; }
.footer a { color: #ffca28; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1.2fr; gap: 22px; }
.foot-title { color: #fff; font-weight: 700; margin-bottom: 8px; }
.copy { margin-top: 16px; color: #8f9bd6; font-size: 13px; }
.quick-view { background: #fff; color: #1a237e; border: 1px solid #1a237e; border-radius: 6px; padding: 6px 12px; margin-top: 6px; cursor: pointer; font-size: 12px; }
.accessories { background: #eef1f9; padding: 26px 0; }
.accessories h2 { text-align: center; color: #1a237e; margin-bottom: 6px; }
.acc-carousel { display: flex; gap: 14px; overflow-x: auto; padding: 10px 16px; max-width: 1080px; margin: 0 auto; }
.acc-item { min-width: 200px; background: #fff; border: 1px solid #dfe4f2; border-radius: 10px; padding: 12px; font-size: 14px; }
.acc-item .price { margin: 4px 0 0; }
.acc-desc { color: #666; font-size: 12.5px; margin-top: 6px; }
.modal { display: none; position: fixed; inset: 0; background: rgba(15, 20, 40, .55); z-index: 90; align-items: center; justify-content: center; }
.modal-box { background: #fff; border-radius: 12px; padding: 26px; max-width: 400px; width: 92%; position: relative; }
.modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 22px; cursor: pointer; color: #666; }

/* ==== новые блоки: категории, подкатегории, описания ==== */
.hero-shop { margin-bottom: 6px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cat-card { display: block; background: #fff; border: 1px solid #e2e6ee; border-radius: 12px; padding: 18px; text-decoration: none; color: inherit; transition: box-shadow .2s; }
.cat-card:hover { box-shadow: 0 8px 24px rgba(26, 35, 126, .12); }
.cat-emoji { font-size: 34px; display: block; margin-bottom: 8px; }
.cat-card h3 { color: #1a237e; font-size: 17px; margin-bottom: 6px; }
.cat-card p { color: #666; font-size: 13px; margin-bottom: 10px; }
.cat-count { color: #1a237e; font-size: 13px; font-weight: 600; }
.cat-rows { display: flex; flex-direction: column; gap: 18px; }
.cat-row { background: #fff; border: 1px solid #e2e6ee; border-radius: 12px; padding: 18px; }
.cat-row-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cat-row-head .cat-emoji { margin: 0; font-size: 28px; }
.cat-row-head h2 { font-size: 19px; }
.cat-row-head h2 a { color: #1a237e; text-decoration: none; }
.cat-row-head h2 a:hover { text-decoration: underline; }
.cat-row-head .cat-count { margin-left: auto; }
.cat-desc { color: #555; margin-bottom: 14px; max-width: 860px; }
.cat-subs { font-size: 13px; color: #667; }
.cat-subs a { color: #1a237e; text-decoration: none; margin-right: 4px; }
.cat-subs a:hover { text-decoration: underline; }
.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 8px; }
.subcat-card { display: block; background: #fff; border: 1px solid #e2e6ee; border-radius: 12px; padding: 16px; text-decoration: none; color: inherit; transition: box-shadow .2s; }
.subcat-card:hover { box-shadow: 0 8px 24px rgba(26, 35, 126, .12); }
.subcat-card h3 { color: #1a237e; font-size: 15px; margin-bottom: 6px; }
.subcat-card p { color: #666; font-size: 13px; margin-bottom: 10px; }
.single-product { background: #fff; border: 1px solid #e2e6ee; border-radius: 12px; padding: 20px; margin-top: 8px; }
.specs { width: 100%; border-collapse: collapse; margin: 12px 0; background: #fff; }
.specs td { border: 1px solid #e2e6ee; padding: 8px 10px; font-size: 14px; }
.specs td:first-child { color: #666; width: 42%; }
details { background: #fff; border: 1px solid #e2e6ee; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
details summary { cursor: pointer; color: #1a237e; font-weight: 600; }
details p { margin-top: 8px; color: #555; }
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; }
  .product-img.big { font-size: 64px; width: 90px; }
}
