/* Kitsector Electronics theme — overrides OpenCart 4 default (basic) */
:root {
  --ink: #0b1016;
  --ink-2: #121a24;
  --ink-3: #1b2633;
  --line: #e3e8ee;
  --paper: #f5f7fa;
  --text: #1a2230;
  --muted: #64748b;
  --accent: #19c58f;      /* PCB green */
  --accent-2: #0ea5e9;    /* signal blue */
  --warn: #f5c542;        /* solder gold */
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

body { font-family: Inter, system-ui, sans-serif; color: var(--text); background: var(--paper); }
a { color: var(--accent-2); }
h1, h2, h3, h4, h5 { font-family: Inter, system-ui, sans-serif; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.mono { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- top bars ---------- */
.promo-bar { background: var(--accent); color: #04261b; font-size: 13px; font-weight: 600; text-align: center; padding: 6px 12px; }
#top { background: var(--ink); border: 0; margin: 0; padding: 6px 0; font-size: 13px; }
#top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
#top, #top a, #top .btn-link, #top .dropdown-toggle { color: #b6c2d1; text-decoration: none; }
#top a:hover { color: #fff; }
#top .list-inline { margin: 0; }
#top .btn-link { padding: 0; font-size: 13px; }

header { background: var(--ink-2); padding: 18px 0 14px; margin: 0; border-bottom: 1px solid var(--ink-3); }
header .row { align-items: center; row-gap: 12px; }
#logo { margin: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-chip { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 20px;
  color: #04261b; background: linear-gradient(135deg, var(--accent), #7cf2c8); box-shadow: 0 0 24px rgba(25, 197, 143, .35); }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; font-family: var(--mono); font-size: 22px; font-weight: 600; color: #e6edf3; letter-spacing: -.02em; }
.brand-text b { display: block; margin-top: 4px; color: var(--accent); font-size: .58em; font-weight: 600; letter-spacing: .14em; text-transform: lowercase; }

#search { margin: 0; }
#search .form-control { background: var(--ink-3); border: 1px solid #2a3747; color: #e6edf3; border-radius: 10px 0 0 10px; font-size: 15px; }
#search .form-control::placeholder { color: #7d8b9c; }
#search .form-control:focus { box-shadow: 0 0 0 3px rgba(25, 197, 143, .25); border-color: var(--accent); }
#search .btn { background: var(--accent); border: 0; color: #04261b; border-radius: 0 10px 10px 0; }

#header-cart { margin: 0 !important; }
#header-cart .btn-inverse { background: transparent; border: 1px solid #2f3e50; color: #e6edf3; border-radius: 10px; font-size: 15px; padding: 10px 14px; }
#header-cart .btn-inverse:hover { border-color: var(--accent); color: #fff; }

/* category menu */
#menu.navbar { background: var(--ink-2) !important; background-image: none; border: 0; border-radius: 0; padding: 0; margin-bottom: 0;
  border-bottom: 1px solid var(--ink-3); }
main > .container, main { }
#menu .navbar-nav > li > .nav-link { color: #c9d4e0; font-weight: 500; font-size: 14px; padding: 13px 14px; text-shadow: none; }
#menu .navbar-nav > li > .nav-link:hover, #menu .navbar-nav > li.show > .nav-link { color: #fff; background: transparent; box-shadow: inset 0 -2px 0 var(--accent); }
#menu .dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(11, 16, 22, .18); padding: 10px; }
#menu .dropdown-menu a { border-radius: 8px; }
#menu .see-all { border-radius: 8px; background: var(--paper); color: var(--text); }
#menu #category { color: #e6edf3; text-shadow: none; }
#menu .navbar-toggler { color: #e6edf3; border-color: #2f3e50; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(900px 420px at 80% 30%, rgba(25, 197, 143, .16), transparent 60%),
  radial-gradient(700px 400px at 10% 100%, rgba(14, 165, 233, .12), transparent 60%), var(--ink);
  color: #e6edf3; padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-tag { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; font-weight: 800; margin: 12px 0 16px; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #9fb0c3; font-size: 17px; line-height: 1.6; max-width: 520px; }
.hero-search { display: flex; align-items: center; gap: 10px; max-width: 540px; margin-top: 26px; background: #fff; border-radius: 12px; padding: 6px 6px 6px 16px; }
.hero-search i { color: var(--muted); }
.hero-search input[type=text] { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; padding: 10px 0; color: var(--text); background: transparent; }
.hero-search button { border: 0; background: var(--accent); color: #04261b; font-weight: 700; border-radius: 9px; padding: 10px 20px; }
.hero-search button:hover { filter: brightness(1.08); }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: #b6c2d1; }
.hero-points i { color: var(--accent); margin-right: 6px; }
.hero-board svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); transform: perspective(900px) rotateY(-14deg) rotateX(8deg); }
.hero-board .traces path { stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
.hero-board .led { animation: led 1.4s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes led { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .hero-board .traces path, .hero-board .led { animation: none; } }

/* ---------- home sections ---------- */
#common-home { padding-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.section-head h2 { font-size: 26px; margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: .18s; min-height: 150px; }
.cat-tile:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 16, 22, .08); color: var(--text); }
.cat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; margin-bottom: 8px;
  background: #e8faf3; color: #0d8f66; }
.cat-tile:nth-child(3n+2) .cat-icon { background: #e6f5fd; color: #0784bd; }
.cat-tile:nth-child(3n) .cat-icon { background: #fff6dc; color: #a77b00; }
.cat-name { font-weight: 700; font-size: 17px; }
.cat-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.cat-arrow { position: absolute; top: 24px; right: 20px; color: #c3ccd6; transition: .18s; }
.cat-tile:hover .cat-arrow { color: var(--accent); transform: translateX(3px); }

.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0; padding: 24px; background: var(--ink); border-radius: var(--radius); }
.usp div { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; color: #9fb0c3; font-size: 13px; }
.usp i { grid-row: span 2; font-size: 22px; color: var(--accent); padding-top: 3px; }
.usp b { color: #fff; font-size: 15px; }

/* ---------- product cards (category, search, modules) ---------- */
.product-thumb { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .18s; }
.product-thumb:hover { border-color: #b9ecd9; box-shadow: 0 14px 30px rgba(11, 16, 22, .08); }
.product-thumb .image { background: #fafbfc; border-bottom: 1px solid var(--line); padding: 14px; }
.product-thumb .description { padding: 14px 16px 6px; }
.product-thumb h4 { font-size: 15px; font-weight: 600; line-height: 1.35; }
.product-thumb h4 a { color: var(--text); }
.product-thumb .description p { color: var(--muted); font-size: 13px; }
.price { color: var(--text); font-weight: 800; font-size: 18px; }
.price-new { color: #0d8f66; }
.price-old { color: var(--muted); }
.price-tax { color: var(--muted); font-size: 12px; font-weight: 500; }
.product-thumb .button-group { border-top: 1px solid var(--line); background: #fff; display: flex; }
.product-thumb .button-group button { flex: 1; background: #fff; border: 0; color: var(--muted); padding: 10px; }
.product-thumb .button-group button:first-child { background: var(--accent); color: #04261b; font-weight: 700; }
.product-thumb .button-group button:hover { color: var(--text); }

/* ---------- generic ---------- */
.btn-primary { background: var(--accent); border-color: var(--accent); color: #04261b; font-weight: 600; }
.btn-primary:hover, .btn-primary:focus { background: #15a979; border-color: #15a979; color: #04261b; }
.breadcrumb { background: transparent; padding: 18px 0 0; font-size: 13px; }
.list-group-item.active { background: var(--accent); border-color: var(--accent); color: #04261b; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #9fb0c3; border: 0; padding-top: 44px; margin-top: 56px; }
footer h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
footer a { color: #9fb0c3; font-size: 14px; }
footer a:hover { color: var(--accent); }
footer hr { border-color: var(--ink-3); opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 22px; font-size: 13px; }
.footer-bottom .brand-text { font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-board { max-width: 420px; }
  .usp { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .hero { padding: 40px 0 48px; }
  .hero-board { display: none; }
  .hero-search button { padding: 10px 14px; }
  .usp { grid-template-columns: 1fr; }
  .container { padding-left: 16px; padding-right: 16px; }
}

/* fixes after first look */
#menu.navbar { position: relative; z-index: 1030; } #menu.navbar::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100vmax; right: -100vmax; background: var(--ink-2); z-index: -1; }
#menu .navbar-toggler { background: transparent; border: 1px solid #2f3e50; color: #e6edf3; }
#menu .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(25, 197, 143, .25); }
@media (max-width: 575px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tile { min-height: 0; padding: 16px 14px; }
  .cat-icon { width: 38px; height: 38px; font-size: 17px; margin-bottom: 4px; }
  .cat-name { font-size: 15px; }
  .cat-sub, .cat-arrow { display: none; }
}

/* ================= motion layer ================= */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); pointer-events: none; }

/* reveal */
.js-motion .rv { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js-motion .rv.in { opacity: 1; transform: none; }

/* hero glow follows the mouse */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: background .2s;
  background: radial-gradient(420px 320px at var(--gx, 75%) var(--gy, 40%), rgba(25, 197, 143, .22), transparent 70%); }
.hero-board svg { transform: perspective(900px) rotateY(-14deg) rotateX(8deg); will-change: transform; transition: none; }
.hero-copy { will-change: transform; }
.hero h1 span { background-size: 200% 100%; animation: shimmer 6s linear infinite; background-image: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent)); }
@keyframes shimmer { to { background-position: -200% 0; } }
.electrons circle { filter: drop-shadow(0 0 6px #38f5b4); }

/* ticker */
.ticker { background: var(--ink-2); border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); overflow: hidden; white-space: nowrap; padding: 14px 0; }
.ticker-track { display: inline-flex; gap: 0; will-change: transform; }
.ticker span { font-family: var(--mono); font-size: 15px; color: #8fa1b5; padding: 0 22px; position: relative; }
.ticker span::after { content: "◆"; position: absolute; right: -6px; color: var(--accent); font-size: 9px; top: 4px; }

/* tilt + spotlight */
.tilt { transform-style: preserve-3d; will-change: transform; }
.js-motion .tilt.rv.in, .tilt { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .2s, border-color .2s; }
.js-motion .tilt.rv:not(.in) { transform: translateY(26px) scale(.98); }
.cat-tile.tilt::before, .product-thumb.tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(25, 197, 143, .16), transparent 60%); z-index: 1; }
.cat-tile.tilt:hover::before, .product-thumb.tilt:hover::before { opacity: 1; }
.cat-tile:hover .cat-icon { transform: translateZ(30px) scale(1.08) rotate(-6deg); }
.cat-icon { transition: transform .25s; }

/* product cards */
.product-thumb { position: relative; height: 100%; display: flex; flex-direction: column; }
.product-thumb .content { display: flex; flex-direction: column; flex: 1; }
.product-thumb .description { flex: 1; }
.product-thumb .image { overflow: hidden; }
.product-thumb .image img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.product-thumb:hover .image img { transform: scale(1.08) rotate(-2deg); }
.product-thumb .button-group { position: relative; z-index: 2; }
.price-old { text-decoration: line-through; font-size: 14px; margin-left: 6px; }
#content > h3, #content h3:first-child { font-size: 26px; margin: 8px 0 18px; }
#content .row > [class*=col] { margin-bottom: 20px; }

@media (prefers-reduced-motion: reduce) {
  .js-motion .rv { opacity: 1; transform: none; transition: none; }
  .hero h1 span { animation: none; }
}

/* ================= 3D drone hero ================= */
.hero-3d { display: none; position: relative; height: min(70vh, 620px); }
.hero.has-3d .hero-3d { display: block; }
.hero.has-3d .hero-board { display: none; }
.hero.has-3d { min-height: 82vh; display: flex; align-items: center; padding: 30px 0; }
.hero.has-3d > .hero-inner { width: 100%; }
#drone-canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s; }
.hero.model-ready #drone-canvas { opacity: 1; }
.drone-labels { position: absolute; inset: 0; pointer-events: none; }
.drone-label { position: absolute; left: 0; top: 0; pointer-events: auto; text-decoration: none; white-space: nowrap;
  margin: -18px 0 0 14px; padding: 6px 12px 7px; border-radius: 10px; background: rgba(11, 16, 22, .82); border: 1px solid rgba(25, 197, 143, .5);
  backdrop-filter: blur(6px); color: #e6edf3; font-size: 13px; line-height: 1.25;
  opacity: calc((var(--explode, 0) - .55) * 4); }
.drone-label::before { content: ""; position: absolute; left: -14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(25, 197, 143, .25); }
.drone-label b { display: block; font-weight: 700; }
.drone-label span { color: var(--accent); font-family: var(--mono); font-size: 11px; }
.drone-label:hover { border-color: var(--accent); color: #fff; }
.scroll-hint { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: #8fa1b5;
  opacity: calc(1 - var(--explode, 0) * 3); animation: hint 2s ease-in-out infinite; white-space: nowrap; }
@keyframes hint { 50% { transform: translate(-50%, 6px); } }
.hero.has-3d .hero-copy { opacity: calc(1 - var(--explode, 0) * .3); }
@media (max-width: 991px) {
  .hero.has-3d .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-3d { order: -1; height: 46vh; }
  .drone-label { font-size: 11px; padding: 4px 8px; }
  .drone-label span { display: none; }
}

/* menu link */
#menu .nav-projects { color: var(--accent) !important; }

/* ================= projects ================= */
.proj-teaser { margin-bottom: 44px; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.proj-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); text-decoration: none;
  color: #e6edf3; background: linear-gradient(160deg, var(--ink-3), var(--ink)); border: 1px solid var(--ink-3); overflow: hidden; transition: .2s; }
.proj-card:hover { color: #fff; border-color: var(--accent); transform: translateY(-3px); }
.proj-card > b { font-size: 19px; line-height: 1.25; }
.proj-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: rgba(25, 197, 143, .15); color: var(--accent); }
.proj-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #8fa1b5; }
.pill { padding: 2px 9px; border-radius: 99px; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.pill-beginner { background: #dcfce7; color: #166534; }
.pill-intermediate { background: #fef3c7; color: #92400e; }
.pill-advanced { background: #fee2e2; color: #991b1b; }
.proj-thumbs { display: flex; gap: 6px; }
.proj-thumbs img { width: 52px; height: 52px; border-radius: 10px; background: #fff; }
.proj-foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink-3); padding-top: 10px; font-size: 13px; color: #8fa1b5; }
.proj-foot b { color: var(--accent); font-size: 18px; }

.proj-head { padding: 26px 0 10px; }
.proj-head h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; margin: 6px 0; }
.proj-head p { color: var(--muted); font-size: 17px; }
.proj { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; padding: 28px; margin: 22px 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: 20px; }
.proj h2 { font-size: 28px; margin: 12px 0 8px; }
.proj p { color: var(--muted); font-size: 16px; }
.proj .proj-meta { color: var(--muted); }
.proj-steps { padding-left: 0; list-style: none; counter-reset: s; margin-top: 16px; }
.proj-steps li { counter-increment: s; position: relative; padding: 8px 0 8px 40px; border-bottom: 1px dashed var(--line); }
.proj-steps li::before { content: counter(s); position: absolute; left: 0; top: 7px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.proj-parts { background: var(--paper); border-radius: 14px; padding: 20px; align-self: start; }
.proj-parts h3 { font-size: 17px; display: flex; justify-content: space-between; }
.proj-parts ul { list-style: none; padding: 0; margin: 12px 0; }
.proj-parts li { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.proj-parts li img { width: 48px; height: 48px; border-radius: 8px; background: #fff; }
.proj-parts li a { color: var(--text); text-decoration: none; font-weight: 500; }
.proj-parts .qty { font-family: var(--mono); color: var(--muted); }
.proj-parts .pr { font-weight: 700; }
.proj-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 16px; }
.proj-total b { font-size: 26px; color: #0d8f66; }
.add-all.done { background: var(--ink); border-color: var(--ink); color: var(--accent); }
@media (max-width: 767px) { .proj { grid-template-columns: 1fr; padding: 18px; } }

/* ================= real-footage hero ================= */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
#build-canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s; }
.hero.video-ready #build-canvas { opacity: 1; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,16,22,.96) 0%, rgba(11,16,22,.82) 32%, rgba(11,16,22,.25) 62%, rgba(11,16,22,.1) 100%),
              linear-gradient(0deg, rgba(11,16,22,.9) 0%, rgba(11,16,22,0) 28%); }
.hero:has(.hero-video) { min-height: 100vh; display: flex; align-items: center; padding: 30px 0; }
.hero:has(.hero-video) > .hero-inner { position: relative; z-index: 2; width: 100%; grid-template-columns: 1fr 340px; align-items: end; }
.hero:has(.hero-video) .hero-board { display: none; }
.hero:has(.hero-video)::after { z-index: 1; }

.build-steps { align-self: end; margin-bottom: 10px; background: rgba(11,16,22,.55); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 16px 16px 12px; backdrop-filter: blur(8px); position: relative; }
.build-progress { height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.build-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.build-steps ol { list-style: none; margin: 0; padding: 0; }
.build-steps li a { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding: 8px 6px; border-radius: 10px; text-decoration: none;
  color: #8fa1b5; transition: background .3s, color .3s; }
.build-steps li .n { grid-row: span 2; font-family: var(--mono); font-size: 13px; color: #5f6f82; padding-top: 2px; }
.build-steps li b { font-size: 15px; font-weight: 600; color: #b6c2d1; }
.build-steps li small { font-size: 12px; line-height: 1.4; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s, opacity .4s; }
.build-steps li.on a { background: rgba(25,197,143,.12); }
.build-steps li.on b { color: #fff; }
.build-steps li.on .n, .build-steps li.done .n { color: var(--accent); }
.build-steps li.on small { max-height: 60px; opacity: 1; }
.build-steps li a:hover b { color: var(--accent); }
.build-steps .scroll-hint { position: static; transform: none; margin-top: 8px; text-align: center; animation: none;
  opacity: calc(1 - var(--progress, 0) * 8); }
@media (max-width: 991px) {
  .hero:has(.hero-video) > .hero-inner { grid-template-columns: 1fr; }
  .hero-shade { background: linear-gradient(0deg, rgba(11,16,22,.95) 10%, rgba(11,16,22,.55) 55%, rgba(11,16,22,.25) 100%); }
  .build-steps li small { display: none; }
}

/* ===== mega menu (structure as on kitsector): opens on hover, the category itself on click ===== */
#menu .menu-icon { margin-right: 7px; color: var(--accent); font-size: 13px; }
#menu .dropdown-toggle::after { display: none; }
@media (min-width: 992px) {
  #menu .el-mega { position: static; }
  #menu .el-mega:hover > .dropdown-menu, #menu .el-mega:focus-within > .dropdown-menu { display: block; }
  #menu .el-mega > .dropdown-menu { left: 12px; right: 12px; margin-top: 0; padding: 18px 20px; }
}
#menu .el-mega-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 6px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
#menu .el-mega-title { font-family: var(--mono); font-weight: 700; font-size: 17px; color: var(--text); }
#menu .el-mega-all { color: var(--accent) !important; font-weight: 600; font-size: 14px; text-decoration: none; }
#menu .el-mega-body { display: flex; gap: 20px; align-items: flex-start; }
#menu .el-mega-body .dropdown-inner { flex: 1; display: flex; gap: 12px; }
#menu .el-mega-body ul { min-width: 220px; }
#menu .el-mega-body .nav-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; color: var(--text); }
#menu .el-mega-body .nav-link:hover { background: var(--paper); color: var(--accent); }
#menu .menu-count { min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--paper); color: #5b6b7a; font-size: 12px; font-weight: 600; text-align: center; }
#menu .el-mega-art { flex: 0 0 160px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
#menu .el-mega-art img { width: 100%; height: auto; display: block; }
@media (max-width: 991.98px) { #menu .el-mega-art { display: none; } #menu .el-mega-body ul { min-width: 0; } }
@media (min-width: 992px) { #menu .navbar-nav { flex-wrap: nowrap; } #menu .navbar-nav > li > .nav-link { padding: 13px 9px; font-size: 13.5px; white-space: nowrap; } }
@media (min-width: 992px) and (max-width: 1399.98px) { #menu .menu-icon { display: none; } }
/* the full-width bar of the menu must not make the page wider; the drop-down stays inside the page */
html, body { overflow-x: clip; }
@media (min-width: 992px) { #menu .el-mega > .dropdown-menu { width: auto; min-width: 0; max-width: none; } }
#menu .el-mega-body .dropdown-inner { min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 14px; }
#menu .el-mega-body .dropdown-inner > ul { display: contents; }
#menu .el-mega-body ul { min-width: 0; }
@media (min-width: 992px) { #menu .el-mega > .dropdown-menu { margin-left: 0 !important; width: auto !important; } #menu .el-mega-body .dropdown-inner { width: auto !important; } }

/* ===== product page (structure as on kitsector) ===== */
.product-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 14px 0 18px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.product-facts dt { color: #6b7a89; font-weight: 500; }
.product-facts dd { margin: 0; font-weight: 700; color: var(--text); }
.product-facts dd a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.product-facts-code { font-family: var(--mono); }
.product-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.product-actions .btn { border-radius: 10px; font-weight: 600; font-size: 14px; }
.el-offers .btn-primary { border-radius: 12px; font-weight: 700; }
.product-related { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.product-thumb .price small { display: block; font-size: 12px; font-weight: 500; color: #6b7a89 !important; }
.product-thumb .button-group a.btn { flex: 1; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 0; color: #5b6b7a; }
.product-thumb .button-group a.btn:hover { color: var(--accent); background: var(--paper); }

/* ===== footer (structure as on kitsector): strip of what makes us different, logo + columns, legal line ===== */
.usp-strip { background: var(--paper); border-top: 1px solid var(--line); margin-top: 56px; padding: 26px 0; }
.usp-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usp-item { display: flex; gap: 12px; align-items: flex-start; color: var(--text); text-decoration: none; }
.usp-item i { font-size: 22px; color: var(--accent); width: 28px; text-align: center; margin-top: 2px; }
.usp-item strong { display: block; font-size: 15px; }
.usp-item span { display: block; color: #6b7a89; font-size: 13px; }
a.usp-item:hover strong { color: var(--accent); }
footer.el-footer { margin-top: 0; padding-top: 40px; }
.el-footer-main { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding-bottom: 30px; }
.el-footer-id p { margin-top: 14px; font-size: 14px; }
.el-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.el-footer-cols h2 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.el-footer-cols li { margin-bottom: 6px; }
.el-footer-legal { border-top: 1px solid var(--ink-3); padding: 18px 0 22px; font-size: 13px; }
.el-footer-legal small { color: #7d8fa3; }
@media (max-width: 991px) { .usp-items { grid-template-columns: repeat(2, 1fr); } .el-footer-main { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 575px) { .el-footer-cols { grid-template-columns: repeat(2, 1fr); } }
.el-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.el-subcat { padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; }
.el-subcat:hover { border-color: var(--accent); color: var(--accent); }

/* ===== search suggestions (as on kitsector) ===== */
header .col-md-9 { position: relative; }
.search-suggest { width: 100%; max-height: 70vh; overflow-y: auto; margin-top: -12px; padding: 4px 0; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(11, 16, 22, .2); }
.search-suggest .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 6px 12px; white-space: normal; }
.search-suggest img { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; border-radius: 6px; background: #fff; }
.search-suggest .name { flex: 1; font-size: 14px; line-height: 1.3; color: var(--text); }
.search-suggest .price { color: var(--accent); font-weight: 700; white-space: nowrap; }
.search-suggest .dropdown-item.active, .search-suggest .dropdown-item:hover { background: var(--paper); }

/* ===== product carousels (as on kitsector): a row moves by a whole row, arrows below ===== */
.home-section { margin: 28px 0; }
.carousel-row { position: relative; padding-bottom: 44px; }
.carousel-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .col { scroll-snap-align: start; }
.carousel-prev, .carousel-next { position: absolute; bottom: 4px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font-size: 13px; line-height: 1; }
.carousel-prev { left: 0; } .carousel-next { right: 0; }
.carousel-prev:hover, .carousel-next:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.carousel-prev:disabled, .carousel-next:disabled { opacity: .35; pointer-events: none; }
.carousel-row.no-scroll { padding-bottom: 0; }
.carousel-row.no-scroll .carousel-prev, .carousel-row.no-scroll .carousel-next { display: none; }

/* ===== hero video carousel (as the video slider of kitsector) ===== */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img, .hero-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide video { opacity: 0; transition: opacity .6s; }
.hero-slide.is-playing video { opacity: 1; }
.hero:has(.hero-video) { min-height: 86vh; }
.build-steps li { cursor: pointer; }

/* electronics (from kitsector): the pictures of a product - one big picture at a time (arrows on its sides, a finger can swipe it,
   a click opens it large), the small pictures under it choose one */
.gallery-main {
  position: relative;
  width: 100%;
  padding: 0;
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-track > a {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.gallery-track img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-prev, .gallery-next { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--text); opacity: 0; transition: opacity .2s; }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-main:hover .gallery-prev, .gallery-main:hover .gallery-next { opacity: 1; }
.gallery-prev:hover, .gallery-next:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (hover: none) { .gallery-prev, .gallery-next { opacity: 1; } }
.gallery-thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumbs button { flex: 0 0 auto; width: 74px; height: 74px; padding: 2px; background: #fff; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs button.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
/* the gallery must not make its column wider than half the row */
#product-info .row > .col-sm, .product-gallery, .gallery-main, .gallery-track { min-width: 0; }
@media (min-width: 576px) { #product-info .product-top-row > .col-sm:first-child { max-width: 50%; } }
/* "All categories": every main category on the left, the subcategories of the one under the mouse on the right */
#menu .el-all-btn { background: rgba(25, 197, 143, .14); border-radius: 10px; color: #fff !important; font-weight: 600; margin-right: 6px; }
@media (min-width: 992px) {
  #menu .el-all { position: static; }
  #menu .el-all:hover > .el-all-panel, #menu .el-all.is-open > .el-all-panel { display: flex; }
  #menu .el-all-panel { left: 12px; right: 12px; margin-left: 0 !important; width: auto !important; padding: 0; overflow: hidden; }
}
#menu .el-all-panel { gap: 0; }
#menu .el-all-list { flex: 0 0 290px; margin: 0; padding: 10px; background: var(--paper); border-right: 1px solid var(--line); max-height: 70vh; overflow-y: auto; }
#menu .el-all-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
#menu .el-all-list a > i:first-child { width: 18px; text-align: center; color: var(--accent); }
#menu .el-all-list a span { flex: 1; }
#menu .el-all-list em { font-style: normal; font-size: 12px; color: #6b7a89; }
#menu .el-all-arrow { font-size: 11px; color: #9aa7b4; }
#menu .el-all-list li.is-on a { background: #fff; box-shadow: 0 2px 8px rgba(11, 16, 22, .06); }
#menu .el-all-panes { flex: 1; padding: 18px 20px; min-width: 0; }
#menu .el-all-pane { display: none; }
#menu .el-all-pane.is-on { display: block; }
#menu .el-all-body { display: flex; gap: 20px; align-items: flex-start; }
#menu .el-all-subs { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 14px; }
#menu .el-all-sub { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
#menu .el-all-sub:hover { background: var(--paper); color: var(--accent); }
@media (max-width: 991.98px) {
  #menu .el-all.is-open > .el-all-panel { display: block; }
  #menu .el-all-panes { display: none; }
  #menu .el-all-list { max-height: none; border-right: 0; }
}


/* product comparison: one card like the product cards - dark head, mono row names, the price in green */
.compare-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(11, 16, 22, .05); margin-bottom: 24px; }
.compare-table { margin: 0; min-width: 100%; width: auto; table-layout: auto; border-collapse: separate; border-spacing: 0; }
.compare-table td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; vertical-align: top; min-width: 220px; }
.compare-table td + td { border-left: 1px solid var(--line); }
.compare-table thead td, .compare-table thead tr > td:first-child { width: auto; position: static; --bs-table-bg: var(--ink); background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 0; }
.compare-table thead td strong { font-weight: 600; }
.compare-table tbody tr > td:first-child { --bs-table-bg: #fafbfc; min-width: 120px; width: 120px; color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: #fafbfc; position: sticky; left: 0; z-index: 1; }
.compare-table td a strong { color: var(--text); font-weight: 600; font-size: 15px; line-height: 1.35; }
.compare-table td a:hover strong { color: var(--accent); }
.compare-table td img { background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 10px; max-width: 160px; }
.compare-table .price-new { color: var(--text); font-size: 20px; font-weight: 700; }
.compare-table .price-old { color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.compare-table td.description { color: var(--muted); font-size: 13px; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table tr:last-child td.text-center { display: table-cell; }
.compare-table tr:last-child .btn { display: block; width: 100%; border-radius: 10px; font-weight: 600; margin-bottom: 6px; }
.compare-table tr:last-child .btn-primary { background: var(--accent); border-color: var(--accent); color: #04261b; }
.compare-table tr:last-child .btn-primary:hover { background: #12a878; border-color: #12a878; }
.compare-table tr:last-child .btn-outline-danger { border-color: var(--line); color: var(--muted); background: #fff; }
.compare-table tr:last-child .btn-outline-danger:hover { border-color: #ef4444; color: #ef4444; }

/* product page tabs (Adafruit-like): a thin line under the tabs, the active one underlined in green */
#product-info .nav-tabs { border-bottom: 1px solid var(--line); gap: 4px; margin-top: 28px; }
#product-info .nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; padding: 10px 16px; background: none; }
#product-info .nav-tabs .nav-link:hover { color: var(--text); }
#product-info .nav-tabs .nav-link.active { color: var(--text); border-bottom-color: var(--accent); background: none; }
#product-info .tab-content { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 20px 22px; }
#tab-description { font-size: 15px; line-height: 1.65; color: var(--text); }
/* the technical details: label in mono on the left, value on the right, hairlines between the rows */
#tab-specification .table { margin: 0; border: 0; }
#tab-specification .table td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 4px; }
#tab-specification .table thead td { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
#tab-specification .table tbody td:first-child { width: 40%; color: var(--muted); }
#tab-specification .table tbody td:last-child { font-family: var(--mono); font-size: 14px; color: var(--text); }
#tab-specification .table tbody tr:last-child td { border-bottom: 0; }
/* used in projects (JLCPCB-like cards) */
.used-in-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.used-in-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--text); text-decoration: none; transition: .18s; }
.used-in-card:hover { border-color: #b9ecd9; box-shadow: 0 14px 30px rgba(11, 16, 22, .08); color: var(--text); }
.used-in-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(25, 197, 143, .12); color: var(--accent); font-size: 18px; }
.used-in-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.used-in-text small { color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.used-in-text strong { font-size: 15px; line-height: 1.35; }
.used-in-go { color: var(--muted); }
.used-in-card:hover .used-in-go { color: var(--accent); }
#tab-specification .table, #tab-specification .table > :not(caption) > * > * { border-width: 0 0 1px; border-color: var(--line); }
#tab-specification .table > :not(:first-child) { border-top: 0; }

/* home: how it works (numbered steps, JLCPCB-like) and the numbers band */
.how-section { margin: 48px 0; }
.how-steps { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 18px; align-items: stretch; }
.how-head .mono { color: var(--accent); font-family: var(--mono); font-size: 13px; }
.how-head h2 { font-size: 26px; font-weight: 700; margin-top: 6px; }
.how-step { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.how-num { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--accent); line-height: 1; }
.how-step strong { display: block; font-size: 16px; margin-bottom: 6px; }
.how-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.stats-band div { padding: 22px 24px; border-left: 1px solid rgba(255, 255, 255, .08); }
.stats-band div:first-child { border-left: 0; }
.stats-band strong { display: block; color: #fff; font-size: 30px; font-weight: 700; font-family: var(--mono); }
.stats-band span { color: #9fb0c3; font-size: 13px; }
@media (max-width: 991px) { .how-steps { grid-template-columns: 1fr; } .stats-band { grid-template-columns: repeat(2, 1fr); } .stats-band div:nth-child(3) { border-left: 0; } }

/* tools: calculators as cards, the result in a dark strip */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-bottom: 40px; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.tool-card h2 { font-size: 19px; font-weight: 700; margin: 0; }
.tool-card h2 i { color: var(--accent); margin-right: 6px; }
.tool-help { color: var(--muted); font-size: 14px; margin: 0; }
.tool-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.tool-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); position: relative; }
.tool-fields input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 40px 9px 12px; font-family: var(--mono); font-size: 16px; color: var(--text); }
.tool-fields input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25, 197, 143, .2); }
.tool-fields label span { position: absolute; right: 12px; bottom: 10px; font-family: var(--mono); color: var(--muted); }
.tool-result { background: var(--ink); color: #9fb0c3; border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.tool-result strong { color: var(--accent); font-family: var(--mono); font-size: 30px; }
.tool-result b { color: #fff; }
.tool-bad { color: var(--warn); }
.tool-link { font-size: 14px; font-weight: 600; }

/* projects (Hackster-like): cards with a cover, the page of a project, the form */
.proj-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.btn-create { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #04261b; font-weight: 700; border: 0; border-radius: 10px; padding: 11px 18px; text-decoration: none; }
.btn-create:hover { background: #12a878; color: #04261b; }
.btn-create-sm { padding: 7px 12px; font-size: 13px; }
.btn-ghost { background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 9px 14px; color: var(--muted); font-weight: 600; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.pcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 20px 0 40px; }
.pcard { display: flex; flex-direction: column; background: var(--ink-2); border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; transition: .18s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(11, 16, 22, .25); color: #fff; }
.pcard-cover, .pinfo-cover { position: relative; display: grid; aspect-ratio: 16 / 9; background: var(--ink-3); overflow: hidden; }
.pcard-cover > img, .pinfo-cover > img { width: 100%; height: 100%; object-fit: cover; }
.pcard-cover-parts { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.pcard-cover-parts > img { object-fit: contain; background: #fff; padding: 6px; }
.pcard-cover .pill { position: absolute; left: 10px; top: 10px; }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.pcard-body b { font-size: 16px; line-height: 1.3; }
.pcard-intro { color: #9fb0c3; font-size: 13px; line-height: 1.45; flex: 1; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 12px; color: #9fb0c3; font-family: var(--mono); font-size: 11px; margin-top: 6px; }
.pinfo-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; background: var(--ink); border-radius: var(--radius); overflow: hidden; color: #fff; margin-bottom: 28px; }
.pinfo-cover { aspect-ratio: 16 / 10; max-height: 420px; }
.pinfo-cover.pcard-cover-parts > img { min-height: 0; }
.pinfo-text { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.pinfo-text h1 { font-size: 30px; font-weight: 800; color: #fff; margin: 0; }
.pinfo-text p { color: #b6c4d4; margin: 0; }
.pinfo-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: #9fb0c3; font-size: 13px; }
.pinfo-total { display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; color: #9fb0c3; }
.pinfo-total b { color: var(--accent); font-size: 22px; font-family: var(--mono); }
.pinfo-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; }
.pinfo-section h2 { font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.pinfo-section h3 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.things-list { list-style: none; padding: 0; margin: 0; }
.things-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.things-list li:last-child { border-bottom: 0; }
.things-list img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.things-name { flex: 1; color: var(--text); font-weight: 600; }
.things-qty { font-family: var(--mono); color: var(--muted); }
.things-price { font-family: var(--mono); font-weight: 700; min-width: 70px; text-align: right; }
.things-buy { background: var(--accent); color: #04261b; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 700; text-decoration: none; }
.things-simple li { color: var(--text); }
.things-simple i { color: var(--accent); width: 20px; }
.story-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.story-steps li { display: flex; gap: 16px; }
.story-num { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--accent); }
.story-steps p { margin: 4px 0 8px; }
.story-steps img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.pinfo-code { background: var(--ink); color: #d7e2ee; border-radius: 12px; padding: 16px 18px; max-height: 520px; overflow: auto; font-size: 13px; }
.pform { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.pform-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.pform-card h2 { font-size: 19px; font-weight: 700; margin: 0; display: flex; gap: 10px; align-items: center; }
.pform label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
.pform small { color: var(--muted); font-weight: 400; }
.pform input[type=text], .pform input[type=url], .pform input[type=search], .pform textarea, .pform select { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-weight: 400; }
.pform input:focus, .pform textarea:focus, .pform select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25, 197, 143, .2); }
.pform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.part-results { list-style: none; padding: 0; margin: -8px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.part-results:empty { display: none; }
.part-results li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; cursor: pointer; }
.part-results li:hover { background: #f0fbf6; }
.part-results img { width: 36px; height: 36px; object-fit: contain; }
.things-qty-input { width: 70px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-family: var(--mono); }
.step-remove { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; }
.step-remove:hover { color: #ef4444; }
.pform-steps { padding-left: 22px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pform-steps li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.pform-steps textarea { grid-column: 1 / -1; }
.pform-send { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.pform-send p { color: var(--muted); font-size: 13px; margin: 0; max-width: 620px; }
.pform-mine ul { list-style: none; padding: 0; margin: 0; }
.pform-mine li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 767px) { .pinfo-head { grid-template-columns: 1fr; } .pinfo-text { padding: 0 20px 22px; } .pform-row { grid-template-columns: 1fr; } }

/* the sister site kitsector: top bar link, footer block, the box on the categories */
.sister-top a { color: var(--accent) !important; font-weight: 600; }
.sister-foot { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; color: #9fb0c3; text-decoration: none; font-size: 13px; }
.sister-foot i { color: var(--accent); font-size: 18px; }
.sister-foot b { display: block; color: #fff; }
.sister-foot:hover { border-color: var(--accent); color: #fff; }
.sister-box { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; margin: 10px 0 20px; }
.sister-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(25, 197, 143, .12); color: var(--accent); }
.sister-box strong { display: block; }
.sister-box span a { margin-right: 16px; font-weight: 600; font-size: 14px; }
#menu .nav-sister { color: var(--warn) !important; }
#menu .nav-sister { color: var(--warn) !important; }

/* ===== lively: colour, depth and a little motion ===== */
body { background-color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%2319c58f' stroke-opacity='.07' stroke-width='1.5'%3E%3Cpath d='M0 40h50l20 20h40l20-20h30M40 160v-50l20-20v-30M120 0v30l-20 20M0 120h30l15 15h60'/%3E%3Ccircle cx='50' cy='40' r='3'/%3E%3Ccircle cx='110' cy='60' r='3'/%3E%3Ccircle cx='60' cy='60' r='3'/%3E%3Ccircle cx='105' cy='135' r='3'/%3E%3C/svg%3E"); }
/* the section heads: a mono tag and a short gradient bar under the title */
.section-head h2, #common-home h2.h3, .product-related h2, .used-in h2 { position: relative; font-weight: 800; letter-spacing: -.01em; padding-bottom: 10px; }
.section-head h2::after, #common-home h2.h3::after, .product-related h2::after, .used-in h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.sec-tag { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: .04em; margin-bottom: 4px; }
/* the categories: each with its own colour (icon, glow, top line) */
.cat-tile { --c: #19c58f; overflow: hidden; }
.cat-tile:nth-child(8n+2) { --c: #0ea5e9; } .cat-tile:nth-child(8n+3) { --c: #f59e0b; } .cat-tile:nth-child(8n+4) { --c: #8b5cf6; }
.cat-tile:nth-child(8n+5) { --c: #ef4444; } .cat-tile:nth-child(8n+6) { --c: #14b8a6; } .cat-tile:nth-child(8n+7) { --c: #ec4899; } .cat-tile:nth-child(8n) { --c: #6366f1; }
.cat-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); transform: scaleX(.18); transform-origin: left; transition: transform .3s; }
.cat-tile:hover::before { transform: scaleX(1); }
.cat-tile .cat-icon, .cat-tile:nth-child(n) .cat-icon { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); transition: transform .25s; }
.cat-tile:hover { border-color: color-mix(in srgb, var(--c) 45%, #fff); box-shadow: 0 16px 34px color-mix(in srgb, var(--c) 18%, transparent); }
.cat-tile:hover .cat-icon { transform: rotate(-8deg) scale(1.08); }
.cat-tile:hover .cat-arrow { color: var(--c); }
/* the product cards: lift, the picture grows a little, the price as a pill, one clear button */
.product-thumb { transition: transform .22s, box-shadow .22s, border-color .22s; }
.product-thumb:hover { transform: translateY(-4px); border-color: #a7ebd3; box-shadow: 0 18px 38px rgba(25, 197, 143, .16); }
.product-thumb .image { overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff, #f1f5f9); }
.product-thumb .image img { transition: transform .35s; }
.product-thumb:hover .image img { transform: scale(1.06); }
.product-thumb .price-new { display: inline-block; background: rgba(25, 197, 143, .12); color: #0b8a63; border-radius: 99px; padding: 3px 11px; font-weight: 800; }
.product-thumb .button-group { gap: 0; }
.product-thumb .button-group .btn-offer { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #04261b; font-weight: 700; font-size: 13px; border-radius: 0; }
.product-thumb .button-group .btn-offer:hover { background: #12a878; }
.product-thumb .button-group .btn-offer i { transition: transform .2s; }
.product-thumb .button-group .btn-offer:hover i { transform: translateX(3px); }
.product-thumb .button-group button { flex: 0 0 46px; }
/* the project cards and the dark cards glow in the green on hover */
.proj-card, .pcard { transition: transform .22s, box-shadow .22s; }
.proj-card:hover, .pcard:hover { box-shadow: 0 0 0 1px rgba(25, 197, 143, .5), 0 18px 40px rgba(25, 197, 143, .18); }
/* the buttons: a gradient and a shine passing over */
.btn-create, .hero-search button, #search .btn { background: linear-gradient(135deg, var(--accent), #2dd4bf); position: relative; overflow: hidden; }
.btn-create::after, .hero-search button::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .5s; }
.btn-create:hover::after, .hero-search button:hover::after { left: 120%; }
/* the numbers band: a green glow line on top */
.stats-band { position: relative; }
.stats-band::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent); }
.stats-band strong { background: linear-gradient(90deg, #fff, #7cf2c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.how-step { transition: transform .22s, border-color .22s; }
.how-step:hover { transform: translateY(-3px); border-color: #a7ebd3; }
/* the dot of "prices checked every hour" pulses: the prices are live */
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 6px; box-shadow: 0 0 0 0 rgba(25, 197, 143, .6); animation: live 1.8s infinite; vertical-align: 1px; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(25, 197, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 197, 143, 0); } }
/* coming in when scrolled to (lively.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal-in { opacity: 1; transform: none; }
.product-thumb.reveal-in:hover, .cat-tile.reveal-in:hover, .how-step.reveal-in:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .live-dot { animation: none; } * { transition: none !important; } }
/* the light clips (circuit boards, workshops): a deeper shade behind the text, and a soft shadow on it */
.hero-shade { background: linear-gradient(90deg, rgba(11,16,22,.97) 0%, rgba(11,16,22,.9) 36%, rgba(11,16,22,.45) 64%, rgba(11,16,22,.2) 100%), linear-gradient(0deg, rgba(11,16,22,.6), transparent 40%) !important; }
.hero h1, .hero p, .hero-tag, .hero-points { text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
@media (max-width: 767px) { .hero-shade { background: linear-gradient(0deg, rgba(11,16,22,.97) 15%, rgba(11,16,22,.7) 60%, rgba(11,16,22,.4) 100%) !important; } }
/* the hero: only the clips - no text, search or list over them (the list stays in the page for the script and the
   search engines, hidden); a light shade at the bottom only, a click opens the category of the clip on screen */
.hero .hero-copy, .hero .build-steps, .hero .hero-board { display: none !important; }
.hero-shade { background: linear-gradient(0deg, rgba(11, 16, 22, .45), transparent 35%) !important; }
.hero.hero-clickable { cursor: pointer; }
/* only the clips now: a wide, low banner instead of the whole screen */
.hero:has(.hero-video) { min-height: 0 !important; height: clamp(200px, 32vw, 420px); padding: 0 !important; }

/* the header in one row (as on kitsector): logo, search, the tools on the right */
header.el-head { padding: 14px 0; }
header.el-head #top.head-tools { display: flex; justify-content: flex-end; align-items: center; gap: 4px; background: none; padding: 0; margin: 0; font-size: 14px; flex-wrap: nowrap; }
header.el-head #top.head-tools .list-inline-item { margin: 0; }
header.el-head #top.head-tools a, header.el-head #top.head-tools .dropdown-toggle, header.el-head #top.head-tools .btn-link { color: #b6c2d1 !important; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 9px; border-radius: 10px; transition: color .18s, background .18s, transform .18s; }
header.el-head #top.head-tools a:hover, header.el-head #top.head-tools .dropdown-toggle:hover, header.el-head #top.head-tools .btn-link:hover { color: #fff !important; background: rgba(255, 255, 255, .06); transform: translateY(-1px); }
header.el-head #top.head-tools i { font-size: 17px; }
header.el-head #top.head-tools .dropdown-toggle::after { display: none; }
header.el-head #top.head-tools .dropdown-menu a { color: var(--text) !important; transform: none; padding: 6px 14px; border-radius: 0; display: block; }
header.el-head #top.head-tools .dropdown-menu a:hover, header.el-head #top.head-tools .dropdown-menu .active { background: #f0fbf6; color: #0b8a63 !important; }
.head-country-name { font-size: 13px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the lists of the header open over the bar of the categories (the header is above it), as on kitsector */
header.el-head { position: relative; z-index: 1035; }
header.el-head .dropdown-menu { z-index: 1050; }
.country-menu { width: 260px; max-height: 360px; overflow-y: auto; padding: 0 6px 6px; }
.country-menu .dropdown-header { position: sticky; top: 0; z-index: 1; padding: 8px 10px; background: #fff; font-weight: 700; color: var(--text); }
.country-search { margin-top: 6px; font-size: 16px; font-weight: 400; }
header.el-head #top.head-tools .country-menu .dropdown-item { padding: 5px 10px; border-radius: 6px; font-size: 14px; white-space: normal; }
header.el-head #top.head-tools .country-menu .dropdown-item.active { background: var(--accent); color: #04261b !important; font-weight: 700; }
.head-lang-code { font-size: 13px; font-weight: 600; }
.lang-menu { display: none; grid-template-columns: repeat(3, minmax(130px, auto)); gap: 2px 6px; padding: 8px; min-width: 0; }
.lang-menu.show { display: grid; }
header.el-head #top.head-tools .lang-menu .dropdown-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.lang-menu .dropdown-item img { flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
header.el-head #top.head-tools .lang-menu .dropdown-item.active { background: var(--accent); color: #04261b !important; font-weight: 700; }
@media (max-width: 575px) {
  .lang-menu { grid-template-columns: repeat(2, auto); gap: 0 4px; padding: 6px; }
  .lang-menu.show { position: fixed !important; inset: 64px 8px auto auto !important; transform: none !important; }
}
.head-count-link { position: relative; }
.head-count { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #04261b; font-size: 11px; font-weight: 800; line-height: 17px; text-align: center; }
@media (max-width: 991px) { .head-country-name { display: none; } }
@media (min-width: 992px) { .el-head .head-search-col { padding-left: 24px; padding-right: 12px; max-width: 640px; } }

/* contact: the info on the left, the form as a card on the right */
.contact-grid { display: grid; grid-template-columns: 360px 1fr; gap: 22px; margin-bottom: 40px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.contact-card h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.contact-card-dark { background: var(--ink); border-color: var(--ink); color: #b6c4d4; display: flex; flex-direction: column; gap: 14px; }
.contact-line { display: flex; gap: 12px; align-items: center; }
.contact-line small { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8696a8; }
.contact-line a, .contact-line b { color: #fff; font-weight: 700; font-size: 16px; }
.contact-line a:hover { color: var(--accent); }
.contact-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(25, 197, 143, .15); color: var(--accent); font-size: 18px; }
.contact-topics { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.contact-topics li { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 14px; }
.contact-topics i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #f0fbf6; color: var(--accent); font-size: 13px; flex: none; }
.contact-card-note { border-left: 4px solid var(--warn); }
.contact-card-note h2 i { color: #b8860b; margin-right: 4px; }
.contact-card-note p { color: var(--muted); font-size: 14px; }
.contact-card-note a { font-weight: 600; font-size: 14px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px; }
.contact-form h2 { font-size: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
.contact-form .form-control { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.contact-form .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25, 197, 143, .2); }
.contact-send { display: flex; justify-content: flex-end; }
@media (max-width: 991px) { .contact-grid { grid-template-columns: 1fr; } }

/* events: the contests as dark cards with the days left, the events as rows with a date block */
.ev-section { margin-bottom: 32px; }
.contest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.contest-card { position: relative; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(160deg, var(--ink-2), var(--ink)); border-radius: var(--radius); padding: 20px; color: #fff; text-decoration: none; overflow: hidden; transition: transform .22s, box-shadow .22s; }
.contest-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 197, 66, .25), transparent 70%); }
.contest-card:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 0 0 1px rgba(245, 197, 66, .5), 0 18px 40px rgba(11, 16, 22, .3); }
.contest-trophy { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(245, 197, 66, .15); color: var(--warn); font-size: 18px; }
.contest-card b { font-size: 17px; line-height: 1.3; }
.contest-org { color: #9fb0c3; font-size: 13px; flex: 1; }
.contest-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; font-family: var(--mono); font-size: 12px; color: #9fb0c3; }
.contest-left { color: var(--warn); font-weight: 700; }
.ev-month { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.ev-list { display: flex; flex-direction: column; gap: 12px; }
.ev-card { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.ev-card:hover { transform: translateY(-2px); border-color: #a7ebd3; box-shadow: 0 14px 30px rgba(25, 197, 143, .12); color: var(--text); }
.ev-date { flex: none; width: 68px; height: 68px; border-radius: 14px; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ev-date b { font-family: var(--mono); font-size: 18px; color: var(--accent); }
.ev-date small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #9fb0c3; }
.ev-body { flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ev-body b { font-size: 17px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; }
.ev-go { color: var(--accent-2); font-weight: 600; font-size: 13px; white-space: nowrap; }
.ev-type { background: #e6f5fd; color: #0784bd; }
.ev-type-fair { background: #fff6dc; color: #a77b00; }
.ev-type-webinar { background: #ede9fe; color: #6d28d9; }
.ev-type-conference { background: #dcfce7; color: #166534; }
.ev-source { color: var(--muted); font-size: 13px; margin: 10px 0 40px; }
@media (max-width: 767px) { .ev-card { flex-wrap: wrap; } .ev-go { width: 100%; } }

/* the cookie consent (as on kitsector), in the green of electronics */
#cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 9999;
  opacity: 0.95;
  color: #ecf0f1;
  background: #343a40;
}
#cookie div {
  font-size: 16px;
  color: #FFFFFF;
}
#cookie {
  height: auto;
  opacity: 1;
  background: #04261b;
  border-top: 4px solid var(--accent);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.2);
  padding: 10px 0 14px 0;
}
#cookie div, #cookie p {
  font-size: 14px;
  line-height: 1.6;
}
#cookie p { margin-bottom: 12px; max-width: 900px; margin-left: auto; margin-right: auto; }
#cookie a { color: var(--paper); }
#cookie .btn { min-width: 180px; font-weight: 700; margin: 0 6px; }
@media (max-width: 575.98px) {
  
  .row-cols-1:not(.product-list):has(> .col > .product-thumb) { margin-left: -6px; margin-right: -6px; }
  .row-cols-1:not(.product-list):has(> .col > .product-thumb) > .col { flex: 0 0 auto; width: 50%; padding-left: 6px; padding-right: 6px; }
  .product-thumb .image { padding: 6px; }
  .product-thumb .description { padding: 10px; }
  .product-thumb .h4 { font-size: 13px; }
  .product-thumb .description p { display: none; }
  .product-thumb .price { font-size: 15px; }
  
  h1 { font-size: 22px; }
  #content h1 { line-height: 1.25; }
  
  #cookie { padding: 6px 0 10px 0; }
  #cookie div, #cookie p { font-size: 12px; line-height: 1.45; }
  #cookie p { margin-bottom: 8px; }
  #cookie .btn { min-width: 0; width: 46%; margin: 0 1%; padding: 6px 4px; font-size: 13px; }
}
#cookie {
  background: #fff;
  color: var(--text);
  border-top: 3px solid var(--ink-2);
  box-shadow: 0 -8px 28px rgba(35, 48, 45, 0.16);
}
#cookie a { color: var(--accent); font-weight: 600; }
#cookie .btn, #cookie .btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: #12a878;
  --bs-btn-hover-border-color: #12a878;
  --bs-btn-active-bg: #12a878;
  border-radius: 6px;
}
#cookie div, #cookie p { color: var(--text); }
#cookie-settings { --cb-blue: #19c58f; --cb-blue-dark: #12a878; --cb-text: #141414; --cb-line: #d6d6d6; }
#cookie-settings .modal-dialog { max-width: 900px; }
#cookie-settings .modal-content { font-family: Helvetica, Arial, sans-serif; }
#cookie-settings .modal-content { border: 0; border-radius: 8px; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); overflow: hidden; }
#cookie-settings .cookie-tabs { display: flex; border-bottom: 1px solid var(--cb-line); }
#cookie-settings .cookie-tabs button { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; padding: 16px 6px 14px; font-weight: 700; font-size: 15px; color: var(--cb-text); }
#cookie-settings .cookie-tabs .btn-close { flex: 0 0 auto; align-self: center; margin: 0 16px; padding: 8px; border: 0; }
#cookie-settings .cookie-tabs button:hover { color: var(--cb-blue); }
#cookie-settings .cookie-tabs button.active { color: var(--cb-blue); border-bottom-color: var(--cb-blue); }
#cookie-settings .modal-body { padding: 20px 24px; }
#cookie-settings .cookie-title { font-size: 16px; font-weight: 700; margin: 4px 0 12px; color: var(--cb-text); }
#cookie-settings .cookie-pane p { font-size: 15px; line-height: 1.6; color: var(--cb-text); }
#cookie-settings .cookie-pane a { color: var(--cb-blue-dark); font-weight: 600; }
#cookie-settings .cookie-kind { border-bottom: 1px solid var(--cb-line); padding: 16px 0; }
#cookie-settings .cookie-kind:last-child { border-bottom: 0; }
#cookie-settings .cookie-kind-head { display: flex; align-items: center; gap: 10px; }
#cookie-settings .cookie-kind-head label { font-weight: 700; font-size: 15px; color: var(--cb-text); margin: 0 0 0 8px; cursor: pointer; }
#cookie-settings .cookie-toggle { background: none; border: 0; padding: 0; width: 22px; color: var(--cb-text); }
#cookie-settings .cookie-toggle i { transition: transform .2s; }
#cookie-settings .cookie-folded .cookie-toggle i { transform: rotate(-90deg); }
#cookie-settings .cookie-folded > p { display: none; }
#cookie-settings .cookie-count { background: var(--cb-line); color: var(--cb-text); border-radius: 10px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
#cookie-settings .cookie-kind > p { margin: 12px 0 0 40px; font-size: 14px; }
#cookie-settings .form-switch { margin: 0 0 0 auto; padding: 0; min-height: 0; }
#cookie-settings .form-switch .form-check-input { width: 56px; height: 32px; margin: 0; float: none; cursor: pointer; background-color: var(--cb-text); border-color: var(--cb-text); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"); }
#cookie-settings .form-switch .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(0, 162, 255, .3); }
#cookie-settings .form-switch .form-check-input:checked { background-color: var(--cb-blue); border-color: var(--cb-blue); }
#cookie-settings .form-switch .form-check-input:disabled { opacity: 1; }
#cookie-settings .cookie-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 24px; border-top: 1px solid var(--cb-line); }
#cookie-settings .cookie-buttons .btn { margin: 0; padding: 15px 8px; font-weight: 700; font-size: 15px; border-radius: 4px; border: 2px solid var(--cb-blue); background: var(--cb-blue); color: var(--cb-text); }
#cookie-settings .cookie-buttons .btn:hover, #cookie-settings .cookie-buttons .btn:focus { background: var(--cb-blue-dark); border-color: var(--cb-blue-dark); color: var(--cb-text); }
#cookie-settings .cookie-buttons .btn i { font-size: 12px; margin-left: 6px; }
#cookie-settings .cookie-buttons .d-none { display: none !important; }
@media (max-width: 575.98px) {
  #cookie-settings .modal-body { padding: 14px 16px; }
  #cookie-settings .cookie-pane p { font-size: 14px; }
  #cookie-settings .cookie-kind > p { margin-left: 32px; font-size: 13px; }
  #cookie-settings .cookie-buttons { grid-template-columns: 1fr; gap: 8px; padding: 12px 16px; }
  #cookie-settings .cookie-buttons .btn { padding: 11px 8px; }
}
@media print {
  body.printing > *:not(#print-sheet) { display: none !important; }
  body.printing #print-sheet { display: block; font-size: 12pt; color: #000; }
  #print-sheet h1 { font-size: 18pt; margin-bottom: 8pt; }
  #print-sheet table { width: 100%; border-collapse: collapse; }
  #print-sheet th, #print-sheet td { border: 1px solid #999; padding: 4pt 6pt; }
  #print-sheet a { color: #000; text-decoration: none; }
  .print-sheet-url { margin-top: 10pt; font-size: 9pt; color: #555; }
  #account-workshop .breadcrumb, #account-workshop .nav-tabs, #account-workshop .workshop-intro, #account-workshop .tab-pane:not(.active),
  #account-workshop #column-right, #account-workshop .btn, header, footer, #top, nav, .cookie-consent { display: none !important; }
  
  #account-workshop #column-left, #account-workshop .modal, .modal-backdrop, #account-workshop .ks-picker, #account-workshop .shopping-bought,
  .usp-strip, #cookie-settings { display: none !important; }
  #account-workshop #content { flex: 0 0 100%; max-width: 100%; }
  
  #account-workshop h1 { font-size: 16pt; margin: 0 0 8pt; }
  #account-workshop .needs-head p { font-size: 10pt; color: #000; margin-bottom: 6pt; }
  #account-workshop .shopping-head { font-size: 12pt; font-weight: 700; margin: 12pt 0 4pt; color: #000; }
  #account-workshop .shopping-head .workshop-count { background: none; border: 0; padding: 0; color: #000; }
  #account-workshop .shopping-head .workshop-count::before { content: "("; }
  #account-workshop .shopping-head .workshop-count::after { content: ")"; }
  #account-workshop ul.workshop-shopping { display: block; list-style: none; margin: 0; padding: 0; columns: auto; }
  #account-workshop ul.workshop-shopping > li { display: block; position: relative; margin: 0; padding: 4pt 0 4pt 20pt !important; border: 0; border-bottom: 1px solid #bbb; border-radius: 0; background: none; box-shadow: none; font-size: 11pt; line-height: 1.35; color: #000; break-inside: avoid; }
  #account-workshop ul.workshop-shopping > li::before { content: ""; position: absolute; left: 0; top: 5pt; width: 10pt; height: 10pt; border: 1.2pt solid #000; }
  #account-workshop ul.workshop-shopping img { display: none !important; }
  #account-workshop ul.workshop-shopping a { color: #000; text-decoration: none; }
  #account-workshop .shopping-paint strong { font-weight: 700; }
  #account-workshop .workshop-shopping-codes { display: inline; margin-left: 6pt; font-size: 10pt; }
  #account-workshop .workshop-shopping-codes::before { content: "– "; }
  #account-workshop .workshop-shopping-kits { display: block; font-size: 9pt; color: #444; }
}
@media print {
  #cookie-settings, .modal-backdrop, #column-left, .shopping-add, .workshop-summary, #account-workshop h1 .fa-solid,
  .workshop-shopping .btn-close, .usp-strip, #alert { display: none !important; }
  body.modal-open { overflow: visible !important; }
  #account-workshop #content { border: 0 !important; padding: 0 !important; box-shadow: none !important; }
}
#cookie-settings { --cb-blue: #19c58f; --cb-blue-dark: #12a878; }
#cookie-settings .form-switch .form-check-input { background-color: #c4cbc8; border-color: #c4cbc8; }
#cookie-settings .form-switch .form-check-input:checked { background-color: var(--cb-blue); border-color: var(--cb-blue); }
#cookie-settings .form-switch .form-check-input:disabled { background-color: #a7ebd3; border-color: #a7ebd3; }
#cookie-settings .form-switch .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(232, 131, 58, .3); }
#cookie-settings .cookie-buttons .btn, #cookie-settings .cookie-buttons .btn:hover, #cookie-settings .cookie-buttons .btn:focus { color: #fff; }
#cookie-settings .modal-content { font-family: Inter, system-ui, sans-serif; border-radius: var(--radius); }
