:root {
  --bg: #0a1018;
  --bg2: #121a26;
  --panel: #162233;
  --line: rgba(210, 224, 240, 0.12);
  --text: #e8eef7;
  --muted: #93a4b8;
  --accent: #c9a46b;
  --accent2: #3d8bfd;
  --danger: #e85d5d;
  --ok: #3ecf8e;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Helvetica Neue", sans-serif;
  --display: "Space Grotesk", "Noto Sans SC", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 139, 253, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(201, 164, 107, 0.14), transparent 50%),
    linear-gradient(180deg, #0b1220 0%, var(--bg) 40%, #070b12 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, select, input { font: inherit; }

.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(8, 12, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem; min-width: 0;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(145deg, #c9a46b, #8a6430);
  display: grid; place-items: center; font-weight: 700; color: #1a1208;
  flex: 0 0 auto;
}
.brand-text strong {
  display: block; font-family: var(--display); letter-spacing: 0.04em;
  font-size: 1rem;
}
.brand-text span { color: var(--muted); font-size: 0.78rem; }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }
.nav a:hover { color: var(--text); }

.hero {
  padding: 3.2rem 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1.4rem; max-width: 42rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 999px;
  padding: 0.75rem 1.25rem; cursor: pointer; transition: 0.2s ease;
}
.btn-primary { background: linear-gradient(135deg, #d4b07a, #a0783a); color: #16100a; font-weight: 650; }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.28); }
.hero-card {
  background: linear-gradient(180deg, rgba(22,34,51,0.95), rgba(12,18,28,0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.hero-card h3 { margin: 0 0 0.8rem; font-size: 0.95rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.ship-mini { display: grid; gap: 0.65rem; }
.ship-mini div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem;
}
.ship-mini div:last-child { border-bottom: 0; }
.ship-mini span { color: var(--muted); }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  justify-content: space-between; margin: 1.5rem 0 1rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  color: var(--muted); border-radius: 999px; padding: 0.45rem 0.9rem; cursor: pointer;
}
.chip.active, .chip:hover { color: var(--text); border-color: rgba(201,164,107,0.55); background: rgba(201,164,107,0.12); }
.search {
  display: flex; gap: 0.5rem; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem;
}
.search input {
  background: transparent; border: 0; outline: 0; color: var(--text); width: min(240px, 42vw); padding: 0.45rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  padding-bottom: 2.5rem;
}
.card {
  background: linear-gradient(180deg, rgba(22,34,51,0.9), rgba(10,16,24,0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); border-color: rgba(201,164,107,0.4); }
.card-media {
  aspect-ratio: 4/3; background: #0d1420; overflow: hidden; position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; background:#0d1420; }
.badge {
  position: absolute; top: 0.7rem; left: 0.7rem;
  background: rgba(8,12,20,0.78); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.25rem 0.6rem; font-size: 0.72rem; color: var(--accent);
}
.card-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; font-family: var(--display); }
.card-body .en { color: var(--muted); font-size: 0.8rem; }
.price-row { display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; }
.sale { color: #f0c989; font-size: 1.25rem; font-weight: 700; font-family: var(--display); }
.list { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }
.meta { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--muted); font-size: 0.82rem; }
.stock-ok { color: var(--ok); }
.stock-low { color: #f0b35a; }
.card-body .btn { margin-top: auto; width: 100%; }

.section {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}
.section h2 {
  font-family: var(--display); margin: 0 0 0.6rem; font-size: 1.6rem;
}
.section > p.lead { color: var(--muted); margin: 0 0 1.2rem; max-width: 48rem; line-height: 1.7; }
.ship-table {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.ship-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem;
}
.ship-card h3 { margin: 0 0 0.25rem; }
.ship-card .sub { color: var(--muted); font-size: 0.82rem; margin-bottom: 0.9rem; }
.ship-card dl { margin: 0; display: grid; gap: 0.55rem; }
.ship-card dt { color: var(--muted); font-size: 0.8rem; }
.ship-card dd { margin: 0.15rem 0 0; font-weight: 600; }
.note {
  margin-top: 1rem; color: var(--muted); font-size: 0.86rem; line-height: 1.65;
  padding: 0.9rem 1rem; border-left: 3px solid var(--accent); background: rgba(201,164,107,0.08);
  border-radius: 0 10px 10px 0;
}

.footer {
  border-top: 1px solid var(--line); padding: 1.5rem 0 2.2rem; color: var(--muted); font-size: 0.86rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Product detail */
.detail { padding: 2rem 0 3rem; }
.detail-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.5rem; align-items: start;
}
/* gallery+detail-media replaced below */
.detail-panel {
  background: linear-gradient(180deg, rgba(22,34,51,0.95), rgba(10,16,24,0.98));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem; box-shadow: var(--shadow);
}
.crumb { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.8rem; }
.crumb a:hover { color: var(--accent); }
.detail-panel h1 { margin: 0 0 0.35rem; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; }
.detail-panel .en { color: var(--muted); margin-bottom: 1rem; }
.tagline { color: var(--accent); margin: 0 0 1rem; }
.buy-box {
  display: grid; gap: 0.7rem; padding: 1rem; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); margin: 1rem 0;
}
.buy-box .row { display: flex; justify-content: space-between; gap: 1rem; }
.buy-box .label { color: var(--muted); }
.highlights { margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.7; }
.specs {
  margin-top: 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem;
}
.spec {
  border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; background: rgba(0,0,0,0.15);
}
.spec b { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 500; margin-bottom: 0.2rem; }
.desc { margin-top: 1.2rem; color: var(--muted); line-height: 1.75; }
.warn {
  margin-top: 1rem; font-size: 0.84rem; color: #f0c989; line-height: 1.6;
  padding: 0.8rem 0.9rem; border: 1px solid rgba(240,201,137,0.25); border-radius: 10px;
  background: rgba(240,201,137,0.06);
}

.empty {
  grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 3rem 1rem;
  border: 1px dashed var(--line); border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  color: var(--text); font-size: 1.25rem; cursor: pointer; flex: 0 0 auto;
}
.nav-toggle:hover { border-color: rgba(201,164,107,0.5); }

@media (max-width: 960px) {
  .hero, .detail-grid, .ship-table, .grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: 1fr; }
  .detail-media { position: static; }
  .toolbar { align-items: stretch; }
  .search { width: 100%; }
  .search input { width: 100%; min-width: 0; }
}
@media (max-width: 720px) {
  .wrap { width: min(1180px, calc(100% - 1.25rem)); }
  .topbar-inner { padding: 0.65rem 0; gap: 0.5rem; }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: rgba(8, 12, 20, 0.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 0.85rem 0.85rem;
    z-index: 50;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav a:last-child { border-bottom: 0; }
  .brand-text strong { font-size: 0.92rem; }
  .brand-text span { font-size: 0.7rem; }
  .hero { padding: 1.6rem 0 1.2rem; gap: 1.1rem; }
  .hero h1 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .hero p { font-size: 0.95rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 42%; }
  .grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .card-body h3 { font-size: 1rem; }
  .sale { font-size: 1.15rem; }
  .chips { width: 100%; }
  .chip { font-size: 0.85rem; padding: 0.4rem 0.75rem; }
  .section { padding: 1.2rem 0 1.8rem; }
  .section h2 { font-size: 1.35rem; }
  .ship-card { padding: 1rem; }
  .spec-table th, .spec-table td { padding: 0.65rem 0.7rem; font-size: 0.86rem; }
  .spec-table th { width: 34%; }
  .gallery-nav { width: 36px; height: 36px; }
  .buy-box .row { flex-wrap: wrap; gap: 0.25rem 0.75rem; }
  .footer-inner { flex-direction: column; gap: 0.5rem; }
  .factory-facts div { flex-direction: column; gap: 0.2rem; }
  .factory-facts b { min-width: 0; }
}


.detail-media {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.75rem; position: sticky; top: 4.5rem;
}
.gallery {
  position: relative; overflow: hidden; border-radius: 12px; background: #0b121c;
  user-select: none; touch-action: pan-x pinch-zoom;
}
.gallery-track {
  display: flex; width: 100%;
  transition: transform 0.35s ease;
  will-change: transform; cursor: grab;
}
.gallery-track:active { cursor: grabbing; }
.gallery-slide {
  flex: 0 0 100%; width: 100%;
}
.gallery-slide img {
  width: 100%; aspect-ratio: 4/3; object-fit: contain; display: block; background: #0b121c;
  pointer-events: none;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(8,12,20,0.65);
  color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.gallery-nav:hover { background: rgba(201,164,107,0.85); color: #1a1208; border-color: transparent; }
.gallery-nav.prev { left: 0.6rem; }
.gallery-nav.next { right: 0.6rem; }
.gallery-dots {
  position: absolute; left: 0; right: 0; bottom: 0.7rem;
  display: flex; justify-content: center; gap: 0.4rem; z-index: 2;
}
.gallery-dots .dot {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255,255,255,0.35); cursor: pointer;
}
.gallery-dots .dot.active { background: var(--accent); width: 18px; }
.gallery-counter {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2;
  background: rgba(8,12,20,0.7); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.2rem 0.55rem; font-size: 0.78rem; color: var(--muted);
}
.gallery-note { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.78rem; text-align: center; }

.block-title {
  margin: 1.35rem 0 0.65rem; font-family: var(--display); font-size: 1.05rem;
  letter-spacing: 0.04em; color: var(--accent);
  border-bottom: 1px solid var(--line); padding-bottom: 0.4rem;
}
.spec-table-wrap {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: rgba(0,0,0,0.18);
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td { padding: 0.7rem 0.85rem; text-align: left; vertical-align: top; }
.spec-table th {
  width: 38%; color: var(--muted); font-weight: 500;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--line);
}
.spec-table td { border-bottom: 1px solid var(--line); color: var(--text); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.highlights { margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.7; }
.desc { margin: 0; color: var(--muted); line-height: 1.75; }



/* Factory page */
.factory-hero {
  padding: 2.6rem 0 1.5rem;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.5rem; align-items: center;
}
.factory-hero h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); margin: 0.3rem 0 0.9rem; }
.eyebrow { color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; margin: 0; }
.factory-hero-media {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0d1420; box-shadow: var(--shadow);
}
.factory-hero-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.factory-hero-media .caption, .factory-grid figcaption, .factory-videos figcaption {
  display: block; padding: 0.65rem 0.8rem; color: var(--muted); font-size: 0.82rem; background: rgba(0,0,0,0.25);
}
.factory-facts {
  margin-top: 1.1rem; display: grid; gap: 0.65rem;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--panel);
}
.factory-facts div { display: flex; gap: 1rem; flex-wrap: wrap; }
.factory-facts b { min-width: 5.5rem; color: var(--accent); font-weight: 600; }
.factory-facts span { color: var(--muted); }
.factory-videos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.factory-videos figure, .factory-grid figure {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0d1420;
}
.factory-videos video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.factory-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem;
}
.factory-grid.two { grid-template-columns: 1fr 1fr; }
.factory-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.88);
  display: grid; place-items: center; padding: 1.5rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox img { max-width: min(1200px, 96vw); max-height: 88vh; object-fit: contain; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(0,0,0,0.5); color: #fff; font-size: 1.5rem; cursor: pointer;
}
@media (max-width: 960px) {
  .factory-hero, .factory-videos, .factory-grid, .factory-grid.two { grid-template-columns: 1fr; }
}


/* Compliance page */
.check-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1rem;
}
.check-grid label {
  display: flex; gap: 0.55rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.85rem;
  background: rgba(255,255,255,0.03); color: var(--muted); font-size: 0.92rem; line-height: 1.45;
}
.check-grid input { margin-top: 0.2rem; accent-color: var(--accent); }
.comp-ol { color: var(--muted); line-height: 1.85; padding-left: 1.2rem; max-width: 44rem; }
@media (max-width: 720px) { .check-grid { grid-template-columns: 1fr; } }
