/* 3DKIT catalog v5 — calm "collectible tag" direction (owner feedback 05.10.2026).
   Dark page, neutral graphite cards with cut-out products, 2–3 colours; orange marks actions and active states only.
   Square corners everywhere. Departments Декор / Tech kit; Basement-style index with one hologram window. */

body.woocommerce-shop, body.tax-product_cat, body.tax-kit_series, body.tax-kit_author { overflow-x: clip; }
.kit-shop { --card: #121212; --card-ink: #f1eee7; --card-mute: #8a8780; --card-line: rgba(241,238,231,.08); --card-edge: #242424; --hot-soft: rgba(255,90,31,.08); position: relative; }
.kit-shop a, .kit-shop button, .kit-shop input, .kit-shop select { border-radius: 0; }

/* ---------- hero: title, department tabs on the left, description beside them */
.shop-hero { padding: clamp(28px, 4vw, 52px) 0 0; }
.shop-eyebrow .muted { color: var(--dim); }
.shop-word { margin: 14px 0 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--ink); line-height: .82; letter-spacing: -.01em;
  font-size: clamp(64px, calc((min(100vw, var(--max)) - 2 * var(--pad)) / 7.6), 156px); }
.shop-dept { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 32px; align-items: center; margin-top: clamp(22px, 3vw, 34px);
  padding-bottom: 22px; border-bottom: 1px solid var(--line); scroll-margin-top: 76px; }
.shop-dept-switch { display: flex; }
.shop-dept-switch a { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px; border: 1px solid var(--line-2); margin-left: -1px;
  font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1; text-transform: uppercase; color: var(--mute); transition: color .15s, background .15s, border-color .15s; }
.shop-dept-switch a:first-child { margin-left: 0; }
.shop-dept-switch a:hover { color: var(--ink); border-color: var(--line-3); position: relative; z-index: 1; }
.shop-dept-switch b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--dim); }
.shop-dept-switch a[aria-current=page] { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--hot); position: relative; z-index: 2; }
.shop-dept-switch a[aria-current=page] b { color: var(--bg); opacity: .6; }
.shop-dept-desc { max-width: 62ch; font-size: 15px; line-height: 1.55; color: var(--mute); }
.shop-dept-desc b { color: var(--ink); font-weight: 600; }

