/* ==========================================================================
   ChordSpec Studio — Toko Alat Musik (gitar, keyboard/piano, drum, DJ/audio)
   Archetype: Tech Spec Powerhouse (4th implementation, after "HydroSpec Lab",
   "TorqueSpec Garage" & "VoltraSpec Hub") — feature-matrix, deep-dive
   edukatif, performance-tier tab + bar chart, before/after slider servis,
   sortable spec table, grid SKU/varian, dan fitur khas baru "Sound Match"
   (radar-chart pembanding profil tonal 2 alat musik).
   Palette: "Tonewood & Amber" — walnut/rosewood brown + amber-gold + deep
   burgundy varnish accent di atas nyaris-hitam hangat (bukan dark tech
   indigo-neon ala VoltraSpec) — nuansa bengkel luthier/kriya suara, bukan
   laboratorium elektronik.
   ========================================================================== */

:root {
  --primary: #c9782e;
  --primary-light: #e2995a;
  --secondary: #8a3a2e;
  --secondary-light: #b34f3f;
  --accent: #d4af37;
  --accent-light: #e8c766;
  --bg: #140d09;
  --surface: #1f150e;
  --surface-2: #2a1c12;
  --border: #3d2a1a;
  --text: #f5ece0;
  --text-muted: #c2a98f;
  --success: #4a9d6b;
  --warning: #d4af37;
  --danger: #c0453a;
  --info: #5c9bb0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 26px rgba(0,0,0,0.45);
  --shadow-lg: 0 22px 52px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(201,120,46,0.28);
  --font-head: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Karla', 'Segoe UI', sans-serif;
}

/* Dark = native identity (warm workshop-at-dusk tone). Light is a genuine
   parchment/ivory inversion, not just a lifted-dark variant. */
