/* RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #f6f7f9;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding: 5px 10px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: #ed0232;
  color: #fff;
  padding: 10px 0 8px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 18px rgba(154, 0, 28, 0.18);
}

.top-campaign {
  background: #fff7b6;
  border-bottom: 1px solid rgba(237, 2, 50, 0.08);
  display: flex;
  justify-content: center;
  min-height: 34px;
  overflow: hidden;
}

.top-campaign img {
  width: 100%;
  max-width: 1400px;
  height: 38px;
  object-fit: cover;
  object-position: center;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.12));
}

.search-bar {
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  max-width: 560px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), 0 8px 18px rgba(110, 0, 24, 0.12);
  margin: 0 14px;
}

.search-bar input {
  width: 100%;
  padding: 11px 16px;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
}

.search-bar button {
  width: 46px;
  align-self: stretch;
  border: none;
  background: #c90029;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.search-bar button:hover {
  background: #f73a5e;
}

#clearSearchBtn {
  background: #ccc;
}

#clearSearchBtn:hover {
  background: #999;
}

.cart-icon {
  position: relative;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.cart-icon:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.cart-icon span {
  background: #fff;
  color: #ed0232;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cart-icon.animate-cart {
  animation: cartPulse 0.6s ease;
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.user-icon {
  position: relative;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
}

.user-icon span {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}

.user-icon i {
  font-size: 20px;
}

nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  padding: 5px 0 0;
  margin-top: 8px;
}

nav a {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  position: relative;
  padding: 3px 0;
  transition: color 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #fff;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #ffe6e6;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  min-width: 150px;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  font-size: 14px;
  transition: background 0.3s;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* CARROSSEL */
.carousel {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 18px 20px;
  max-width: 1300px;
  margin: 22px auto 0;
  border-radius: 8px;
  border: 1px solid #eceff3;
  box-shadow: 0 8px 24px rgba(20, 22, 28, 0.04);
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  text-align: center;
  padding: 28px;
  background: linear-gradient(135deg, #ed0232 0%, #b90025 100%);
  color: #fff;
  border-radius: 8px;
}

.carousel-item h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.carousel-item p {
  font-size: 18px;
  font-weight: 400;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* OFERTA RELÂMPAGO */
.oferta-relampago {
  padding: 30px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 8px;
  max-width: 1300px;
  margin: 18px auto;
}

.oferta-relampago h2 {
  color: #ed0232;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.oferta-relampago p {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

#timer {
  font-size: 34px;
  font-weight: bold;
  color: #ed0232;
  background: #ffe6e6;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(237, 2, 50, 0.08);
}

/* SEÇÕES DE CATEGORIAS */
.category-section {
  padding: 34px 20px;
  background: #fff;
  margin: 18px auto;
  border: 1px solid #eceff3;
  border-radius: 8px;
  max-width: 1300px;
  box-shadow: 0 8px 24px rgba(20, 22, 28, 0.04);
}

.category-title {
  font-size: 24px;
  font-weight: 700;
  color: #ed0232;
  margin-bottom: 20px;
  text-transform: uppercase;
  border-left: 4px solid #ed0232;
  padding-left: 10px;
}

/* PRODUTOS */
.produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20, 22, 28, 0.1);
}

.card img {
  width: 100%;
  height: 172px;
  object-fit: contain;
  margin-bottom: 12px;
  background: #fafbfc;
  border-radius: 8px;
  padding: 10px;
}

.card h3 {
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 42px;
  overflow: hidden;
}

.card .preco {
  font-size: 22px;
  font-weight: bold;
  color: #ed0232;
  margin-bottom: 10px;
  margin-top: auto;
}

.card .afiliado a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ed0232;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s;
  width: 100%;
}

.card .afiliado a:hover {
  background: #f73a5e;
}

.card .stock-low {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4444;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
}

.card .offer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ffd700;
  color: #333;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
}

/* MODAL (Detalhes do Produto) */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 900px;
  border-radius: 10px;
  padding: 20px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #ed0232;
}

.modal-body {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.modal-body img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  border-radius: 8px;
}

.modal-details {
  flex: 1;
}

.modal-details h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.modal-details .preco {
  font-size: 22px;
  font-weight: bold;
  color: #ed0232;
  margin-bottom: 15px;
}

.modal-details h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.modal-details ul {
  list-style: none;
  margin-bottom: 20px;
}

.modal-details ul li {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

.buy-btn {
  display: inline-block;
  background: #ed0232;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  position: relative;
}

.buy-btn:hover {
  background: #f73a5e;
}

.buy-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
}

.add-to-cart-btn {
  display: inline-block;
  background: #4CAF50;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  margin-top: 10px;
  position: relative;
}

.add-to-cart-btn:hover {
  background: #45a049;
}

.add-to-cart-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
}

.add-to-cart-btn:active {
  transform: scale(0.95);
}

/* Seção de Avaliações no Modal */
.modal-reviews {
  margin-top: 20px;
  border-top: 1px solid #e1e1e1;
  padding-top: 20px;
}

.modal-reviews h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
}

