* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #333;
  background-color: #f5f5f5;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Badge */
.header-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  text-align: center;
  padding: 12px;
  font-weight: 600;
  font-size: 14px;
}

/* Header Principal */
.main-header {
  background-color: #2c2c2c;
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header h1 {
  font-size: 28px;
  font-weight: 700;
}

.main-header a {
  color: white;
  text-decoration: none;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 20px;
  background-color: #444;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.cart-link:hover {
  background-color: #555;
}

.cart-link.active {
  background-color: #ffd700;
  color: #000;
}

.cart-count {
  background-color: #ff4444;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

/* Seção do Produto */
.product-section {
  display: flex;
  gap: 40px;
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-image {
  flex: 1;
  position: relative;
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.discount-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #ff4444;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
}

.product-info {
  flex: 1;
}

.product-info h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #2c2c2c;
}

/* Preço */
.price-section {
  margin: 30px 0;
}

.old-price {
  color: #999;
  text-decoration: line-through;
  font-size: 16px;
  margin-bottom: 5px;
}

.current-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0;
}

.discount-label {
  color: #ff4444;
  font-weight: 600;
  font-size: 18px;
}

.price {
  font-size: 48px;
  font-weight: 700;
  color: #2c2c2c;
}

.installments {
  color: #666;
  font-size: 14px;
}

/* Quantidade */
.quantity-section {
  margin: 30px 0;
}

.quantity-section label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #2c2c2c;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
  width: fit-content;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background-color: #2c2c2c;
  color: white;
  font-size: 20px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.qty-btn:hover {
  background-color: #444;
}

.quantity-selector input {
  width: 60px;
  height: 40px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  border: 2px solid #ddd;
  border-radius: 6px;
}

/* Botão Comprar */
.btn-buy {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  margin: 20px 0;
  transition: transform 0.2s;
}

.btn-buy:hover {
  transform: scale(1.02);
}

/* CEP */
.cep-section {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  margin: 30px 0;
}

.cep-section h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #2c2c2c;
}

.cep-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cep-input-group input {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.btn-cep {
  padding: 12px 24px;
  background-color: #2c2c2c;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-cep:hover {
  background-color: #444;
}

.btn-cep:disabled {
  background-color: #999;
  cursor: not-allowed;
}

.link-cep {
  color: #0066cc;
  font-size: 13px;
  text-decoration: none;
}

.link-cep:hover {
  text-decoration: underline;
}

/* Resultado do Frete */
.frete-resultado {
  margin-top: 20px;
  padding: 15px;
  background-color: #e8f5e9;
  border-left: 4px solid #4caf50;
  border-radius: 6px;
}

.frete-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.frete-info svg {
  color: #4caf50;
}

.frete-info strong {
  color: #2e7d32;
  font-size: 16px;
}

.frete-info p {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

/* Garantia */
.guarantee {
  background-color: #e3f2fd;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin: 20px 0;
}

.guarantee p {
  color: #1976d2;
  font-weight: 600;
}

/* Formas de Pagamento */
.payment-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

/* Estilo para imagem única de bandeiras de cartão */
.payment-cards-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Mantido para compatibilidade com ícones antigos */
.payment-methods img:not(.payment-cards-image) {
  width: 100%;
  height: 40px;
  object-fit: contain;
  background-color: white;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* Economia */
.savings {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.savings p {
  margin: 8px 0;
  font-size: 16px;
}

.line-through {
  text-decoration: line-through;
  color: #999;
}

.saved {
  color: #ff4444;
  font-weight: 700;
  font-size: 18px;
}

.free-shipping {
  color: #4caf50;
  font-weight: 700;
  font-size: 18px;
}

/* Seção de Descrição Geral */
.description-section {
  background-color: white;
  border-radius: 12px;
  padding: 0;
  margin: 40px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.description-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
  border-bottom: 1px solid #eee;
}

.description-header:hover {
  background-color: #f9f9f9;
}

.description-header h3 {
  font-size: 18px;
  color: #2c2c2c;
  font-weight: 600;
  margin: 0;
}

/* Reduzindo tamanho do ícone e garantindo posicionamento correto */
.description-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  fill: #666;
}

.description-icon.active {
  transform: rotate(180deg);
}

.description-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.description-content.active {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
}

.description-text {
  padding: 0 30px 30px 30px;
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}

.description-text p {
  margin-bottom: 15px;
}

.description-text ul {
  margin: 15px 0;
  padding-left: 25px;
}

.description-text ul li {
  margin-bottom: 10px;
}

/* Seção Você Pode Gostar */
.you-may-like {
  margin: 60px 0;
}

.you-may-like h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #2c2c2c;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.super-offer {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff4444;
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  z-index: 1;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card-content {
  padding: 20px;
}

.product-card h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #2c2c2c;
}

.brand {
  color: #666;
  font-size: 13px;
  margin-bottom: 10px;
}

.price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.old-price-small {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
}

.discount-badge-small {
  background-color: #4caf50;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.current-price-small {
  font-size: 24px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 10px 0;
}

.card-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.qty-btn-small {
  width: 32px;
  height: 32px;
  border: none;
  background-color: #2c2c2c;
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}

.card-quantity input {
  width: 50px;
  height: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #ddd;
  border-radius: 4px;
}

.btn-add-card {
  width: 100%;
  padding: 12px;
  background-color: #2c2c2c;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-add-card:hover {
  background-color: #444;
}

/* Página do Carrinho */
.cart-page {
  margin: 40px 0;
}

.cart-page h1 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #2c2c2c;
}

.empty-cart {
  text-align: center;
  padding: 80px 20px;
  background-color: white;
  border-radius: 12px;
}

.empty-cart svg {
  color: #ccc;
  margin-bottom: 20px;
}

.empty-cart h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #2c2c2c;
}

