:root {
  --ink: #08131f;
  --ink-2: #122033;
  --navy: #0c2744;
  --gold: #d4a017;
  --gold-2: #f0c14b;
  --sand: #f3eee4;
  --paper: #fbf8f2;
  --line: rgba(8, 19, 31, 0.1);
  --muted: #5d6b7a;
  --ok: #1f7a4d;
  --danger: #b42318;
  --radius: 22px;
  --shadow: 0 24px 50px rgba(8, 19, 31, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: Manrope, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

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

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

h1, h2, h3, .display {
  font-family: Syne, Manrope, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 19, 31, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img,
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
}
.brand span { max-width: 220px; font-size: 14px; line-height: 1.2; }

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,.82);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.is-active { color: #fff; background: rgba(255,255,255,.08); }

.nav-actions { display: flex; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
  transition: .18s transform, .18s filter, .18s background;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1b1404; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-line { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 15px; }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 12px;
  padding: 8px 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(212,160,23,.28), transparent 50%),
    linear-gradient(160deg, var(--ink) 0%, var(--navy) 58%, #16385c 100%);
  color: #fff;
  padding: 72px 0 88px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 64px;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 42px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--gold-2);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.hero h1 { font-size: clamp(32px, 5vw, 58px); margin: 14px 0 16px; max-width: 16ch; }
.hero p { color: rgba(255,255,255,.78); font-size: 18px; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-note { margin-top: 22px; color: rgba(255,255,255,.55); font-size: 13px; }

.hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
}

.hero-visual img { width: 100%; height: 420px; object-fit: cover; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,19,31,.45));
}

.section { padding: 72px 0; }
.section.alt { background: var(--sand); }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 28px; }
.section-head p, .muted { color: var(--muted); }
.center { text-align: center; }

.grid {
  display: grid;
  gap: 18px;
}
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(8,19,31,.04);
  transition: .2s transform, .2s box-shadow;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img.cover { width: 100%; height: 190px; object-fit: cover; }
.card-art {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 18px 18px 0;
}
.card-art img.art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.card .body { padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  font-weight: 700;
}

.band {
  margin: 20px auto 80px;
  width: min(1180px, calc(100% - 32px));
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 48px;
  text-align: center;
}
.band p { color: rgba(255,255,255,.72); }

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 36px 0 110px;
}
.site-footer a { color: #fff; }
.foot-row { display: flex; justify-content: space-between; gap: 20px; align-items: start; }

.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none;
  gap: 8px;
}

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.faq summary { cursor: pointer; font-weight: 700; }