.review {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.review .stars {
  color: #f5c518;
  margin-bottom: 5px;
}

.review p {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

.review .author {
  font-size: 12px;
  color: #777;
}

/* MODAL DO CARRINHO */
#cartItems {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e1e1e1;
  animation: slideIn 0.3s ease;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-right: 10px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details p {
  margin: 0;
  font-size: 14px;
}

.cart-item .remove-btn {
  background: #ff4444;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.cart-item .remove-btn:hover {
  background: #cc0000;
}

.savings-message {
  font-size: 14px;
  color: #4CAF50;
  font-weight: bold;
  margin: 10px 0;
}

/* MODAL DE CHECKOUT */
.checkout-details h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  margin-top: 20px;
}

.checkout-details p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.checkout-details ul {
  list-style: none;
  margin-bottom: 20px;
}

.checkout-details ul li {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

#checkoutForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  width: 100%;
  max-width: 400px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #ed0232;
  box-shadow: 0 0 5px rgba(237, 2, 50, 0.3);
}

.form-group button {
  padding: 8px 15px;
  background: #ed0232;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 5px;
  position: relative;
}

.form-group button:hover {
  background: #f73a5e;
}

.form-group button[title]:hover::after {
  content: attr(title);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
}

#freteResult {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.urgency-messages {
  margin: 15px 0;
}

.urgency-message {
  font-size: 14px;
  color: #ed0232;
  font-weight: bold;
  margin: 8px 0;
  text-align: center;
  opacity: 0;
  animation: fadeInPulse 1s ease forwards;
}

.urgency-message:nth-child(1) { animation-delay: 0.5s; }
.urgency-message:nth-child(2) { animation-delay: 1s; }
.urgency-message:nth-child(3) { animation-delay: 1.5s; }
.urgency-message:nth-child(4) { animation-delay: 2s; }

.security-seal {
  font-size: 14px;
  color: #333;
  background: #e8f5e9;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

#checkoutTimer {
  font-size: 14px;
  color: #ed0232;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
  background: #ffe6e6;
  padding: 5px;
  border-radius: 5px;
}

/* MODAL DE LOGIN (Estilo Google) */
.login-modal-content {
  max-width: 400px;
  text-align: center;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-animation {
  padding: 20px;
}

.google-logo {
  width: 80px;
  height: 80px;
  background: url('https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png') no-repeat center;
  background-size: contain;
  margin: 0 auto 20px;
  animation: pulse 1.5s infinite;
}

.login-animation p {
  font-size: 16px;
  color: #555;
  font-weight: 500;
}

.login-form h3 {
  font-size: 24px;
  color: #202124;
  margin-bottom: 10px;
  font-weight: 400;
}

.login-form p {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 20px;
}

.login-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 20px;
}

.login-form input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 5px rgba(26, 115, 232, 0.3);
}

.login-form button {
  background: #1a73e8;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.login-form button:hover {
  background: #1557b0;
}

/* MODAL DE SEGURANÇA */
.security-modal-content {
  max-width: 400px;
  text-align: center;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease;
}

.security-animation i {
  font-size: 50px;
  color: #4CAF50;
  animation: pulseShield 1s infinite;
}

.security-modal-content h3 {
  font-size: 24px;
  color: #333;
  margin: 10px 0;
}

.security-modal-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

/* FOOTER */
footer {
  background: #1a1a1a;
  color: #bbb;
  padding: 40px 20px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1300px;
  margin: auto;
}

.footer-col {
  min-width: 180px;
  flex: 1;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  color: #bbb;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #fff;
}

.social a {
  color: #fff;
  margin-right: 15px;
  font-size: 20px;
  transition: color 0.3s;
}

.social a:hover {
  color: #ed0232;
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-top: 30px;
}

