:root {
  color-scheme: light;
  --max: 1180px;
  --line: #d9dee3;
  --ink: #172026;
  --muted: #667079;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}
button, input, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid transparent; }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.brand strong { font-size: 18px; font-weight: 760; }
.brand span { font-size: 12px; opacity: .68; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a { font-size: 14px; white-space: nowrap; }
.site-nav a:hover { opacity: .68; }
.header-action { border: 1px solid currentColor; border-radius: 5px; padding: 8px 12px; }
.menu-toggle { display: none; width: 40px; height: 40px; margin-left: auto; border: 1px solid currentColor; border-radius: 5px; background: transparent; color: inherit; cursor: pointer; }
.menu-toggle span { display: block; width: 17px; height: 1px; margin: 4px auto; background: currentColor; }

.hero { position: relative; isolation: isolate; background-position: center; background-size: cover; }
.hero-content { min-width: 0; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: 54px; line-height: 1.08; font-weight: 750; letter-spacing: 0; }
.hero-copy { max-width: 590px; margin: 20px 0 0; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; cursor: pointer; font-weight: 650; }
.button:focus-visible, .site-nav a:focus-visible, .entry-link:focus-visible { outline: 3px solid #f2b84b; outline-offset: 3px; }

.section-band { padding: 76px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: 32px; line-height: 1.15; letter-spacing: 0; }
.section-heading p { max-width: 550px; margin: 0; color: var(--muted); }
.section-link { font-weight: 650; white-space: nowrap; }

.search-form { display: flex; align-items: stretch; }
.search-form input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 5px 0 0 5px; padding: 13px 15px; color: var(--ink); background: #fff; }
.search-form button { border-radius: 0 5px 5px 0; }
.search-result { min-height: 24px; margin-top: 10px; font-size: 13px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.filter-row button { border: 1px solid var(--line); border-radius: 5px; padding: 8px 12px; color: inherit; background: transparent; cursor: pointer; }
.filter-row button.active { color: #fff; border-color: transparent; }
.catalog-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:42px; align-items:start; }
.catalog-sidebar { position:sticky; top:82px; z-index:12; }
.catalog-sidebar-title { margin-bottom:10px; color:var(--muted); font-size:12px; font-weight:650; }
.category-menu { border-top:1px solid var(--line); }
.category-group { position:relative; }
.category-primary, .category-submenu button { width:100%; border:0; color:inherit; background:transparent; cursor:pointer; text-align:left; }
.category-primary { display:flex; align-items:center; justify-content:space-between; min-height:48px; padding:10px 4px; border-bottom:1px solid var(--line); font-weight:560; }
.category-group > .category-primary::after { content:"›"; margin-left:12px; color:#9aa5aa; font-size:18px; font-weight:400; }
.category-primary:hover, .category-primary.current, .category-primary.active { color:var(--accent); }
.category-primary.active { font-weight:700; }
.category-submenu { position:absolute; top:-1px; left:100%; width:280px; max-height:min(520px,70vh); padding:7px; overflow:auto; visibility:hidden; opacity:0; transform:translateX(-5px); border:1px solid var(--line); background:#fff; box-shadow:0 14px 32px rgba(35,50,58,.13); transition:opacity .14s ease,transform .14s ease,visibility .14s; }
.category-submenu button { min-height:40px; padding:8px 11px; border-radius:4px; color:#4f5e65; font-size:13px; line-height:1.4; }
.category-submenu button:hover, .category-submenu button.active { color:var(--accent); background:#f1f6f8; }
@media(min-width:821px) { .category-group:hover .category-submenu, .category-group:focus-within .category-submenu { visibility:visible; opacity:1; transform:none; } }
[data-product-item][hidden] { display: none !important; }

.site-footer { padding: 44px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { margin: 0 0 10px; font-size: 14px; }
.footer-grid p, .footer-grid a { display: block; margin: 5px 0; color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .container { width: min(100% - 28px, var(--max)); }
  .header-inner { min-height: 62px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 62px; left: 0; right: 0; margin: 0; padding: 14px; border-bottom: 1px solid var(--line); background: #fff; color: #172026; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
  .site-nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .site-nav a { min-height: 42px; display: flex; align-items: center; padding: 8px; }
  .hero h1 { font-size: 39px; }
  .hero-copy { font-size: 16px; }
  .section-band { padding: 54px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 27px; }
  .catalog-layout { grid-template-columns:1fr; gap:22px; }
  .catalog-sidebar { position:relative; top:auto; }
  .catalog-sidebar-title { margin-bottom:6px; }
  .category-primary { min-height:44px; }
  .category-submenu { position:static; display:none; width:auto; max-height:none; margin:0 0 7px 12px; padding:3px 0 3px 10px; visibility:visible; opacity:1; overflow:visible; transform:none; border:0; border-left:2px solid #d6e3e8; box-shadow:none; transition:none; }
  .category-group.open .category-submenu { display:block; }
  .category-submenu button { min-height:38px; padding:7px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .brand strong { font-size: 16px; }
  .brand span { display: none; }
  .site-nav.open { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .button { min-width: 0; padding-inline: 8px; }
  .search-form { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .search-form input, .search-form button { width: 100%; min-height: 46px; border-radius: 5px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 31px; }
  .hero-actions { grid-template-columns: 1fr; }
}