.form { display: grid; gap: 12px; }
label { font-size: 13px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}
input[type="checkbox"] {
  width: auto;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--navy, #0c2744);
}
.home-vis {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: #f6f4ef;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.home-vis > strong { font-size: 14px; }
.home-vis .hint { margin: 0; }
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 640px) {
  .check-grid { grid-template-columns: 1fr; }
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.page-hero { padding: 48px 0 10px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 8px 0 6px; }
.page-hero p { margin: 0 0 10px; }
.page-hero .hero-actions { margin-top: 0; margin-bottom: 0; }
.detail-page { padding-bottom: 24px; }
.detail-body { margin-top: 22px; }
.detail-body h2 { margin: 0 0 10px; }
.detail-body h2 + .faq,
.detail-body .list { margin-top: 0; }
.detail-body .list + h2 { margin-top: 22px; }
.detail-page .panel { margin-top: 18px; }

.empty { padding: 28px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }

.admin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  background: #eef2f6;
}
.admin-side {
  background: var(--ink);
  color: #fff;
  padding: 22px 16px;
}
.admin-side a, .admin-side button.link {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}
.admin-side a.is-active, .admin-side button.link.is-active { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { padding: 24px; }
.admin-card { background: #fff; border-radius: 20px; padding: 20px; margin-bottom: 16px; border: 1px solid var(--line); }
.item-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0; background: #fafafa; }
.item-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.item-toolbar-actions { display: flex; gap: 8px; }
.item-toolbar .btn[disabled] { opacity: .4; cursor: not-allowed; }
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  z-index: 80;
}
.login-box {
  max-width: 420px;
  margin: 10vh auto;
  background: #fff;
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.thumb { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; background: #ddd; }
.about-photo {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}
.upload-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gallery-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.gallery-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.gallery-item .thumb { height: 110px; border-radius: 0; }
.gallery-item .btn { width: calc(100% - 16px); margin: 8px; padding: 8px; font-size: 12px; }
.hint { font-size: 12px; color: var(--muted); }

.carousel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #e8e4dc;
  min-height: 280px;
  box-shadow: 0 10px 30px rgba(8,19,31,.08);
}
.carousel-viewport { position: relative; min-height: 280px; }
.carousel-slide {
  display: none;
}
.carousel-slide.is-active { display: block; }
.carousel-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(8,19,31,.72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 0;
}
.carousel-dot.is-active { background: #fff; }
.carousel-empty {
  border: 1px dashed var(--line);
  border-radius: 24px;
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.system-shot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
}
.system-img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.pdp { padding: 24px 0 56px; }
.pdp-back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.pdp-grid {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.2fr) minmax(280px, .85fr);
  gap: 22px;
  align-items: start;
}
.pdp-thumbs { display: flex; flex-direction: column; gap: 8px; }
.pdp-thumbs button {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.pdp-thumbs button.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-zoom {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  height: min(520px, 70vh);
  cursor: zoom-in;
}
.pdp-zoom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .08s linear;
  transform-origin: center center;
}
.pdp-info h1 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 36px); }
.price-tag {
  font-family: Syne, Manrope, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}
.pdp-meta { font-size: 14px; line-height: 1.8; margin: 8px 0 18px; }
.pdp-meta b { font-weight: 800; }
.pdp-field { margin: 14px 0; }
.pdp-field-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pdp-stock { font-size: 13px; color: var(--muted); font-weight: 700; }
.pdp-stock.is-out { color: var(--danger); }
.pdp-sizes, .pdp-colors { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 8px; }
.pdp-sizes button {
  min-width: 52px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.pdp-sizes button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pdp-colors button {
  width: 46px;
  height: 46px;
  padding: 3px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.pdp-colors button.is-active { border-color: var(--ink); }
.pdp-colors img, .pdp-swatch {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}
.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.qty-box button {
  width: 40px;
  height: 40px;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
}
.qty-box input {
  width: 46px;
  height: 40px;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
}
.pdp-buy {
  width: 100%;
  margin-top: 10px;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
}
.pdp-buy-wait { background: var(--navy); }
.pdp-desc { margin-top: 42px; max-width: 820px; }
.pdp-desc h2 { margin: 0 0 10px; }
.pdp-buybox label { display: block; margin: 10px 0; }

@media (max-width: 980px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-thumbs { flex-direction: row; overflow-x: auto; }
}
.shop-note { color: var(--muted); font-size: 14px; }

@media (max-width: 980px) {
  .hero-grid, .split, .cols-3, .cols-4, .chips, .admin { grid-template-columns: 1fr; }
  .cols-2, .row-2, .foot-row { grid-template-columns: 1fr; }
  .nav-links, .nav-actions { display: none; }
  .nav.is-open {
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    align-content: flex-start;
    padding-bottom: 12px;
  }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
    width: 100%;
    gap: 2px;
    margin: 8px 0 0;
    background: var(--ink-2);
    padding: 8px;
    border-radius: 16px;
  }
  .nav.is-open .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 14px;
  }
  .nav.is-open .nav-actions {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
    width: 100%;
    margin: 8px 0 88px;
    background: var(--ink-2);
    padding: 12px;
    border-radius: 16px;
  }
  .menu-toggle { display: inline-flex; }
  .mobile-cta { display: flex; }
  .hero { padding-top: 42px; }
  .band { padding: 28px; }
}
