.shell { width: min(1200px, calc(100% - clamp(32px, 6vw, 80px))); }
.header-inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 2.6vw, 32px);
  height: 76px;
}
.brand { letter-spacing: 0; }
.header .brand small { display: none; }
.header .brand-mark { width: 36px; height: 36px; border-radius: 9px; }
#nav { justify-content: start; gap: 2px; }
.nav-trigger .nav-chevron { display: inline-flex; }
.nav-chevron svg { width: 14px; height: 14px; stroke-width: 1.8; }
.nav-menu.is-current > .nav-trigger { color: var(--blue); }
.nav-trigger:focus-visible { outline-offset: 2px; }
#theme-toggle .theme-sun, [data-theme="dark"] #theme-toggle .theme-moon { display: none; }
[data-theme="dark"] #theme-toggle .theme-sun { display: block; }

.hero { background: var(--surface-soft); }
.hero-inner { grid-template-columns: 3fr 2fr; gap: clamp(28px, 4vw, 60px); padding-block: clamp(52px, 7vw, 100px); }
.hero .eyebrow, #catalog-featured .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--nav-tint);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.hero h1 { line-height: 1.13; font-size: clamp(40px, 5vw, 68px); font-weight: 800; letter-spacing: -.045em; }
.hero-text { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.75; margin-block: 20px 28px; }
.hero-support { padding: 0; border: 0; margin-top: 22px; background: none; color: var(--blue); }
.hero-support:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
[data-theme="dark"] .hero-support, [data-theme="dark"] .hero-support:hover { background: none; color: var(--blue); }
.hero .app-panel { width: 100%; max-width: 484px; border: 1px solid var(--line); justify-self: end; }
.hero .app-grid { width: min(78%, 304px); gap: clamp(10px, 1.4vw, 18px); }
.app-tile { font-size: clamp(18px, 3vw, 30px); }
.hero .app-tile.office { font-size: clamp(15px, 2.1vw, 23px); }

.catalog.catalog-page { padding-block: 0 clamp(48px, 6vw, 96px); }
.catalog-page .shell { width: min(1200px, calc(100% - clamp(32px, 6vw, 80px))); }
.catalog-heading { padding-block: 26px 30px; }
.shop-breadcrumb { display: flex; gap: 8px; position: static; align-items: center; align-content: center; padding: 0; margin-bottom: 20px; border: 0; background: none; box-shadow: none; font-size: 13px; color: var(--muted); }
.shop-breadcrumb a { color: var(--blue); padding: 0; background: none; font-weight: 500; font-size: inherit; }
.catalog-heading h1 { margin: 0; font-size: clamp(30px, 1.4rem + 1.55vw, 42px); font-weight: 800; letter-spacing: -.025em; }
.catalog-heading p { margin-top: 8px; color: var(--sub); line-height: 1.7; font-size: 15px; }
.catalog-services { background: var(--surface-soft); border-block: 1px solid var(--line); }
.catalog-services .shell { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px clamp(18px, 4vw, 50px); padding-block: 20px; }
.catalog-services .shell > * { display: flex; align-items: center; gap: 7px; color: var(--sub); font-size: 14px; }
.catalog-services a:hover { color: var(--blue); }
.catalog-services svg { width: 18px; height: 18px; color: var(--blue); }
.catalog-services strong { color: var(--ink); }
.catalog-toolbar {
  display: flex;
  min-height: 78px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
#results-count { color: var(--sub); font-size: 14px; white-space: nowrap; }
.catalog-toolbar-tools { display: flex; align-items: center; justify-content: end; gap: 14px; }
.catalog-toolbar .search-field { width: 240px; min-height: 40px; }
.catalog-toolbar .search-field input { height: 38px; font-size: 14px; }
.catalog-toolbar .sort-field { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--sub); font-size: 14px; }
.catalog-toolbar .sort-field select { min-height: 40px; color: var(--ink); }
#filter-button { display: none; }

