/* ===========================================================
   EASY WARE ELECTRONICS — Schematic Workshop
   Custom homepage preview. Design system in this single file.
   =========================================================== */

/* TOKENS */
:root {
  --paper: #FAFAF7;
  --paper-2: #F2F1EC;
  --paper-3: #E8E6E0;
  --surface: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #2A2A28;
  --ink-3: #5C5C58;
  --ink-4: #9A9A95;
  --edge: #E8E6E0;
  --edge-2: #D4D2CC;
  --grid: rgba(10,10,10,0.05);
  --red: #E63329;
  --red-deep: #B7211A;
  --red-2: #FF5447;
  --red-soft: #FFE8E5;
  --green: #1A7F37;
  --gold: #C9A44A;
  --pcb: #0E3324;
  --pcb-2: #144632;

  --ff-display: "Funnel Display", "Inter Display", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --t-fast: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-base: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.2, 0.8, 0.2, 1);

  --container-max: 1320px;
  --container-pad: clamp(1rem, 4vw, 2rem);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: radial-gradient(circle, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* PRIMITIVES */
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }
section { padding-block: clamp(3rem, 6vw, 5rem); position: relative; }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--ff-body); font-weight: 700;
  font-size: 0.95rem; letter-spacing: -0.005em;
  border-radius: 999px;
  transition: all var(--t-fast);
  cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary { background: var(--red); color: white; }
.btn--primary:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 12px 24px -10px var(--red); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn .icn { width: 1em; height: 1em; }

/* Inline icon: explicit `display` overrides the global `img, svg { display: block }`
   reset so SVGs inside text (utilbar, links, buttons) flow with the text instead
   of breaking onto a new line. */
.icn { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }

/* BRAND MARK */
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand__mark {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: -3px;
  border: 1px dashed var(--red);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.brand:hover .brand__mark::after { opacity: 0.5; }
.brand__mark svg { width: 24px; height: 24px; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__type strong {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.brand__type span {
  font-family: var(--ff-mono);
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

/* Image-mode brand (when assets/img/logo.* exists)
 * Selectors are doubled (.brand.brand--img / .brand .brand__img) so they
 * beat WooCommerce's `.woocommerce-page img { height:auto; max-width:100% }`
 * (specificity 0,1,1) on cart/checkout pages.
 */
.brand.brand--img { gap: 0; }
.brand .brand__img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform var(--t-fast);
}
.brand.brand--img:hover .brand__img { transform: scale(1.02); }
@media (max-width: 880px) {
  .brand .brand__img { height: 38px; }
}
.footer .brand .brand__img { height: 56px; max-width: 240px; }

/* UTILITY BAR */
.utilbar {
  background: var(--ink); color: var(--paper);
  font-size: 0.78rem; font-family: var(--ff-mono);
  letter-spacing: 0.02em;
}
.utilbar__inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 36px; gap: 1rem;
}
/* 404 page */
.ew-404 {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 6vw, 6rem) 0;
  text-align: center;
}
.ew-404__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
}
.ew-404__code {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(6rem, 16vw, 12rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--red);
  position: relative;
}
.ew-404__code::after {
  content: "";
  position: absolute;
  inset: auto -1rem -0.5rem -1rem;
  height: 6px;
  background: var(--red);
  opacity: 0.15;
  transform: skewX(-8deg);
}
.ew-404__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.ew-404__lede {
  color: var(--ink-3);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.55;
  margin: 0;
}
.ew-404__cta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.ew-404__search {
  margin-top: 1rem;
  width: 100%;
  max-width: 480px;
}

.utilbar__group { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.utilbar__group > span,
.utilbar__group > a { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.utilbar__sep { width: 4px; height: 4px; background: var(--red); border-radius: 50%; flex-shrink: 0; }
.utilbar__pipe { color: rgba(250,250,247,0.3); margin-inline: -0.35rem; flex-shrink: 0; }
.utilbar a { display: inline-flex; align-items: center; gap: 0.4rem; transition: color var(--t-fast); }
.utilbar a:hover { color: var(--red-2); }
@media (max-width: 720px) { .utilbar { display: none; } }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}
.header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  height: 80px;
}
@media (max-width: 880px) {
  .header__row { gap: 0.6rem; height: 64px; }
  .brand__type span { display: none; }
  .brand__type strong { font-size: 1.2rem; }
}

/* Header search form. Scoped to `form.search` so it doesn't collide with
   `body.search` (which WordPress adds on any search-results route). */
