/* Botões */
.btn-comprar {
  display: inline-block;
  margin: 15px auto;
  padding: 12px 22px;
  background: linear-gradient(90deg, #0077cc, #00bfff);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.btn-comprar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.6);
  background: linear-gradient(90deg, #005fa3, #0099cc);
}

/* Store boxes */
.store-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto;
  padding: 0 0px;
  box-sizing: border-box;
}

.box-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.box-link:visited {
  color: inherit;
}

.box-link:focus-visible {
  outline: 3px solid #0077cc;
  outline-offset: 0px;
  border-radius: 14px;
}

.box {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 20px;
  color: #e0e0e0;
  font-size: 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box:hover,
.box-link:focus-visible .box {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.08);
}

.steps-box {
  background: #1c1c1c;
  color: #fff;
  margin-bottom: 20px;
}

.steps-box ol {
  text-align: center;
  margin: 0 auto;
  padding-left: 20px;
}

.steps-box li {
  margin: 8px 0;
}

.stock-info {
  font-size: 0.8em;
  color: #9e9e9e;
}

.pagseguro {
  width: 80px;
  margin-top: 0.3em;
  border: 1px solid #e5e7eb;
  display: inline-block;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s;
}

.urgencia {
  color: #ffcc00;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  margin-top: 10px;
}

/* Carousel */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 600px;
  margin: auto;
}

.carousel {
  display: flex;
  transition: transform 0.6s ease-in-out;
  gap: 20px;
}

.slide {
  min-width: 90%;
  max-width: 600px;
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
  background-color: #ffffff;
  color: #000000;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.slide p {
  flex: 1;
  margin-bottom: 20px;
}

.autor-avaliacao {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.estrelas {
  height: 20px;
  width: auto;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #777;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dot.active {
  background: #00bfff;
}

/* Sugestão visual nas bordas */
.carousel-wrapper::before,
.carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to right, #121212 0%, transparent 100%);
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #121212 0%, transparent 100%);
}

.carousel-wrapper::before {
  left: 0;
}

/* Seção Comparativa */
.comparison-section {
  margin: 40px 0;
  font-family: Arial, sans-serif;
}

.toggle-btn {
  margin: 1px 20px;
  cursor: pointer;
  color: #ffffff;
  text-decoration: underline;
}

.comparison-content {
  display: none;
  margin-top: 20px;
}

.comparison-content table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.comparison-content th,
.comparison-content td {
  padding: 10px;
}

/* Detalhes do produto */
.toggle-link {
  display: block;
  width: fit-content;
  margin: 20px auto;
  color: #ffffff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.toggle-link:hover {
  color: #ffffff;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.5s ease;
  background: #000000;
  border: 1px solid #000000;
  border-radius: 12px;
  text-align: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.283);
  color: #fff;
  padding: 20 20px;
}

.collapsible-content.expanded {
  max-height: 500px;
  padding: 20px;
}

.collapsible-content ul {
  list-style-type: none;
  padding: 10 10;
  margin: 10;
  text-align: left;
}

.collapsible-content ul li {
  margin-bottom: 8px;
}

/* Em telas pequenas, ocupa 100% */
@media (max-width: 320px) {
  .slide {
    min-width: 100%;
  }
}

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  .box { transition: none; }
  .carousel { transition: none; }
  .collapsible-content { transition: none; }
}

/* ADICIONE isto ao components.css */

/* Melhorias de acessibilidade para botões */
.btn-comprar:focus {
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

/* Melhor contraste para texto de urgência */
.urgencia {
    color: #ffcc00;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Estados dos links para melhor acessibilidade */
.box-link:focus {
    outline: 3px solid #0077cc;
    border-radius: 14px;
}