.catalog-layout.with-sidebar { grid-template-columns: minmax(200px, 248px) minmax(0, 1fr); gap: 32px; }
#category-sidebar {
  top: 84px;
  max-height: calc(100dvh - 102px);
  padding: 20px;
  overflow: auto;
  scrollbar-width: thin;
  background: var(--surface);
  border-radius: 12px;
}
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
#filter-controls .filter-head h2 { margin: 0; font-size: 16px; letter-spacing: 0; }
.filter-head button { padding: 6px; font-size: 13px; }
.filter-head button:hover { text-decoration: underline; }
#category-links { display: grid; gap: 16px; }
#category-links .filter-group h3 { display: block; margin: 0; padding: 0 0 7px 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.filter-group + .filter-group { border-top: 1px solid var(--line); padding-top: 16px; }
#category-links a { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 38px; padding: 5px 6px; border: 0; border-radius: 6px; background: none; color: var(--sub); text-align: left; white-space: normal; }
#category-links a span { color: inherit; font-size: 13px; }
#category-links a small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
#category-links a:hover, #category-links a[aria-current="page"] { background: var(--nav-tint); box-shadow: none; color: var(--blue); }
#category-links .filter-dot { width: 15px; height: 15px; border: 1px solid var(--muted); border-radius: 50%; display: grid; place-items: center; }
#category-links a[aria-current="page"] .filter-dot { border-color: var(--blue); }
#category-links a[aria-current="page"] .filter-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
#filter-slot { padding: 18px; }