.security-seal {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #bbb;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseShield {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes fadeInPulse {
  0% { opacity: 0; transform: scale(0.9); }
  50% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .top-campaign {
    min-height: 28px;
  }

  .top-campaign img {
    height: 30px;
    min-width: 820px;
  }

  .header-content {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
  }

  .search-bar {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    margin: 4px 0 0;
    order: 3;
    flex-basis: 100%;
    box-shadow: none;
  }

  .search-bar input {
    padding: 8px 12px;
    font-size: 13px;
  }

  .search-bar button {
    width: 42px;
  }

  .cart-icon, .user-icon {
    position: static;
  }

  .cart-icon {
    margin-left: auto;
  }

  .user-icon {
    margin-left: 0;
  }

  nav {
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    order: 4;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .carousel-item h3 {
    font-size: 24px;
  }

  .carousel-item p {
    font-size: 16px;
  }

  .oferta-relampago h2 {
    font-size: 28px;
  }

  .category-title {
    font-size: 24px;
  }

  .card img {
    height: 150px;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }

  .modal-body {
    flex-direction: column;
    align-items: center;
  }

  .modal-body img {
    width: 200px;
    height: 200px;
  }

  .form-group input,
  .form-group select {
    max-width: 100%;
  }

  .cart-item img {
    width: 40px;
    height: 40px;
  }

  .footer-grid {
    flex-direction: column;
    gap: 20px;
  }

  .urgency-message {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  body {
    background: #fff;
  }

  .search-bar {
    width: 100%;
    margin-top: 2px;
    border-radius: 6px;
  }

  .search-bar input {
    padding: 7px 10px;
    min-height: 34px;
  }

  .search-bar button {
    width: 38px;
  }

  .logo img {
    height: 36px;
  }

  .cart-icon {
    font-size: 18px;
    padding: 6px 9px;
  }

  .carousel,
  .oferta-relampago,
  .category-section {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .produtos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card {
    min-height: 292px;
    padding: 10px;
  }

  .card img {
    height: 124px;
    padding: 8px;
  }

  .card h3 {
    font-size: 13px;
    min-height: 38px;
  }

  .card .preco {
    font-size: 18px;
  }

  .card .afiliado a {
    padding: 9px 10px;
    font-size: 13px;
  }

  .modal-body img {
    width: 150px;
    height: 150px;
  }

  .add-to-cart-btn {
    margin-bottom: 10px;
  }
}

/* ===== PÁGINA DE PRODUTO ===== */

/* Breadcrumb */
.breadcrumb {
  background: #f9f9f9;
  padding: 15px 20px;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #e1e1e1;
  max-width: 1300px;
  margin: 0 auto;
}

.breadcrumb a {
  color: #ed0232;
  text-decoration: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Container do Produto */
.product-container {
  max-width: 1300px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 34px;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #eceff3;
  box-shadow: 0 12px 34px rgba(20, 22, 28, 0.06);
}

/* Galeria de Imagens */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image {
  position: relative;
  background: #fafbfc;
  border: 1px solid #eceff3;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.main-image .offer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ffd700;
  color: #333;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
}

/* Botões de Navegação de Imagens */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.gallery-nav-btn:hover {
  background: #ed0232;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
  left: 10px;
}

.gallery-nav-btn.next {
  right: 10px;
}

/* Indicador de Imagens */
.image-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.68);
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
}

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}

.thumbnail-gallery::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 999px;
}

.thumbnail-btn {
  width: 82px;
  height: 82px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
  background: #fff;
  transition: all 0.25s ease;
  flex: 0 0 auto;
}

.thumbnail-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbnail-btn:hover,
.thumbnail-btn.active {
  border-color: #ed0232;
  box-shadow: 0 4px 14px rgba(237, 2, 50, 0.16);
}

.thumbnail-btn:focus-visible,
.gallery-nav-btn:focus-visible {
  outline: 3px solid rgba(237, 2, 50, 0.25);
  outline-offset: 2px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border: 2px solid #e1e1e1;
  border-radius: 5px;
  cursor: pointer;
  object-fit: contain;
  padding: 5px;
  background: #f9f9f9;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.thumbnail:hover {
  border-color: #ed0232;
  background: #fff;
}

.thumbnail.active {
  border-color: #ed0232;
  box-shadow: 0 0 10px rgba(237, 2, 50, 0.3);
}

/* Informações do Produto */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-info h1 {
  font-size: 30px;
  color: #333;
  line-height: 1.3;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating .stars {
  color: #ffd700;
  font-size: 18px;
}

.rating span {
  font-size: 14px;
  color: #666;
}

/* Seção de Preço */
.price-section {
  border: 1px solid rgba(237, 2, 50, 0.18);
  padding: 20px;
  border-radius: 8px;
  background: #fff9f9;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 15px;
  flex-wrap: wrap;
}

.price .current-price {
  font-size: 36px;
  font-weight: bold;
  color: #ed0232;
}

.price .original-price {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
}

.savings {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
}

/* CTA Section */
.cta-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  width: fit-content;
  overflow: hidden;
}

.quantity-selector button {
  background: #f5f5f5;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.quantity-selector button:hover {
  background: #ed0232;
  color: #fff;
}

.quantity-selector input {
  border: none;
  width: 60px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}

.quantity-selector input:focus {
  outline: none;
}

.add-to-cart-btn {
  background: #4CAF50;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.add-to-cart-btn:hover {
  background: #45a049;
}

.buy-now-btn {
  background: #ed0232;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.buy-now-btn:hover {
  background: #f73a5e;
}

/* PAGAMENTO */
.payment-section {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #ed0232;
}

.payment-section h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 16px;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.payment-option {
  display: flex;
  align-items: center;
}

.payment-option input {
  display: none;
}

.payment-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  text-align: center;
  background: #fff;
}

.payment-option input:checked + .payment-box {
  border-color: #ed0232;
  background: #ffe6e6;
  box-shadow: 0 0 10px rgba(237, 2, 50, 0.2);
}

.payment-box i {
  font-size: 28px;
  color: #ed0232;
  margin-bottom: 8px;
}

.payment-box strong {
  display: block;
  margin-bottom: 4px;
  color: #333;
}

.payment-box small {
  color: #999;
  font-size: 12px;
}

.checkout-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.whatsapp-btn {
  background: #25D366;
}

.whatsapp-btn:hover {
  background: #20BA5A;
}

@media (max-width: 768px) {
  .payment-options {
    grid-template-columns: 1fr;
  }
  
  .checkout-buttons {
    grid-template-columns: 1fr;
  }
}

