:root {
  color-scheme: light;
  --night: #101f25;
  --night-edge: #29414a;
  --paper: #edf2f0;
  --white: #fff;
  --ink: #172b31;
  --muted: #4d666c;
  --line: #ccd9d6;
  --lime: #d2f482;
  --brand: #173e36;
  --accent: #276b58;
  --danger: #9d3038;
  --radius: 14px;
  --shadow: 0 16px 42px #112a2414;
  font: 16px/1.5 'DM Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: #829d98 var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--brand); text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select, input[type=checkbox], input[type=file], summary { cursor: pointer; }
button:disabled, input:disabled { cursor: default; opacity: .56; }
:focus-visible { outline: 3px solid #297d65; outline-offset: 3px; }
.top :focus-visible, .hero :focus-visible { outline-color: var(--lime); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h2, h3 { line-height: 1.16; }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 64px, 1312px); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-150%); z-index: 3; color: var(--night); background: var(--lime); padding: 8px 14px; }
.skip:focus { transform: translateY(0); }
.top { background: var(--night); color: var(--white); border-bottom: 1px solid var(--night-edge); }
.top-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-size: 1.28rem; font-weight: 700; letter-spacing: -.045em; }
.brand-mark { color: var(--night); background: var(--lime); padding: .2em .35em; border-radius: 5px; font: 800 1.28rem/1.15 'Archivo Black', 'Arial Black', sans-serif; }
.brand-mark span { color: #356550; }
.top-nav, .toolbar, .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero { background: var(--night); color: var(--white); }
.hero-inner { min-height: 252px; padding-block: 38px 42px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.eyebrow, .mono, .tag { font-family: 'IBM Plex Mono', Consolas, monospace; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--lime); font-size: .77rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.signal { width: 14px; height: 8px; flex: 0 0 14px; border-top: 2px solid; border-bottom: 2px solid; transform: skewX(-24deg); }
h1 { font: 760 clamp(2.5rem,6.2vw,5.65rem)/1.02 'Geist','Segoe UI',sans-serif; letter-spacing: -.065em; }
.hero-copy { margin-top: 14px; font-size: 1.02rem; color: #bed2d0; max-width: 56ch; }
.hero-status { color: #c0d4d0; min-width: 210px; font-size: .82rem; }
.hero-status:empty { display: none; }
.hero-status strong { color: var(--lime); display: block; margin-top: 5px; }
.content { padding-block: 28px 42px; min-height: 300px; }
.footer { display: flex; justify-content: space-between; padding-block: 20px 24px; font-size: .88rem; border-top: 1px solid var(--line); color: var(--muted); }
.button { border: 1px solid var(--brand); border-radius: 8px; min-height: 42px; padding: 8px 14px; background: var(--brand); color: #fff; font-weight: 670; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.25; text-align: center; }
.button:not(:disabled):hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.button:not(:disabled):active { transform: translateY(1px); }
.button.secondary { background: var(--white); color: var(--brand); border-color: var(--line); }
.button.compact { min-height: 34px; padding: 5px 9px; font-size: .83rem; }
.button.ghost { color: inherit; background: transparent; border-color: transparent; }
.button.outline-white { color: var(--white); background: transparent; border-color: #64817f; }
.button.lime { background: var(--lime); border-color: var(--lime); color: var(--night); }
.button.lime:hover:not(:disabled) { background: #e2ffa4; color: var(--night); border-color: #e2ffa4; }
.counter { min-width: 1.45rem; padding: .15em .38em; background: var(--lime); color: var(--night); border-radius: 5px; font: 700 .78rem/1.1 Consolas, monospace; }
.search-area { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.searchbox { display: flex; align-items: center; background: white; border: 1px solid var(--line); border-radius: 9px; }
.searchbox input { border: 0; background: transparent; min-width: 0; flex: 1; }
.searchbox:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.searchbox input:focus-visible { outline: 0; }
.icon { font-size: 1.35rem; padding: 0 10px; min-height: 40px; min-width: 40px; border-radius: 8px; border: 1px solid transparent; background: transparent; }
.icon:hover { background: var(--paper); }
.layout { display: grid; grid-template-columns: 248px minmax(0,1fr); gap: 24px; margin-top: 20px; align-items: start; }
.layout.single { grid-template-columns: minmax(0,1fr); margin-top: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.filters { padding: 16px; display: grid; gap: 16px; }
.filters h2 { font-size: 1.05rem; }
.filters h3 { font-size: .9rem; }
.filters details { border-top: 1px solid var(--line); padding-top: 12px; }
.filters summary { font-weight: 650; margin-bottom: 8px; }
.catalog-head { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.catalog-head h2 { font-size: clamp(1.05rem, 2vw, 1.45rem); }
.quiet { color: var(--muted); font-size: .89rem; }
.working, .empty { color: var(--muted); padding: 30px; min-height: 140px; background: var(--white); border: 1px dashed #aabeb9; border-radius: var(--radius); }
.empty h2, .empty h3 { margin-bottom: 10px; color: var(--ink); }
.empty .actions { margin-top: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.card { min-width: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card:hover { box-shadow: var(--shadow); }
.product-art { width: 100%; aspect-ratio: 4/3; overflow: hidden; display: grid; align-items: center; background: #e3ece7; border: 0; padding: 0; }
.product-art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.placeholder { position: relative; min-height: 80px; height: 100%; display: grid; align-content: center; justify-items: center; gap: 6px; color: var(--muted); font-size: .85rem; }
.placeholder svg { width: 40px; height: 40px; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 15px; }
.card h3 { font-size: 1.05rem; }
.product-name { text-align: left; padding: 0; color: var(--ink); font-weight: 700; border: 0; background: transparent; overflow-wrap: anywhere; }
.product-name:hover { text-decoration: underline; }
.card-footer { margin-top: auto; display: grid; gap: 9px; }
.tag { align-self: start; font-size: .7rem; text-transform: uppercase; letter-spacing: .015em; width: fit-content; color: var(--muted); }
.available { color: #235c42; display: flex; align-items: center; gap: 7px; }
.available::before { content: ''; width: 8px; height: 8px; transform: skewX(-20deg); background: #7baf54; }
.price { font-variant-numeric: tabular-nums; font-size: 1.3rem; font-weight: 760; }
.pager { margin-block: 20px 8px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; font-weight: 600; font-size: .91rem; }
.field + .field { margin-top: 10px; }
input:not([type=checkbox]), textarea, select { width: 100%; min-height: 42px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; color: var(--ink); padding: 8px 10px; }
input[type=checkbox] { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
textarea { min-height: 160px; resize: none; }
.check { display: flex; align-items: center; gap: 9px; min-height: 38px; font-size: .91rem; }
.field-note { color: var(--muted); font-size: .83rem; font-weight: 400; }
.error { color: var(--danger); min-height: 1.45em; font-size: .89rem; }
[aria-invalid=true] { border-color: var(--danger) !important; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-grid .field { margin: 0; }
.with-button { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.login { max-width: 480px; margin-inline: auto; }
.login form, .settings form { display: grid; gap: 12px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs [aria-current=true] { background: var(--brand); color: white; }
.settings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.settings .panel { display: grid; gap: 12px; }
.settings .panel:first-child { min-height: 200px; }
.field-list { max-height: 290px; overflow: auto; }
.table-wrap { overflow: auto; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); }
th { background: #e6efea; color: var(--muted); font-size: .79rem; white-space: nowrap; }
td { font-size: .88rem; }
td:first-child { min-width: 225px; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; border-radius: 5px; color: var(--brand); background: #e0f2d6; padding: 2px 7px; white-space: nowrap; font-size: .78rem; }
.badge.off { color: var(--muted); background: var(--paper); }
dialog { width: min(720px, 100% - 28px); max-height: calc(100dvh - 30px); padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 15px; color: var(--ink); box-shadow: 0 22px 95px #001c2266; }
dialog::backdrop { background: #0c1e29a0; }
.dialog-head { position: sticky; top: 0; background: var(--white); padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 1; }
.dialog-head h2 { overflow-wrap: anywhere; }
.dialog-content { padding: 18px 20px 22px; display: grid; gap: 14px; }
.gallery { display: grid; gap: 8px; }
.gallery img { width: 100%; height: 300px; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--paper); }
.thumbs img { width: 72px; height: 56px; object-fit: contain; }
.photo-large { display: grid; justify-items: center; background: #f0f4f2; }
.photo-large img { max-height: 71dvh; object-fit: contain; }
.specs { display: grid; grid-template-columns: minmax(105px,1fr) 2fr; padding: 0; margin: 0; font-size: .9rem; }
.specs > * { border-top: 1px solid var(--line); padding: 8px 0; margin: 0; overflow-wrap: anywhere; }
.specs dt { color: var(--muted); padding-right: 10px; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.cart-line { display: grid; grid-template-columns: 1fr 90px auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.cart-total { display: flex; justify-content: space-between; gap: 10px; }
.editor { display: grid; gap: 14px; }
.editor-fields { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; margin: 0; padding: 12px; }
.timeline { display: grid; gap: 10px; }
.timeline article { border-top: 1px solid var(--line); padding-top: 10px; }
.timeline summary { font-size: .9rem; color: var(--brand); }
.timeline ul { margin: 8px 0; overflow-wrap: anywhere; }
.status-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toasts { position: fixed; bottom: 15px; right: 15px; z-index: 2; max-width: min(420px,90vw); }
.toasts:not(:empty) { background: var(--night); color: white; padding: 11px 15px; border-radius: 8px; box-shadow: var(--shadow); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .hero-inner { align-items: start; flex-direction: column; justify-content: center; min-height: 218px; }
  .layout, .settings { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .hero-status { min-width: 0; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters h2, .filters details { grid-column: 1/-1; }
  .top-inner { min-height: 62px; }
}

.buy-control { min-height: 42px; display: grid; }
.quantity-control { min-height: 42px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; background: #e2f3e7; border: 1px solid #a4ceb4; border-radius: 8px; }
.quantity-control .icon { min-width: 0; min-height: 39px; padding: 0; color: var(--brand); }
.quantity-control label { display: flex; align-items: center; justify-content: center; gap: 5px; font-weight: 740; font-size: .73rem; color: #174c36; }
.quantity-control input { width: min(62px, 53%); min-height: 30px; text-align: center; padding: 2px 3px; font-size: .87rem; border-color: #a4ceb4; }
.floating-cart { position: fixed; z-index: 2; bottom: max(16px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); min-height: 48px; padding-inline: 14px; box-shadow: 0 10px 24px #102a4873; }
.floating-cart-total { display: inline-block; border-left: 1px solid #86af9e; margin-left: 4px; padding-left: 11px; font-variant-numeric: tabular-nums; }
.floating-cart-total:empty { display: none; }
body:has(.floating-cart:not([hidden])) .toasts { bottom: 78px; }
body:has(.floating-cart:not([hidden])) { padding-bottom: 52px; }
@media (max-width: 460px) {
  .quantity-control { grid-template-columns: 30px minmax(0, 1fr) 30px; }
  .quantity-control label { flex-direction: column; gap: 0; padding-block: 2px; }
  .quantity-control input { width: 100%; max-width: 55px; }
}

.offer-label { display: inline-flex; width: fit-content; border-radius: 6px; padding: 4px 8px; background: #fff0d4; color: #794305; font-size: .79rem; font-weight: 750; }
.price-pair { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.catalog-overview { margin-top: 20px !important; }
.overview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.overview-head h1 { font-size: clamp(1.9rem, 4vw, 3.3rem); letter-spacing: -.05em; }
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.overview-section { background: white; min-width: 0; display: flex; align-items: flex-start; gap: 15px; padding: 19px; min-height: 166px; }
.overview-section > div { min-width: 0; flex: 1; }
.overview-section h2 { font-size: clamp(.98rem, 1.6vw, 1.18rem); }
.overview-section h2 a { text-decoration: none; color: var(--ink); }
.overview-section a:hover { color: var(--accent); text-decoration: underline; }
.overview-image { display: grid; align-items: center; width: clamp(60px, 7vw, 98px); height: 90px; flex-shrink: 0; }
.overview-image img { width: 100%; height: 100%; object-fit: contain; }
.overview-links { list-style: none; padding: 0; margin: 10px 0 4px; }
.overview-links.two-columns { columns: 2 87px; column-gap: 11px; }
.overview-links li { break-inside: avoid; display: block; position: relative; padding-left: 10px; font-size: .82rem; line-height: 1.45; margin-bottom: 5px; overflow-wrap: anywhere; }
.overview-links li::before { content: ''; position: absolute; top: .55em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.overview-links a, .overview-more { text-decoration: none; }
.overview-more { display: inline-block; font-size: .81rem; font-weight: 700; margin-top: 5px; }
.choice-picker { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.choice-picker > summary { font-weight: 740; }
.choice-picker input[type=search] { margin-top: 8px; }
.picker-options { max-height: 240px; overflow: auto; margin-top: 6px; }
.export-panel { display: grid; gap: 12px; max-width: 880px; }
.export-panel + .export-panel { margin-top: 14px; }
.export-job { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.export-job progress { display: block; width: min(280px, 100%); accent-color: var(--accent); }
.tabs { flex-wrap: wrap; }
.cart-line { grid-template-columns: 54px minmax(0, 1fr) 79px minmax(76px, auto) 38px; gap: 9px; min-height: 75px; }
.cart-photo { width: 54px; height: 54px; object-fit: contain; border-radius: 7px; background: var(--paper); align-self: start; color: var(--muted); }
.cart-photo.no-photo { display: grid; place-items: center; }
.cart-item-info { min-width: 0; overflow-wrap: anywhere; }
.cart-stock { color: #215b40; margin-top: 2px; font-weight: 650; font-size: .75rem; }
.cart-qty, .cart-line-amount { display: grid; gap: 3px; }
.cart-qty span, .cart-line-amount span { font-size: .7rem; color: var(--muted); }
.cart-line-amount { text-align: right; white-space: nowrap; }
.cart-line-amount strong { font-variant-numeric: tabular-nums; }
.cart-feedback:empty { display: none; }
@media (max-width: 490px) {
  .cart-line { grid-template-columns: 44px minmax(0, 1fr) 70px 72px 36px; align-items: start; gap: 5px; }
  .cart-photo { width: 44px; height: 44px; }
  .cart-item-info { grid-column: 2 / 5; }
  .cart-line .icon { grid-column: 5; grid-row: 1; min-width: 36px; }
  .cart-qty { grid-column: 2 / 4; width: 76px; }
  .cart-line-amount { grid-column: 4; align-self: end; }
}
@media (max-width: 1000px) { .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .overview-grid { grid-template-columns: minmax(0, 1fr); } .overview-section { min-height: auto; padding: 13px; } .overview-image { width: 76px; height: 74px; } }

@media (min-width: 1001px) {
  body[data-mode=public] .wrap { width: min(100% - 72px, 1600px); }
  .overview-grid { display: flex; flex-wrap: wrap; gap: 14px; border: 0; background: transparent; border-radius: 0; }
  .overview-section { flex: 1 1 calc((100% - 28px) / 3); min-height: 194px; border: 1px solid var(--line); border-radius: 11px; padding: 23px; gap: 18px; }
  .overview-section h2 { font-size: clamp(1.15rem, 1.45vw, 1.55rem); }
  .overview-image { width: clamp(94px, 9vw, 148px); height: clamp(93px, 9vw, 142px); }
  .overview-links li, .overview-more { font-size: clamp(.87rem, .97vw, 1rem); }
  .overview-links { margin-top: 13px; }
  .overview-links.two-columns { columns: 2 111px; column-gap: 15px; }
}
@media (min-width: 581px) and (max-width: 1000px) {
  .overview-section h2 { font-size: 1.12rem; }
  .overview-links li { font-size: .91rem; }
}
.card-media { position: relative; }
.card-on-offer { border-color: #eab791; }
.offer-ribbon { position: absolute; top: 10px; left: 10px; right: 10px; width: fit-content; max-width: calc(100% - 20px); display: flex; gap: 6px; align-items: center; overflow: hidden; border-radius: 7px; pointer-events: none; background: #ffecd7; color: #66301c; font-size: .75rem; }
.offer-ribbon span { padding: 5px 7px; flex-shrink: 0; background: #a43125; color: #fff; font-weight: 800; }
.offer-ribbon strong { display: block; padding-right: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-price .price { color: #a43125; }
.promo-price s { color: var(--muted); font-size: .89rem; }
.offer-saving { background: #fbe1d7; color: #8a251b; border-radius: 5px; font-size: .73rem; padding: 2px 6px; font-weight: 790; white-space: nowrap; }
@media (max-width: 420px) {
  .wrap { width: calc(100% - 24px); }
  .cards { gap: 8px; }
  .card-body { padding: 10px; }
  .search-area, .form-grid { grid-template-columns: minmax(0,1fr); }
  .dialog-content { padding-inline: 13px; }
  .cart-line { grid-template-columns: 1fr 72px auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (forced-colors: active) { :root { scrollbar-color: auto; } .signal, .available::before { forced-color-adjust: none; } }

.stock-badge { display: inline-flex; width: fit-content; align-items: center; gap: 6px; border-radius: 6px; padding: 4px 8px; font-size: .78rem; font-weight: 750; }
.stock-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.in-stock { background: #d9f4e3; color: #135335; }
.no-stock { background: #fbe2e2; color: #8b2730; }
.store-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.store-stock { color: var(--muted); max-width: 25ch; font-size: .76rem; }
.store-stock:empty { display: none; }
.catalog-roots { display: flex; gap: 6px; align-items: center; overflow-x: auto; margin-top: 14px; padding-bottom: 6px; }
.root-tab { display: inline-flex; white-space: nowrap; font-weight: 720; text-decoration: none; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; padding: 9px 15px; }
.root-tab:hover, .root-tab[data-active=true] { background: var(--brand); border-color: var(--brand); color: white; }
.catalog-path { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .83rem; color: var(--muted); padding-block: 8px 0; overflow-wrap: anywhere; }
.catalog-sidebar { display: grid; gap: 12px; min-width: 0; }
.sections, .filters { padding: 14px; display: block; }
.sections-toggle > summary, .filters-toggle > summary { font-size: 1rem; font-weight: 780; margin: 0 0 8px; }
.filters > details { padding-top: 0; border-top: 0; }
.filters-content { display: grid; gap: 8px; }
.filters-content details { border-top: 1px solid var(--line); padding-top: 8px; }
.filters-content details summary { margin-bottom: 4px; }
.filters-content h3 { margin-top: 6px; }
.facet-options { display: grid; gap: 1px; max-height: 180px; overflow: auto; }
.facet-check { display: flex; align-items: baseline; gap: 8px; padding: 5px 4px; font-size: .86rem; cursor: pointer; }
.facet-check input { width: 15px; height: 15px; flex: 0 0 15px; align-self: center; }
.facet-check:hover { background: var(--paper); }
.price-range fieldset { margin: 0; padding: 0; border: 0; }
.price-range legend { font-size: .87rem; font-weight: 700; padding: 0; margin-bottom: 5px; }
.price-range fieldset > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.price-range input { min-height: 34px; padding: 4px 7px; }
.price-range .field-note:not(:empty) { color: var(--danger); }
.tree { display: grid; gap: 1px; list-style: none; padding: 0; margin: 0; }
.tree .tree { padding-left: 9px; margin-left: 10px; border-left: 1px solid var(--line); }
.tree li { min-width: 0; }
.tree-node { position: relative; }
.tree summary { display: grid; place-items: center; position: absolute; left: 0; top: 2px; width: 24px; height: 28px; border-radius: 5px; list-style: none; font-size: 1.3rem; }
.tree summary::-webkit-details-marker { display: none; }
.tree details[open] > summary span { transform: rotate(90deg); }
.tree summary:hover { background: var(--paper); }
.tree-node > .tree-link { margin-left: 25px; }
.tree-link { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; border-radius: 5px; padding: 6px; text-decoration: none; color: var(--ink); font-size: .84rem; overflow-wrap: anywhere; }
.tree-link small { color: var(--muted); font-size: .74rem; flex-shrink: 0; }
.tree-link:hover, .tree-link[aria-current=page] { background: #e0f2dc; color: #123d2e; }
.tree-link[aria-current=page] { font-weight: 770; }
.tree-all { margin-bottom: 4px; }
.category-tiles { display: flex; gap: 10px; overflow-x: auto; padding: 1px 1px 9px; margin: 5px 0 13px; }
.category-tile { background: #e3eee7; border: 1px solid #c5d9cf; border-radius: 9px; flex: 0 0 clamp(133px, 33%, 182px); min-height: 67px; padding: 9px 10px; display: flex; justify-content: space-between; gap: 7px; text-decoration: none; line-height: 1.25; }
.category-tile strong { display: block; font-size: .88rem; overflow-wrap: anywhere; }
.category-tile small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; }
.category-tile:hover { border-color: var(--accent); background: #d2e8d9; }
.tile-arrow { line-height: 1; }
.catalog-head h1 { font-size: clamp(1.75rem, 4vw, 3.1rem); letter-spacing: -.045em; line-height: 1.04; margin-bottom: 3px; }
.catalog-head > label { margin: 0; min-width: 140px; }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-brand { font-weight: 750; color: var(--brand); font-size: .8rem; }
.card-specs { color: var(--muted); font-size: .8rem; }
.card .product-art { background: white; border-bottom: 1px solid #e3ebe7; aspect-ratio: 5/4; }
.card .product-art:not(.photo-error) img + .placeholder, .card .product-art.photo-error img { display: none; }
.card .product-art img { mix-blend-mode: normal; padding: 8px; }
@media (max-width: 740px) {
  .store-search { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .store-stock { max-width: none; }
  .catalog-sidebar { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
  .catalog-head { align-items: end; }
  .catalog-head > label { min-width: 115px; max-width: 46%; }
  .sections, .filters { padding: 10px; }
}