form.search {
  position: relative;
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  height: 50px;
  max-width: 640px;
  margin-inline: auto;
  width: 100%;
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
form.search:focus-within { box-shadow: 0 0 0 4px var(--red-soft); border-color: var(--red); }
.search__icon { color: var(--ink-3); margin-right: 0.5rem; }
.search__input { height: 100%; font-size: 0.95rem; }
.search__input::placeholder { color: var(--ink-4); }
.search__cat {
  font-family: var(--ff-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 0.85rem;
  border-left: 1px solid var(--edge-2);
  display: flex; align-items: center; gap: 0.4rem;
  height: 22px; align-self: center;
  white-space: nowrap;
}
.search__btn {
  background: var(--red); color: white;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background var(--t-fast), transform var(--t-fast);
  flex-shrink: 0;
}
.search__btn:hover { background: var(--red-deep); transform: rotate(-8deg); }
.search__btn svg { width: 16px; height: 16px; }
@media (max-width: 880px) { .search__cat { display: none; } }

/* Search autocomplete dropdown — anchored to form.search */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  box-shadow: 0 24px 48px -16px rgba(10,10,10,0.18);
  z-index: 60;
  max-height: min(560px, 70vh);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-4) transparent;
}
.search-suggest[hidden] { display: none; }
.search-suggest::-webkit-scrollbar { width: 6px; }
.search-suggest::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 3px; }

.search-suggest__list {
  list-style: none;
  margin: 0; padding: 0;
}
.search-suggest__item {
  border-bottom: 1px solid var(--edge);
}
.search-suggest__item:last-child { border-bottom: 0; }

.search-suggest__link {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.95rem;
  color: var(--ink);
  transition: background var(--t-fast);
}
.search-suggest__item.is-active .search-suggest__link,
.search-suggest__link:hover { background: var(--paper-2); }

.search-suggest__thumb {
  width: 48px; height: 48px;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--paper);
  background-size: 12px 12px;
  border: 1px solid var(--edge);
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.search-suggest__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.search-suggest__body {
  display: flex; flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.search-suggest__sku {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggest__name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-suggest__price {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.search-suggest__price.is-sale { color: var(--red); }

/* Highlighted match — yellow band like the LCSC reference */
.search-suggest mark {
  background: #fff3a3;
  color: var(--ink);
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}

.search-suggest__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--paper-2);
  border-top: 1.5px solid var(--ink);
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  transition: background var(--t-fast), gap var(--t-fast);
}
.search-suggest__more:hover {
  background: var(--ink);
  color: var(--paper);
  gap: 0.85rem;
}
.search-suggest__more svg { width: 14px; height: 14px; flex-shrink: 0; }
.search-suggest__more[hidden] { display: none; }

.search-suggest__empty {
  padding: 1.25rem 1rem;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-align: center;
}
.search-suggest__empty[hidden] { display: none; }

/* Mobile adjustments — dropdown can extend full container width */
@media (max-width: 880px) {
  .search-suggest {
    max-height: 60vh;
  }
  .search-suggest__link {
    grid-template-columns: 40px 1fr auto;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
  }
  .search-suggest__thumb { width: 40px; height: 40px; }
  .search-suggest__name { font-size: 0.88rem; }
  .search-suggest__price { font-size: 0.78rem; }
}

.header__actions { display: flex; align-items: center; gap: 0.15rem; }
.icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  color: var(--ink);
  transition: background var(--t-fast);
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn .icn { width: 20px; height: 20px; }
.icon-btn__badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 20px; height: 20px;
  background: var(--red); color: white;
  font-family: var(--ff-mono);
  font-size: 0.66rem; font-weight: 700;
  border-radius: 999px;
  display: grid; place-items: center;
  padding: 0 5px;
  border: 2px solid var(--paper);
  transition: transform var(--t-fast);
}
.icon-btn--cart:hover .icon-btn__badge { transform: scale(1.15); }
.header__cart-text {
  display: none;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--edge-2);
}
.header__cart-text strong { display: block; color: var(--red); font-weight: 700; }
@media (min-width: 1100px) { .header__cart-text { display: block; } }