/* ---------- layout: index column + results */
.shop-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 24px; }
.shop-index { position: sticky; top: 88px; display: grid; gap: 18px; min-width: 0; }
.shop-index-nav { min-width: 0; }
.shop-holo { position: relative; border: 1px solid var(--line-2); background: #0d0d0d; }
.shop-holo::before { content: ""; position: absolute; inset: 14px 14px auto 14px; aspect-ratio: 13 / 9.4; pointer-events: none;
  background:
    linear-gradient(var(--line-3), var(--line-3)) left top / 16px 1px no-repeat, linear-gradient(var(--line-3), var(--line-3)) left top / 1px 16px no-repeat,
    linear-gradient(var(--line-3), var(--line-3)) right top / 16px 1px no-repeat, linear-gradient(var(--line-3), var(--line-3)) right top / 1px 16px no-repeat,
    linear-gradient(var(--line-3), var(--line-3)) left bottom / 16px 1px no-repeat, linear-gradient(var(--line-3), var(--line-3)) left bottom / 1px 16px no-repeat,
    linear-gradient(var(--line-3), var(--line-3)) right bottom / 16px 1px no-repeat, linear-gradient(var(--line-3), var(--line-3)) right bottom / 1px 16px no-repeat; }
.shop-holo-canvas { display: block; width: 100%; height: auto; aspect-ratio: 13 / 10; }
.shop-holo-name, .shop-holo-note { display: block; padding: 0 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.shop-holo-name { padding-top: 10px; font-size: 11.5px; color: var(--ink); min-height: 1.4em; border-top: 1px solid var(--line); }
.shop-holo-note { padding-bottom: 10px; margin-top: 3px; font-size: 10px; color: var(--dim); }
.shop-ico { flex: none; color: var(--dim); }
.shop-index-head { display: flex; align-items: center; gap: 8px; min-height: 30px; margin: 2px 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.shop-index-head b { color: var(--dim); font-weight: 500; }
.shop-index-head:hover, .shop-index-head.is-active { color: var(--ink); }
.shop-index-nav .shop-index-sub { list-style: none; margin: 6px 0 4px 12px; padding: 0 0 0 10px; border-left: 1px solid var(--line-2); display: grid; gap: 6px; }
.shop-index-nav .shop-index-tag.is-sub { min-height: 32px; font-size: 11px; color: var(--mute); border-color: var(--line); }
.shop-index-nav ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.shop-index-tag { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 70%, transparent);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); transition: border-color .15s, color .15s; }
.shop-index-tag span { flex: 1; min-width: 0; padding: 9px 0; line-height: 1.25; overflow-wrap: anywhere; }
.shop-chev { font-style: normal; color: var(--dim); font-size: 15px; line-height: 1; }
.shop-index-tag b { color: var(--dim); font-weight: 500; }
.shop-index-tag:hover, .shop-index-tag:focus-visible { border-color: var(--line-3); color: var(--ink); }
.shop-index-tag:hover .shop-ico, .shop-index-tag:hover .shop-chev { color: var(--ink); }
.shop-index-tag.is-active { border-color: color-mix(in srgb, var(--hot) 55%, var(--line-2)); background: var(--hot-soft); box-shadow: inset 2px 0 0 var(--hot); color: var(--ink); }
.shop-index-tag.is-active b, .shop-index-tag.is-active .shop-ico, .shop-index-tag.is-active .shop-chev { color: var(--hot); }

/* ---------- filters */
.shop-filter-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 8px; position: relative; }
.shop-filter-row.has-series { grid-template-columns: minmax(0, 1fr) 200px 200px; }
.shop-filter-row.has-series.has-authors { grid-template-columns: minmax(0, 1fr) repeat(3, 180px); }
.shop-filter-row.has-authors:not(.has-series) { grid-template-columns: minmax(0, 1fr) 200px 200px; }
.shop-filter-row input, .shop-filter-row select { width: 100%; min-width: 0; height: 48px; min-height: 48px; background: var(--well); border: 1px solid var(--line-2); color: var(--ink); padding: 0 14px; font-size: 14px; }
.shop-filter-row select { cursor: pointer; }
.shop-filter-row input:focus, .shop-filter-row select:focus { border-color: var(--hot); }
.shop-search { position: relative; display: block; }
.shop-search svg { position: absolute; left: 15px; top: 50%; translate: 0 -50%; color: var(--dim); pointer-events: none; }
.shop-search input { padding-left: 44px; }
.shop-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 44px; margin: 8px 0 10px; }
.shop-result .label { color: var(--mute); margin-right: 6px; }
.shop-result b { color: var(--ink); font-weight: 700; }
.shop-result .link-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 4px; }
.shop-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line-3); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.shop-chip:hover { border-color: var(--ink); }