:root[data-theme="light"] {
  --bg: #faf3e8;
  --surface: #ffffff;
  --surface-2: #f2e6d3;
  --border: #e3d0b0;
  --text: #2c1c10;
  --text-muted: #6b5240;
  --shadow-glow: 0 0 40px rgba(201,120,46,0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 76px 0; }
.section-tight { padding: 46px 0; }
.text-center { text-align: center; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.74rem; margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
.section-desc { color: var(--text-muted); max-width: 640px; margin: 0 auto 36px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #241505; padding: 10px 16px; z-index: 2000; font-weight: 700; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---- Buttons (Elevated, tactile — like brass hardware/knobs) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 12px; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; font-size: 0.94rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease; font-family: var(--font-body);
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #241505; box-shadow: 0 10px 24px rgba(201,120,46,0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-gold { background: var(--accent); color: #241505; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-dark { background: transparent; border-color: var(--primary); color: var(--primary-light); }
.btn-outline-dark:hover { background: var(--primary); color: #241505; }
.btn-sm { padding: 10px 18px; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ---- Navbar: solid from start (workshop signage, not auto-hide) with
   subtle thicken+shadow on scroll (pattern contrast vs Lumenstage's
   blur-thicken and VoltraSpec's glass) ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: var(--surface); border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.is-solid { box-shadow: var(--shadow); }
.navbar-inner { display: flex; align-items: center; gap: 22px; padding: 16px 20px; max-width: 1240px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; flex-shrink: 0; color: var(--text); }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-link { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-toggle { background: var(--surface-2); border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--text); }
.hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text); }
@media (max-width: 940px) { .nav-links { display: none; } .hamburger { display: block; } }

.mobile-menu { display: none; }
@media (max-width: 940px) {
  .mobile-menu {
    display: block; position: fixed; inset: 0 0 0 auto; width: min(320px, 88vw); height: 100vh;
    background: var(--surface); transform: translateX(100%); transition: transform 0.28s ease;
    overflow-y: auto; z-index: 950; box-shadow: var(--shadow-lg); padding: 90px 20px 20px;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text); }
}

/* ---- Hero: dark tech-craft look ---- */
.hero {
  position: relative; overflow: hidden; color: #fdf6ec; padding-top: 150px;
  background:
    radial-gradient(circle at 12% 10%, rgba(201,120,46,0.28), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(212,175,55,0.18), transparent 45%),
    linear-gradient(180deg, #1c130c 0%, #140d09 70%);
}
.hero-grain { position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 5px); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding: 30px 0 70px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); padding: 8px 18px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.1; }
.hero h1 span { background: linear-gradient(120deg, var(--accent-light), var(--primary-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: #e6d8c6; font-size: 1.05rem; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 900px) { .hero-cta { justify-content: center; } }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 46px; }
@media (max-width: 900px) { .hero-stats { justify-content: center; } }
.hero-stat b { display: block; font-family: var(--font-head); font-size: 1.9rem; background: linear-gradient(120deg, var(--accent-light), var(--primary-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stat span { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-glow); border: 1px solid rgba(255,255,255,0.14); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Marquee (brand partner badges) ---- */
.marquee-row { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 10px; padding: 0 34px; flex-shrink: 0; color: var(--text-muted); font-weight: 700; font-size: 0.9rem; white-space: nowrap; border-right: 1px solid var(--border); }
.marquee-item i { color: var(--accent); font-size: 1.15rem; }

/* ---- Deep-dive edukatif (Tech Spec ciri #2) ---- */
.deepdive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .deepdive-grid { grid-template-columns: 1fr; } }
.deepdive-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.deepdive-card i.deepdive-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.deepdive-card h3 { font-size: 1.2rem; }
.deepdive-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }

/* ---- Feature matrix (8 kapabilitas) ---- */
.feature-matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .feature-matrix { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-matrix { grid-template-columns: 1fr; } }
.feature-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px 18px; text-align: center; }
.feature-item i { font-size: 1.6rem; color: var(--primary); margin-bottom: 12px; display: block; }
.feature-item h4 { font-size: 0.98rem; margin-bottom: 6px; }
.feature-item p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0; }

/* ---- Performance-tier tabs + bar chart ---- */
.tier-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.tier-tab-btn { background: var(--surface); border: 2px solid var(--border); color: var(--text-muted); padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-family: var(--font-head); font-size: 1rem; }
.tier-tab-btn.active { border-color: var(--primary); color: #241505; background: linear-gradient(120deg, var(--accent), var(--primary)); }
.tier-panel { display: none; }
.tier-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
@media (max-width: 860px) { .tier-panel.active { grid-template-columns: 1fr; } }
.tier-desc-list { list-style: none; padding: 0; margin: 0; }
.tier-desc-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.tier-desc-list li i { color: var(--primary); margin-top: 3px; }
.bar-chart { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 60px; gap: 12px; align-items: center; }
.bar-row span:first-child { font-size: 0.82rem; color: var(--text-muted); }
.bar-track { background: var(--surface-2); border-radius: 999px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); width: 0; transition: width 1s ease; }
.bar-row span:last-child { font-size: 0.82rem; font-weight: 700; text-align: right; }

/* ---- Before/After slider (servis) ---- */
.ba-slider { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); max-width: 720px; margin: 0 auto; user-select: none; box-shadow: var(--shadow); }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba-after-wrap img { width: 200%; max-width: none; }
.ba-after-wrap { width: 50%; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--accent); cursor: ew-resize; transform: translateX(-2px); }
.ba-handle-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #241505; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.ba-label { position: absolute; top: 14px; background: rgba(20,13,9,0.72); color: #fff; padding: 5px 14px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.ba-label.before { left: 14px; }
.ba-label.after { right: 14px; }

/* ---- Sortable spec table (signature comparative element) ---- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.spec-sort-table { width: 100%; border-collapse: collapse; min-width: 760px; background: var(--surface); }
.spec-sort-table th, .spec-sort-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.88rem; }
.spec-sort-table thead th { font-family: var(--font-head); font-size: 1rem; background: var(--surface-2); cursor: pointer; user-select: none; white-space: nowrap; }
.spec-sort-table thead th i { margin-left: 6px; color: var(--text-muted); font-size: 0.78rem; }
.spec-sort-table thead th.sorted i { color: var(--accent); }
.spec-sort-table tbody tr:hover { background: var(--surface-2); }
.spec-sort-table tr:last-child td { border-bottom: none; }

/* ---- SKU / variant grid ---- */
.sku-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .sku-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sku-grid { grid-template-columns: 1fr; } }
.sku-chip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.sku-chip .sku-swatch { width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 8px; border: 2px solid var(--border); }
.sku-chip b { display: block; font-size: 0.86rem; }
.sku-chip span { font-size: 0.76rem; color: var(--text-muted); }

/* ---- Sound Match (fitur khas baru — radar chart pembanding) ---- */
.soundmatch-band { background: linear-gradient(150deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.soundmatch-controls { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: end; margin-bottom: 28px; }
@media (max-width: 760px) { .soundmatch-controls { grid-template-columns: 1fr; } }
.soundmatch-vs { text-align: center; font-family: var(--font-head); font-size: 1.6rem; color: var(--accent); }
.soundmatch-body { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
@media (max-width: 860px) { .soundmatch-body { grid-template-columns: 1fr; } }
.soundmatch-legend { display: flex; gap: 20px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.soundmatch-legend span { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 700; }
.soundmatch-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.soundmatch-table { list-style: none; padding: 0; margin: 0; }
.soundmatch-table li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.soundmatch-table li:last-child { border-bottom: none; }
.soundmatch-table b { font-weight: 800; }

/* ---- Cards / grid generic ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-body { padding: 20px; }
.card-tag { display: inline-block; background: var(--surface-2); color: var(--primary); font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-sm); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- Product card ---- */
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; display: block; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #241505; font-size: 0.66rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.product-body { padding: 18px 20px 20px; }
.product-cat { font-size: 0.72rem; color: var(--secondary); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.product-title { font-size: 1.1rem; margin: 6px 0; }
.product-price { font-family: var(--font-head); font-size: 1.2rem; color: var(--primary); font-weight: 700; }
.product-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

/* ---- Chips / search / catalog toolbar ---- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--surface); border: 1px solid var(--border); padding: 9px 18px; border-radius: 999px; font-size: 0.86rem; font-weight: 700; cursor: pointer; color: var(--text-muted); }
.chip.active { background: linear-gradient(120deg, var(--primary), var(--accent)); color: #241505; border-color: transparent; }
.no-result { text-align: center; padding: 40px 20px; color: var(--text-muted); display: none; }
.no-result.show { display: block; }
.search-box { flex: 1; min-width: 220px; position: relative; }
.search-box input { width: 100%; padding: 12px 16px 12px 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 0.95rem; }
.search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.catalog-toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }

/* ---- Timeline (About) ---- */
.timeline { position: relative; padding-left: 30px; border-left: 3px solid var(--border); }
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item::before { content: ''; position: absolute; left: -38px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--primary); }
.timeline-year { color: var(--accent); font-weight: 800; font-family: var(--font-head); font-size: 1.1rem; }

/* ---- Stat band ---- */
.stat-band { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat-grid b { font-size: 2rem; font-family: var(--font-head); display: block; color: var(--accent); }
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2,1fr); } }

/* ---- FAQ Accordion ---- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.accordion-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; cursor: pointer; font-weight: 700; }
.accordion-head i { transition: transform 0.25s ease; color: var(--primary); }
.accordion-item.open .accordion-head i { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); }
.accordion-body-inner { padding: 0 20px 18px; }
.accordion-item.open .accordion-body { max-height: 400px; }

/* ---- Testimonials ---- */
.testi-single { max-width: 720px; margin: 0 auto; text-align: center; }
.testi-stars { color: var(--warning); margin-bottom: 14px; font-size: 1.1rem; }
.testi-quote { font-family: var(--font-head); font-size: 1.3rem; line-height: 1.5; }
.testi-who { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.testi-who img { width: 48px; height: 48px; border-radius: 50%; }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.testi-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; }
.testi-dots button.active { background: var(--primary); width: 22px; border-radius: 6px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }
.form-control { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 0.95rem; }
.form-control:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

/* ---- Breadcrumb / page header ---- */
.page-header { background: linear-gradient(150deg, #241505, #140d09); color: #fdf6ec; padding: 140px 0 50px; position: relative; overflow: hidden; }
.breadcrumb { font-size: 0.85rem; color: #e0cdb2; margin-bottom: 10px; }
.breadcrumb a { color: #fff; font-weight: 600; }

/* ---- Detail split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.spec-table td:first-child { color: var(--text-muted); width: 42%; }

/* ---- Product gallery + lightbox ---- */
.pd-gallery-main { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 14px; background: var(--surface-2); }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--border); cursor: pointer; }
.pd-gallery-thumbs img.active { border-color: var(--accent); }

/* ---- Sound sample placeholder ---- */
.sample-player { display: flex; align-items: center; gap: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; }
.sample-play-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #241505; border: none; font-size: 1.1rem; flex-shrink: 0; cursor: not-allowed; }
.sample-waveform { flex: 1; height: 36px; }
.sample-note { font-size: 0.78rem; color: var(--text-muted); margin: 8px 0 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---- Footer ---- */
footer { background: #140d09; color: #cbb59d; padding: 56px 0 24px; margin-top: 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h5 { color: #fdf6ec; font-family: var(--font-head); margin-bottom: 14px; font-size: 1.05rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 18px; text-align: center; font-size: 0.82rem; color: #8a7460; }
.social-icons { display: flex; gap: 10px; margin-top: 14px; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Floating elements ---- */
.float-wa { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: var(--shadow-lg); z-index: 500; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5);} 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }
.back-to-top { position: fixed; bottom: 24px; right: 92px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #241505; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 500; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; cursor: pointer; border: none; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* ---- Modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,6,3,0.75); display: flex; align-items: center; justify-content: center; z-index: 1200; opacity: 0; visibility: hidden; transition: all 0.2s ease; padding: 20px; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 30px; transform: translateY(20px); transition: transform 0.25s ease; position: relative; }
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--surface-2); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--text); }
.modal-box img { border-radius: var(--radius-sm); margin-bottom: 16px; }

/* ---- Toast ---- */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 1500; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--success); box-shadow: var(--shadow-lg); border-radius: var(--radius-sm); padding: 14px 18px; min-width: 260px; max-width: 340px; display: flex; gap: 10px; align-items: flex-start; transform: translateX(120%); transition: transform 0.3s ease; color: var(--text); }
.toast.show { transform: translateX(0); }
.toast i { color: var(--success); margin-top: 2px; }
.toast.error { border-left-color: var(--danger); }
.toast.error i { color: var(--danger); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- Skeleton loading ---- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---- Utility ---- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-accent { color: var(--primary); }
.bg-surface { background: var(--surface); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