/* CATEGORY RIBBON */
.ribbon {
  background: var(--paper);
  border-bottom: 1px solid var(--edge);
  position: sticky; top: 80px; z-index: 40;
  /* visible so the cats-menu panel can extend below the ribbon */
}
@media (max-width: 880px) { .ribbon { top: 64px; } }
.ribbon__layout {
  display: flex; align-items: stretch;
  gap: 0;
  height: 48px;
}
.ribbon__inner {
  flex: 1;
  min-width: 0;
  display: flex; align-items: center;
  height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  /* mask the right edge so categories visibly fade out, hinting at scroll */
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 32px), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 32px), transparent 100%);
}
.ribbon__inner::-webkit-scrollbar { display: none; }
.ribbon__item {
  font-weight: 600; font-size: 0.85rem;
  color: var(--ink-2);
  padding: 0 1.1rem;
  height: 100%;
  display: flex; align-items: center; gap: 0.4rem;
  border-right: 1px solid var(--edge);
  white-space: nowrap; flex-shrink: 0;
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.ribbon__item:hover { color: var(--red); background: var(--paper-2); }
.ribbon__item--hot { color: var(--red); }
.ribbon__item--hot::before {
  content: ""; width: 6px; height: 6px;
  background: var(--red); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.6); }
}

/* SEMUA KATEGORI mega menu (leading item in the ribbon) ----- */
.cats-menu {
  position: relative;
  flex-shrink: 0;
  display: flex; align-items: center;
  border-right: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.cats-menu__trigger {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0 1.25rem;
  height: 100%;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  color: var(--paper);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.cats-menu__trigger:hover,
.cats-menu__trigger[aria-expanded="true"] {
  background: var(--red);
  color: white;
}
.cats-menu__bars { width: 16px; height: 16px; flex-shrink: 0; }
.cats-menu__caret {
  width: 12px; height: 12px;
  transition: transform var(--t-fast);
  margin-left: 0.15rem;
}
.cats-menu__trigger[aria-expanded="true"] .cats-menu__caret { transform: rotate(180deg); }

/* Dropdown panel — anchored under the trigger.
   IMPORTANT: do NOT set overflow on the panel itself. Setting `overflow-y: auto`
   would force overflow-x to also clip (per CSS spec), which would clip the
   `.cats-menu__sub` fly-out that extends past the panel's right edge.
   If we ever need to scroll a very long parent list, scroll the inner
   `.cats-menu__list` (overflow:visible parent + overflow:auto child works). */
.cats-menu__panel {
  position: absolute;
  top: 100%; left: 0;
  width: 320px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-top: 0;
  box-shadow: 0 24px 48px -16px rgba(10,10,10,0.18);
  z-index: 60;
}
.cats-menu__panel[hidden] { display: none; }

.cats-menu__list {
  list-style: none;
  margin: 0; padding: 0;
}
.cats-menu__item {
  border-bottom: 1px solid var(--edge);
  position: relative;
}
.cats-menu__item:last-child { border-bottom: 0; }
.cats-menu__link {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: background var(--t-fast), color var(--t-fast);
}
.cats-menu__item:hover > .cats-menu__link,
.cats-menu__item:focus-within > .cats-menu__link,
.cats-menu__item.is-open > .cats-menu__link {
  background: var(--paper-2);
  color: var(--red);
}
.cats-menu__ico {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--ink-3);
}
.cats-menu__ico svg { width: 100%; height: 100%; }
.cats-menu__item:hover .cats-menu__ico,
.cats-menu__item.is-open .cats-menu__ico { color: var(--red); }

.cats-menu__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cats-menu__count {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-3);
  padding: 2px 7px;
  background: var(--paper-2);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.cats-menu__item:hover .cats-menu__count,
.cats-menu__item.is-open .cats-menu__count {
  background: white;
  color: var(--red);
}
.cats-menu__arrow {
  width: 12px; height: 12px;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform var(--t-fast), color var(--t-fast);
}
.cats-menu__item:hover .cats-menu__arrow,
.cats-menu__item.is-open .cats-menu__arrow {
  color: var(--red);
  transform: translateX(2px);
}

/* Sub-panel (children) — fly-out to the right on hover at desktop */
.cats-menu__sub {
  position: absolute;
  top: -1.5px;        /* align with parent border */
  left: 100%;
  width: 320px;
  min-height: 100%;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-left: 0;
  box-shadow: 0 24px 48px -16px rgba(10,10,10,0.18);
  padding: 1.25rem;
  display: none;
  z-index: 1;
}
.cats-menu__item:hover > .cats-menu__sub,
.cats-menu__item:focus-within > .cats-menu__sub,
.cats-menu__item.is-open > .cats-menu__sub { display: block; }

.cats-menu__sub-head {
  display: flex; flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--edge);
}
.cats-menu__sub-kicker {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
}
.cats-menu__sub-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.cats-menu__sub-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.cats-menu__sub-list li { margin: 0; }
.cats-menu__sub-list a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0.55rem 0;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--edge-2);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.cats-menu__sub-list a:hover {
  color: var(--red);
  padding-left: 0.4rem;
}
.cats-menu__sub-list em {
  font-style: normal;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
}
.cats-menu__sub-all {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.85rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  transition: background var(--t-fast), gap var(--t-fast);
}
.cats-menu__sub-all:hover { background: var(--red); gap: 0.6rem; }
.cats-menu__sub-all svg { width: 12px; height: 12px; }

