:root {
  --bg: #0b0d11;
  --bg-soft: #131821;
  --card: #191f29;
  --line: #2c3442;
  --text: #edf1f6;
  --muted: #9da7b7;
  --gold: #d8b26a;
  --gold-strong: #c69745;
  --accent: #27c17e;
  --danger: #ef476f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 90% -20%, rgba(216, 178, 106, 0.22), transparent 60%),
    radial-gradient(720px 360px at 10% -10%, rgba(39, 193, 126, 0.08), transparent 60%),
    linear-gradient(180deg, #090b0f 0%, #111621 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(10px);
  background: rgba(9, 12, 17, 0.86);
  border-bottom: 1px solid rgba(216, 178, 106, 0.2);
}

.topbar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
}

.brand-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  line-height: 1;
}

.brand-logo span {
  color: var(--gold);
}

.admin-btn {
  border: 1px solid rgba(216, 178, 106, 0.5);
  color: var(--gold);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.9rem;
}

.hero {
  padding: 48px 0 28px;
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.hero p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 760px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 16px 0 8px;
}

.search-input {
  width: 100%;
  border: 1px solid rgba(157, 167, 183, 0.22);
  background: rgba(23, 29, 38, 0.8);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
}

.search-input:focus {
  border-color: rgba(216, 178, 106, 0.8);
  box-shadow: 0 0 0 2px rgba(216, 178, 106, 0.18);
}

.search-btn {
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #111;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 18px;
}

.chip {
  border: 1px solid rgba(157, 167, 183, 0.28);
  color: #cad3df;
  border-radius: 999px;
  padding: 9px 14px;
  white-space: nowrap;
  font-size: 0.9rem;
}

.chip.active {
  color: #111;
  border-color: var(--gold);
  background: var(--gold);
  font-weight: 700;
}

.novidades-row {
  display: flex;
  justify-content: flex-start;
  margin: -8px 0 12px;
}

.chip-novidades {
  border-color: rgba(216, 178, 106, 0.65);
  color: var(--gold);
  font-weight: 700;
}

.summary {
  color: var(--muted);
  margin: 8px 0 18px;
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.novidades-page .grid {
  grid-template-columns: 1fr !important;
  max-width: 640px;
  margin-inline: auto;
}

body.novidades-page .thumb {
  aspect-ratio: 4 / 5;
  height: auto;
}

@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1240px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(157, 167, 183, 0.16);
  background: linear-gradient(180deg, rgba(29, 35, 45, 0.85), rgba(20, 24, 32, 0.92));
}

.thumb {
  height: 220px;
  width: 100%;
  object-fit: cover;
  display: block;
  background: #0f141c;
}

.thumb.empty {
  display: grid;
  place-items: center;
  color: #7f8998;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-body {
  padding: 14px;
}

.watch-brand {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.watch-model {
  font-size: 1.06rem;
  font-weight: 800;
  margin: 4px 0 8px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.price {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  text-align: center;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-outline {
  border: 1px solid rgba(157, 167, 183, 0.36);
  color: #dde5ef;
}

.btn-wa {
  background: var(--accent);
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 40px;
  flex-wrap: wrap;
}

.page-link {
  border: 1px solid rgba(157, 167, 183, 0.3);
  border-radius: 10px;
  padding: 9px 12px;
  min-width: 42px;
  text-align: center;
  color: #d1d9e3;
  font-weight: 700;
}

.page-link.active {
  background: var(--gold);
  color: #121212;
  border-color: var(--gold);
}

.empty {
  border: 1px dashed rgba(157, 167, 183, 0.35);
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
}

.detail-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin: 24px 0 40px;
}

.panel {
  border: 1px solid rgba(157, 167, 183, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(29, 35, 45, 0.88), rgba(18, 24, 33, 0.95));
}

.panel.padded {
  padding: 16px;
}

.main-photo {
  width: 100%;
  height: min(64vh, 620px);
  object-fit: cover;
  border-radius: 14px;
  background: #101722;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.thumb-grid button {
  padding: 0;
  border: 1px solid rgba(157, 167, 183, 0.36);
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.thumb-grid img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.specs {
  margin: 14px 0;
  border-top: 1px solid rgba(157, 167, 183, 0.2);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(157, 167, 183, 0.13);
}

.spec-label {
  color: var(--muted);
}

.spec-value {
  font-weight: 700;
  text-align: right;
}

.detail-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5.2vw, 3rem);
  line-height: 1;
  margin: 0 0 6px;
}

.detail-sub {
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-price {
  margin-top: 10px;
  font-size: 1.7rem;
  font-weight: 800;
}

.detail-text {
  color: #c4cedb;
  line-height: 1.65;
  margin-top: 12px;
}

.wa-sticky {
  position: sticky;
  bottom: 12px;
  width: 100%;
}

.wa-large {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.whatsapp-choice-wrap {
  max-width: 760px;
  margin: 18px auto 40px;
}

.whatsapp-choice-title {
  margin-bottom: 10px;
}

.whatsapp-choice-help {
  margin-bottom: 14px;
}

.whatsapp-choice-card {
  border: 1px solid rgba(157, 167, 183, 0.2);
  border-radius: 14px;
  padding: 14px;
  background: rgba(15, 20, 28, 0.45);
  margin-top: 12px;
}

.whatsapp-choice-text {
  margin: 0 0 12px;
  color: #d9e2ee;
  line-height: 1.55;
}

.whatsapp-choice-btn {
  display: block;
  width: 100%;
}

.top-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #d2dbe6;
  margin-top: 16px;
}

.top-links a {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(157, 167, 183, 0.22);
}

@media (max-width: 960px) {
  .detail-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-wrap {
    min-height: 64px;
  }

  .brand-logo {
    font-size: 1.7rem;
  }

  .admin-btn {
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .thumb {
    height: 170px;
  }

  .card-body {
    padding: 12px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }
}