.empty-cart p {
  color: #666;
  margin-bottom: 30px;
}

.btn-continue {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.2s;
}

.btn-continue:hover {
  transform: scale(1.05);
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
}

.cart-items {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.item-details h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #2c2c2c;
}

.item-price {
  color: #666;
  font-size: 14px;
}

.item-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quantity-selector-cart {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-selector-cart input {
  width: 50px;
  height: 32px;
  text-align: center;
  font-size: 14px;
  border: 2px solid #ddd;
  border-radius: 4px;
}

.btn-update {
  padding: 6px 12px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.btn-remove {
  padding: 6px 12px;
  background-color: transparent;
  color: #ff4444;
  border: 1px solid #ff4444;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-remove:hover {
  background-color: #ff4444;
  color: white;
}

.item-total {
  font-size: 18px;
  font-weight: 700;
  color: #2c2c2c;
}

/* Resumo do Carrinho */
.cart-summary {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.cart-summary h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #2c2c2c;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  font-size: 14px;
}

.free-text {
  color: #4caf50;
  font-weight: 700;
}

.summary-divider {
  height: 1px;
  background-color: #eee;
  margin: 20px 0;
}

.total-line {
  font-size: 20px;
  font-weight: 700;
  color: #2c2c2c;
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  margin: 20px 0;
  transition: transform 0.2s;
}

.btn-checkout:hover {
  transform: scale(1.02);
}

.link-continue {
  display: block;
  text-align: center;
  color: #0066cc;
  text-decoration: none;
  margin: 15px 0;
}

.link-continue:hover {
  text-decoration: underline;
}

.guarantee-cart {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #eee;
}

.guarantee-cart p {
  font-size: 13px;
  color: #666;
  margin: 8px 0;
}

/* Footer */
footer {
  background-color: #2c2c2c;
  color: white;
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
}

footer p {
  margin: 5px 0;
  font-size: 14px;
}

/* Responsivo */
@media (max-width: 768px) {
  .product-section {
    flex-direction: column;
    padding: 20px;
  }

  .price {
    font-size: 36px;
  }

  /* Responsividade para imagem de pagamento */
  .payment-methods {
    padding: 15px;
  }

  .payment-cards-image {
    max-width: 300px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .cart-content {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
  }

  .item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
  }

  .item-total {
    grid-column: 1 / -1;
    text-align: right;
  }
}
