/* =========================================================
   EDITE AS CORES DO SISTEMA AQUI
   Basta trocar estes valores para mudar a identidade visual.
   ========================================================= */
:root {
  --color-bg: #09090b;
  --color-surface: #141416;
  --color-card: #1d1d21;
  --color-red: #e50914;
  --color-red-dark: #a80710;
  --color-text: #ffffff;
  --color-muted: #b8b8c0;
  --color-line: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Inter", Arial, sans-serif;
}

body.cart-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 14px;
  background: var(--color-bg);
  color: var(--color-muted);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading.hide {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--color-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(9, 9, 11, 0.86);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(16px);
}

.brand,
.cart-pill,
.hero-actions,
.cart-header,
.total-row,
.quantity-controls,
.upsell-card {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--color-red);
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: 0;
}

.brand small,
.eyebrow,
.section-heading p,
.checkout-copy p,
.hero-copy,
.product-card p,
.cart-item small,
.hero-offer small,
.cart-empty {
  color: var(--color-muted);
}

.brand small {
  display: block;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 26px;
  color: var(--color-muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--color-text);
}

.cart-pill {
  gap: 10px;
  padding: 10px 14px;
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  cursor: pointer;
}

.cart-pill strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  background: var(--color-red);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  min-height: calc(100vh - 80px);
  padding: clamp(42px, 7vw, 96px) clamp(18px, 4vw, 56px);
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffb3b7;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.primary-btn {
  color: white;
  background: var(--color-red);
  box-shadow: 0 14px 30px rgba(229, 9, 20, 0.28);
}

.primary-btn:hover,
.secondary-btn:hover,
.small-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:hover {
  background: var(--color-red-dark);
}

.secondary-btn {
  color: white;
  background: transparent;
  border: 1px solid var(--color-line);
}

.full {
  width: 100%;
}

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

.hero-panel img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.82));
}

.hero-offer {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  width: min(280px, calc(100% - 44px));
  padding: 18px;
  background: rgba(20, 20, 22, 0.9);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.hero-offer span {
  display: block;
  margin-bottom: 8px;
  color: #ffb3b7;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-offer strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.section {
  padding: clamp(42px, 6vw, 82px) clamp(18px, 4vw, 56px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--color-line);
}

.intro-band div {
  padding: 28px;
  background: var(--color-surface);
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong {
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.intro-band span {
  color: var(--color-muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

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

.product-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 9, 20, 0.46);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-content {
  padding: 18px;
}

.product-card p {
  min-height: 52px;
  line-height: 1.55;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.product-meta span {
  color: var(--color-muted);
  font-weight: 700;
}

.product-meta strong {
  font-size: 1.25rem;
}

.small-btn {
  width: 100%;
  color: white;
  background: var(--color-red);
}

.upsell-section {
  background: var(--color-surface);
}

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

.upsell-card {
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.upsell-card strong {
  display: block;
  margin-bottom: 5px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.checkout-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--color-muted);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  color: var(--color-text);
  background: #101012;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  outline: none;
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-red);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100vh;
  padding: 22px;
  background: #101012;
  border-left: 1px solid var(--color-line);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 0.28s ease;
}

.cart-open .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  justify-content: space-between;
  margin-bottom: 18px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 50%;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
}

.cart-item h3 {
  margin-bottom: 3px;
  font-size: 0.95rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.quantity-controls {
  gap: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  color: var(--color-text);
  background: #0c0c0e;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  cursor: pointer;
}

.remove-btn {
  color: #ffb3b7;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.cart-empty {
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
}

.cart-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

.total-row {
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.64);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.cart-open .overlay {
  pointer-events: auto;
  opacity: 1;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 48px;
  padding: 0 18px;
  color: white;
  background: #25d366;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.3);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .hero,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .hero-panel,
  .hero-panel img {
    min-height: 360px;
  }

  .intro-band,
  .product-grid,
  .product-grid.compact,
  .upsell-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .intro-band div {
    padding: 22px;
  }

  .checkout-form,
  .cart-drawer {
    padding: 18px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}
