:root {
  --bg: #070b14;
  --bg2: #0e1628;
  --card: #121c30;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f7fb;
  --muted: #8b9cb3;
  --gold: #e4b429;
  --gold-dim: rgba(228, 180, 41, 0.15);
  --blue: #3b82f6;
  --ok: #34d399;
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
a {
  color: var(--blue);
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 12px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.88);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo span {
  color: var(--gold);
}
.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-left: auto;
  align-items: center;
}
.topbar__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.topbar__nav a:hover,
.topbar__nav a.is-active {
  color: var(--text);
  border-bottom-color: var(--gold);
}
.topbar__admin {
  opacity: 0.75;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.1rem;
}
@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }
  .topbar__nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    background: var(--bg2);
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .topbar__nav.is-open {
    display: flex;
  }
}

/* Home hero */
.hero-home {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-home__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.55) 50%, rgba(14, 22, 40, 0.85) 100%),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1600&q=80") center / cover no-repeat;
}
.hero-home__content {
  position: relative;
  z-index: 1;
  padding: 56px 20px 64px;
  max-width: 640px;
}
.hero-home h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 16px;
}
.hero-home__lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 28px;
}
.hero-home__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust {
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 20px;
  text-align: center;
}
.trust__grid strong {
  display: block;
  font-size: 1.35rem;
  color: var(--gold);
}
.trust__grid span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 640px) {
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.section-head {
  margin: 48px 0 24px;
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2rem);
}
.section-head p {
  margin: 0;
  max-width: 520px;
}

.category-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .category-showcase {
    grid-template-columns: 1fr;
  }
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s;
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(228, 180, 41, 0.45);
}
.category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.95) 0%, rgba(7, 11, 20, 0.2) 55%, transparent 100%);
}
.category-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 20px 24px;
}
.category-card__count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.category-card__title {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 6px 0 8px;
}
.category-card__body p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}
.category-card__cta {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold);
}

.about-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  margin-bottom: 56px;
}
.about-list {
  margin: 16px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.about-list li {
  margin-bottom: 8px;
}

/* Category page hero */
.cat-hero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.cat-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}
.cat-hero__content {
  position: relative;
  z-index: 1;
  padding: 32px 20px 36px;
  width: 100%;
}
.cat-hero h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}
.cat-hero__sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  font-size: 0.95rem;
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--text);
}

.catalogue-body {
  padding: 32px 20px 56px;
}
.result-count {
  margin: 0 0 16px;
  font-size: 0.88rem;
}

/* Grid & cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(228, 180, 41, 0.35);
  transform: translateY(-3px);
}
.card__link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card__img {
  aspect-ratio: 16/10;
  width: 100%;
  object-fit: cover;
  background: var(--bg2);
}
.card__body {
  padding: 14px 16px 12px;
  flex: 1;
}
.card__badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
}
.badge--new {
  background: rgba(52, 211, 153, 0.18);
  color: var(--ok);
}
.badge--used {
  background: rgba(139, 156, 179, 0.15);
  color: var(--muted);
}
.card__brand {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card__title {
  margin: 4px 0 6px;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
}
.card__meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
.card__price {
  margin: 10px 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
}
.card__actions {
  display: flex;
  gap: 8px;
  padding: 0 12px 14px;
}

/* Article page */
.article-main {
  padding: 28px 20px 56px;
}
.article-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}
.article-gallery__main {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.article-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.article-gallery__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  width: 72px;
  height: 54px;
}
.article-gallery__thumb.is-active {
  border-color: var(--gold);
}
.article-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-info__brand {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}
.article-info__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.15;
}
.article-info__price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
  margin: 0 0 16px;
}
.article-info__desc {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.55;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  color: var(--muted);
  font-weight: 600;
  width: 38%;
}
.article-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 0;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn--sm {
  padding: 9px 12px;
  font-size: 0.8rem;
  flex: 1;
}
.btn--lg {
  width: 100%;
  padding: 14px 18px;
}
.btn--gold {
  background: linear-gradient(135deg, #e4b429, #c9981a);
  color: #1a1200;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--wa {
  background: #25d366;
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.search input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
  padding: 36px 20px 28px;
  margin-top: auto;
}
.site-footer__grid {
  max-width: 1160px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
.site-footer__brand {
  font-weight: 800;
  margin: 0 0 8px;
}
.site-footer__label {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 1160px;
  margin: 0 auto;
}

.empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.toast.is-on {
  opacity: 1;
}

/* Admin (unchanged structure) */
.admin-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.form-grid {
  display: grid;
  gap: 12px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font: inherit;
}
.admin-list {
  margin-top: 24px;
}
.admin-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.admin-row img {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}
.admin-row__main {
  flex: 1;
  min-width: 0;
}