/* ---------- cards: bone tag, cut-out product, one clear action */
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shop-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); color: var(--card-ink); border: 1px solid var(--card-edge); outline-offset: 3px; transition: border-color .2s; }
.shop-card::before { content: ""; position: absolute; z-index: 4; left: -1px; top: -1px; width: 10px; height: 10px; background: var(--hot); clip-path: polygon(0 0, 100% 0, 0 100%); pointer-events: none; }
.shop-card:focus-within { outline: 2px solid var(--hot); }
.shop-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid var(--card-line);
  background: radial-gradient(ellipse 72% 62% at 50% 45%, #262626 0%, #181818 58%, #121212 100%); }
.kit-shop .shop-card-media .shop-card-cut { position: absolute; left: 10%; top: 15%; width: 80%; height: 72%; max-width: none; object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.7)) drop-shadow(0 2px 3px rgba(0,0,0,.6)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.kit-shop .shop-card-media.is-long .shop-card-cut { left: 3%; width: 94%; transform: rotate(-28deg); }
.kit-shop .shop-card-media .shop-card-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.shop-card-empty { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--card-mute); }
.shop-card-tag { position: absolute; z-index: 2; top: 12px; left: 14px; right: 34px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--card-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-card-plus { position: absolute; z-index: 2; top: 13px; right: 14px; width: 10px; height: 10px;
  background: linear-gradient(var(--card-mute), var(--card-mute)) center / 10px 1px no-repeat, linear-gradient(var(--card-mute), var(--card-mute)) center / 1px 10px no-repeat; }
.shop-card-author { position: absolute; z-index: 2; left: 0; bottom: 0; padding: 5px 9px; background: var(--hot); color: var(--on-hot); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.shop-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 14px; }
.shop-card-title { margin: 0; }
.kit-shop .shop-card-title, .kit-shop .shop-card-title a { color: var(--card-ink); }
.shop-card-title a { display: grid; gap: 3px; }
.shop-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.shop-card-title a:focus-visible { outline: none; }
.shop-card-model { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--card-mute); }
.shop-card-name { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.05; text-transform: uppercase; letter-spacing: .005em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.shop-card-name.is-long { font-size: 16px; line-height: 1.12; min-height: 2.24em; }
.shop-card-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; }
.shop-card-price.is-request { flex-basis: 100%; }
.shop-card-price.is-request + .shop-card-cta { margin-left: auto; }
.shop-card-price { min-width: 0; }
.shop-card-price strong { display: block; font-family: var(--mono); font-weight: 700; font-size: 18px; white-space: nowrap; }
.shop-card-price s { font-family: var(--mono); font-size: 12px; color: var(--card-mute); }
.shop-card-price small { display: block; margin-top: 3px; font-family: var(--mono); font-size: 10.5px; color: var(--card-mute); }
.shop-card-price.is-request strong { font-size: 14px; color: var(--soft); }
.shop-arrow { flex: none; display: block; }
.shop-card-cta { flex: none; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 13px; background: transparent; color: var(--hot); box-shadow: inset 0 0 0 1px var(--hot);
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background .15s, color .15s, box-shadow .15s; }
.shop-card-avail { display: flex; align-items: center; gap: 7px; padding-top: 9px; border-top: 1px dashed var(--card-line); font-family: var(--mono); font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--card-mute); }
.shop-card-avail i { width: 6px; height: 6px; flex-shrink: 0; background: var(--card-mute); }
.shop-card-avail.in_stock i { background: #3f9c5a; }
.shop-card-avail.confirm_availability i { background: #c9a23c; }
.shop-card-avail.on_request i { background: #5a7ea8; }
@media (hover: hover) and (pointer: fine) {
  .shop-card:hover { border-color: #3c3c3c; }
  .shop-card:hover .shop-card-cta { background: var(--hot); color: var(--on-hot); box-shadow: none; }
  .kit-shop .shop-card:hover .shop-card-media .shop-card-cut { transform: translateY(-5px) scale(1.03); }
  .kit-shop .shop-card:hover .shop-card-media.is-long .shop-card-cut { transform: rotate(-28deg) translateY(-5px) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { .kit-shop .shop-card-media img { transition: none; } }

/* ---------- pagination */
body.woocommerce .kit-shop nav.woocommerce-pagination { margin-top: clamp(28px, 4vw, 44px); text-align: center; }
body.woocommerce .kit-shop nav.woocommerce-pagination ul { display: inline-flex; gap: 6px; border: 0; margin: 0; }
body.woocommerce .kit-shop nav.woocommerce-pagination ul li { border: 0; float: none; }
body.woocommerce .kit-shop nav.woocommerce-pagination ul li a, body.woocommerce .kit-shop nav.woocommerce-pagination ul li span {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); background: transparent; font-family: var(--mono); font-size: 13px; color: var(--mute); }
body.woocommerce .kit-shop nav.woocommerce-pagination ul li a:hover { color: var(--ink); border-color: var(--ink); background: transparent; }
body.woocommerce .kit-shop nav.woocommerce-pagination ul li span.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- empty */
.shop-empty { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center; padding: 40px 0; }
.shop-empty h2 { margin-bottom: 10px; }
.shop-empty .actions { margin-top: 18px; }

/* ---------- order block: how to order + facts | custom order with the peeking cat */
.shop-order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: clamp(110px, 11vw, 150px); scroll-margin-top: 90px; }
.shop-order > div { position: relative; border: 1px solid var(--line-2); background: var(--panel); padding: clamp(24px, 3vw, 36px); }
.shop-order-label { margin: 0 0 18px; color: var(--ink); }
.shop-steps { list-style: none; margin: 0; padding: 0; }
.shop-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.shop-steps li:first-child { border-top: 0; padding-top: 0; }
.shop-steps b { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--hot); padding-top: 3px; }
.shop-steps strong { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; text-transform: uppercase; color: var(--ink); }
.shop-steps em { display: block; font-style: normal; font-size: 14px; line-height: 1.45; color: var(--mute); margin-top: 3px; }
.shop-facts { list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: 6px; }
.shop-facts li { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.shop-facts li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--hot); }
.shop-order-custom { display: flex; flex-direction: column; align-items: flex-start; }
.shop-custom-cat { position: absolute; right: clamp(20px, 4vw, 48px); bottom: 100%; width: clamp(140px, 13vw, 190px); height: auto; translate: 0 13%; pointer-events: none; }
.shop-order-custom h2 { font-size: clamp(26px, 2.6vw, 38px); margin: 0 0 12px; }
.shop-order-custom h2 span { display: block; color: var(--mute); }
.shop-order-custom p { max-width: 46ch; margin: 0 0 22px; }
.shop-order-custom .actions { margin-top: auto; }
.shop-order-more { margin-top: 12px; }
/* the footer's own CTA band repeats this block on catalog pages */
body.woocommerce-shop .footer-cta, body.tax-product_cat .footer-cta { display: none; }
body.woocommerce-shop .site-footer, body.tax-product_cat .site-footer { margin-top: clamp(56px, 7vw, 96px); }

/* ---------- light theme: keep the cards as darker "negative" tags */
:root[data-theme="light"] .kit-shop { --card: #161616; --card-ink: #f1eee7; --card-mute: #a29d93; --card-line: rgba(241,238,231,.12); --card-edge: #161616; --hot-soft: rgba(240,78,18,.1); }
:root[data-theme="light"] .kit-shop .shop-card-price.is-request strong { color: #d6d1c7; }
:root[data-theme="light"] .shop-holo { background: #151412; }
:root[data-theme="light"] .shop-holo-name { color: #f1eee7; }

/* ---------- tablet */
@media (max-width: 1100px) {
  .shop-dept { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shop-order { grid-template-columns: 1fr; margin-top: clamp(56px, 8vw, 88px); }
  .shop-order-custom { margin-top: 104px; }

}

/* ---------- phone: index becomes a scrolling tag strip, hologram hidden, 2 columns */
@media (max-width: 767px) {
  .shop-hero { padding-top: 22px; }
  .shop-ico { display: none; }
  .shop-chev { display: none; }
  .shop-word { font-stretch: 75%; font-variation-settings: "wdth" 75; font-size: calc((100vw - 2 * var(--pad)) / 3.75); }
  .shop-dept { margin-top: 16px; padding-bottom: 14px; gap: 12px; }
  .shop-dept-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .shop-dept-switch a { height: 48px; padding: 0 12px; gap: 7px; font-size: 17px; margin-left: 0; justify-content: center; min-width: 0; }
  .shop-dept-switch b { font-size: 11px; }
  .shop-dept-desc { font-size: 14px; }
  .shop-layout { display: block; margin-top: 12px; }
  .shop-index { position: static; display: block; }
  .shop-holo { display: none; }
  .shop-index-head { flex: none; margin: 0; min-height: 40px; padding: 0 4px 0 2px; white-space: nowrap; }
  .shop-index-nav .shop-index-sub { display: contents; }
  .shop-index-nav li { display: contents; }
  .shop-index-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 12px; }
  .shop-index-nav::-webkit-scrollbar { display: none; }
  .shop-index-nav ul { display: contents; }
  .shop-index-tag { white-space: nowrap; min-height: 40px; }
  .shop-index-tag span { padding: 0; }
  .shop-filter-row, .shop-filter-row.has-series, .shop-filter-row.has-series.has-authors, .shop-filter-row.has-authors:not(.has-series) { grid-template-columns: minmax(0, 1fr) 150px; }
  .shop-grid { gap: 8px; }
  .shop-card-tag { font-size: 9px; left: 10px; top: 10px; }
  .shop-card-plus { top: 11px; right: 10px; }
  .shop-card-body { padding: 10px; gap: 8px; }
  .shop-card-model { font-size: 10px; }
  .shop-card-name { font-size: 15px; }
  .shop-card-name.is-long { font-size: 13px; }
  .shop-card-row { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
  .shop-card-price.is-request + .shop-card-cta { margin-left: 0; }
  .shop-card-price strong { font-size: 15px; }
  .shop-card-price small { font-size: 9.5px; }
  .shop-card-price.is-request strong { font-size: 12.5px; }
  .shop-card-cta { justify-content: center; min-height: 40px; font-size: 11px; }
  .shop-card-avail { font-size: 8.5px; }
  .shop-empty { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .shop-empty img { width: 140px; }
  .shop-order > div { padding: 22px 18px; }
  .shop-order-custom .actions { width: 100%; }
  .shop-order-custom .actions .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .shop-filter-row, .shop-filter-row.has-series, .shop-filter-row.has-series.has-authors, .shop-filter-row.has-authors:not(.has-series) { grid-template-columns: 1fr; }
}
