/* Techma — public catalog */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- top line + header ---------- */
.topline { background: #121211; color: #d9d9d2; border-bottom: 1px solid #2a2a27; }
.topline-in { display: flex; justify-content: space-between; gap: 16px; height: 30px; align-items: center; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.topline-in > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 6px; height: 6px; background: var(--ok); box-shadow: 0 0 0 3px rgba(29, 138, 76, .25); }

.site-head { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo { display: inline-block; line-height: 0; }
.logo img { width: auto; height: 36px; }
.logo picture { display: block; }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { position: relative; padding: 6px 0; color: var(--ink-2); }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on::after, .nav a:hover::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.nav-home { display: inline-flex; align-items: center; gap: 6px; }
.nav-home svg { flex-shrink: 0; }
.nav a { white-space: nowrap; }
.head-search { flex: 0 1 320px; min-width: 150px; }
@media (max-width: 1240px) { .head-in { gap: 20px; } .nav { gap: 16px; } }

/* second menu row on small screens */
.nav-m { display: none; border-top: 1px solid var(--line); }
.nav-m-wrap { position: relative; display: flex; align-items: stretch; }
.nav-m-in { display: flex; gap: 0; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.nav-m-arrow {
  position: absolute; top: 0; bottom: 0; z-index: 2; display: grid; place-items: center; width: 34px; padding: 0;
  border: 0; color: var(--ink); cursor: pointer; background: transparent;
}
.nav-m-prev { left: 0; padding-right: 10px; background: linear-gradient(90deg, var(--paper) 55%, transparent); }
.nav-m-next { right: 0; padding-left: 10px; background: linear-gradient(270deg, var(--paper) 55%, transparent); }
.nav-m-arrow svg { width: 22px; height: 22px; padding: 5px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--card); }
.nav-m-arrow:active svg { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-m-arrow[hidden] { display: none; }
/* scroll indicator: track = whole menu, thumb = the part on screen */
.nav-m-bar { position: relative; height: 3px; margin: 4px 0 6px; background: var(--line); border-radius: 2px; overflow: hidden; }
.nav-m-bar[hidden] { display: none; }
.nav-m-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--mute); border-radius: 2px; transition: left .08s linear; }
.nav-m-in::-webkit-scrollbar { display: none; }
.nav-m a { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 11px 10px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); white-space: nowrap; }
.nav-m .lang-sw + a { padding-left: 2px; }
.nav-m a.on { color: var(--ink); }
.nav-m a.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--accent); }
.nav-m .lang-sw + a.on::after { left: 2px; }
.head-search { position: relative; margin-left: auto; display: flex; align-items: center; width: min(320px, 32vw); }
.head-search svg { position: absolute; left: 12px; color: var(--mute); pointer-events: none; }
.head-search input {
  width: 100%; height: 40px; padding: 0 36px 0 34px;
  border: 1px solid var(--line-2); background: var(--card);
  font-size: 14px; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.head-search input::placeholder { color: var(--mute); }
.head-search input:focus { outline: none; border-color: var(--ink); }
.head-cta { gap: 0; }
.head-search kbd { position: absolute; right: 8px; font-size: 11px; padding: 1px 6px; border: 1px solid var(--line-2); color: var(--mute); }
.head-search input:focus + kbd { display: none; }

/* ---------- shared section bits ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.tag { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 5px; border: 1px solid var(--ink); color: var(--ink); font-size: 11px; letter-spacing: 0; }
.sec { padding: 72px 0; }
.sec-tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-tint .card, .sec-tint .card-img { background: var(--card); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.sec-head h2 { font: 600 clamp(26px, 3vw, 34px)/1.1 var(--sans); letter-spacing: -.02em; margin-top: 14px; }

/* ---------- home: panel layout (category sidebar | banner + products) ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); align-items: stretch; padding-bottom: 72px; }
.shell-side { border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); background: var(--card); }
.shell-side .ctree { position: sticky; top: 67px; height: calc(100vh - 67px); }
.shell-main { min-width: 0; padding: 24px 0 0 28px; }
.shell-sec { padding-top: 48px; }
@media (min-width: 721px) {
  .shell .feat-row { grid-template-columns: 44px 180px minmax(0, 1fr) 170px; gap: 24px; padding: 22px 0; }
  .shell .feat-no { font-size: 30px; }
}
.home-chips { margin-top: 16px; }
.shell-content { outline: none; transition: opacity .15s; }
.shell-content.is-loading { opacity: .45; pointer-events: none; }
.shell .page-head { padding: 28px 0 20px; }
.shell .chips { margin-top: 0; }

/* running banner */
.runner { overflow: hidden; container-type: inline-size; }
.runner.is-ready {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.runner-track { display: flex; width: max-content; }
.runner-set { display: flex; gap: 16px; padding: 0 16px 0 0; }
.runner.is-ready .runner-track { animation: runner var(--run-dur, 40s) linear infinite; }
.runner:hover .runner-track, .runner:focus-within .runner-track { animation-play-state: paused; }
@keyframes runner { to { transform: translateX(-50%); } }
.runner:not(.is-ready) { overflow-x: auto; scrollbar-width: none; }
.runner:not(.is-ready) .runner-set { padding-left: 32px; }

.slide {
  position: relative; flex: 0 0 auto; width: min(480px, 84cqw); aspect-ratio: 16 / 9;
  display: flex; align-items: center; overflow: hidden;
  --grid: rgba(255, 255, 255, .05);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.slide-dark { background-color: #121211; color: #f2f2ee; --art: #46463f; --die: var(--accent); --die-text: #121211; }
.slide-accent { background-color: var(--accent); color: #121211; --grid: rgba(18, 18, 17, .08); --art: rgba(18, 18, 17, .38); --die: #121211; --die-text: var(--accent); }
.slide-light { background-color: #e6e6df; color: #121211; --grid: rgba(18, 18, 17, .06); --art: #b3b3a9; --die: var(--accent); --die-text: #121211; }
.slide-art { position: absolute; right: -4%; top: 0; width: 46%; height: 100%; color: var(--art); }
.slide-art-die { fill: var(--die); }
.slide-art text { fill: var(--die-text); }
/* Banner with text: the image is a full background behind the text (cover). */
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Image-only banner: auto fit — the whole design stays visible, never cropped.
   Any space left over (image not exactly 16:9) shows a soft blurred copy instead of empty bars. */
.slide-img.slide-img-fit { object-fit: contain; z-index: 1; }
.slide-img-bg { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(20px) saturate(1.1); opacity: .85; }
.slide.has-img { color: #fff; }
.slide.has-img .slide-body { text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.slide.has-img:has(.slide-body)::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 10, 9, .8) 0%, rgba(10, 10, 9, .45) 50%, rgba(10, 10, 9, 0) 80%); }
/* One position for every banner button: --pad from the left and bottom edge.
   The text body fills the card height and pushes its button to the bottom,
   so it lines up with the floating button on image-only banners. */
.slide { --pad-x: 26px; --pad-y: 22px; }
.slide-body { position: relative; z-index: 2; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start;
  padding: var(--pad-y) var(--pad-x); max-width: 78%; }
.slide-body .slide-btn { margin-top: auto; }
.slide-body > :nth-last-child(2) { margin-bottom: 12px; }
.slide-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.slide-eyebrow span { display: inline-grid; place-items: center; height: 18px; padding: 0 4px; border: 1px solid currentColor; font-size: 10px; letter-spacing: 0; }
.slide-title { font: 600 clamp(18px, 1.7vw, 22px)/1.12 var(--sans); letter-spacing: -.02em; margin: 10px 0 6px; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide-sub { margin: 0; font-size: 13.5px; line-height: 1.45; max-width: 44ch; opacity: .82;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-btn { flex-shrink: 0; height: 36px; padding: 0 14px; font-size: 13px; background: var(--accent); border-color: var(--accent); color: #fff; text-shadow: none; }
.slide-btn:hover { background: #fff; border-color: #fff; color: #121211; }
.slide-accent .slide-btn, .slide-light .slide-btn { background: #121211; border-color: #121211; color: #f2f2ee; }
.slide-accent .slide-btn:hover { background: #fff; border-color: #fff; color: #121211; }
.slide-light .slide-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.slide-cover { position: absolute; inset: 0; z-index: 3; }
/* button on a banner without text: bottom-left corner, above the image */
.slide-btn-float { position: absolute; left: var(--pad-x); bottom: var(--pad-y); z-index: 4; margin: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }

@media (prefers-reduced-motion: reduce) {
  .runner.is-ready .runner-track { animation: none; }
  .runner.is-ready { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* category tree (home panel + catalog sidebar) */
.ctree { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ctree-head { display: flex; justify-content: space-between; padding: 13px 16px 11px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); border-bottom: 1px solid var(--ink); }
.ctree-list { flex: 1; list-style: none; margin: 0; padding: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ctree-item { border-bottom: 1px solid var(--line); }
.ctree-item:last-child { border-bottom: 0; }
.ctree-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px; }
.ctree-link { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: center; padding: 12px 0 12px 16px; font-size: 14.5px; font-weight: 500; transition: color .15s; }
.ctree-link .idx { font-size: 11px; font-weight: 400; color: var(--mute); }
.ctree-link .nm { line-height: 1.3; overflow-wrap: anywhere; }
.ctree-link:hover { color: var(--accent); }
.ctree-link.on { box-shadow: inset 3px 0 0 var(--accent); }
.ctree-link.on .idx { color: var(--accent); }
.ctree-toggle { display: grid; place-items: center; border: 0; background: transparent; color: var(--mute); }
.ctree-toggle:hover { color: var(--ink); background: var(--paper-2); }
.ctree-toggle svg { transition: transform .2s; }
.ctree-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.ctree-sub { display: none; list-style: none; margin: 0; padding: 0 0 10px 42px; }
.ctree-item.is-open .ctree-sub { display: block; }
.ctree-sub a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 16px 6px 12px; font-size: 13.5px; color: var(--ink-2); border-left: 1px solid var(--line-2); transition: color .15s, border-color .15s; }
.ctree-sub a:hover { color: var(--accent); border-left-color: var(--accent); }
.ctree-sub a.on { color: var(--ink); font-weight: 600; border-left: 2px solid var(--accent); padding-left: 11px; }


.ruler {
  height: 16px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 100px) left top / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 10px) left top / 100% 6px no-repeat;
}

/* ---------- featured rows ---------- */
.feat { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.feat-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 240px minmax(0, 1fr) minmax(0, 300px) 190px;
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.feat-no { font-size: 36px; line-height: 1; color: var(--line-2); transition: color .15s; }
.feat-img { display: grid; place-items: center; aspect-ratio: 1; background: var(--paper-2); overflow: hidden; }
.feat-img img { width: 100%; height: 100%; padding: 6%; object-fit: contain; mix-blend-mode: var(--blend); }
.feat-main { display: flex; flex-direction: column; gap: 10px; }
.feat-meta { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.feat-name { font: 600 22px/1.2 var(--sans); letter-spacing: -.015em; }
.feat-sum { margin: 0; color: var(--ink-2); }
.feat-specs { margin: 0; font-size: 12px; border-top: 1px dashed var(--line-2); }
.feat-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.feat-specs dt { color: var(--mute); white-space: nowrap; }
.feat-specs dd { margin: 0; text-align: right; }
.feat-end { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.feat-link { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.feat-row:hover .feat-no, .feat-row:hover .feat-link { color: var(--accent); }
.feat-row:hover .feat-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- product grid / list ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.products-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .products-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .products-4 > :nth-child(n+7) { display: none; } }
@media (max-width: 980px) { .products-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .products-4 > :nth-child(n+7) { display: flex; } }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.card::before { content: ''; position: absolute; left: -1px; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width .25s ease; z-index: 1; }
.card:hover::before { width: calc(100% + 1px); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; font-size: 11px; letter-spacing: .04em; color: var(--mute); }
/* Product photos: square frame, auto fit — the whole photo is always visible, never cropped. */
.card-img { display: grid; place-items: center; aspect-ratio: 1; margin: 0 16px; background: var(--paper-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; padding: 6%; object-fit: contain; mix-blend-mode: var(--blend); transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px; }
.card-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.card-cat { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-cat > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-views, .pd-views { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; letter-spacing: .02em; color: var(--mute); }
.card-views svg, .pd-views svg { flex-shrink: 0; }
.pd-views { font-size: 12px; }
.card-name { font: 600 16px/1.3 var(--sans); letter-spacing: -.005em; }
.card-specs { margin: 4px 0 0; font-size: 11.5px; border-top: 1px dashed var(--line-2); }
.card-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line-2); }
.card-specs dt { color: var(--mute); white-space: nowrap; }
.card-specs dd { margin: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible), .feat-row:has(.card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.ask {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font: 500 13px/1 var(--sans); white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.ask svg { flex-shrink: 0; color: var(--ok); }
.ask:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.ask:hover svg { color: #fff; }
.ask-detail svg { color: currentColor; }
.ask-solid { height: 38px; padding: 0 14px; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ask-solid svg { color: currentColor; }
.go { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); transition: background-color .15s, color .15s, border-color .15s; }
.card:hover .go { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.list-head { display: none; }
.results[data-view='list'] .list-head,
.results[data-view='list'] .card {
  display: grid;
  grid-template-columns: 64px 130px minmax(0, 1fr) 150px 80px 140px 30px;
  grid-template-areas: 'img sku name cat stock price go';
  align-items: center;
  column-gap: 18px;
}
.results[data-view='list'] .list-head { padding: 0 16px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); border-bottom: 1px solid var(--ink); }
.list-head .r { text-align: right; }
.results[data-view='list'] .products { grid-template-columns: 1fr; border-top: 0; }
.results[data-view='list'] .card { padding: 10px 16px; }
.results[data-view='list'] .card-top,
.results[data-view='list'] .card-body,
.results[data-view='list'] .card-foot { display: contents; }
.results[data-view='list'] .card-img { grid-area: img; margin: 0; aspect-ratio: 1; }
.results[data-view='list'] .sku { grid-area: sku; font-size: 12px; color: var(--ink-2); }
.results[data-view='list'] .card-name { grid-area: name; font-size: 15px; }
.results[data-view='list'] .card-cat { grid-area: cat; }
.results[data-view='list'] .stock { grid-area: stock; }
.results[data-view='list'] .ask { grid-area: price; justify-self: end; }
.results[data-view='list'] .go { grid-area: go; }
.results[data-view='list'] .card-specs { display: none; }
.results[data-view='list'] .card::before { top: auto; bottom: -1px; }

/* ---------- catalog page ---------- */
.page-head { padding: 40px 0 28px; }
.page-head h1 { font: 600 clamp(32px, 4vw, 48px)/1.05 var(--sans); letter-spacing: -.03em; margin-top: 16px; }
.page-sub { margin: 12px 0 0; color: var(--ink-2); }
.page-sub a { color: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.crumbs a:hover { color: var(--ink); }
.crumbs > span:last-child:not(:only-child) { color: var(--ink); }

.catalog { padding-bottom: 80px; }
.cat-layout > * { min-width: 0; }
.cat-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: 90px; grid-column: 1; grid-row: 1; }
.cat-results { grid-column: 2; grid-row: 1; }
.filters .ctree { max-height: calc(100vh - 260px); border: 1px solid var(--line-2); background: var(--card); }
.side-note { margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-2); }
.side-note p { margin: 0; }
.side-note .mono { margin-bottom: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }

.chips { display: none; margin-bottom: 8px; }
.chip-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.chip .mono { font-size: 11px; color: var(--mute); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.on .mono { color: var(--line-2); }
.chip-row-sub .chip { padding: 5px 10px; font-size: 12.5px; border-style: dashed; }
.chip-row-sub .chip.on { border-style: solid; background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-row-sub .chip.on .mono { color: #fff; }

.toolbar { display: flex; align-items: center; gap: 20px; padding: 10px 0; margin-bottom: 20px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.count { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.sort { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sort label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.sort select {
  height: 34px; padding: 0 30px 0 10px; border: 1px solid var(--line-2); border-radius: 0; background: var(--card);
  font-size: 13px; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 15px, calc(100% - 10px) 15px;
  background-size: 4px 4px; background-repeat: no-repeat;
}
.view-toggle { display: flex; border: 1px solid var(--line-2); }
.view-toggle button { display: grid; place-items: center; width: 34px; height: 32px; border: 0; background: var(--card); color: var(--mute); }
.view-toggle button + button { border-left: 1px solid var(--line-2); }
.view-toggle button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.pager > a, .pager > .off { padding: 10px 0; }
.pager .off { color: var(--line-2); }
.pager > a:hover { color: var(--accent); }
.pager-nums { display: flex; gap: 4px; }
.pager-nums a, .pager-nums .cur, .pager-nums .gap { display: grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid var(--line); }
.pager-nums a:hover { border-color: var(--ink); }
.pager-nums .cur { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager-nums .gap { border-color: transparent; }

.empty { padding: 64px 24px; border: 1px dashed var(--line-2); text-align: center; }
.empty .mono { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.empty p { margin: 8px 0 20px; font-size: 17px; }

/* ---------- product detail ---------- */
.draft-bar { background: var(--warn); color: #111; font-size: 12px; letter-spacing: .04em; padding: 8px 0; }
.draft-bar a { text-decoration: underline; }
.pd-crumbs { padding: 24px 0; }
.pd { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pd-gallery { padding: 32px 44px 40px 0; border-right: 1px solid var(--line); }
.pd-frame { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--paper-2); padding: 36px; }
.pd-frame img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--blend); }
.pd-frame .ph { position: absolute; inset: 0; }
.cm { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); }
.cm.tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.cm.tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.cm.bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.cm.br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
.pd-frame-label { position: absolute; left: 32px; bottom: 12px; font-size: 11px; color: var(--mute); letter-spacing: .04em; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pd-thumbs button { width: 76px; height: 76px; padding: 6px; border: 1px solid var(--line); background: var(--paper-2); }
.pd-thumbs button img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--blend); }
.pd-thumbs button:hover { border-color: var(--line-2); }
.pd-thumbs button { position: relative; }
.pd-thumbs button.is-video img { object-fit: cover; mix-blend-mode: normal; }
.pd-thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 16px; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.pd-video { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 36px 16px; background: #121211; }
.pd-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.pd-video-poster { position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; }
.pd-video-poster img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.pd-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--accent); border-radius: 50%; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); transition: transform .15s; }
.pd-play::after { content: ''; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.pd-video-poster:hover .pd-play { transform: scale(1.08); }
.pd-frame-label { z-index: 2; }
/* gallery arrows + swipe */
.pd-frame { touch-action: pan-y; user-select: none; }
.pd-nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); transition: background-color .15s, color .15s, border-color .15s; }
.pd-nav:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }
[data-gallery-main] { transition: opacity .15s; }
.pd-thumbs button[aria-current='true'] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.pd-info { padding: 32px 0 40px 44px; display: flex; flex-direction: column; }
.pd-id { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--mute); letter-spacing: .04em; }
.pd-id strong { color: var(--ink); font-weight: 600; }
.pd-id .stock { margin-left: auto; }
.copy { padding: 2px 8px; border: 1px solid var(--line-2); background: transparent; font: inherit; font-size: 11px; color: var(--ink-2); }
.copy:hover { border-color: var(--ink); color: var(--ink); }
.pd-info h1 { font: 600 clamp(28px, 3.2vw, 40px)/1.1 var(--sans); letter-spacing: -.025em; margin: 18px 0 14px; text-wrap: balance; }
.pd-sum { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 52ch; }
.pd-quote { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin: 28px 0 10px; padding: 20px; border: 1px solid var(--ink); background: var(--card); }
.pd-quote-text { display: grid; gap: 4px; }
.pd-quote .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.pd-quote strong { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.pd-quote .note { max-width: 44ch; font-size: 13px; color: var(--mute); }
.pd-mail { align-self: flex-start; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.pd-mail:hover { color: var(--accent); }
.pd-docs { margin-top: 24px; }
.pd-docs .label { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.pd-docs ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pd-docs li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pd-doc-icon { display: grid; place-items: center; height: 34px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; }
.pd-doc-name { display: grid; gap: 2px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.pd-doc-name small { font-size: 11px; font-weight: 400; color: var(--mute); }
.pd-doc-dl { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.pd-doc-dl:hover { color: var(--accent); }
.pd-solpics { display: grid; gap: 12px; margin-bottom: 12px; }
.pd-solpics figure { margin: 0; border: 1px solid var(--line); background: var(--card); }
.pd-solpics img { width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #fff; }
.pd-solpics figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line); font-weight: 500; font-size: 14px; }
.pd-solpics figcaption span { min-width: 0; overflow-wrap: anywhere; }
.pd-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 0; border-top: 1px solid var(--line); }
.pd-meta div { padding: 14px 12px 0 0; }
.pd-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.pd-meta dd { margin: 4px 0 0; font-size: 13px; }

.pd-detail { padding: 56px 0 80px; }
.pd-info .pd-desc { margin-top: 18px; font-size: 15.5px; line-height: 1.65; }
.pd-info .pd-desc h2 { font-size: 18px; }
.pd-info .pd-desc h3 { font-size: 16px; }
.prose { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 62ch; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding: 0; list-style: none; }
.prose ul > li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.prose ul > li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 8px; height: 1px; background: var(--accent); }

/* ---------- floating WhatsApp button (bottom-left, fixed) ---------- */
.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 10px; height: 56px; min-width: 56px; padding: 0 13px;
  border-radius: 28px; background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22); transition: transform .15s, box-shadow .15s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wa-float-label { display: none; font: 600 14px/1 var(--sans); white-space: nowrap; padding-right: 4px; }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { display: inline; }
@media (max-width: 640px) {
  .wa-float { left: 14px; bottom: 14px; height: 52px; min-width: 52px; padding: 0 11px; }
}

/* ---------- contact page ---------- */
.contact { padding-bottom: 80px; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; border-top: 1px solid var(--ink); padding-top: 32px; }
.ct-label { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.ct-wa { padding: 24px; border: 1px solid var(--ink); background: var(--card); margin-bottom: 28px; }
.ct-number { margin: 10px 0 20px; font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -.01em; }
.ct-list { margin: 0; border-top: 1px solid var(--line); }
.ct-list div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ct-list dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); padding-top: 3px; }
.ct-list dd { margin: 0; font-size: 15px; line-height: 1.6; }
.ct-list dd a:not(.ct-maplink) { border-bottom: 1px solid var(--line-2); }
.ct-list dd a:hover { color: var(--accent); border-color: var(--accent); }
.ct-maplink { display: inline-block; margin-top: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.ct-map { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line-2); background: var(--paper-2); }
.ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- error pages ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.errpage { padding: 96px 32px 120px; }
.err-code { display: inline-block; font-size: 12px; letter-spacing: .1em; padding: 4px 8px; background: var(--ink); color: var(--paper); margin: 0; }
.errpage h1 { font: 600 clamp(30px, 4vw, 48px)/1.1 var(--sans); letter-spacing: -.03em; margin: 24px 0 12px; max-width: 20ch; }
.errpage p { color: var(--ink-2); }

/* ---------- footer ---------- */
.site-foot { background: #121211; color: #d9d9d2; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.foot-label { margin: 0 0 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8c8c84; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.foot-list a:hover { color: var(--accent); }
.foot-list .mono { font-size: 13px; color: #8c8c84; }
.foot-text { margin: 0; font-size: 14px; max-width: 34ch; }
.foot-brand .foot-text { margin-top: 20px; color: #a9a9a1; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 20px; border-top: 1px solid #2a2a27; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8c8c84; }
.site-foot .dim { color: #8c8c84; }
.foot-stats { margin: 0; display: grid; gap: 10px; }
.foot-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; max-width: 220px; padding-bottom: 8px; border-bottom: 1px solid #2a2a27; }
.foot-stats dt { font-size: 13px; color: #a9a9a1; }
.foot-stats dd { margin: 0; font-size: 18px; font-weight: 500; color: #f2f2ee; }

/* partner logos: running strip in the middle of the footer */
.foot-partners { padding: 28px 0 36px; border-top: 1px solid #2a2a27; }
.foot-partners .foot-label { margin-bottom: 16px; }
.partner-run { overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.partner-track { display: flex; width: max-content; animation: partner-run var(--partner-dur, 30s) linear infinite; }
.partner-run:hover .partner-track, .partner-run:focus-within .partner-track { animation-play-state: paused; }
.partner-set { display: flex; gap: 16px; padding: 0 16px 0 0; margin: 0; list-style: none; }
.partner-logo { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 168px; height: 76px; padding: 12px 18px; background: #f6f6f2; transition: transform .15s; }
a.partner-logo:hover { transform: translateY(-2px); }
.partner-logo { overflow: hidden; }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; }
@keyframes partner-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .partner-track { animation: none; }
  .partner-run { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .partner-set[aria-hidden] { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .shell .products-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shell .products-4 > :nth-child(n+7) { display: none; }
}
@media (max-width: 1180px) {
  .feat-row { grid-template-columns: 48px 200px minmax(0, 1fr) 170px; }
  .feat-specs { display: none; }
}
@media (max-width: 980px) {
  .wrap { padding: 0 24px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .shell-side { display: none; }
  .shell-main { padding: 20px 0 0; }
  .home-chips { display: block; }
  .shell .products-4 > :nth-child(n+7) { display: flex; }
  .slide-body { max-width: 82%; }
  .slide-art { width: 70%; opacity: .55; }
  /* The menu moves to its own swipeable row under the header (.nav-m). */
  .nav { display: none; }
  .nav-m { display: block; }
  .cat-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cat-results { grid-column: 1; }
  .filters { display: none; }
  .chips { display: block; }
  .pd-quote { grid-template-columns: minmax(0, 1fr); }
  .pd { grid-template-columns: minmax(0, 1fr); }
  .pd-gallery { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pd-info { padding: 28px 0 36px; }
  .pd-detail { grid-template-columns: 1fr; gap: 48px; }
  .ct-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .results[data-view='list'] .list-head { display: none; }
  .results[data-view='list'] .card {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-areas: 'img sku price' 'img name name' 'img stock stock';
    row-gap: 4px;
  }
  .results[data-view='list'] .card-cat, .results[data-view='list'] .go { display: none; }
}
@media (max-width: 720px) {
  .feat-row { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
  .feat-no { display: none; }
  .feat-end { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; }
  .feat-link { display: none; }
  .feat-name { font-size: 18px; }
  .feat-sum { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .topline-in > span:first-child { display: none; }
  .head-in { gap: 12px; height: 60px; }
  .logo img { height: 28px; }
  .site-head .logo img { height: 26px; }
  .head-search { width: auto; flex: 1; min-width: 0; }
  .head-search kbd { display: none; }
  .head-search input { padding-right: 10px; }
  .head-cta { padding: 0 14px; }
  .site-head .theme-toggle { width: 36px; height: 36px; }
  .sec { padding: 52px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .slide { width: 86cqw; }
  .slide { --pad-x: 18px; --pad-y: 16px; }
  .slide-body { max-width: 100%; }
  .slide-title { font-size: 18px; -webkit-line-clamp: 2; }
  .slide-sub { display: none; }
  .slide-btn { height: 34px; }
  .slide-art { width: 100%; opacity: .28; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-top { padding: 10px; }
  .card-img { margin: 0 10px; }
  .card-body { padding: 12px 10px; }
  .card-specs { display: none; }
  .card-name { font-size: 14px; }
  .go { display: none; }
  .card-foot .ask { width: 100%; justify-content: center; }
  .card-top .stock { font-size: 0; gap: 0; }
  .toolbar { flex-wrap: wrap; gap: 10px; }
  .sort label { display: none; }
  .pd-meta { grid-template-columns: 1fr 1fr; }
  .ct-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ct-wa .btn { width: 100%; }
  .pd-quote .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .partner-logo { width: 128px; height: 60px; padding: 10px 12px; }
  .foot-stats div { max-width: none; }
  .pager > a, .pager > .off { display: none; }
  .pager { justify-content: center; }
}

/* ---------- "Tanya AI" assistant (bottom-right; WhatsApp is bottom-left) ---------- */
.ai-mark {
  display: inline-grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .02em;
}
.ai-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 18px 0 16px;
  border: 0; background: var(--ink); color: var(--paper); cursor: pointer;
  font: 600 14px/1 var(--sans); box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: transform .15s, background-color .15s;
}
.ai-fab:hover { transform: translateY(-2px); background: var(--accent); color: #fff; }
.ai-fab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ai-open .ai-fab { display: none; }

.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 18px; }
.pd-buy {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px;
  background: var(--accent); color: #fff; font: 600 15px/1 var(--sans);
  transition: background-color .15s, color .15s;
}
.pd-buy:hover { background: var(--ink); color: var(--paper); }
.pd-buy:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.ai-ask {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 8px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  font: 500 13.5px/1 var(--sans); transition: background-color .15s, color .15s;
}
.ai-ask:hover { background: var(--ink); color: var(--paper); }

.ai-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 61;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}
.ai-head { display: flex; align-items: center; gap: 11px; padding: 12px 12px 12px 14px; background: var(--ink); color: var(--paper); }
.ai-title { min-width: 0; flex: 1; }
.ai-title strong { display: block; font-size: 14px; font-weight: 600; }
.ai-title small { display: block; margin-top: 3px; font-size: 11px; color: #a3a39b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme='dark'] .ai-title small { color: #5d5d57; }
.ai-x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: none; color: inherit; cursor: pointer; opacity: .75; }
.ai-x:hover { opacity: 1; }

.ai-body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; background: var(--paper-2); }
.ai-msg { display: flex; flex-direction: column; gap: 6px; max-width: 90%; }
.ai-msg.is-me { align-self: flex-end; align-items: flex-end; }
.ai-msg.is-ai { align-self: flex-start; }
.ai-bubble {
  padding: 10px 12px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere;
  background: var(--card); border: 1px solid var(--line);
}
.is-me .ai-bubble { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.is-err .ai-bubble { border-color: var(--bad); }
.ai-bubble p { margin: 0 0 8px; }
.ai-bubble p:last-child, .ai-bubble ul:last-child, .ai-bubble ol:last-child { margin-bottom: 0; }
.ai-bubble ul, .ai-bubble ol { margin: 0 0 8px; padding-left: 20px; }
.ai-bubble li { margin: 2px 0; }
.ai-bubble strong { font-weight: 600; }
.ai-bubble code { font: 12.5px var(--mono); background: var(--paper-2); padding: 1px 4px; }
.ai-cards { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.ai-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent); font-size: 13px; font-weight: 500; line-height: 1.35;
}
.ai-card small { flex-shrink: 0; font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
a.ai-card:hover { background: var(--ink); border-color: var(--ink); border-left-color: var(--accent); color: var(--paper); }
a.ai-card:hover small { color: inherit; }
.ai-dots { display: flex; gap: 5px; align-items: center; min-height: 22px; }
.ai-dots i { width: 6px; height: 6px; background: var(--mute); animation: aidot 1s infinite ease-in-out; }
.ai-dots i:nth-child(2) { animation-delay: .15s; }
.ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aidot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.ai-foot { display: flex; gap: 0; padding: 10px; border-top: 1px solid var(--line-2); background: var(--paper); }
.ai-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 12px; font: 14px var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-right: 0; outline: none; border-radius: 0;
}
.ai-input:focus { border-color: var(--ink); }
.ai-send { flex: none; display: grid; place-items: center; width: 46px; height: 42px; border: 0; background: var(--accent); color: #fff; cursor: pointer; }
.ai-send:hover { background: var(--ink); color: var(--paper); }
.ai-note { margin: 0; padding: 0 12px 9px; font-size: 10.5px; color: var(--mute); letter-spacing: .02em; background: var(--paper); }

@media (max-width: 640px) {
  .ai-fab { right: 14px; bottom: 14px; height: 52px; padding: 0 15px 0 13px; }
  .ai-panel { right: 0; left: 0; bottom: 0; width: auto; height: min(88vh, calc(100dvh - 12px)); border-left: 0; border-right: 0; }
  .ai-open .wa-float { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ai-dots i { animation: none; } }
.pd-actions .ai-ask { height: 46px; }

/* ---------- Solution images: product-page cover + full-screen viewer ---------- */
.pd-solcover { position: relative; display: block; }
.pd-solcount { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; background: var(--ink); color: var(--paper); font-size: 11px; letter-spacing: .04em; }
.pd-solthumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; padding: 0 12px 12px; }
.pd-solthumbs a { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: #fff; }
.pd-solthumbs img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.pd-solthumbs a:hover { border-color: var(--accent); }

.sv-body { background: #0d0d0c; color: #ececE6; overflow: hidden; }
.sv { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; }
.sv-top { display: flex; align-items: center; gap: 20px; padding: 12px 20px; border-bottom: 1px solid #262624; }
.sv-brand { flex-shrink: 0; width: 120px; }
.sv-title { min-width: 0; flex: 1; }
.sv-title p { margin: 0; font-size: 11px; color: #8c8c84; letter-spacing: .06em; text-transform: uppercase; }
.sv-title h1 { margin: 2px 0 0; font: 600 16px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-back { flex-shrink: 0; font-size: 12px; color: #c3c3bb; border: 1px solid #3d3d39; padding: 8px 12px; }
.sv-back:hover { border-color: var(--accent); color: #fff; }
.sv-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 16px 72px; min-height: 0; touch-action: pan-y; user-select: none; }
.sv-slide { margin: 0; width: 100%; height: 100%; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-width: 0; min-height: 0; }
.sv-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; }
.sv-nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 64px; border: 1px solid #3d3d39; background: rgba(18, 18, 17, .85); color: #ececE6; cursor: pointer; transition: background-color .15s, border-color .15s; }
.sv-nav:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.sv-prev { left: 14px; }
.sv-next { right: 14px; }
.sv-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 12px 20px 14px; border-top: 1px solid #262624; }
.sv-caption { display: flex; align-items: baseline; gap: 14px; min-width: 0; font-size: 14px; }
.sv-caption > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-count { color: var(--accent); font-size: 12px; flex-shrink: 0; }
.sv-orig { font-size: 12px; color: #c3c3bb; text-decoration: underline; text-underline-offset: 3px; }
.sv-orig:hover { color: #fff; }
.sv-thumbs { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.sv-thumb { flex: none; width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.sv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sv-thumb:hover { opacity: .9; }
.sv-thumb.on { border-color: var(--accent); opacity: 1; }
@media (max-width: 640px) {
  .sv-top { padding: 10px 14px; gap: 12px; }
  .sv-brand { display: none; }
  .sv-stage { padding: 10px 8px; }
  .sv-nav { width: 40px; height: 52px; }
  .sv-prev { left: 6px; }
  .sv-next { right: 6px; }
  .sv-bar { padding: 10px 14px 12px; }
  .sv-thumb { width: 64px; }
}
@media (max-width: 480px) {
  .head-in { gap: 8px; }
  .site-head .logo img { height: 22px; }
}

/* ---------- Solution page (gallery of every product's Solution files) ---------- */
.solutions { padding-bottom: 80px; }
.sol-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.sol-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2); background: var(--card); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.sol-jump a span { color: var(--mute); }
.sol-jump a:hover { border-color: var(--ink); }
.sol-group { margin-bottom: 44px; scroll-margin-top: 90px; }
.sol-group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font: 600 22px/1.2 var(--sans); letter-spacing: -.01em; }
.sol-group-title small { font-size: 11px; font-weight: 400; color: var(--mute); letter-spacing: .06em; }
.sol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sol-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--card); }
.sol-cover { position: relative; display: block; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); }
.sol-cover img { width: 100%; height: 100%; object-fit: contain; }
.sol-cover-pdf { display: grid; place-items: center; background: var(--paper-2); }
.sol-cover-pdf span { padding: 10px 14px; background: var(--bad); color: #fff; font-weight: 600; letter-spacing: .06em; }
.sol-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
.sol-sku { margin: 0; font-size: 11px; color: var(--mute); letter-spacing: .05em; }
.sol-body h3 { margin: -4px 0 0; font: 600 16px/1.3 var(--sans); }
.sol-body h3 a:hover { color: var(--accent); }
.sol-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sol-thumbs a { aspect-ratio: 4 / 3; border: 1px solid var(--line); background: #fff; }
.sol-thumbs a:hover { border-color: var(--accent); }
.sol-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sol-files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sol-files li { border-bottom: 1px solid var(--line); }
.sol-files a { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.sol-files a:hover { color: var(--accent); }
.sol-files small { margin-left: auto; font-size: 11px; color: var(--mute); }
.sol-ic { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 22px; background: var(--ink); color: var(--paper); font-size: 9.5px; font-weight: 600; letter-spacing: .04em; }
.sol-ic.pdf { background: var(--bad); color: #fff; }
.sol-prod { margin-top: auto; padding-top: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.sol-prod:hover { color: var(--accent); }
.sol-empty { padding: 64px 20px; text-align: center; border: 1px dashed var(--line-2); }
.sol-empty .mono { margin: 0; font-size: 12px; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; }
.sol-empty p { margin: 8px 0 20px; }

/* ---------- Software page ---------- */
.software { padding-bottom: 80px; }
.sw-section { margin-bottom: 48px; }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.sw-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--card); transition: border-color .15s; }
.sw-card:hover { border-color: var(--ink); }
.sw-media { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 8px; background: #fff; border-bottom: 1px solid var(--line); }
.sw-media img { width: 100%; height: 100%; object-fit: contain; }
.sw-media > .mono { font-size: 18px; color: var(--mute); }
.sw-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; }
.sw-body h2 { margin: 0; font: 600 17px/1.3 var(--sans); }
.sw-body p { margin: 0; font-size: 14px; color: var(--ink-2); }
.sw-dl { align-self: flex-start; margin-top: auto; gap: 7px; }
.sw-grid-m { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sw-card-m .sw-media { aspect-ratio: 1 / 1; padding: 12px; }
.sw-link { margin-top: auto; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.sw-link:hover { color: var(--accent); }
.sw-more { margin: 0; padding: 18px 20px; border: 1px dashed var(--line-2); font-size: 14px; }
.sw-more a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- language switch (EN / ID) ---------- */
.lang-sw { display: inline-flex; flex-shrink: 0; border: 1px solid var(--line-2); }
.lang-sw a { display: grid; place-items: center; min-width: 34px; height: 38px; padding: 0 8px; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--mute); }
.lang-sw a + a { border-left: 1px solid var(--line-2); }
.lang-sw a:hover { color: var(--ink); }
.lang-sw a.on { background: var(--ink); color: var(--paper); }
.nav-m .lang-sw { flex: none; margin: 7px 12px 7px 0; padding: 0; }
.nav-m .lang-sw a { height: 26px; min-width: 30px; padding: 0 6px; font-size: 11px; }
.nav-m .lang-sw a::after { display: none; }
@media (max-width: 980px) { .lang-head { display: none; } }
.pd-id .pd-views { margin-left: auto; }
.pd-id .pd-views + .stock { margin-left: 12px; }

/* ---------- homepage landing area (admin: Landing page) ---------- */
.landing { display: grid; gap: 20px; }
.lp-block { margin: 0; }
.lp-img, .lp-img img { display: block; width: 100%; height: auto; }
a.lp-img { border: 1px solid var(--line); }
a.lp-img:hover { border-color: var(--ink); }
img.lp-img { border: 1px solid var(--line); }
.lp-video { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.lp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lp-poster { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.lp-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .15s; }
.lp-poster:hover img { opacity: 1; }
.lp-cap { display: grid; gap: 4px; padding: 12px 2px 0; }
.lp-cap strong { font: 600 18px/1.3 var(--sans); letter-spacing: -.01em; }
.lp-cap span { font-size: 14px; color: var(--ink-2); }
.lp-poster:hover .pd-play { transform: scale(1.08); }

/* ---------- share (product page) ---------- */
.share { position: relative; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer;
  font: 500 13.5px/1 var(--sans); transition: background-color .15s, color .15s, border-color .15s;
}
.share-btn:hover, .share-btn[aria-expanded='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.share-menu {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px;
  display: grid; padding: 6px; background: var(--card); border: 1px solid var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}
.share-menu a, .share-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none;
  color: var(--ink); font: 500 14px/1.2 var(--sans); text-align: left; cursor: pointer;
}
.share-menu a:hover, .share-menu button:hover { background: var(--paper-2); }
.share-menu button[data-share-copy] { border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 11px; }
.share-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex-shrink: 0; margin: 0 2px; }
:root[data-theme='dark'] .share-dot[style*='#121211'] { background: #ececE6; }

/* landing slider (more than one block): manual, with page dots */
.lp-viewport { position: relative; }
.lp-slider .lp-track {
  display: flex; align-items: flex-start; gap: 0; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.lp-slider .lp-track::-webkit-scrollbar { display: none; }
.lp-slider .lp-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lp-slider .lp-block { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
/* every slide shares one 16:9 frame so the slider doesn't jump in height */
.lp-slider .lp-img { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); }
.lp-slider .lp-img img, .lp-slider img.lp-img { width: 100%; height: 100%; object-fit: contain; }
.lp-arrows { position: absolute; z-index: 3; top: 0; left: 0; right: 0; aspect-ratio: 16 / 9; pointer-events: none; }
.lp-arrow {
  position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; pointer-events: auto;
  margin-top: -22px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--card); color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18); cursor: pointer; transition: background-color .15s, color .15s, opacity .15s;
}
.lp-prev { left: 10px; }
.lp-next { right: 10px; }
.lp-arrow:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lp-arrow:disabled { opacity: 0; pointer-events: none; }
.lp-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 0; }
.lp-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: width .2s, background-color .2s; }
.lp-dot.on { width: 28px; background: var(--accent); }
.lp-dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 640px) { .lp-arrow { display: none; } }
.ct-wa .btn { margin-top: 14px; }
