main {
  padding: 40px 210px;
  display: flex;
  justify-content: center;
}

.peripheralsSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  gap: 32px;
}

.sectionTitle {
  font-size: 32px;
  color: #1F2937;
  text-align: center;
}

.sectionDescription {
  font-size: 16px;
  color: #6B7280;
  text-align: center;
  max-width: 600px;
}

.cardsGrid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  min-width: 200px;
}

.card:hover {
  box-shadow: 0 0 15px  rgba(0, 0, 0, 0.1);
}

.cardImageContainer {
  width: 100%;
  height: 200px;
  background: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cardImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cardContent {
  padding: 24px;
}

.cardTitle {
  font-size: 20px;
  color: #1F2937;
}

.cardDescription {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.5;
}

/* Desktop menor */
@media (max-width: 1400px) {
  main {
    padding: 40px 160px;
  }
}

/* Tablets */
@media (max-width: 1200px) {
  main {
    padding: 32px 120px;
  }
}

/* Tablets pequenos */
@media (max-width: 768px) {
  main {
    padding: 24px 40px;
  }

  .cardsGrid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Mobile */
@media (max-width: 480px) {
  main {
    padding: 16px 20px;
  }

  .sectionTitle {
    font-size: 24px;
  }

  .cardsGrid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .card {
    color: #ededed;
    background: #181818;
  }

  .cardImageContainer {
    background: rgb(46, 46, 46);
  }

  .sectionTitle,
  .cardTitle {
    color: #F9FAFB;
  }

  .sectionDescription,
  .cardDescription {
    color: #9CA3AF;
  }
} 

/* Estilos gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f5f5f5;
}

.peripheralsSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  gap: 32px;
}

.sectionTitle {
  font-size: 32px;
  color: #1F2937;
  text-align: center;
}

.sectionDescription {
  font-size: 16px;
  color: #6B7280;
  text-align: center;
  max-width: 600px;
}

/* Estilo dos cards */
.cardsGrid {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  width: 300px;
  border: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.card:hover {
  scale: 1.05;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Imagem do card */
.cardImageContainer {
  width: 100%;
  height: 200px;
  background: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #E5E7EB;
}

.cardImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Conteúdo do card */
.cardContent {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cardTitle {
  font-size: 20px;
  color: #1F2937;
  margin-bottom: 8px;
  font-weight: 600;
}

.cardDescription {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.5;
}

/* Especificações */
.cardSpecs {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
}

.specItem {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.specLabel {
  font-weight: 500;
  color: #4B5563;
  width: 100px;
}

.specValue {
  color: #6B7280;
}

/* Preço */
.cardPrice {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
}

/* Footer do card */
.cardFooter {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #F9FAFB;
  border-top: 1px solid #E5E7EB;
}

.cardButton {
  background-color: #4F46E5;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.cardButton:hover {
  background-color: #4338CA;
}

/* Estilos para o modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 24px;
  width: 90%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
}

.close-button {
  position: absolute;
  right: 24px;
  top: 24px;
  font-size: 28px;
  font-weight: bold;
  color: #6B7280;
  cursor: pointer;
}

.componentLinks {
  margin-bottom: 20px;
}

.componentLinks h3 {
  margin-bottom: 10px;
  color: #4B5563;
}

.linksList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.linkButton {
  background-color: #4F46E5;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.linkButton:hover {
  background-color: #4338CA;
}

/* Media queries */
/* Desktop menor */
@media (max-width: 1400px) {
  main {
    padding: 40px 160px;
  }
}

/* Tablets */
@media (max-width: 1200px) {
  main {
    padding: 32px 120px;
  }
}

/* Tablets pequenos */
@media (max-width: 768px) {
  main {
    padding: 24px 40px;
  }

  .cardsGrid {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 350px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  main {
    padding: 16px 20px;
  }

  .sectionTitle {
    font-size: 24px;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
  }

  .card {
    background: #181818;
    border-color: #333;
  }

  .cardImageContainer {
    background: #222;
    border-color: #333;
  }

  .sectionTitle,
  .cardTitle,
  .cardPrice {
    color: #F9FAFB;
  }

  .sectionDescription,
  .cardDescription,
  .specValue {
    color: #9CA3AF;
  }

  .specLabel {
    color: #D1D5DB;
  }

  .cardSpecs {
    border-color: #333;
  }

  .cardFooter {
    background-color: #222;
    border-color: #333;
  }

  .modal-content {
    background-color: #181818;
    color: #F9FAFB;
  }

  .componentLinks h3 {
    color: #E5E7EB;
  }
}