/* Benefícios */
.benefits {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e1e1e1;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.benefit-item i {
  font-size: 24px;
  color: #ed0232;
  margin-top: 5px;
  flex-shrink: 0;
}

.benefit-item h4 {
  font-size: 14px;
  color: #333;
  margin: 0;
}

.benefit-item p {
  font-size: 12px;
  color: #666;
  margin: 5px 0 0 0;
}

/* Especificações */
.product-specifications {
  max-width: 1300px;
  margin: 40px auto;
  padding: 40px 20px;
  background: #fff;
  border-radius: 8px;
}

.product-specifications h2 {
  font-size: 28px;
  color: #ed0232;
  margin-bottom: 30px;
  border-left: 4px solid #ed0232;
  padding-left: 10px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.spec-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #ed0232;
}

.spec-item p {
  margin: 0;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

/* Depoimentos/Reviews */
.product-reviews {
  max-width: 1300px;
  margin: 40px auto;
  padding: 40px 20px;
  background: #fff;
  border-radius: 8px;
}

.product-reviews h2 {
  font-size: 28px;
  color: #ed0232;
  margin-bottom: 30px;
  border-left: 4px solid #ed0232;
  padding-left: 10px;
}

.reviews-summary {
  margin-bottom: 40px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.rating-summary {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}

.average-rating {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.average-rating > span:first-child {
  font-size: 48px;
  font-weight: bold;
  color: #ed0232;
}

.average-rating .stars {
  color: #ffd700;
  font-size: 20px;
}

.average-rating p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-bar {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  align-items: center;
  gap: 15px;
}

.rating-bar > span:first-child {
  font-size: 14px;
  color: #666;
  text-align: right;
}

.rating-bar .bar {
  height: 8px;
  background: #e1e1e1;
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar .bar > div {
  height: 100%;
  background: #ffd700;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.rating-bar > span:last-child {
  font-size: 14px;
  color: #666;
  text-align: right;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-item {
  padding: 20px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

.review-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.review-rating {
  color: #ffd700;
  font-size: 16px;
}

.review-author {
  font-size: 14px;
  color: #666;
  font-weight: bold;
}

.review-text {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

/* Produtos Relacionados */
.related-products {
  max-width: 1300px;
  margin: 40px auto;
  padding: 40px 20px;
  background: #fff;
  border-radius: 8px;
}

.related-products h2 {
  font-size: 28px;
  color: #ed0232;
  margin-bottom: 30px;
  border-left: 4px solid #ed0232;
  padding-left: 10px;
}

.related-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.related-card {
  background: #f9f9f9;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
}

.related-card h4 {
  font-size: 14px;
  color: #333;
  margin: 10px 0;
  line-height: 1.3;
}

.related-card .preco {
  font-size: 18px;
  font-weight: bold;
  color: #ed0232;
  margin: 10px 0;
}

.related-card .view-btn {
  background: #ed0232;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  display: inline-block;
  font-size: 14px;
  transition: background 0.3s;
}

.related-card .view-btn:hover {
  background: #f73a5e;
}

/* Modal do Carrinho Melhorado */
.cart-item-modal {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  margin-bottom: 15px;
}

.cart-item-modal img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #f9f9f9;
  border-radius: 5px;
}

.cart-item-modal .item-details h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: #333;
}

.cart-item-modal .item-details p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #e1e1e1;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
  transition: all 0.3s;
}

.qty-btn:hover {
  background: #ed0232;
  color: #fff;
  border-color: #ed0232;
}

.cart-item-modal .remove-btn {
  width: 30px;
  height: 30px;
  background: #ff4444;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
}

.cart-item-modal .remove-btn:hover {
  background: #cc0000;
}

.cart-summary {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.cart-summary p {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin: 8px 0;
}

.cart-summary .total {
  font-size: 18px;
  font-weight: bold;
  color: #ed0232;
  border-top: 2px solid #ed0232;
  padding-top: 10px;
  margin-top: 10px;
}

.checkout-btn {
  background: #ed0232;
  color: #fff;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

.checkout-btn:hover {
  background: #f73a5e;
}

/* Footer */
footer {
  background: #333;
  color: #bbb;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #e1e1e1;
}

footer p {
  margin: 0;
  font-size: 14px;
}

/* Ajustes da versao Express/EJS */
.search-bar form {
  display: flex;
  width: 100%;
}

.cart-icon a {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.product-link {
  display: block;
  padding: 0;
}

.carousel-item {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  align-items: center;
  justify-items: center;
  gap: 20px;
  color: #fff;
}

.carousel-item img {
  max-height: 170px;
  object-fit: contain;
}

.page-title {
  color: #ed0232;
  font-size: 28px;
  margin-bottom: 24px;
  border-left: 4px solid #ed0232;
  padding-left: 10px;
  text-transform: uppercase;
}

.cart-page,
.checkout-page,
.search-page {
  max-width: 1300px;
  margin: 30px auto;
  padding: 0 20px;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 30px;
  align-items: start;
}

.cart-list,
.checkout-form,
.empty-state {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 24px;
}

.cart-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e1e1e1;
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-row img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #f9f9f9;
  border-radius: 6px;
}

.cart-row h3,
.checkout-summary h2 {
  color: #333;
  font-size: 18px;
  margin-bottom: 6px;
}

.remove-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: #ff4444;
  color: #fff;
  cursor: pointer;
}

.continue-link {
  display: block;
  margin-top: 14px;
  color: #ed0232;
  font-weight: 700;
  text-align: center;
}

.frete-note {
  display: block;
  color: #555;
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  color: #333;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 15px;
  padding: 11px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e1e1e1;
  font-size: 14px;
}

.empty-state {
  text-align: center;
}

.empty-state i {
  color: #ed0232;
  font-size: 42px;
  margin-bottom: 12px;
}

.result-count {
  color: #666;
  margin-bottom: 20px;
}

.security-seal {
  background: #e8f5e9;
  border-radius: 6px;
  color: #2e7d32;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 14px;
}

@media (max-width: 768px) {
  .header-content {
    gap: 10px;
  }

  .search-bar {
    order: 3;
    width: 100%;
    margin: 4px 0 0;
  }

  nav {
    gap: 12px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
  }

  .carousel-item {
    grid-template-columns: 1fr;
    padding: 24px 42px;
  }

  .carousel-item img {
    max-height: 130px;
  }

  .cart-layout,
  .checkout-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 82px 1fr;
  }

  .cart-row img {
    width: 82px;
    height: 82px;
  }

  .cart-row .qty-controls {
    grid-column: 1 / -1;
  }
}

/* Responsividade para Página de Produto */
@media (max-width: 768px) {
  .product-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .product-gallery {
    gap: 12px;
  }

  .main-image {
    aspect-ratio: 1;
  }

  .gallery-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .gallery-nav-btn.prev {
    left: 8px;
  }

  .gallery-nav-btn.next {
    right: 8px;
  }

  .image-counter {
    font-size: 13px;
    padding: 6px 10px;
  }

  .thumbnail-gallery {
    gap: 8px;
  }

  .thumbnail {
    width: 70px;
    height: 70px;
  }

  .thumbnail-btn {
    width: 72px;
    height: 72px;
  }

  .product-info h1 {
    font-size: 24px;
  }

  .price .current-price {
    font-size: 28px;
  }

  .rating-summary {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .related-produtos {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-item-modal {
    grid-template-columns: 60px 1fr;
    gap: 10px;
  }

  .qty-controls {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .product-container {
    padding: 15px;
  }

  .main-image {
    aspect-ratio: 1;
    min-height: 250px;
  }

  .thumbnail-gallery {
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }

  .thumbnail-btn {
    width: 64px;
    height: 64px;
  }

  .gallery-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .product-info h1 {
    font-size: 20px;
  }

  .price {
    flex-direction: column;
  }

  .price .current-price {
    font-size: 24px;
  }

  .add-to-cart-btn,
  .buy-now-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .quantity-selector button {
    width: 35px;
    height: 35px;
  }

  .quantity-selector input {
    width: 50px;
  }

  .related-produtos {
    grid-template-columns: 1fr;
  }

  .cart-item-modal {
    grid-template-columns: 1fr;
  }

  .cta-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .add-to-cart-btn,
  .buy-now-btn {
    width: 100%;
  }
}

.delivery-box {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #eceff3;
  border-radius: 8px;
  background: #f8f9fb;
}

.delivery-box h3 {
  margin-bottom: 14px;
  color: #333;
  font-size: 18px;
}

.cep-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.btn-mini {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #333;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.btn-mini:hover {
  background: #ed0232;
}

.shipping-options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.shipping-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.shipping-option:has(input:checked) {
  border-color: #ed0232;
  box-shadow: 0 0 0 2px rgba(237, 2, 50, 0.08);
}

.shipping-option span {
  display: grid;
  gap: 2px;
}

.shipping-option small {
  color: #666;
  font-size: 12px;
}

.shipping-option b {
  color: #ed0232;
}

@media (max-width: 768px) {
  .cep-row {
    grid-template-columns: 1fr;
  }
}

/* Checkout de alta conversão */
.checkout-page {
  max-width: 1180px;
  margin-top: 36px;
  margin-bottom: 56px;
}

.checkout-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.checkout-page .page-title {
  margin: 3px 0 4px;
  padding: 0;
  border: 0;
  color: #1d2433;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.7px;
  text-transform: none;
}

.checkout-kicker,
.summary-kicker {
  margin: 0;
  color: #ba0028;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.checkout-kicker i { margin-right: 5px; }

.checkout-subtitle {
  margin: 0;
  color: #667085;
  font-size: 15px;
}

.back-to-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 9px 0;
  color: #525d70;
  font-weight: 700;
}

.back-to-cart:hover { color: #c9002e; }

.checkout-steps {
  display: flex;
  gap: 34px;
  margin: 0 0 26px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e5e8ee;
  list-style: none;
  color: #8a94a6;
  font-size: 13px;
  font-weight: 700;
}

.checkout-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-steps span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #ccd2dd;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
}

.checkout-steps .is-complete,
.checkout-steps .is-current { color: #222c3b; }
.checkout-steps .is-complete span { background: #eaf8ef; border-color: #9bdbb0; color: #16833b; }
.checkout-steps .is-current span { background: #d90032; border-color: #d90032; color: #fff; box-shadow: 0 3px 8px rgba(217, 0, 50, .22); }

.checkout-page .checkout-layout {
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, .78fr);
  gap: 28px;
}

.checkout-page .checkout-form {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e4e8ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 39, 60, .055);
}

.checkout-page .security-seal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 26px;
  border-radius: 0;
  border-bottom: 1px solid #d8eee0;
  background: #f2fbf5;
  color: #24753c;
  font-size: 13px;
  font-weight: 400;
}

.checkout-page .security-seal > i { font-size: 19px; }
.checkout-page .security-seal strong { display: block; font-size: 13px; }

.checkout-section {
  margin: 0;
  padding: 25px 26px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  background: #fff;
}

.checkout-page .delivery-box,
.checkout-page .payment-section { border-left: 0; }

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 21px;
}

.section-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fde9ed;
  color: #c7002d;
  font-size: 13px;
  font-weight: 800;
}

.section-heading h2 {
  margin: 0;
  color: #222b3a;
  font-size: 18px;
  line-height: 1.25;
}

.section-heading p {
  margin: 3px 0 0;
  color: #748094;
  font-size: 13px;
  line-height: 1.35;
}

.checkout-page .form-grid { gap: 14px 16px; }
.checkout-page .form-group { margin-bottom: 14px; }
.checkout-page .form-group label { margin-bottom: 7px; color: #3e495a; font-size: 13px; font-weight: 700; }
.checkout-page .form-group input {
  max-width: none;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd6e0;
  border-radius: 8px;
  color: #202938;
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
}
.checkout-page .form-group input:hover { border-color: #aeb8c7; }
.checkout-page .form-group input:focus { border-color: #d90032; box-shadow: 0 0 0 3px rgba(217, 0, 50, .1); }

.checkout-page .btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border-radius: 8px;
  background: #303a4a;
  font-size: 13px;
  transition: background .18s, transform .18s;
}
.checkout-page .btn-mini:hover { background: #202a39; transform: translateY(-1px); }

.checkout-page .shipping-options { gap: 9px; margin-top: 19px; }
.checkout-page .shipping-option {
  padding: 13px 14px;
  border-color: #dfe4eb;
  border-radius: 9px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.checkout-page .shipping-option:hover { border-color: #aeb9c8; }
.checkout-page .shipping-option:has(input:checked) { border-color: #d90032; background: #fffafb; box-shadow: 0 0 0 3px rgba(217, 0, 50, .08); }
.checkout-page .shipping-option input { accent-color: #d90032; }
.checkout-page .shipping-option b { color: #bb002a; }
.checkout-page .frete-note { margin: 13px 0 0; color: #667085; }

.checkout-page .payment-section { padding-bottom: 27px; }
.checkout-page .payment-options { gap: 12px; margin-bottom: 0; }
.checkout-page .payment-box {
  min-height: 126px;
  align-items: flex-start;
  padding: 17px;
  border-color: #dce2eb;
  border-radius: 10px;
  text-align: left;
}
.checkout-page .payment-box i { margin-bottom: 9px; color: #c9002e; font-size: 23px; }
.checkout-page .payment-box strong { color: #273142; font-size: 14px; }
.checkout-page .payment-box small { color: #6f7c90; line-height: 1.3; }
.checkout-page .payment-option input:checked + .payment-box { border-color: #d90032; background: #fff8f9; box-shadow: 0 0 0 3px rgba(217, 0, 50, .09); }

.checkout-page .checkout-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 24px 26px 10px;
}
.checkout-page .buy-now-btn {
  display: flex;
  min-height: 54px;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 9px;
  background: linear-gradient(135deg, #e50036, #c6002d);
  box-shadow: 0 8px 16px rgba(204, 0, 45, .2);
  font-size: 15px;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.checkout-page .buy-now-btn span { display: inline-flex; align-items: center; gap: 9px; }
.checkout-page .buy-now-btn:hover { background: linear-gradient(135deg, #c9002e, #ae0027); box-shadow: 0 10px 22px rgba(204, 0, 45, .28); transform: translateY(-1px); }
.checkout-page .whatsapp-btn {
  min-height: 42px;
  justify-content: center;
  padding: 10px 14px;
  background: transparent;
  box-shadow: none;
  color: #178344;
  font-size: 13px;
}
.checkout-page .whatsapp-btn:hover { background: #effaf3; box-shadow: none; color: #126d37; }
.checkout-reassurance { margin: 0; padding: 0 26px 24px; color: #697588; font-size: 12px; text-align: center; }
.checkout-reassurance i { margin-right: 5px; color: #16833b; }

.checkout-page .cart-summary {
  position: sticky;
  top: 88px;
  margin: 0;
  padding: 22px;
  border: 1px solid #e3e7ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 39, 60, .055);
}
.summary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.summary-heading h2 { margin: 2px 0 0; color: #252f3f; font-size: 19px; }
.summary-heading > i { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 9px; background: #fff0f2; color: #c9002e; }
.checkout-page .summary-item { padding: 11px 0; border-color: #eef0f3; color: #4d596b; }
.checkout-page .summary-item strong { color: #2d3748; white-space: nowrap; }
.checkout-summary-item { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 11px; }
.checkout-item-image { width: 58px; height: 58px; border: 1px solid #e5e8ed; border-radius: 8px; object-fit: cover; background: #f7f8fa; }
.checkout-item-details { min-width: 0; display: grid; gap: 6px; }
.checkout-item-name { overflow: hidden; color: #364254; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.checkout-item-price { font-size: 13px; }
.checkout-quantity { display: inline-flex; width: fit-content; align-items: center; border: 1px solid #dfe4eb; border-radius: 6px; overflow: hidden; }
.checkout-qty-btn { display: grid; width: 26px; height: 25px; place-items: center; border: 0; background: #f7f8fa; color: #4d596b; cursor: pointer; font-size: 10px; }
.checkout-qty-btn:hover { background: #fff0f2; color: #c9002e; }
.checkout-qty-btn:disabled { cursor: wait; opacity: .5; }
.checkout-qty-value { min-width: 27px; color: #252f3f; font-size: 12px; font-weight: 700; text-align: center; }
.checkout-page .cart-summary > p { margin: 10px 0; color: #586477; }
.checkout-page .cart-summary .total { margin-top: 15px; padding-top: 15px; border-top: 1px solid #dfe4eb; color: #202a39; font-size: 16px; }
.checkout-page .cart-summary .total strong { color: #c7002d; font-size: 21px; }
.summary-benefits { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #edf0f3; }
.summary-benefits p { margin: 0; color: #617084; font-size: 12px; }
.summary-benefits i { width: 17px; color: #1b9349; text-align: center; }

@media (max-width: 768px) {
  .checkout-page { margin-top: 22px; padding: 0 14px; }
  .checkout-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 17px; }
  .checkout-subtitle { max-width: 42rem; font-size: 14px; line-height: 1.45; }
  .back-to-cart { padding: 0; }
  .checkout-steps { justify-content: space-between; gap: 8px; padding-bottom: 14px; font-size: 11px; }
  .checkout-steps li { gap: 5px; }
  .checkout-page .checkout-layout { grid-template-columns: 1fr; gap: 18px; }
  .checkout-page .security-seal, .checkout-section, .checkout-page .checkout-buttons { padding-left: 18px; padding-right: 18px; }
  .checkout-reassurance { padding-left: 18px; padding-right: 18px; }
  .checkout-page .cart-summary { position: static; padding: 18px; }
  .checkout-page .payment-options { grid-template-columns: 1fr; }
  .checkout-page .form-grid { gap: 0; }
  .checkout-page .cep-row { grid-template-columns: 1fr; }
  .checkout-page .btn-mini { width: 100%; }
}

@media (max-width: 410px) {
  .checkout-steps li { font-size: 0; }
  .checkout-steps li span { font-size: 12px; }
}

@media (max-width: 480px) {
  .checkout-page { margin-top: 16px; padding: 0 10px; }
  .checkout-page .page-title { font-size: 28px; }
  .checkout-heading { gap: 6px; margin-bottom: 14px; }
  .checkout-subtitle { font-size: 13px; }
  .checkout-steps { gap: 4px; margin-bottom: 18px; font-size: 10px; }
  .checkout-steps li { gap: 4px; white-space: nowrap; }
  .checkout-steps span { width: 22px; height: 22px; font-size: 11px; }
  .checkout-page .security-seal,
  .checkout-section,
  .checkout-page .checkout-buttons { padding-left: 15px; padding-right: 15px; }
  .checkout-page .security-seal { align-items: flex-start; padding-top: 13px; padding-bottom: 13px; font-size: 12px; line-height: 1.4; }
  .checkout-page .security-seal > i { margin-top: 2px; font-size: 16px; }
  .checkout-section { padding-top: 20px; padding-bottom: 20px; }
  .section-heading { gap: 9px; margin-bottom: 17px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading p { font-size: 12px; }
  .checkout-page .form-group { margin-bottom: 12px; }
  .checkout-page .form-group input { min-height: 46px; font-size: 16px; }
  .checkout-page .shipping-option { grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 11px; }
  .checkout-page .shipping-option b { grid-column: 2; }
  .checkout-page .payment-box { min-height: 0; padding: 15px; }
  .checkout-page .checkout-buttons { padding-top: 20px; }
  .checkout-page .buy-now-btn { min-height: 52px; padding: 13px 15px; font-size: 14px; }
  .checkout-reassurance { padding-bottom: 20px; font-size: 11px; line-height: 1.4; }
  .checkout-page .cart-summary { padding: 15px; border-radius: 11px; }
  .summary-heading h2 { font-size: 18px; }
  .checkout-summary-item { grid-template-columns: 52px minmax(0, 1fr); gap: 9px; }
  .checkout-item-image { width: 52px; height: 52px; }
  .checkout-item-name { white-space: normal; line-height: 1.3; }
  .checkout-page .cart-summary .total strong { font-size: 19px; }
}

.payment-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 30px;
  align-items: start;
}

.payment-result-card {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 24px;
}

.payment-status {
  margin: 18px 0 8px;
}

.payment-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  text-decoration: none;
}

.pix-box {
  display: grid;
  place-items: center;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #eceff3;
  border-radius: 8px;
  background: #f8f9fb;
}

.pix-box img {
  width: min(260px, 100%);
  height: auto;
}

.pix-copy-label {
  display: block;
  margin: 18px 0 8px;
  color: #333;
  font-weight: 700;
}

.pix-copy-code {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: vertical;
  font-family: Consolas, monospace;
  font-size: 13px;
}

.payment-help {
  margin-top: 18px;
  color: #666;
}

@media (max-width: 900px) {
  .payment-result-layout {
    grid-template-columns: 1fr;
  }
}

/* Ajuste final da vitrine em celulares: ofertas em texto, sem fotos grandes. */
@media (max-width: 768px) {
  .top-campaign {
    min-height: 28px;
    max-height: 28px;
  }

  .top-campaign img {
    width: 100%;
    min-width: 0;
    height: 28px;
    object-fit: cover;
    object-position: center top;
  }

  .carousel {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ed0232;
    box-shadow: none;
  }

  .carousel-inner {
    min-height: 52px;
  }

  .carousel-item {
    display: flex;
    min-height: 52px;
    grid-template-columns: none;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 46px;
    border-radius: 0;
    background: #ed0232;
  }

  .carousel-item img {
    display: none;
  }

  .carousel-item div {
    min-width: 0;
    width: 100%;
  }

  .carousel-item h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .carousel-item p {
    display: none;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
  }

  .carousel-btn:hover {
    background: rgba(255, 255, 255, 0.28);
  }

  header {
    padding: 7px 0 6px;
  }

  .header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
  }

  .logo {
    grid-column: 1;
  }

  .cart-icon {
    grid-column: 3;
    justify-self: end;
  }

  .search-bar {
    grid-column: 1 / -1;
    order: initial;
    width: 100%;
    margin: 0;
    border-radius: 8px;
    flex: initial;
  }

  .search-bar input {
    padding: 8px 12px;
    min-height: 36px;
  }

  .search-bar button {
    width: 40px;
    min-height: 36px;
  }

  nav {
    grid-column: 1 / -1;
    order: initial;
    margin-top: 0;
    padding-top: 0;
  }
}

/* Vitrine moderna de ofertas */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 1300px;
  margin: 24px auto 0;
  padding: 12px;
  border: 1px solid #eef0f4;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 221, 87, 0.35), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #fff6f7 46%, #f7f8fb 100%);
  box-shadow: 0 18px 50px rgba(20, 24, 34, 0.1);
}

.carousel-inner {
  display: flex;
  min-height: 320px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  align-items: center;
  min-width: 100%;
  min-height: 320px;
  gap: 28px;
  padding: 38px 72px;
  overflow: hidden;
  color: #1f2633;
  text-align: left;
  background:
    linear-gradient(110deg, rgba(237, 2, 50, 0.1), rgba(237, 2, 50, 0) 54%),
    #fff;
  border-radius: 8px;
}

.carousel-item::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(237, 2, 50, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.carousel-copy,
.carousel-media {
  position: relative;
  z-index: 1;
}

.carousel-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
  gap: 12px;
}

.carousel-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ed0232;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.carousel-title {
  color: #1f2633;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.carousel-item > h3 {
  color: #1f2633;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

.carousel-price {
  color: #ed0232;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.1;
}

.carousel-item > p {
  color: #ed0232;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 800;
}

.carousel-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: #1f2633;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 38, 51, 0.18);
}

.carousel-media {
  display: grid;
  place-items: center;
  min-height: 250px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, rgba(237, 2, 50, 0.14), transparent 58%),
    linear-gradient(180deg, #ffffff, #f6f7fa);
}

.carousel-item img {
  width: min(100%, 360px);
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(20, 24, 34, 0.18));
  transition: transform 0.35s ease;
}

.carousel-item:hover img {
  transform: scale(1.04);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(31, 38, 51, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #ed0232;
  box-shadow: 0 10px 24px rgba(20, 24, 34, 0.12);
  transform: translateY(-50%);
}

.carousel-btn:hover {
  background: #ed0232;
  color: #fff;
}

.prev {
  left: 22px;
}

.next {
  right: 22px;
}

@media (max-width: 768px) {
  .carousel {
    margin: 0;
    padding: 8px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .carousel-inner {
    min-height: 230px;
  }

  .carousel-item {
    grid-template-columns: minmax(0, 1fr) 120px;
    min-height: 230px;
    gap: 12px;
    padding: 24px 42px;
    border-radius: 8px;
  }

  .carousel-item::before {
    inset: 8px;
  }

  .carousel-copy {
    gap: 8px;
  }

  .carousel-kicker {
    min-height: 24px;
    padding: 4px 9px;
    font-size: 10px;
  }

  .carousel-title {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: #1f2633;
    font-size: 23px;
    line-height: 1.05;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .carousel-item > h3 {
    color: #1f2633;
    font-size: 23px;
    line-height: 1.05;
  }

  .carousel-price {
    display: block;
    font-size: 21px;
  }

  .carousel-item > p {
    display: block;
    color: #ed0232;
    font-size: 16px;
  }

  .carousel-action {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .carousel-media {
    min-height: 150px;
  }

  .carousel-item img {
    display: block;
    width: 110px;
    max-height: 135px;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    background: #fff;
  }

  .prev {
    left: 12px;
  }

  .next {
    right: 12px;
  }
}
