:root {
  --bg: #060810;
  --bg-soft: #0c111a;
  --panel: #0f1623;
  --text: #e8ecf4;
  --muted: #7c8ba4;
  --brand: #4da6ff;
  --brand-soft: #6ebcff;
  --line: #1a2435;
  --success: #3fb950;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background-color: #060810;
  background-image:
    linear-gradient(180deg, rgba(6, 8, 16, 0.86) 0%, rgba(8, 10, 20, 0.76) 38%, rgba(6, 8, 16, 0.88) 100%),
    url("assets/images/site-bg-gta-chase.png");
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed;
  line-height: 1.45;
  min-height: 100vh;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll, scroll;
  }
}

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

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

.topbar {
  background: #0a0b0e;
  border-bottom: 1px solid #171b27;
}

.topbar .container {
  color: #c3c8d7;
  font-size: 0.85rem;
  padding: 0.6rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(16, 18, 24, 0.93);
  border-bottom: 1px solid #1c2130;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand), #2d7fd8);
}

.logo-text {
  font-size: 1.08rem;
}

.logo:has(.logo-img) .logo-text {
  display: none;
}

.search-box {
  flex: 1;
  display: flex;
  border: 1px solid #252b3b;
  border-radius: 10px;
  overflow: hidden;
  background: #0d1017;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0.8rem 0.95rem;
  outline: none;
}

.search-box button {
  border: none;
  background: var(--brand);
  color: white;
  font-weight: 700;
  padding: 0 1rem;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.92rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding-left: 0.45rem;
  margin-left: 0.2rem;
  border-left: 1px solid #2a3145;
}

.lang-switcher-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0.2rem;
  border-radius: 10px;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lang-switcher-link:hover {
  background: rgba(77, 166, 255, 0.12);
  border-color: rgba(77, 166, 255, 0.25);
  transform: translateY(-1px);
}

.lang-switcher-link.is-active {
  background: rgba(77, 166, 255, 0.16);
  border-color: rgba(110, 188, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(77, 166, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.22rem;
  line-height: 0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  -webkit-user-select: none;
  user-select: none;
}

.lang-flag-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cart strong {
  color: var(--success);
}

.menu-wrap {
  border-top: 1px solid #1d2232;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.8rem 0;
}

.menu a {
  color: #c2c7d8;
  font-size: 0.92rem;
}

.menu .active,
.menu a:hover {
  color: white;
}

.hero {
  padding: 1.35rem 0;
}

.hero-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 1fr;
}

.hero-card {
  padding: 1.35rem;
  border-radius: 14px;
  border: 1px solid #273048;
  background: radial-gradient(circle at 15% 15%, #2b344f, #1a1f2d 55%, #141723);
}

.hero-card.large {
  grid-row: span 2;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #ffd8d7;
  background: #7f0401;
  border: 1px solid #a60a06;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  margin-bottom: 0.8rem;
}

.hero-card h1 {
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  margin-bottom: 0.7rem;
}

.hero-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.hero-card p {
  color: #d2d8e8;
  max-width: 68ch;
}

.hero-card a {
  margin-top: 1rem;
  display: inline-block;
  background: var(--brand);
  color: white;
  font-weight: 700;
  border-radius: 9px;
  padding: 0.65rem 0.95rem;
}

.highlights {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.highlights article {
  background: #121622;
  border: 1px solid #242c41;
  padding: 1rem;
  border-radius: 12px;
}

.highlights h4 {
  margin-bottom: 0.35rem;
  font-size: 0.96rem;
}

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

.products-section {
  margin-top: 1.2rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid #30364b;
  background: #181d2b;
  color: #d4d9e8;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.87rem;
  cursor: pointer;
}

.tab.active {
  border-color: var(--brand-soft);
  background: #102133;
  color: white;
}

.products-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product {
  border: 1px solid #283047;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
}

/* Quadrado 1:1 na vitrine; envie fotos em 1000x1000 (ideal) ou 800x800 (mais leve) */
.product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  background: #12151f;
  border: 1px solid #2d3348;
  flex-shrink: 0;
}

.product-thumb .product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-category {
  color: #a8b0c7;
  font-size: 0.76rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.product-title {
  font-size: 0.95rem;
  min-height: 2.6em;
}

.price-old {
  margin-top: 0.55rem;
  color: #93a0bf;
  text-decoration: line-through;
  font-size: 0.8rem;
}

.price-now {
  color: #ecf1ff;
  font-size: 1.18rem;
  font-weight: 800;
  margin-top: 0.05rem;
}

.buy {
  margin-top: 0.65rem;
  border: none;
  border-radius: 9px;
  font-weight: 700;
  padding: 0.6rem;
  cursor: pointer;
  background: var(--brand);
  color: white;
}

.banner {
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid #2f374f;
  border-radius: 15px;
  background: radial-gradient(circle at 10% 15%, #293253, #181e2e 45%, #10141f);
  padding: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.banner h3 {
  margin-bottom: 0.4rem;
}

.banner p {
  color: #d1d8eb;
}

.banner a {
  background: #ffffff;
  color: #131722;
  font-weight: 800;
  border-radius: 9px;
  padding: 0.7rem 0.95rem;
  white-space: nowrap;
}

.footer {
  border-top: 1px solid #202637;
  background: #090b10;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr repeat(3, 1fr);
  padding: 1.4rem 0;
}

.footer h4,
.footer h5 {
  margin-bottom: 0.5rem;
}

.footer p,
.footer a {
  color: #c2cadf;
  font-size: 0.9rem;
}

.footer section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.newsletter {
  display: flex;
  border: 1px solid #31384d;
  border-radius: 9px;
  overflow: hidden;
}

.newsletter input {
  flex: 1;
  border: none;
  padding: 0.6rem;
  background: #151a27;
  color: white;
  outline: none;
}

.newsletter button {
  border: none;
  background: var(--brand);
  color: white;
  font-weight: 700;
  padding: 0 0.8rem;
  cursor: pointer;
}

.copyright {
  border-top: 1px solid #1a1f2c;
}

.copyright .container {
  padding: 0.7rem 0;
}

.copyright small {
  color: #8892ad;
}

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

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

@media (max-width: 840px) {
  .header-main {
    flex-wrap: wrap;
  }

  .search-box {
    order: 3;
    width: 100%;
  }

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

  .hero-card.large {
    min-height: 270px;
  }

  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .highlights,
  .products-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
