/* Loja — tema compartilhado */
:root {
  --bg: #0a0b0f;
  --surface: #13161f;
  --card: #181c26;
  --text: #eef1f6;
  --muted: #8b95a8;
  --line: rgba(139, 149, 168, 0.16);
  --accent: #d4a24c;
  --accent-hover: #e0b35e;
  --accent-muted: rgba(212, 162, 76, 0.12);
  --shadow: 0 20px 50px rgba(10, 11, 15, 0.45);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --transition: 220ms ease;
  --focus: 0 0 0 3px rgba(212, 162, 76, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

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

.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 11, 15, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  padding: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  color: var(--text);
  transition: background var(--transition), border-color var(--transition);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.mobile-menu {
  display: none;
  padding: 0 0 14px;
}

.mobile-menu.open {
  display: grid;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  min-height: 46px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(139, 149, 168, 0.28);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #0a0b0f;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: transparent;
}

/* Forms */
.input, .select, textarea.input {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-md);
  background: #0d1017;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0 14px;
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

textarea.input {
  padding: 12px 14px;
  min-height: 120px;
  resize: vertical;
}

.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: rgba(212, 162, 76, 0.5);
  box-shadow: var(--focus);
}

/* Hero / catalog */
.hero {
  padding: 48px 0 32px;
}

.page-intro {
  margin-bottom: 28px;
}

.page-intro h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 10px;
  text-wrap: balance;
}

.page-intro p {
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
  font-size: 15px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.5fr;
  gap: 12px;
  margin-bottom: 24px;
}

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product {
  --product-img-h: 280px;
  --product-body-h: 340px;
  height: calc(var(--product-img-h) + var(--product-body-h));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.product:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 162, 76, 0.22);
  box-shadow: 0 24px 56px rgba(10, 11, 15, 0.55);
}

.product img {
  width: 100%;
  height: var(--product-img-h);
  flex-shrink: 0;
  object-fit: cover;
  background: #0d1017;
}

.product .product-carousel {
  flex-shrink: 0;
  height: var(--product-img-h);
  margin-top: 0;
}

.product .product-carousel .carousel-track-wrap {
  height: 100%;
  border-radius: 0;
}

.product .product-carousel .carousel-slide img {
  width: 100%;
  height: var(--product-img-h);
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.product .product-carousel .carousel-btn {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.product .product-carousel .carousel-btn.prev { left: 8px; }
.product .product-carousel .carousel-btn.next { right: 8px; }

.product .product-carousel .carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  margin-top: 0;
}

.product .body {
  padding: 20px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.product .product-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.product .title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product .body .muted {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product .tag-row,
.product .price {
  flex-shrink: 0;
}

.product .product-footer {
  flex-shrink: 0;
}

.product .product-footer .btn-primary {
  width: 100%;
}

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

.price {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.tag::first-letter {
  text-transform: uppercase;
}

/* Panels */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
}

.empty {
  padding: 36px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

.footer {
  padding: 40px 0 52px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.footer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.floating-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  box-shadow: 0 16px 40px rgba(10, 11, 15, 0.5);
}

/* Cart */
.row-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.row-item img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.item-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: #0d1017;
  border: 1px solid var(--line);
}

.qty .btn {
  padding: 6px 10px;
  min-height: auto;
}

/* Auth shell */
.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-hero {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(212, 162, 76, 0.08), transparent),
    linear-gradient(160deg, #13161f 0%, #0a0b0f 100%);
}

.auth-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 16px 0 12px;
  text-wrap: balance;
}

.auth-hero p {
  color: var(--muted);
  max-width: 46ch;
  font-size: 15px;
}

.badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.benefit {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(480px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-card .btn {
  width: 100%;
  margin-top: 14px;
}

.msg {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(212, 162, 76, 0.08);
  border: 1px solid rgba(212, 162, 76, 0.2);
  font-size: 14px;
}

/* Product detail */
.sticky { position: sticky; top: 18px; }

.product-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-gallery {
  width: 100%;
}

.product-gallery .carousel {
  margin-top: 0;
}

.product-gallery .cover {
  width: 100%;
  height: min(56vw, 560px);
  object-fit: contain;
}

.product-info .product-title {
  margin: 14px 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-info .info {
  max-width: none;
}

.product-video {
  margin: 16px 0 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.product-video iframe,
.product-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.product-video video {
  object-fit: contain;
}

.carousel { position: relative; margin-top: 8px; }

.carousel-track-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
}

.cover {
  width: 100%;
  height: min(58vw, 460px);
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-lg);
  background: #0d1017;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 11, 15, 0.72);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 2;
  transition: background var(--transition), border-color var(--transition);
}

.carousel-btn:hover {
  background: rgba(10, 11, 15, 0.92);
  border-color: rgba(212, 162, 76, 0.35);
}

.carousel-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(139, 149, 168, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.15);
}

.info { line-height: 1.75; max-width: 65ch; }
.desc-html p { margin: 0 0 10px; }

.acesso-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(13, 16, 23, 0.6);
  border: 1px solid var(--line);
}

.acesso-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.acesso-list {
  display: grid;
  gap: 8px;
}

.acesso-item {
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.acesso-item a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Checkout / PIX */
.pix-card { display: grid; gap: 12px; }
.ok { color: #6ecf8a; font-weight: 600; }
.warn { color: #e0b35e; font-weight: 600; }

/* Downloads */
.download-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 14px;
  transition: border-color var(--transition);
}

.download-card:hover {
  border-color: rgba(212, 162, 76, 0.2);
}

/* Responsive */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .icon-btn { display: flex; }
  .cols { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .shell { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 28px 0 20px; }
  .product {
    --product-img-h: 260px;
    --product-body-h: 330px;
  }
  .btn { width: 100%; }
  .floating-cart { left: 14px; right: 14px; bottom: 14px; }
  .panel { padding: 18px; border-radius: 18px; }
  .row-item { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .item-actions, .summary-actions { display: grid; grid-template-columns: 1fr; }
  .auth-hero { padding: 24px 18px; }
  .auth-panel { padding: 14px; }
  .auth-card { padding: 22px; }
  .benefits { grid-template-columns: 1fr; }
}