.products { gap: clamp(12px, 1.7vw, 24px); }
.with-sidebar .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product { box-shadow: none; }
.product-visual { display: block; aspect-ratio: 1; padding: 0; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.product-visual .reference-art { width: 100%; height: 100%; padding: clamp(10px, 1.4vw, 18px); background: none; }
.product-content { min-width: 0; padding: clamp(12px, 1.6vw, 20px); gap: 8px; }
.product h3 { min-height: 0; color: var(--ink); font-size: 16px; font-weight: 750; line-height: 1.4; }
.product h3 a { color: inherit; }
.product h3 a:hover { color: var(--blue); }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-meta .product-tag { padding: 3px 7px; background: var(--surface-soft); border: 1px solid var(--line); color: var(--sub); font-size: 11px; }
.product-meta > span:last-child { overflow-wrap: anywhere; }
.product-tail { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; }
.product .price { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 22px; }
.product-tail > .button { width: 100%; min-height: 42px; border-radius: 8px; font-weight: 650; font-size: 13px; }
.product-tail > .add { background: #215bda; color: #fff; border-color: #215bda; }
.product-tail > .add:hover { background: #174bc2; border-color: #174bc2; }
.product-tail > .test-label { min-height: 42px; padding: 10px 0; }

.details { padding-top: 30px; }
.breadcrumbs { gap: 10px; margin-bottom: 28px; line-height: 1.6; }
.detail-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.detail-image { top: 90px; min-width: 0; }
.detail-layout .reference-art { padding: clamp(22px, 4vw, 50px); border-radius: 16px; }
.detail-info { min-width: 0; }
.detail-info h1 { margin-block: 14px 12px; font-size: clamp(28px, 3vw, 40px); line-height: 1.22; font-weight: 800; letter-spacing: -.025em; }
.detail-info .full-product-name { font-size: 12px; color: var(--muted); line-height: 1.7; }
.product-facts { margin-block: 20px; border-bottom: 0; }
.product-facts > div { gap: 18px; margin-block: 10px; line-height: 1.7; }
.product-facts dt { flex-basis: 64px; }
.detail-purchase { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.detail-purchase .price { margin: 0; font-size: 32px; font-variant-numeric: tabular-nums; }
.detail-purchase .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block: 18px 16px; }
.detail-purchase .hero-actions .button { min-height: 46px; padding-inline: 10px; border-radius: 8px; }
.detail-purchase .hero-actions > :only-child { grid-column: 1 / -1; }
.detail-purchase .text-link { display: inline-block; white-space: normal; font-size: 12px; line-height: 1.7; }
.detail-content { max-width: 900px; margin-top: 50px; }
.detail-tabs { position: sticky; top: 60px; z-index: 2; gap: 26px; padding: 0; background: var(--surface); }
.detail-tabs a { position: relative; display: block; padding-block: 18px; color: var(--sub); font-weight: 650; transition: color 150ms; }
.detail-tabs a::after { content: ''; position: absolute; height: 2px; inset: auto 0 -1px; background: var(--blue); transform: scaleX(0); transition: transform 180ms; }
.detail-tabs a[aria-current] { color: var(--blue); }
.detail-tabs a[aria-current]::after { transform: scaleX(1); }
.description-section { scroll-margin-top: 125px; padding-block: 32px; }
.description-section h2 { font-size: 25px; }
.original-description { color: var(--sub); line-height: 1.95; }
.offer-table { margin-block: 24px; padding: 20px; }
.offer-table td, .offer-table th { padding-block: 11px; font-variant-numeric: tabular-nums; }
.offer-table tr:last-child td { border-bottom: 0; }
.offer-table h3 { color: var(--ink); }
.offer-table p { color: var(--muted); }

.search-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.search-footer .search-hint { margin: 0; }
.search-suggestions > a { padding: 11px 7px; }
.search-suggestions > a:focus-visible { outline: 0; background: var(--nav-tint); box-shadow: inset 0 0 0 2px var(--blue); }
.search-suggestions > a > span:nth-child(2) { color: var(--ink); }
.search-suggestions > a b { font-variant-numeric: tabular-nums; }
.search-suggestions small { line-height: 1.5; }
.drawer, .nav-drawer { height: 100dvh; }
.drawer-products { overscroll-behavior: contain; scrollbar-width: thin; }
.drawer-head { padding: 22px; }
.drawer-head .eyebrow { display: none; }
.drawer-head h2 { font-size: 22px; }
.cart-item { padding-block: 20px; gap: 14px; }
.cart-item .reference-art { border: 1px solid var(--line); border-radius: 8px; }
.quantity { gap: 4px; }
.quantity span { min-width: 24px; font-variant-numeric: tabular-nums; }
.cart-count { transition: background 150ms; }
.cart-count:empty, .cart-count[data-empty="true"] { visibility: hidden; }
.contact-copy { min-width: 46px; transition: background 150ms; }
.contact-method dd { font-variant-numeric: tabular-nums; }
.back-top { z-index: 10; transition: border-color 150ms, transform 150ms; }
.back-top:hover { transform: translateY(-3px); border-color: var(--blue); }
.skip:focus { z-index: 30; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
[data-theme="dark"] .secondary:hover { background: #2c476e; border-color: #7394c9; }
[data-theme="dark"] .detail-tabs { box-shadow: 0 1px 0 var(--line); }
[data-theme="dark"] .product-meta .product-tag { background: #192b46; color: #c4d7f8; }
[data-theme="dark"] .product-tail > .add { background: #366aea; border-color: #366aea; color: white; }
[data-theme="dark"] .product-tail > .add:hover { background: #4b7af0; }
[data-theme="dark"] .catalog-toolbar .search-field { border-color: #42536e; }

@media (min-width: 881px) and (max-width: 1080px) {
  .with-sidebar .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout.with-sidebar { grid-template-columns: 216px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 900px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; height: 64px; gap: 8px; }
  #nav { justify-content: start; }
}
@media (max-width: 880px) {
  #category-sidebar { display: none; }
  .catalog-layout.with-sidebar { display: block; }
  .catalog-toolbar { margin-bottom: 24px; }
  #filter-button { display: inline-flex; padding: 8px 11px; min-height: 40px; font-size: 13px; white-space: nowrap; }
  #filter-button svg { width: 17px; height: 17px; }
}
@media (max-width: 740px) {
  .header .brand-mark { width: 32px; height: 32px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 40px; }
  .hero h1 { font-size: clamp(38px, 8.8vw, 55px); }
  .hero .app-panel { justify-self: center; }
  .hero-text { margin-block: 15px 22px; }
  .catalog-heading { padding-block: 20px; }
  .shop-breadcrumb { margin-bottom: 14px; }
  .catalog-services .shell { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding-block: 14px; }
  .catalog-services .shell > * { font-size: 12px; }
  .catalog-services svg { width: 16px; height: 16px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .catalog-toolbar-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .catalog-toolbar .search-field { width: 100%; max-width: none; grid-column: 1 / -1; }
  .catalog-toolbar .sort-field select { max-width: 100%; }
  .with-sidebar .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product h3 { font-size: 14px; }
  .product .price { font-size: 20px; }
  .product-content { padding: 11px; }
  .product-meta { font-size: 11px; }
  .details { padding-top: 22px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .detail-image { position: static; width: min(100%, 480px); margin-inline: auto; }
  .detail-layout .reference-art { padding: clamp(22px, 6vw, 40px); }
  .detail-info h1 { font-size: clamp(27px, 6vw, 35px); }
  .detail-purchase { padding: 18px; }
  .detail-purchase .price { font-size: 28px; }
  .detail-content { margin-top: 32px; }
  .detail-tabs { top: 58px; gap: 24px; }
  .detail-tabs a { font-size: 13px; }
  .original-description { font-size: 14px; line-height: 1.85; }
  .breadcrumbs { margin-bottom: 20px; font-size: 12px; }
  .description-section h2 { font-size: 23px; }
  .offer-table { padding: 16px; }
  .drawer-head { padding: 18px; }
  .drawer-products { padding-inline: 18px; }
  .drawer-foot { padding-inline: 18px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 2px; }
  .header .brand-mark { width: 29px; height: 29px; }
  .product-tail > .button { padding-inline: 8px; }
  .detail-purchase .hero-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {
  .icon-button { min-height: 42px; }
  #category-links a { min-height: 44px; }
  .quantity button { min-width: 38px; min-height: 40px; }
  .contact-copy { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