/* Mobile: lay the trigger flat in the ribbon, hide the right-side fly-out
   and use an inline accordion behaviour driven by .is-open. */
@media (max-width: 720px) {
  .cats-menu__trigger {
    padding: 0 0.85rem;
    font-size: 0.82rem;
  }
  .cats-menu__bars { width: 14px; height: 14px; }
  .cats-menu__panel {
    /* full-width sheet anchored under the ribbon */
    position: fixed;
    top: calc(64px + 48px);   /* header (mobile) + ribbon */
    left: 0; right: 0;
    width: auto;
    max-height: calc(100vh - 64px - 48px);
    border-left: 0; border-right: 0;
  }
  .cats-menu__sub {
    position: static;
    width: 100%;
    border: 0;
    border-top: 1px dashed var(--edge);
    box-shadow: none;
    padding: 0.75rem 1rem 1rem 2.5rem;
    background: var(--paper);
  }
  /* Tap to expand on mobile (not hover) */
  .cats-menu__item:hover > .cats-menu__sub { display: none; }
  .cats-menu__item.is-open > .cats-menu__sub { display: block; }
  .cats-menu__item:hover > .cats-menu__link,
  .cats-menu__item:focus-within > .cats-menu__link {
    background: transparent;
    color: var(--ink);
  }
}

