
:root{
  --navy:#0f1b2d;
  --navy-2:#16243b;
  --orange:#ff6a1a;
  --orange-dark:#e2570e;
  --gray-bg:#f5f6f8;
  --border:#e3e6eb;
  --text:#1c2733;
  --text-muted:#67717d;
  --green:#1ba15a;
  --radius:10px;
  --maxw:1200px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--gray-bg);
  line-height:1.5;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
ul{margin:0;padding:0;list-style:none;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px;}
.btn{
  display:inline-block;
  background:var(--orange);
  color:#fff;
  padding:11px 22px;
  border-radius:8px;
  font-weight:600;
  border:none;
  cursor:pointer;
  transition:background .15s ease;
  font-size:15px;
}
.btn:hover{background:var(--orange-dark);}
.btn.secondary{
  background:transparent;
  color:var(--navy);
  border:1px solid var(--border);
}
.btn.secondary:hover{border-color:var(--orange);color:var(--orange);}

/* Top bar */
.topbar{background:var(--navy);color:#cfd6e0;font-size:13px;padding:7px 0;}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;}
.topbar a{color:#cfd6e0;}
.topbar .contacts a{margin-right:16px;font-weight:600;color:#fff;}
.topbar .links a{margin-left:16px;}
.topbar .links a:hover, .topbar .contacts a:hover{color:var(--orange);}

/* Header */
header.site-header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50;}
.header-row{display:flex;align-items:center;gap:24px;padding:16px 0;}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:22px;color:var(--navy);white-space:nowrap;}
.logo .dot{color:var(--orange);}
.search-form{flex:1;display:flex;max-width:560px;}
.search-form input{flex:1;border:1px solid var(--border);border-right:none;border-radius:8px 0 0 8px;padding:10px 14px;font-size:14px;}
.search-form button{border-radius:0 8px 8px 0;padding:0 18px;background:var(--navy);color:#fff;border:none;cursor:pointer;}
.header-actions{display:flex;gap:20px;font-size:13px;color:var(--navy);white-space:nowrap;}
.header-actions .phone{font-weight:700;font-size:16px;color:var(--navy);}
.header-actions .phone small{display:block;font-weight:400;color:var(--text-muted);font-size:12px;}

/* Main nav / catalog menu */
nav.mainnav{background:var(--navy);}
.mainnav .wrap{display:flex;align-items:stretch;}
.catalog-toggle{
  background:var(--orange);
  color:#fff;
  font-weight:700;
  padding:14px 20px;
  display:flex;
  align-items:center;
  gap:10px;
  position:relative;
  cursor:pointer;
  white-space:nowrap;
}
.mainnav ul.top-links{display:flex;flex-wrap:wrap;}
.mainnav ul.top-links > li > a{display:block;padding:14px 16px;color:#e7ebf1;font-size:14px;font-weight:600;}
.mainnav ul.top-links > li > a:hover{color:var(--orange);}

.megamenu{
  position:absolute;left:0;right:0;top:100%;
  background:#fff;
  border-top:3px solid var(--orange);
  box-shadow:0 18px 40px rgba(15,27,45,.18);
  display:none;
  z-index:60;
}
.megamenu.open{display:block;background:#fff;}
.megamenu .wrap{padding:26px 20px;background:#fff;}
.megamenu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 30px;background:#fff;}
.megamenu-col{background:#fff;}
.megamenu-col h4{margin:0 0 10px;font-size:14px;background:#fff;}
.megamenu-col h4 a{color:var(--navy);font-weight:700;}
.megamenu-col h4 a:hover{color:var(--orange);}
.megamenu-col ul{background:#fff;}
.megamenu-col ul li{margin-bottom:6px;background:#fff;}
.megamenu-col ul li a{font-size:13.5px;color:var(--text-muted);background:#fff;display:block;}
.megamenu-col ul li a:hover{color:var(--orange);}

.catalog-toggle-wrap{position:relative;}

/* Breadcrumbs */
.breadcrumbs{padding:14px 0;font-size:13px;color:var(--text-muted);}
.breadcrumbs a{color:var(--text-muted);}
.breadcrumbs a:hover{color:var(--orange);}
.breadcrumbs span.sep{margin:0 6px;color:#c3c9d1;}
.breadcrumbs span.current{color:var(--text);}

/* Hero */
.hero{background:linear-gradient(120deg,var(--navy) 55%,var(--navy-2));color:#fff;padding:52px 0;margin-bottom:36px;}
.hero .wrap{display:flex;align-items:center;gap:40px;flex-wrap:wrap;}
.hero-text{flex:1;min-width:280px;}
.hero-text .tag{display:inline-block;background:rgba(255,106,26,.16);color:var(--orange);font-weight:700;font-size:12px;padding:5px 12px;border-radius:20px;margin-bottom:14px;text-transform:uppercase;letter-spacing:.04em;}
.hero-text h1{font-size:34px;margin:0 0 14px;line-height:1.25;}
.hero-text p{color:#c3cbd8;font-size:15.5px;max-width:520px;margin:0 0 22px;}
.hero-badges{flex:1;min-width:260px;display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.hero-badges .card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:16px;}
.hero-badges .card b{display:block;font-size:20px;color:var(--orange);margin-bottom:4px;}
.hero-badges .card span{font-size:12.5px;color:#c3cbd8;}

/* Section headings */
.section{padding:36px 0;}
.section h2{font-size:24px;margin:0 0 6px;}
.section .lead{color:var(--text-muted);margin:0 0 24px;font-size:14.5px;max-width:700px;}

/* Category grid on home / catalog root */
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.cat-card{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  padding:22px;transition:box-shadow .15s ease, transform .15s ease;
}
.cat-card:hover{box-shadow:0 12px 30px rgba(15,27,45,.09);transform:translateY(-2px);border-color:#f0d3bf;}
.cat-card .ico{width:46px;height:46px;border-radius:10px;background:#fff1e6;color:var(--orange);display:flex;align-items:center;justify-content:center;margin-bottom:14px;}
.cat-card h3{font-size:17px;margin:0 0 8px;}
.cat-card p{font-size:13.5px;color:var(--text-muted);margin:0 0 14px;}
.cat-card .sub-count{font-size:12.5px;color:var(--orange);font-weight:600;}

/* two-column layout with sidebar */
.layout{display:flex;gap:28px;align-items:flex-start;}
.sidebar{width:270px;flex-shrink:0;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:18px 0;}
.sidebar h4{font-size:14px;padding:0 18px 10px;margin:0;border-bottom:1px solid var(--border);padding-bottom:12px;}
.sidebar ul.cat-list li a{display:block;padding:9px 18px;font-size:13.5px;color:var(--text);border-left:3px solid transparent;}
.sidebar ul.cat-list li a:hover{background:#f8f4f0;color:var(--orange);}
.sidebar ul.cat-list li.active a{border-left-color:var(--orange);color:var(--orange);font-weight:700;background:#fff6ef;}
.sidebar ul.sub-list{padding:4px 0 10px;}
.sidebar ul.sub-list li a{padding:6px 18px 6px 30px;font-size:13px;color:var(--text-muted);display:block;}
.sidebar ul.sub-list li a:hover{color:var(--orange);}
.sidebar ul.sub-list li.active a{color:var(--orange);font-weight:600;}
.content{flex:1;min-width:0;}

/* subcategory chip list on category page */
.chip-list{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:6px;}
.chip{background:#fff;border:1px solid var(--border);border-radius:24px;padding:9px 16px;font-size:13.5px;font-weight:600;color:var(--navy);}
.chip:hover{border-color:var(--orange);color:var(--orange);}

/* product grid */
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px;}
.product-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;}
.product-card .thumb{aspect-ratio:4/3;background:linear-gradient(135deg,#eef1f5,#e2e7ee);display:flex;align-items:center;justify-content:center;color:#aab3bf;position:relative;}
.product-card .thumb svg{width:56px;height:56px;opacity:.55;}
.product-card .badge{position:absolute;top:10px;left:10px;background:var(--orange);color:#fff;font-size:11px;font-weight:700;padding:4px 9px;border-radius:5px;}
.product-card .badge.green{background:var(--green);}
.product-card .body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:8px;flex:1;}
.product-card .brand{font-size:11.5px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em;}
.product-card h3{font-size:14.5px;margin:0;line-height:1.35;}
.product-card h3 a:hover{color:var(--orange);}
.product-card .specs{font-size:12px;color:var(--text-muted);}
.product-card .price-row{margin-top:auto;display:flex;align-items:center;justify-content:space-between;padding-top:8px;}
.product-card .price{font-size:18px;font-weight:800;color:var(--navy);}
.product-card .price span{font-size:12px;color:var(--text-muted);font-weight:400;}
.product-card .btn{padding:8px 14px;font-size:13px;}

/* filter bar */
.filter-bar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px;}
.filter-bar .f{background:#fff;border:1px solid var(--border);border-radius:8px;padding:9px 14px;font-size:13px;color:var(--text);display:flex;align-items:center;gap:6px;}
.filter-bar .f:after{content:"▾";color:var(--text-muted);font-size:10px;}
.sort-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;font-size:13.5px;color:var(--text-muted);}

/* related / crosslinks */
.related-block{margin-top:10px;}
.tag-links{display:flex;flex-wrap:wrap;gap:8px;}
.tag-links a{background:#eef1f5;border-radius:6px;padding:7px 12px;font-size:13px;color:var(--navy);}
.tag-links a:hover{background:#ffe9da;color:var(--orange-dark);}

/* product detail page */
.product-detail{display:grid;grid-template-columns:420px 1fr;gap:36px;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:28px;}
.product-gallery .thumb{aspect-ratio:1/1;border-radius:10px;}
.product-info h1{font-size:24px;margin:0 0 10px;}
.product-info .meta{font-size:13px;color:var(--text-muted);margin-bottom:14px;}
.product-info .meta a{color:var(--orange);}
.product-info .price-block{background:var(--gray-bg);border-radius:10px;padding:18px;display:flex;align-items:center;justify-content:space-between;margin:18px 0;}
.product-info .price-block .price{font-size:28px;font-weight:800;color:var(--navy);}
.product-info .price-block .instock{color:var(--green);font-size:13px;font-weight:600;}
.spec-table{width:100%;border-collapse:collapse;margin-top:22px;}
.spec-table tr{border-bottom:1px solid var(--border);}
.spec-table td{padding:9px 4px;font-size:13.5px;}
.spec-table td:first-child{color:var(--text-muted);width:45%;}
.spec-table td:last-child{font-weight:600;}

/* info page (about/contacts/delivery) content */
.info-content{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:30px;}
.info-content h2{font-size:20px;margin-top:28px;}
.info-content h2:first-child{margin-top:0;}
.info-content p{color:var(--text);font-size:14.5px;max-width:800px;}
.info-content ul{margin:10px 0;padding-left:20px;list-style:disc;}
.info-content li{margin-bottom:6px;font-size:14.5px;}
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0;}
.contact-grid .card{background:var(--gray-bg);border-radius:10px;padding:18px;}
.contact-grid .card b{display:block;margin-bottom:6px;color:var(--navy);}

/* brands page */
.brand-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}
.brand-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:20px;text-align:center;font-weight:700;color:var(--navy);}
.brand-card:hover{border-color:var(--orange);color:var(--orange);}

/* sitemap page */
.sitemap-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
.sitemap-grid h3{font-size:15px;margin:0 0 10px;}
.sitemap-grid h3 a{color:var(--navy);}
.sitemap-grid ul li{margin-bottom:5px;}
.sitemap-grid ul li a{font-size:13px;color:var(--text-muted);}
.sitemap-grid ul li a:hover{color:var(--orange);}

/* footer */
footer{background:var(--navy);color:#c3cbd8;margin-top:50px;padding-top:44px;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px;padding-bottom:34px;border-bottom:1px solid rgba(255,255,255,.1);}
.footer-grid h4{color:#fff;font-size:14.5px;margin:0 0 14px;}
.footer-grid p{font-size:13px;line-height:1.7;color:#a7b0bf;}
.footer-grid ul li{margin-bottom:9px;}
.footer-grid ul li a{font-size:13.3px;color:#a7b0bf;}
.footer-grid ul li a:hover{color:var(--orange);}
.footer-bottom{display:flex;justify-content:space-between;padding:18px 0;font-size:12.5px;color:#7d8798;flex-wrap:wrap;gap:8px;}
.footer-bottom a{color:#a7b0bf;}

/* mobile */
.burger{display:none;background:none;border:none;color:#fff;font-size:22px;cursor:pointer;}
@media(max-width:960px){
  .cat-grid, .product-grid{grid-template-columns:repeat(2,1fr);}
  .megamenu-grid{grid-template-columns:repeat(2,1fr);}
  .layout{flex-direction:column;}
  .sidebar{width:100%;}
  .product-detail{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .contact-grid, .brand-grid, .sitemap-grid{grid-template-columns:repeat(2,1fr);}
  .search-form{display:none;}
  .header-actions .phone{display:none;}
  .mainnav ul.top-links{display:none;}
}
@media(max-width:600px){
  .cat-grid, .product-grid, .footer-grid, .contact-grid, .brand-grid, .sitemap-grid{grid-template-columns:1fr;}
  .megamenu-grid{grid-template-columns:1fr;}
  .hero-text h1{font-size:26px;}
}
