@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #0f1115;
  --card: #151923;
  --header-bg: rgba(21, 25, 35, 0.75);
  --text: #f3f4f6;
  --muted: #b7bcc8;
  --accent: #B50208;
  --accent-2: #2b2f3a;
  --border: #242938;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --bg-image: url("../img/BG_img.png");
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --card: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.75);
  --text: #121418;
  --muted: #5c6475;
  --accent: #B50208;
  --accent-2: #eef0f6;
  --border: #e3e7ef;
  --shadow: 0 20px 60px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--accent);
  line-height: 1.3;
}

body.page-bg {
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.92) 0%, rgba(5, 8, 14, 0.72) 60%, rgba(5, 8, 14, 0.92) 100%),
    radial-gradient(1200px 800px at 20% -20%, #1e2533, transparent),
    var(--bg-image) center / cover no-repeat;
  background-attachment: fixed;
}

[data-theme="light"] body.page-bg {
  background:
    linear-gradient(180deg, rgba(246, 247, 251, 0.16) 0%, rgba(246, 247, 251, 0.82) 60%, rgba(246, 247, 251, 0.16) 100%),
    radial-gradient(1200px 800px at 22% -17%, #dfe4f0, transparent),
    var(--bg-image) center / cover no-repeat;
    background-attachment: fixed;
}

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

.container {
  width: min(1100px, 92%);
  max-width: 100%;
  margin: 0 auto;
}

/* --- SOCIAL MEDIA SECTION --- */
.social-section {
  text-align: center;
  margin-top: 80px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 200px;
  padding: 24px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.social-card span {
  font-weight: 700;
  font-size: 1.1rem;
}

.social-card small {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.social-card svg {
  margin-bottom: 8px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover Effects */
.social-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
}

.social-card:hover svg {
  transform: scale(1.2) rotate(5deg);
}

.social-card:hover small {
  color: var(--text);
}

/* Brand Colors on Hover */
.social-card.youtube:hover {
  background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.4);
}

.social-card.twitter:hover {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  /* X brand color */
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .social-card.twitter:hover {
  background: linear-gradient(135deg, #000000 0%, #333 100%);
}

.social-card.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(220, 39, 67, 0.4);
}

.social-card.facebook:hover {
  background: linear-gradient(135deg, #1877F2 0%, #0d65d9 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(24, 119, 242, 0.4);
}

.social-card.tiktok:hover {
  background: linear-gradient(135deg, #25F4EE 0%, #FE2C55 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(254, 44, 85, 0.4);
}

.social-card.whatsapp:hover {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* Ensure hover text stays white */
.social-card:hover small {
  color: rgba(255, 255, 255, 0.9);
}

.site-header {
  padding-top: 60px;
  /* Offset for fixed header */
}

.topbar {
  background: var(--header-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 2px solid var(--accent);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

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

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-left a {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-marketing-link {
  display: flex;
  align-items: center;
}

.topbar-marketing-link img {
  height: 28px;
  width: auto;
  object-fit: contain;
  padding-right: 15px;
}

.topbar-marketing-link img:hover {
  opacity: 0.7;
  transition: 0.3s;
}

.topbar-lang-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding-right: 10px;
}

.topbar-lang-btn img {
  height: 30px;
  width: 30px;
  object-fit: contain;
}

.home-link-wrapper {
  margin: 10px 0;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.home-link:hover {
  transform: translateY(-1px);
}

.home-icon {
  width: 25px;
  height: 25px;
}

.theme-switch {
  position: relative;
  width: 55px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.theme-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch-track {
  position: absolute;
  inset: 0;
  background: var(--accent-2);
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.theme-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.theme-switch-input:checked+.theme-switch-track .theme-switch-knob {
  transform: translateX(24px);
}

.header-content {
  padding: 85px 0 20px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-row .home-link-wrapper {
  margin: 0;
}

.header-row .home-link {
  width: 36px;
  height: 36px;
}

.header-row .home-icon {
  width: 22px;
  height: 22px;
}


.logo {
  width: 130px;
  height: auto;
}

.header-text h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
}

.header-text p {
  margin: 0;
  color: var(--muted);
  font-weight: bold;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-left h1 {
  margin: 0;
}

.hero-left p {
  margin: 0;
}

.hero-left .subtitle,
.section .subtitle,
.social-section .subtitle {
  color: var(--muted);
}

.hero-logo {
  width: min(320px, 80%);
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.ghost-btn {
  background: var(--accent-2);
  color: var(--text);
}

.hero-right {
  display: grid;
  grid-template-columns: 3fr 4fr;
  gap: 16px;
  align-items: center;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card img,
.hero-card video {
  border-radius: 10px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section {
  margin: 56px 0;
}

.section h2 {
  margin-bottom: 8px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  width: 100%;
  align-items: stretch;
}

.cards h3 {
  color: var(--text);
}

/* Single column: layout fluido e compacto */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
  }

  .cards .card {
    width: 100%;
    max-width: clamp(260px, 78vw, 380px);
    transition: transform 0.25s ease;
  }

  .cards .card:hover {
    transform: translateY(-2px);
  }

  .cards .card video {
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 420px;
    object-fit: contain;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.card img,
.card video {
  border-radius: 10px;
  width: 100%;
  object-fit: contain;
}

.card h3 {
  margin: 10px 0 6px;
}

.card p {
  color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.tab-panel {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.tab-panel.active {
  display: block;
}

.tab-panel h2 {
  margin-top: 0;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.tab-panel h3 {
  font-size: 1.05rem;
}

.tab-panel p {
  margin: 6px 0;
  color: var(--muted);
}

.tab-panel .subtitle {
  color: var(--muted);
  font-weight: bold;
}

.tab-panel .updated {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
  font-size: 14px;
}

.site-footer {
  padding: 30px 0 60px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 700px) {
  .tabs {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: visible;
    /* Changed from auto to visible to avoid scrolling */
  }

  .tab-btn {
    flex: 1;
    /* Changed from 0 0 auto to 1 to fill space (50% for 2 items, 33% for 3) */
    padding: 10px 4px;
    /* Reduced padding to ensure fit */
    font-size: 0.8rem;
    white-space: nowrap;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

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

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

  .hero-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(12px, 4vw, 20px);
    padding: 0 4px;
  }

  .hero-right .hero-card {
    flex: 1 1 auto;
    width: clamp(140px, 44vw, 200px);
    max-width: 200px;
    padding: clamp(8px, 2vw, 12px);
    transition: transform 0.25s ease;
  }

  .hero-right .hero-card:hover {
    transform: scale(1.02);
  }

  .hero-right .hero-card video {
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 8px;
  }

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

@media (max-width: 420px) {
  .hero-right .hero-card {
    width: clamp(120px, 42vw, 160px);
    max-width: 160px;
  }

  .cards .card {
    max-width: clamp(240px, 85vw, 320px);
  }

  .cards .card video {
    aspect-ratio: 16 / 9;
  }
}

/* --- FILTER STYLES --- */
/* --- PRODUCT HEADER ROW (Combobox + Title) --- */
.product-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0 10px;
  flex-wrap: wrap;
}

.product-title {
  margin: 0;
  display: flex;
  align-items: center;
  min-width: 0;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  font-size: 1.8rem;
  color: var(--text);
}

.product-title-icon {
  margin-right: 12px;
}

.product-title-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  vertical-align: middle;
}

/* --- FILTER COMBOBOX --- */
.filter-combobox {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.filter-combobox-trigger {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: block;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.filter-combobox-trigger:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.filter-combobox-trigger:focus {
  outline: none;
}

.filter-combobox-img {
  display: block;
  width: auto;
  height: 30px;
  object-fit: contain;
}

.filter-combobox-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 400px;
  width: max-content;
  max-width: min(520px, 90vw);
  max-height: 400px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  scrollbar-color: var(--accent) transparent;
  scrollbar-width: thin;
}

.filter-combobox-dropdown::-webkit-scrollbar {
  width: 8px;
}

.filter-combobox-dropdown::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.filter-combobox-dropdown::-webkit-scrollbar-button:vertical:start,
.filter-combobox-dropdown::-webkit-scrollbar-button:vertical:end {
  display: none;
  height: 0;
}

.filter-combobox-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.filter-combobox-dropdown::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.filter-combobox.open .filter-combobox-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-combobox-dropdown.filters {
  padding: 16px;
}

/* --- MODAL STYLES --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  /* Blur effect requested */
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--card);
  /* Or var(--header-bg) for more transparency */
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  /* To ensure modal itself has some glass effect if needed, but usually solid card is better for reading icons */
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal-btn:hover {
  color: var(--text);
}

/* Modal de idioma */
.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.lang-modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  max-height: 85vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lang-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.lang-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--accent);
}

.lang-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lang-modal-close:hover {
  color: var(--text);
}

.lang-modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.lang-modal-body::-webkit-scrollbar {
  width: 8px;
}

.lang-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.lang-modal-body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.lang-modal-body::-webkit-scrollbar-thumb:hover {
  background: #d00309;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--accent-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}

.lang-option:hover {
  background: rgba(181, 2, 8, 0.12);
  border-color: var(--accent);
}

.lang-option img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 4px;
  padding: 1px;
}

/* Modal de política de cookies (parte inferior) */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1999;
  padding: 10px 20px 15px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-modal-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-modal-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 20px;
}

.cookie-modal-title {
  margin: 3px 0;
  font-size: 1.1rem;
  color: #fff;
  width: 100%;
}

.cookie-modal-text {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
}

.cookie-modal-link {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-modal-link:hover {
  color: #d00309;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-modal-body {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-modal-title {
    width: 100%;
  }

  .cookie-modal-text {
    min-width: 0;
  }

  .cookie-modal-actions {
    justify-content: flex-end;
  }
}

.filters {
  padding: 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}


.filter-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 16px;
  border-radius: 16px;
  /* Changed from pill for card-like look */
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 90px;
  transition: all 0.2s ease;
}

.filter-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.filter-btn span {
  font-size: 0.85rem;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(181, 2, 8, 0.3);
}

.section-title {
  font-size: 1.8rem;
  margin: 20px 0;
  color: var(--muted);
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  animation: fadeIn 0.4s ease;
}

.tab-content p {
  color: var(--muted);
  padding: 12px 0;
}

/* Garante que a seção de produtos ocupe toda a largura */
.sport-section {
  width: 100%;
}

.sport-section .cards {
  width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.product-sport {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.sport-tag {
  background: var(--bg);
  margin-left: 8px;
}

/* --- LOJA / MARKETING STYLES --- */

#shop-view,
#product-list {
  width: 100%;
}

.product-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.product-image-container {
  width: 100%;
  height: 220px;
  min-height: 180px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #000;
}

@media (max-width: 700px) {
  .product-image-container {
    height: 200px;
    min-height: 160px;
  }
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
  transform: scale(1.05);
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.product-category {
  font-size: 0.8rem;
  color: var(--text);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  flex: 1;
  min-height: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* Detail View */
.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-2 {
  margin-top: 0.75rem;
}

.full-width {
  width: 100%;
}

/* --- MODAL DETALHES DO PRODUTO (100%) --- */
.product-detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.product-detail-modal-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: 100%;
  overflow-y: auto;
  margin: auto;
}

.product-detail-close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2001;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-close-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.product-detail-modal-body {
  padding: 0;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

/* Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumbnails img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  cursor: pointer;
  object-fit: cover;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.thumbnails img:hover,
.thumbnails img.active {
  border-color: var(--accent);
  opacity: 1;
}

/* Info Side */
.product-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.tag {
  background: var(--accent-2);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.product-header h1 {
  margin: 12px 0;
  font-size: 2.2rem;
  line-height: 1.3;
  color: var(--accent);
}

.price-large {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

/* Product Variations */
.product-variations {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.product-variation-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-variation-section .variation-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.variation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variation-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--accent-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.variation-btn:hover {
  border-color: var(--accent);
  background: var(--accent-2);
}

.variation-btn.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Actions */
.product-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}

.quantity-selector button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  width: 40px;
  height: 48px;
  cursor: pointer;
}

.quantity-selector input {
  width: 40px;
  text-align: center;
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}

.buy-btn {
  flex: 1;
  font-size: 1.1rem;
}

/* Product Tabs */
.product-tabs .tabs {
  margin-bottom: 20px;
  position: static;
  display: flex;
  /* Ensure it's a flex container */
  justify-content: stretch;
  /* Change from flex-start to stretch */
  gap: 10px;
}

.product-tabs .tab-btn {
  flex: 1;
  /* Force buttons to take equal width */
  text-align: center;
  justify-content: center;
}

.product-tabs .tab-btn.active {
  background: var(--accent);
  border: 1px solid var(--accent);
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.specs-list li:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }

  .product-header h1 {
    font-size: 1.8rem;
  }

  .main-image {
    aspect-ratio: 16/9;
  }

  .variation-buttons {
    gap: 6px;
  }

  .variation-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

/* --- CARROSSEL DE PRODUTOS --- */
.product-carousel-section {
  margin-bottom: 48px;
  padding: 24px 0;
}

.carousel-header {
  margin-bottom: 20px;
  padding: 0 4px;
}

.carousel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 4px;
  gap: 16px;
}

.carousel-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

.carousel-btn:active {
  transform: scale(0.98);
}

.carousel-wrapper {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.carousel-split {
  display: flex;
  gap: 10px;
  align-items: stretch;
  min-height: 280px;
  max-height: 445px;
  height: clamp(300px, 42vh, 500px);
  box-sizing: border-box;
}

.carousel-featured {
  flex: 0 0 65%;
  min-width: 0;
  padding-top: 6px;
}

.carousel-others {
  flex: 0 0 calc(35% - 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  padding: 6px 0 0;
}

.carousel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  border-color: var(--accent);
}

/* Card em destaque (65%) */
.carousel-featured .carousel-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.carousel-featured .carousel-card-image {
  flex: 1;
  min-height: 140px;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-featured .carousel-card-body {
  padding: 10px 14px;
  flex-shrink: 0;
}

.carousel-featured .carousel-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
  padding-top: 5px;
}

.carousel-featured .carousel-card-sport {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.carousel-featured .carousel-card-category {
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  padding: 5px 10px;
  border-radius: 30px;
}

.carousel-featured .carousel-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 10px 0 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-featured .carousel-card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.carousel-card-price {
  margin: 0;
}

/* Cards menores (35%) - boxes configuráveis via CAROUSEL_CONFIG.boxesCount, altura responsiva, sem scroll */
.carousel-others .carousel-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  flex: 1 1 0;
  min-height: 0;
}

.carousel-others .carousel-card-image {
  width: clamp(48px, 8vw, 72px);
  height: clamp(48px, 8vw, 72px);
  min-width: clamp(48px, 8vw, 72px);
  border-radius: 50px;
  object-fit: cover;
  transition: transform 0.4s ease;
  padding: 5px;
}

.carousel-others .carousel-card:hover .carousel-card-image {
  transform: scale(1.05);
}

.carousel-others .carousel-card-body {
  padding: 0;
  flex: 1;
  min-width: 0;
}

.carousel-others .carousel-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.carousel-others .carousel-card-sport {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.carousel-others .carousel-card-category {
  font-size: 0.70rem;
  color: var(--text);
  background: var(--bg);
  padding: 5px 10px;
  border-radius: 30px;
}

.carousel-others .carousel-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 5px 0 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-others .carousel-card-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.carousel-card-image {
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-card:hover .carousel-card-image {
  transform: scale(1.08);
}

.carousel-card-body {
  padding: 20px;
}

.carousel-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.carousel-card-sport {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.carousel-card-category {
  font-size: 0.8rem;
  color: var(--muted);
}

.carousel-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-card-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.carousel-dots {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.carousel-dot {
  width: 10px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgb(255 255 255 / 15%);
}

.carousel-dot:hover {
  background: var(--muted);
}

.carousel-dot.active {
  background: var(--accent);
  width: 30px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .carousel-split {
    flex-direction: column;
    height: auto;
    min-height: 280px;
    max-height: none;
  }

  .carousel-featured {
    flex: 0 0 auto;
    min-height: 280px;
  }

  .carousel-others {
    flex: 0 0 auto;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    overflow: visible;
    min-height: auto;
  }

  .carousel-others .carousel-card {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    min-height: 0;
    width: 100%;
  }

  .carousel-others .carousel-card-image {
    width: clamp(48px, 8vw, 72px);
    height: clamp(48px, 8vw, 72px);
    min-width: clamp(48px, 8vw, 72px);
  }
}