/* HERO */
.hero {
  position: relative;
  padding: clamp(2rem, 3.5vw, 3rem) 0 clamp(2.5rem, 4.5vw, 4rem);
  overflow: hidden;
}
.hero__crosshair {
  position: absolute;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--ink-4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__crosshair--tl { top: 1rem; left: var(--container-pad); }
.hero__crosshair--tr { top: 1rem; right: var(--container-pad); text-align: right; }
.hero__crosshair--br { bottom: 1rem; right: var(--container-pad); text-align: right; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.25rem;
  align-items: center;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
}
.hero__head { display: flex; flex-direction: column; gap: 1.25rem; max-width: 600px; }
.hero__sec-num {
  font-family: var(--ff-mono);
  font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 0.75rem;
}
.hero__sec-num strong { color: var(--red); font-weight: 700; }
.hero__sec-num::after {
  content: ""; flex: 1; max-width: 200px;
  background: linear-gradient(to right, var(--ink-4) 50%, transparent 50%);
  background-size: 6px 1px;
  height: 1px;
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.hero__title em {
  font-style: normal;
  color: var(--red);
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6%;
  height: 8px;
  background: var(--red);
  opacity: 0.14;
  z-index: -1;
  transform: skewX(-8deg);
}
.hero__lede {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--ink-2);
  max-width: 520px;
  line-height: 1.55;
}
.hero__cta { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 0; align-items: stretch;
  margin-top: 0.25rem;
  border-top: 1.5px solid var(--ink);
  padding-top: 1rem;
}
.hero__stat {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 0.15rem;
  padding-right: 1rem;
  border-right: 1px solid var(--edge-2);
}
.hero__stat:last-child { border-right: 0; padding-right: 0; }
.hero__stat:not(:first-child) { padding-left: 1rem; }
.hero__stat strong {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.hero__stat span {
  font-family: var(--ff-mono);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.25rem;
}

/* hero PCB illustration */
.hero__viz {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.hero__viz svg.pcb { width: 100%; height: 100%; }
.hero__viz svg.lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
}
.hero__cal {
  position: absolute;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  white-space: nowrap;
  z-index: 4;
  opacity: 0;
  animation: fade-up 600ms var(--t-fast) forwards;
}
.hero__cal::before {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}
.hero__cal--1 { top: 12%; right: -2%; animation-delay: 1s; }
.hero__cal--1::before { left: -10px; top: 50%; transform: translateY(-50%); }
.hero__cal--2 { top: 38%; left: -10%; animation-delay: 1.3s; }
.hero__cal--2::before { right: -10px; top: 50%; transform: translateY(-50%); }
.hero__cal--3 { bottom: 28%; right: 0%; animation-delay: 1.6s; }
.hero__cal--3::before { left: -10px; top: 50%; transform: translateY(-50%); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__spec-card {
  position: absolute;
  bottom: -6%;
  left: -4%;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  padding: 1rem 1.1rem;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  box-shadow: 8px 8px 0 var(--ink);
  min-width: 240px;
  z-index: 4;
}
.hero__spec-card strong { font-weight: 700; color: var(--ink); }
.hero__spec-card .row {
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--ink-3); font-size: 0.72rem;
}
.hero__spec-card .row em { font-style: normal; color: var(--ink); font-weight: 600; }
.hero__spec-card .pill {
  display: inline-block; padding: 2px 8px;
  background: var(--red); color: white;
  border-radius: 2px;
  font-size: 0.65rem; letter-spacing: 0.05em;
  text-transform: uppercase;
  align-self: flex-start;
}
@media (max-width: 980px) { .hero__spec-card { left: 0; } }
@media (max-width: 540px) {
  .hero__cal { font-size: 0.65rem; padding: 2px 6px; }
  .hero__spec-card { font-size: 0.72rem; }
}

/* MARQUEE */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}
.marquee__track {
  display: flex; gap: 3rem; align-items: center;
  height: 52px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee__item {
  font-family: var(--ff-mono);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 1rem;
}
.marquee__star { color: var(--red); font-size: 1.1rem; }

/* SECTION HEAD */
.sec-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 2rem; margin-bottom: 2.5rem;
}
@media (max-width: 720px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
.sec-head__intro { display: flex; flex-direction: column; gap: 0.85rem; max-width: 60%; }
@media (max-width: 720px) { .sec-head__intro { max-width: 100%; } }
.sec-head__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.sec-head__title em { font-style: normal; color: var(--red); }
.sec-head__sub { color: var(--ink-3); font-size: 0.95rem; max-width: 480px; }
.sec-head__link {
  font-family: var(--ff-mono);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--ink);
  transition: color var(--t-fast), border-color var(--t-fast), gap var(--t-fast);
}
.sec-head__link:hover { color: var(--red); border-color: var(--red); gap: 0.8rem; }

/* CATEGORIES GRID */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--ink);
  border-left: 1.5px solid var(--ink);
}
@media (max-width: 880px) { .cats { grid-template-columns: repeat(2, 1fr); } }
.cat {
  position: relative;
  padding: 1.85rem 1.4rem 1.4rem;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 230px;
  transition: background var(--t-fast);
  overflow: hidden;
}
.cat::before, .cat::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--red);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.cat::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.cat::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.cat:hover { background: var(--paper-2); }
.cat:hover::before, .cat:hover::after { opacity: 1; }
.cat__num {
  font-family: var(--ff-mono);
  font-size: 0.65rem; letter-spacing: 0.12em;
  color: var(--ink-3);
}
.cat__icon {
  width: 56px; height: 56px;
  color: var(--ink);
  transition: color var(--t-fast), transform var(--t-base);
}
.cat:hover .cat__icon { color: var(--red); transform: rotate(-6deg) scale(1.05); }
.cat__icon svg { width: 100%; height: 100%; }
.cat__name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: auto;
}
.cat__count {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 0.35rem;
}
.cat__count em { font-style: normal; color: var(--red); font-weight: 600; }
.cat__arrow {
  position: absolute;
  bottom: 1.25rem; right: 1.25rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transform: translateY(8px);
  opacity: 0;
  transition: all var(--t-fast);
}
.cat:hover .cat__arrow { opacity: 1; transform: translateY(0); background: var(--red); }
.cat__arrow svg { width: 13px; height: 13px; }

