/* =====================================================================
   DAP TUNE - public website
   ===================================================================== */

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(7, 7, 7, 0.86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav { display: flex; align-items: center; height: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 36px; width: auto; max-width: 180px; object-fit: contain; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.wordmark b { color: var(--red); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a {
  display: block; padding: 8px 12px; font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #bdbdbd; position: relative; transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--red); }
/* Small, neutral Log In (never a big red button) */
.nav-login {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; margin-left: 8px; border-radius: 7px;
  border: 1px solid var(--border); background: #121212; color: #cfcfcf; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
}
.nav-login:hover { background: #1a1a1a; color: #fff; }
.hamburger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--border); background: #111; border-radius: 9px; cursor: pointer; align-items: center; justify-content: center; }
.hamburger span, .hamburger span::before, .hamburger span::after { display: block; width: 18px; height: 2px; background: #ddd; position: relative; transition: 0.2s; }
.hamburger span::before, .hamburger span::after { content: ''; position: absolute; left: 0; }
.hamburger span::before { top: -6px; } .hamburger span::after { top: 6px; }
.nav-open .hamburger span { background: transparent; }
.nav-open .hamburger span::before { top: 0; transform: rotate(45deg); }
.nav-open .hamburger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  /* backdrop-filter would trap the fixed menu inside the header - use a solid header on small screens */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #070707; }
  .hamburger { display: inline-flex; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 150; background: #070707; padding: 18px 20px 40px;
    display: none; flex-direction: column; overflow-y: auto; border-top: 1px solid var(--border-soft);
  }
  .nav-open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .nav-links a { padding: 16px 4px; font-size: 1.25rem; border-bottom: 1px solid var(--border-soft); }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--red); }
  .nav-login { margin: 22px 0 0; height: 42px; justify-content: center; font-size: 0.95rem; }
}
@media (min-width: 901px) { .nav-menu { display: flex; align-items: center; margin-left: auto; } }

/* ---------------- Sections ---------------- */
main { min-height: calc(100vh - var(--header-h) - 200px); }
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--border-soft); }
.section-alt { background: var(--bg-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red); }
.h2 { font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3rem); text-transform: uppercase; letter-spacing: 0.01em; }
.section-sub { color: var(--text-2); max-width: 620px; margin-top: 10px; }
.link-arrow { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.92rem; color: #ddd; white-space: nowrap; }
.link-arrow:hover { color: #fff; }
.link-arrow::after { content: ' →'; color: var(--red); }

.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border-soft); background: radial-gradient(1200px 300px at 20% -20%, #161616, transparent); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 3.6rem); text-transform: uppercase; }
.page-hero p { color: var(--text-2); max-width: 680px; margin-top: 12px; }
.page-body { padding-top: 48px; padding-bottom: 88px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(225, 6, 0, 0.08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 100% 56px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: 0.98; text-transform: uppercase; letter-spacing: 0.005em; }
.hero h1 .accent { color: var(--red); }
.hero-sub { color: #b4b4b4; font-size: 1.1rem; max-width: 560px; margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 34px; color: var(--text-2); font-size: 0.9rem; }
.hero-tags span { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags span::before { content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 1px; transform: rotate(45deg); }
.hero-version { margin-top: 18px; font-size: 0.85rem; color: var(--text-3); }

/* Software window visual */
.sw-window { background: #0d0d0d; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); overflow: hidden; }
.sw-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #141414; border-bottom: 1px solid var(--border); font-size: 0.78rem; color: var(--text-2); }
.sw-dots { display: flex; gap: 6px; }
.sw-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c2c; }
.sw-title { margin-left: 8px; font-family: var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: #ccc; }
.sw-title b { color: var(--red); }
.sw-tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: #111; border-bottom: 1px solid var(--border); overflow: hidden; }
.sw-tabs span { padding: 6px 12px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #777; border-radius: 6px 6px 0 0; white-space: nowrap; }
.sw-tabs span.on { background: #0d0d0d; color: #eee; box-shadow: inset 0 2px 0 var(--red); }
.sw-body { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; padding: 14px; }
.map-grid { display: grid; grid-template-columns: 34px repeat(8, minmax(0, 1fr)); gap: 2px; font-family: ui-monospace, Consolas, monospace; font-size: 0.66rem; }
.map-grid div { padding: 5px 2px; text-align: center; border-radius: 2px; color: #ddd; }
.map-grid .hd { color: #777; background: transparent; }
.gauges { display: flex; flex-direction: column; gap: 8px; }
.gauge { background: #121212; border: 1px solid #1f1f1f; border-radius: 8px; padding: 8px 10px; }
.gauge small { display: block; font-size: 0.62rem; letter-spacing: 0.12em; color: #777; text-transform: uppercase; }
.gauge strong { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.02em; }
.gauge .bar { height: 3px; background: #222; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.gauge .bar i { display: block; height: 100%; background: #bbb; }
.gauge.hot .bar i { background: var(--red); }
.sw-status { display: flex; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--border); font-size: 0.7rem; color: #777; font-family: ui-monospace, Consolas, monospace; }
.sw-status .ok::before { content: '● '; color: var(--green); }
.hero-image { width: 100%; max-height: 520px; object-fit: contain; border-radius: 14px; }

@media (max-width: 980px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 520px) {
  .sw-body { grid-template-columns: 1fr; }
  .gauges { flex-direction: row; }
  .gauge { flex: 1; }
  .map-grid { font-size: 0.56rem; grid-template-columns: 22px repeat(8, minmax(0, 1fr)); }
  .map-grid div { padding: 4px 0; }
}

/* ---------------- Product cards ---------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

/* BUG 3 FIX: flex column + margin-top:auto keeps ORDER NOW docked to the bottom of every card */
.product-card {
  display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--border-soft);
  border-radius: 14px; overflow: hidden; transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: #333; transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #0b0b0b; border-bottom: 1px solid var(--border-soft); }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-media .noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #3a3a3a; font-family: var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.85rem; }
.card-status { position: absolute; top: 12px; right: 12px; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; gap: 8px; }
.card-cat { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
.card-title { font-family: var(--font-display); font-size: 1.45rem; text-transform: uppercase; letter-spacing: 0.01em; }
.card-title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.card-desc { color: var(--text-2); font-size: 0.92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta-line { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: #cfcfcf; flex-wrap: wrap; }
.meta-line .muted { font-size: 0.85rem; }
.counter { color: #cfcfcf; font-size: 0.86rem; font-weight: 600; }
.counter b { color: #fff; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.price-now { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: #fff; }
.price-old { color: var(--text-3); text-decoration: line-through; font-size: 1rem; }
.price-ask { color: var(--text-2); font-size: 0.95rem; }
.card-actions { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; }
.card-actions .btn { flex: 1; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; background: #1c1c1c; color: #d5d5d5; border: 1px solid #2a2a2a;
}
.badge-red { background: var(--red); color: #fff; border-color: var(--red); }
.badge-outline-red { background: var(--red-soft); color: #ff5a55; border-color: rgba(225, 6, 0, 0.35); }
.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(0, 0, 0, 0.7); border: 1px solid #2a2a2a; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.status-out_of_stock::before { background: #777; }
.status-coming_soon::before { background: var(--amber); }

/* ---------------- Filters ---------------- */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.toolbar .input { max-width: 340px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: #0f0f0f; color: #bbb; cursor: pointer;
  font-size: 0.86rem; font-weight: 600; white-space: nowrap;
}
.chip:hover { color: #fff; border-color: #3a3a3a; }
.chip.on { background: #f5f5f5; color: #000; border-color: #f5f5f5; }

/* ---------------- Why ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden; }
.why-card { background: var(--bg); padding: 30px 28px; }
.why-num { font-family: var(--font-display); color: var(--red); font-weight: 700; letter-spacing: 0.14em; font-size: 0.85rem; }
.why-card h3 { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; margin: 10px 0 8px; }
.why-card p { color: var(--text-2); margin: 0; font-size: 0.95rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------------- Screenshots ---------------- */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.shot { background: var(--card); border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; cursor: zoom-in; padding: 0; text-align: left; }
.shot img, .shot video { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #0a0a0a; }
.shot figcaption { padding: 12px 16px; color: var(--text-2); font-size: 0.9rem; border-top: 1px solid var(--border-soft); }
.shot-video { cursor: default; }
.shot iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr; } }

/* ---------------- Supported units ---------------- */
.unit-families { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.unit-family { background: var(--card); border: 1px solid var(--border-soft); border-radius: 12px; padding: 18px 20px; }
.unit-family h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; display: flex; justify-content: space-between; gap: 10px; }
.unit-family h3 small { color: var(--text-3); font-size: 0.85rem; font-family: var(--font); font-weight: 600; }
.unit-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.unit-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border-soft); font-size: 0.92rem; }
.unit-row .u-name { font-weight: 600; }
.unit-row .u-meta { color: var(--text-3); font-size: 0.8rem; margin-top: 2px; }
.unit-row .u-feat { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.unit-row .u-feat span { font-size: 0.7rem; padding: 2px 7px; border-radius: 4px; background: #1a1a1a; color: #bbb; }
.u-status { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; color: var(--green); }
.u-status.beta { color: var(--amber); } .u-status.coming_soon { color: #888; }
.unit-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.unit-pill { padding: 12px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-weight: 600; font-size: 0.95rem; }
.unit-pill small { color: var(--text-3); margin-left: 6px; }
@media (max-width: 960px) { .unit-families { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .unit-families { grid-template-columns: 1fr; } }

/* ---------------- Download cards (BUG 2 FIX: full-width, uncropped image) ---------------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.dl-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden; }
.dl-image { width: 100%; background: #0a0a0a; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center; }
.dl-image img { width: 100%; height: clamp(240px, 30vw, 380px); object-fit: contain; }
.dl-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.dl-body h3 { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }
.dl-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 18px; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.dl-meta dt { font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.dl-meta dd { margin: 2px 0 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.dl-notes { color: var(--text-2); font-size: 0.93rem; }
.dl-notes ul { padding-left: 18px; margin: 0 0 0.8em; }
.dl-hash { font-family: ui-monospace, Consolas, monospace; font-size: 0.75rem; color: #8a8a8a; word-break: break-all; background: #0b0b0b; border: 1px solid var(--border-soft); border-radius: 6px; padding: 8px 10px; margin-bottom: 14px; }
.dl-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.dl-actions .btn { flex: 1 1 160px; }
.unavailable { display: inline-flex; align-items: center; gap: 8px; color: #b9b9b9; font-size: 0.92rem; padding: 10px 14px; border: 1px dashed #333; border-radius: 8px; background: #0d0d0d; }
.featured-tag { align-self: flex-start; margin-bottom: 10px; }
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .dl-image img { height: auto; max-height: 360px; aspect-ratio: auto; } }

/* ---------------- Testimonials ---------------- */
.t-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.t-card blockquote { margin: 0; color: #d8d8d8; font-size: 1rem; }
.t-who { margin-top: auto; font-weight: 700; }
.t-who small { display: block; color: var(--text-3); font-weight: 500; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--border-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq .ans { color: var(--text-2); padding: 0 0 20px; }

/* ---------------- CTA band ---------------- */
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; padding: 56px 48px; background: linear-gradient(135deg, #121212, #0a0a0a); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border: 40px solid rgba(225, 6, 0, 0.08); border-radius: 50%; pointer-events: none; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); text-transform: uppercase; }
.cta-band p { color: var(--text-2); margin: 8px 0 0; max-width: 560px; }
@media (max-width: 600px) { .cta-band { padding: 36px 24px; } .cta-band .btn { width: 100%; } }

/* ---------------- Product detail ---------------- */
.crumbs { font-size: 0.85rem; color: var(--text-3); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pd-info h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.2rem); text-transform: uppercase; margin: 10px 0 12px; }
.pd-info .price-now { font-size: 2.4rem; }
.save { color: #ff5a55; font-weight: 700; font-size: 0.92rem; background: var(--red-soft); padding: 3px 9px; border-radius: 6px; }
.pd-short { color: #c4c4c4; font-size: 1.05rem; margin: 18px 0; }
.pd-actions { display: flex; gap: 10px; margin: 24px 0 8px; flex-wrap: wrap; }
.pd-actions .btn-primary { flex: 1 1 220px; height: 52px; font-size: 1.1rem; }
.pd-hint { font-size: 0.82rem; color: var(--text-3); }
.pd-block { margin-top: 40px; }
.pd-block h2 { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.pd-block h2::before { content: ''; width: 4px; height: 18px; background: var(--red); }
.prose { color: #c9c9c9; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-soft); background: var(--card); border-radius: 10px; font-size: 0.95rem; }
.feature-list li::before { content: ''; flex: none; margin-top: 7px; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border-radius: 8px; background: #151515; border: 1px solid var(--border); font-size: 0.88rem; }
.pdl-list { border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; }
.pdl-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; background: var(--card); flex-wrap: wrap; }
.pdl-row + .pdl-row { border-top: 1px solid var(--border-soft); }
.pdl-row strong { display: block; }
.pdl-row small { color: var(--text-3); }
.meta-table { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 0.92rem; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.meta-table dt { color: var(--text-3); }
.meta-table dd { margin: 0; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; gap: 28px; } .feature-list { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.g-main { position: relative; background: #0b0b0b; border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; touch-action: pan-y; user-select: none; }
.g-track { display: flex; height: 100%; transition: transform 0.3s ease; }
.g-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.g-slide img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid #333; background: rgba(10, 10, 10, 0.75); color: #fff; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.g-nav:hover { background: #1a1a1a; }
.g-prev { left: 12px; } .g-next { right: 12px; }
.g-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, 0.7); padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; color: #ddd; }
.g-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.g-thumb { aspect-ratio: 1; border: 1px solid var(--border-soft); border-radius: 8px; overflow: hidden; background: #0b0b0b; cursor: pointer; padding: 0; }
.g-thumb img { width: 100%; height: 100%; object-fit: contain; }
.g-thumb.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
@media (max-width: 900px) { .gallery { position: static; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1500; background: rgba(0, 0, 0, 0.96); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; user-select: none; }
.lb-close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #333; background: #111; color: #fff; font-size: 1.4rem; cursor: pointer; }
.lightbox .g-nav { width: 52px; height: 52px; }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #aaa; font-size: 0.9rem; }

/* Mobile sticky order bar */
.sticky-order { display: none; }
@media (max-width: 900px) {
  .sticky-order {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; gap: 12px; align-items: center; justify-content: space-between;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 10, 10, 0.96); border-top: 1px solid var(--border); backdrop-filter: blur(10px);
  }
  .sticky-order .price-now { font-size: 1.35rem; }
  .sticky-order .btn { flex: 0 0 auto; }
  body.has-sticky main { padding-bottom: 80px; }
  body.has-sticky .fab-messenger { bottom: 86px; }
}

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border-soft); background: #050505; padding: 56px 0 28px; color: var(--text-2); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-soft); font-size: 0.82rem; color: var(--text-3); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------- Floating Messenger ---------------- */
.fab-messenger {
  position: fixed; right: 18px; bottom: 18px; z-index: 95; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #161616; border: 1px solid #333; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); transition: transform 0.15s, background 0.15s;
}
.fab-messenger:hover { transform: translateY(-2px); background: #1d1d1d; }
.fab-messenger svg { width: 24px; height: 24px; fill: #f5f5f5; }
.fab-messenger::after { content: ''; position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; background: var(--red); border-radius: 50%; border: 2px solid #161616; }

/* Not-configured notice */
.config-notice { max-width: 640px; margin: 80px auto; }

/* Support / contact */
.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.support-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.support-card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; }
.support-card p { color: var(--text-2); margin: 0; }
.support-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }
.legal { max-width: 820px; }
.legal h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; margin: 32px 0 10px; }
.legal p, .legal li { color: #c2c2c2; }

/* =====================================================================
   v2 - simple, product-first homepage
   ===================================================================== */
.brand img { height: 26px; width: auto; max-width: 220px; }
.footer-logo { height: 24px; width: auto; margin-bottom: 14px; }

.intro { padding: 22px 0 8px; }
.banner { border-radius: 16px; overflow: hidden; border: 1px solid var(--border-soft); background: #0a0a0a; }
.banner { background: #000; }
.banner img { width: 100%; height: auto; aspect-ratio: 1600 / 340; object-fit: cover; }
.intro-sub { color: var(--text-2); margin: 16px 0 0; font-size: 1rem; }

.ustrip { margin-top: 18px; padding: 16px 18px; background: var(--card); border: 1px solid var(--border-soft); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; }
.ustrip-row { display: flex; gap: 14px; align-items: flex-start; }
.ustrip-brand { flex: none; width: 74px; padding-top: 6px; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.9rem; color: #fff; }
.ustrip-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.upill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: #161616; border: 1px solid var(--border); font-size: 0.86rem; font-weight: 600; color: #e6e6e6; white-space: nowrap; transition: border-color .15s, background .15s; }
a.upill:hover { border-color: var(--red); background: #1b1010; color: #fff; }
.upill small { font-size: 0.72rem; color: var(--text-3); font-weight: 700; }
.upill-soon { border-style: dashed; color: var(--text-2); }
.upill-soon em { font-style: normal; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.ustrip-all { align-self: flex-start; font-size: 0.82rem; }
@media (max-width: 560px) {
  .ustrip-row { flex-direction: column; gap: 6px; }
  .ustrip-brand { width: auto; padding: 0; }
  .upill { height: 30px; font-size: 0.8rem; }
}

.section-tight { padding: 44px 0; }
.section-tight + .section-tight { border-top: 1px solid var(--border-soft); }
.section-head-row { align-items: center; margin-bottom: 22px; }
.section-head-row .h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }

.dl-list { border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; background: var(--card); flex-wrap: wrap; }
.dl-row + .dl-row { border-top: 1px solid var(--border-soft); }
.dl-row-info strong { display: block; }
.dl-row-info small { color: var(--text-3); }
.dl-row-info a:hover strong { text-decoration: underline; text-decoration-color: var(--red); }

.u-ecu { font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; color: #cfcfcf; margin-top: 2px; letter-spacing: 0.02em; }
.u-var { font-size: 0.72rem; font-weight: 700; color: var(--text-2); background: #1a1a1a; border-radius: 4px; padding: 1px 6px; margin-left: 4px; }

.upill-more { background: transparent; color: var(--text-2); }
.u-more-d, .u-show-m { display: none; }
@media (max-width: 700px) { .u-more-m, .u-show-d { display: none; } .u-show-m { display: inline-flex; } }

/* =====================================================================
   v3 - shop layout: sidebar + responsive product grid (phone → 4K)
   ===================================================================== */
.grid-products { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 1800px) { .grid-products { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
@media (max-width: 420px) { .grid-products { gap: 14px; } }

.shop { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 72px; }
.shop-side { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.side-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: 14px; padding: 16px; }
.side-title { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.brand-list { display: flex; flex-direction: column; gap: 4px; }
.brand-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; text-align: left; color: #d8d8d8; transition: background .15s, border-color .15s; }
.brand-item:hover { background: #171717; color: #fff; }
.brand-item.on { background: #1b1b1b; border-color: #333; color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.brand-ico { flex: none; width: 38px; height: 38px; border-radius: 9px; background: #0b0b0b; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #fff; overflow: hidden; }
.brand-ico img { width: 100%; height: 100%; object-fit: contain; }
.brand-all { color: var(--red); font-size: 1rem; }
.brand-name { flex: 1; font-weight: 700; font-size: 0.98rem; }
.brand-item small { color: var(--text-3); font-weight: 700; font-size: 0.8rem; }
.side-units + .side-units { margin-top: 12px; }
.side-units-brand { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.12em; font-size: 0.82rem; margin-bottom: 7px; }
.side-units .upill { height: 28px; padding: 0 10px; font-size: 0.78rem; }
.side-units .ustrip-pills { gap: 6px; }
.side-link { display: inline-block; margin-top: 14px; font-size: 0.78rem; }
.side-contact p { color: var(--text-2); font-size: 0.88rem; margin-bottom: 12px; }
.side-contact .btn + .btn { margin-top: 8px; }

.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.shop-kicker { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.shop-title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.6rem); text-transform: uppercase; }
.shop-search { width: min(100%, 320px); }
.shop-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-soft); }
.shop-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.shop-section-head h2 { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }
.shop .faq { max-width: none; }

/* tablet & phone: sidebar becomes a horizontal brand bar above the products */
@media (max-width: 1023px) {
  .shop { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 18px; }
  .shop-side { position: static; max-height: none; overflow: visible; }
  .side-desktop { display: none; }
  .side-card { padding: 0; background: transparent; border: 0; }
  .side-title { display: none; }
  .brand-list { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .brand-list::-webkit-scrollbar { display: none; }
  .brand-item { width: auto; flex: none; padding: 6px 12px 6px 6px; border: 1px solid var(--border); background: var(--card); border-radius: 999px; }
  .brand-item.on { box-shadow: none; border-color: var(--red); }
  .brand-ico { width: 30px; height: 30px; border-radius: 50%; font-size: 0.9rem; }
  .brand-name { font-size: 0.9rem; white-space: nowrap; }
  .shop-search { width: 100%; }
}
@media (max-width: 560px) {
  .card-body { padding: 16px; }
  .card-title { font-size: 1.3rem; }
}
@media (max-width: 560px) { .shop-kicker { font-size: 0.7rem; letter-spacing: 0.12em; } }
/* keep text pages (legal, product detail, downloads) comfortable to read on very wide screens */
.legal, .page-hero p { max-width: 860px; }
@media (min-width: 1500px) { .pd-grid { max-width: 1500px; } .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