/* FLASH SALE */
.flash {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--ink);
}
.flash::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, transparent 48%, rgba(230,51,41,0.08) 49%, rgba(230,51,41,0.08) 51%, transparent 52%);
  background-size: 38px 38px;
  pointer-events: none;
  animation: scroll-stripes 30s linear infinite;
}
@keyframes scroll-stripes {
  to { background-position: 380px 380px; }
}
.flash__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
  position: relative; z-index: 2;
}
.flash__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1;
  display: flex; align-items: center; gap: 0.75rem;
}
.flash__bolt {
  width: 40px; height: 40px;
  background: var(--red); color: white;
  display: grid; place-items: center;
  border-radius: 50%;
  animation: shake 0.6s ease-in-out infinite alternate;
}
.flash__bolt svg { width: 18px; height: 18px; }
@keyframes shake {
  0% { transform: rotate(-8deg) scale(1); }
  100% { transform: rotate(8deg) scale(1.05); }
}
.flash__timer {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--ff-mono);
}
.flash__timer-label {
  font-size: 0.7rem; letter-spacing: 0.12em;
  color: rgba(250,250,247,0.5);
  text-transform: uppercase;
  margin-right: 0.5rem;
}
.flash__digit {
  background: var(--paper); color: var(--ink);
  padding: 0.5rem 0.6rem;
  font-weight: 700; font-size: 1.15rem;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: center;
}
.flash__colon { color: var(--red); font-weight: 700; font-size: 1.1rem; }
.flash__rail {
  display: flex; gap: 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
  padding-bottom: 0.75rem;
  position: relative; z-index: 2;
}
.flash__rail::-webkit-scrollbar { height: 6px; }
.flash__rail::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.flash__rail::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

.flash__card {
  flex-shrink: 0;
  width: 240px;
  background: var(--paper);
  color: var(--ink);
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  position: relative;
  transition: transform var(--t-fast);
}
.flash__card::after {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color var(--t-fast);
}
.flash__card:hover { transform: translateY(-2px); }
.flash__card:hover::after { border-color: var(--red); }
.flash__pct {
  position: absolute;
  top: 0; right: 0;
  background: var(--red); color: white;
  font-family: var(--ff-mono); font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.7rem;
  letter-spacing: -0.01em;
  z-index: 2;
}
.flash__img {
  aspect-ratio: 1;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--surface);
  background-size: 14px 14px;
  display: grid; place-items: center;
  border: 1px solid var(--edge);
}
.flash__img svg { width: 78%; height: 78%; }
.flash__sku {
  font-family: var(--ff-mono);
  font-size: 0.65rem; letter-spacing: 0.08em;
  color: var(--ink-3);
}
.flash__name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  min-height: 2.4em;
}
.flash__price-row { display: flex; align-items: baseline; gap: 0.5rem; }
.flash__old {
  font-size: 0.78rem;
  text-decoration: line-through;
  color: var(--ink-4);
  font-family: var(--ff-mono);
}
.flash__new {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--red);
  letter-spacing: -0.02em;
}
.flash__bar { background: var(--edge); height: 5px; border-radius: 999px; overflow: hidden; }
.flash__bar-fill { background: var(--red); height: 100%; border-radius: 999px; }
.flash__bar-text {
  font-family: var(--ff-mono);
  font-size: 0.65rem; color: var(--ink-3);
  display: flex; justify-content: space-between;
}

/* TABS + PRODUCTS */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 0;
  flex-wrap: wrap;
}
.tabs__btn {
  font-family: var(--ff-display);
  font-weight: 600; font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.85rem 0;
  margin-right: 1.75rem;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  transform: translateY(2px);
  transition: color var(--t-fast), border-color var(--t-fast);
  position: relative;
}
.tabs__btn--active { color: var(--ink); border-color: var(--red); }
.tabs__btn--active::before {
  content: "→ "; color: var(--red); font-family: var(--ff-mono); font-weight: 700;
}
.tabs__btn:hover { color: var(--ink); }

/* Homepage product grid. Renamed from `.products` to `.ew-products`
   so it doesn't collide with WC's `<section class="related products">`
   or `<section class="upsells products">` on single-product pages. */
.ew-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1.5px solid var(--ink);
}
@media (max-width: 1080px) { .ew-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .ew-products { grid-template-columns: repeat(2, 1fr); } }

.prod {
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--surface);
  display: flex; flex-direction: column;
  position: relative;
  transition: background var(--t-fast);
}
.prod:hover { background: var(--paper); }
.prod__top {
  display: flex; justify-content: space-between;
  padding: 0.65rem 1rem;
  font-family: var(--ff-mono);
  font-size: 0.65rem; letter-spacing: 0.06em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--edge);
  align-items: center;
}
.prod__sku { color: var(--ink); font-weight: 600; text-transform: uppercase; }
.prod__tag {
  background: var(--red-soft); color: var(--red-deep);
  padding: 2px 6px; border-radius: 2px;
  font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prod__tag--new { background: var(--ink); color: var(--paper); }
.prod__tag--hot { background: var(--red); color: white; }
.prod__tag--out { background: var(--paper-2); color: var(--ink-3); }

.prod__img {
  aspect-ratio: 1;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--paper);
  background-size: 18px 18px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.prod__img svg { width: 76%; height: 76%; transition: transform var(--t-base); }
.prod:hover .prod__img svg { transform: scale(1.08) rotate(-3deg); }
.prod__img-marker {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--ff-mono); font-size: 0.55rem;
  color: var(--ink-4); letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prod__body {
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  flex: 1;
}
.prod__name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--ink);
}
.prod__spec {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  word-break: break-word;
}
.prod__foot {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex; justify-content: space-between; align-items: end;
}
.prod__price {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.prod__rating {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 0.25rem;
}
.prod__rating svg { color: var(--red); width: 12px; height: 12px; }
.prod__add {
  position: absolute;
  bottom: 0.85rem; right: 0.85rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transform: scale(0);
  transition: transform var(--t-fast), background var(--t-fast);
  z-index: 2;
}
.prod:hover .prod__add { transform: scale(1); }
.prod__add:hover { background: var(--red); }
.prod__add svg { width: 16px; height: 16px; }

/* TRUST STRIP */
.trust-wrap { padding-block: 0; }
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--paper);
}
@media (max-width: 880px) { .trust { grid-template-columns: repeat(2, 1fr); } }
.trust__cell {
  padding: 2.25rem 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 0.85rem;
  border-right: 1px solid #2A2A28;
  position: relative;
}
.trust__cell:last-child { border-right: 0; }
@media (max-width: 880px) {
  .trust__cell:nth-child(2) { border-right: 0; }
  .trust__cell:nth-child(-n+2) { border-bottom: 1px solid #2A2A28; }
}
.trust__icon {
  width: 44px; height: 44px;
  border: 1.5px solid var(--red);
  color: var(--red);
  display: grid; place-items: center;
  border-radius: 4px;
}
.trust__icon svg { width: 20px; height: 20px; }
.trust__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.trust__desc {
  font-size: 0.85rem;
  color: rgba(250,250,247,0.7);
  line-height: 1.5;
}
.trust__cell::after { display: none; }

/* GUIDES */
.guides {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 980px) {
  .guides { grid-template-columns: 1fr 1fr; }
  .guides > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .guides { grid-template-columns: 1fr; } .guides > :first-child { grid-column: auto; } }
.guide {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1.5px solid var(--ink);
  display: flex; align-items: end;
  padding: 1.5rem;
  color: var(--paper);
  background: var(--ink-2);
  transition: transform var(--t-base);
}
.guide:hover { transform: translateY(-3px); }
.guide:first-child { aspect-ratio: 16/12; }
.guide__bg { position: absolute; inset: 0; z-index: 0; transition: transform var(--t-slow); }
.guide__bg img { width: 100%; height: 100%; object-fit: cover; }
.guide:hover .guide__bg { transform: scale(1.06); }
.guide__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.35) 50%, rgba(10,10,10,0.05) 100%);
}
.guide__num {
  position: absolute;
  top: 1.25rem; left: 1.5rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(250,250,247,0.7);
  z-index: 2;
}
.guide__num strong { color: var(--red-2); font-weight: 700; }
.guide__body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  gap: 0.5rem;
}
.guide__meta {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-2);
  display: flex; gap: 0.75rem; align-items: center;
}
.guide__meta::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--red-2);
}
.guide__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--paper);
}
.guide__cta {
  font-family: var(--ff-mono);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--paper);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center; gap: 0.4rem;
  margin-top: 0.75rem;
  width: fit-content;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(250,250,247,0.5);
  transition: border-color var(--t-fast), gap var(--t-fast);
}
.guide:hover .guide__cta { border-color: var(--red-2); gap: 0.7rem; }

/* BRAND STRIP */
.brands {
  background: var(--paper-2);
  border-block: 1.5px solid var(--edge);
  padding-block: 2.5rem;
  overflow: hidden;
}
.brands__head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.brands__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}
.brands__title em { font-style: normal; color: var(--red); }
.brands__desc {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.brands__rail {
  display: flex; gap: 3.5rem;
  align-items: center;
  height: 70px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.brands__rail:hover { animation-play-state: paused; }
.brand-logo {
  flex-shrink: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity var(--t-fast), color var(--t-fast);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.brand-logo:hover { opacity: 1; color: var(--red); }
.brand-logo small {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-left: 0.4rem;
}

/* MARKETPLACE */
.markets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--ink);
  border-left: 1.5px solid var(--ink);
}
@media (max-width: 880px) { .markets { grid-template-columns: repeat(2, 1fr); } }
.market {
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 1.85rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--surface);
  transition: background var(--t-fast), color var(--t-fast);
  min-height: 230px;
  position: relative;
}
.market:hover { background: var(--ink); color: var(--paper); }
.market:hover .market__name { color: var(--paper); }
.market:hover .market__desc { color: rgba(250,250,247,0.7); }
.market:hover .market__icon { border-color: var(--red); color: var(--red); }
.market:hover .market__arrow { color: var(--red-2); transform: translate(2px, -2px); }

.market__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.market__icon svg { width: 28px; height: 28px; }
.market__name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}
.market__desc {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.55;
  flex: 1;
}
.market__cta {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center; gap: 0.35rem;
  margin-top: auto;
}
.market:hover .market__cta { color: var(--red-2); }
.market__arrow {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  transition: transform var(--t-fast), color var(--t-fast);
}

/* NEWSLETTER */
.news-wrap { padding-block: 0; }
.news {
  background: var(--red);
  color: white;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 980px) { .news { grid-template-columns: 1fr; } }
.news::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.news::after {
  content: "WA / SHOPEE / EMAIL";
  position: absolute;
  bottom: 1.25rem; right: 2rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
}
.news__head { position: relative; z-index: 2; }
.news__eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.news__eyebrow::before { content: ""; width: 24px; height: 1px; background: white; }
.news__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: white;
  margin-bottom: 1rem;
}
.news__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.92);
  max-width: 480px;
}
.news__form {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 1rem;
}
.news__input-row {
  display: flex; gap: 0;
  background: white;
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1.3rem;
  align-items: center;
}
.news__input { height: 42px; color: var(--ink); flex: 1; }
.news__input::placeholder { color: var(--ink-4); }
.news__submit {
  background: var(--ink); color: white;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background var(--t-fast);
}
.news__submit:hover { background: #2A2A28; }
.news__alt {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--ff-mono); font-size: 0.78rem; font-weight: 600;
  color: white;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  width: fit-content;
  transition: all var(--t-fast);
}
.news__alt:hover { background: white; color: var(--red); border-color: white; }

/* FOOTER */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 4rem 2rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "EW.IDN ─ KOMPONEN ELEKTRONIK ASLI ─ EW.IDN ─ INOVASI TERHUBUNG ─ EW.IDN ─ ";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.025);
  white-space: nowrap;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #2A2A28;
  position: relative; z-index: 2;
}
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .brand__type strong { color: white; }
.footer__brand .brand__type span { color: rgba(255,255,255,0.4); }
.footer__about {
  font-size: 0.9rem;
  color: rgba(250,250,247,0.65);
  margin-block: 1.25rem;
  max-width: 360px;
  line-height: 1.6;
}
.footer__address {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: rgba(250,250,247,0.5);
  letter-spacing: 0.02em;
  line-height: 1.7;
}
.footer__address strong { color: var(--red-2); font-weight: 700; }
.footer__col-title {
  font-family: var(--ff-mono);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2A2A28;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col a {
  color: rgba(250,250,247,0.85);
  font-size: 0.9rem;
  transition: color var(--t-fast), padding-left var(--t-fast);
  display: inline-block;
}
.footer__col a:hover { color: var(--red-2); padding-left: 0.4rem; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding-top: 2rem;
  position: relative; z-index: 2;
}
.footer__copy {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: rgba(250,250,247,0.4);
  letter-spacing: 0.02em;
}
.footer__pay { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.footer__pay span {
  font-family: var(--ff-mono);
  font-size: 0.7rem; font-weight: 500;
  background: rgba(255,255,255,0.06);
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  color: rgba(250,250,247,0.85);
  border: 1px solid rgba(255,255,255,0.05);
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--t-fast), transform 700ms var(--t-fast);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.trace-line {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: trace-draw 1.6s var(--t-fast) forwards;
}
@keyframes trace-draw { to { stroke-dashoffset: 0; } }
.trace-line--1 { animation-delay: 0.4s; }
.trace-line--2 { animation-delay: 0.7s; }
.trace-line--3 { animation-delay: 1s; }

@keyframes blink-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.dot-blink { animation: blink-dot 1.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
