/* 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;
}

/* =========================
   REMAKE RESPONSIVO 2026
   ========================= */
:root {
  --mobile-gap: 14px;
  --mobile-radius: 14px;
}

main {
  width: 100%;
}

.card,
.related-card,
.cart-list,
.checkout-form,
.cart-summary,
.payment-result-card,
.empty-state {
  border-radius: var(--mobile-radius);
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  header { padding: 8px 0 10px; }
  .top-campaign img { height: 54px; object-fit: cover; }
  .header-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 0 12px;
  }
  .logo img { height: 44px; }
  .search-bar {
    grid-column: 1 / -1;
    max-width: 100%;
    margin: 0;
    border-radius: 12px;
  }
  .search-bar input { font-size: 16px; padding: 13px 14px; }
  .search-bar button { width: 48px; }
  nav {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 8px;
    padding: 2px 0 0;
    margin-top: 2px;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a {
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .cart-icon { margin-left: 0; padding: 8px 10px; }
  .carousel { margin-top: 12px; padding: 10px; border-radius: 12px; }
  .carousel-item { padding: 14px; border-radius: 12px; }
  .carousel-title, .carousel-item h3 { font-size: 20px; line-height: 1.2; }
  .carousel-price, .carousel-item p { font-size: 15px; }
  .category-section, .product-specifications, .related-products, .cart-page, .checkout-page, .search-page { padding-left: 12px; padding-right: 12px; }
  .category-title, .page-title { font-size: 22px; margin-bottom: 14px; }
  .produtos, .related-produtos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 12px; border-radius: 12px; }
  .card img { height: 150px; object-fit: contain; }
  .card h3 { font-size: 14px; line-height: 1.35; min-height: 40px; }
  .card .preco { font-size: 20px; }
  .card .afiliado a {
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
  }
  .product-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
  }
  .product-info h1 { font-size: 22px; line-height: 1.25; }
  .current-price { font-size: 30px; }
  .checkout-layout, .cart-layout, .payment-result-layout { grid-template-columns: 1fr; gap: 12px; }
  .cart-row {
    grid-template-columns: 84px 1fr;
    gap: 12px;
    align-items: start;
  }
  .qty-controls { grid-column: 1 / -1; justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
  .checkout-form, .cart-list, .cart-summary, .payment-result-card { padding: 14px; }
  .checkout-form input, .checkout-form textarea, .checkout-form select { min-height: 46px; font-size: 16px; }
  .shipping-option, .payment-box { padding: 12px; }
  .checkout-buttons .buy-now-btn, .checkout-btn, .whatsapp-btn {
    min-height: 50px;
    font-size: 16px;
    border-radius: 12px;
  }
}

@media (max-width: 600px) {
  .produtos, .related-produtos { grid-template-columns: 1fr; }
  .card img { height: 190px; }
  .logo img { height: 40px; }
  .cart-icon span { width: 22px; height: 22px; font-size: 11px; }
  .security-seal { font-size: 12px; padding: 8px 10px; }
}

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;
}

.cart-icon.has-items {
  background: #ffffff;
  color: #ed0232;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4), 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: cartPulseLoop 1.9s ease-in-out infinite;
}

.cart-icon.has-items a {
  color: #ed0232;
}

.cart-icon.has-items span {
  background: #ed0232;
  color: #fff;
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes cartPulseLoop {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  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.selected {
  background: #0f5e2f;
  box-shadow: 0 6px 18px rgba(15, 94, 47, 0.25);
}

.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: linear-gradient(180deg, #fff 0%, #fff6f8 100%);
  padding: 22px;
  border-radius: 14px;
  margin: 20px 0;
  border: 1px solid #ffd8e1;
  box-shadow: 0 12px 24px rgba(237, 2, 50, 0.08);
}

.payment-section h3 {
  margin-bottom: 8px;
  color: #333;
  font-size: 18px;
}

.payment-security-line {
  margin: 0 0 14px;
  color: #17653a;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #e8f8ef;
  border: 1px solid #b8e8cc;
  border-radius: 999px;
  padding: 6px 11px;
}

.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: 16px 14px;
  border: 2px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  text-align: center;
  background: #fff;
}

.payment-option input:checked + .payment-box {
  border-color: #ed0232;
  background: #fff1f4;
  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;
}

.pix-safe-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #17653a;
  background: #e8f8ef;
  border: 1px solid #b8e8cc;
  border-radius: 999px;
  padding: 4px 9px;
}

.card-flags {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #4a4a4a;
}

.card-flags img {
  height: 18px;
  width: auto;
  display: block;
}

.pix-brand {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pix-brand img {
  height: 18px;
  width: auto;
  display: block;
}

.checkout-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 20px;
}

#btnPagarSite {
  background: linear-gradient(135deg, #1f8fff 0%, #32bcad 100%);
  border: 1px solid #178ee0;
  box-shadow: 0 10px 20px rgba(31, 143, 255, 0.22);
}

#btnPagarSite:hover {
  background: linear-gradient(135deg, #1976d2 0%, #22a99b 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(25, 118, 210, 0.28);
}

.whatsapp-btn {
  background: #25D366;
}

.whatsapp-btn:hover {
  background: #20BA5A;
}

.whatsapp-section {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed #bfe9cf;
  border-radius: 12px;
  background: #f4fff8;
}

.whatsapp-section h4 {
  margin: 0 0 6px;
  color: #146c43;
  font-size: 15px;
}

.whatsapp-section p {
  margin: 0 0 12px;
  color: #2e6a4f;
  font-size: 13px;
}

@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: 20px;
  border: 1px solid #d9e5f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 10px 22px rgba(0, 63, 136, 0.08);
}

.delivery-box h3 {
  margin-bottom: 14px;
  color: #333;
  font-size: 19px;
}

.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: 13px;
  border: 1px solid #d5deea;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shipping-option:has(input:checked) {
  border-color: #ed0232;
  background: #fff5f7;
  box-shadow: 0 0 0 2px rgba(237, 2, 50, 0.1);
}

.shipping-option:hover {
  border-color: #b9c9dc;
}

.shipping-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf4fb;
  color: #0056a6;
  font-size: 16px;
}

.shipping-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.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;
  }
}

.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;
  }
}

/* ===== AJUSTE FINAL MOBILE / CELULARES ===== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  max-width: 100%;
}

.card,
.related-card,
.cart-row,
.summary-item,
.shipping-option,
.payment-box,
.benefit-item,
.spec-item,
.review-item {
  min-width: 0;
}

.card h3,
.related-card h4,
.product-info h1,
.cart-row h3,
.summary-item span,
.shipping-option strong,
.shipping-option small,
.payment-status,
.payment-help,
.pix-copy-code {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 900px) {
  .container,
  .header-content,
  .cart-page,
  .checkout-page,
  .search-page,
  .category-section,
  .product-specifications,
  .product-reviews,
  .related-products,
  .footer-grid {
    width: 100%;
    max-width: 100%;
  }

  .top-campaign {
    overflow: hidden;
  }

  .top-campaign img {
    width: 100%;
    min-width: 0;
  }

  .header-content {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .logo,
  .logo a {
    min-width: 0;
    padding-left: 0;
  }

  .logo img {
    max-width: 190px;
    object-fit: contain;
  }

  .search-bar,
  .search-bar form {
    width: 100%;
    min-width: 0;
  }

  nav {
    min-width: 0;
  }

  .carousel,
  .cart-page,
  .checkout-page,
  .search-page {
    margin-left: auto;
    margin-right: auto;
  }

  .produtos,
  .related-produtos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card,
  .related-card {
    width: 100%;
  }

  .product-container {
    width: calc(100% - 24px);
    margin: 18px auto;
  }

  .main-image {
    width: 100%;
  }

  .thumbnail-gallery {
    max-width: 100%;
  }

  .benefits,
  .specs-grid,
  .reviews-list {
    grid-template-columns: 1fr;
  }

  .checkout-layout,
  .cart-layout,
  .payment-result-layout {
    width: 100%;
  }

  .cart-summary {
    position: static;
  }

  .summary-item,
  .cart-summary p {
    align-items: flex-start;
  }

  .shipping-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .shipping-option b {
    grid-column: 2;
    justify-self: start;
    font-size: 15px;
  }

  .payment-box,
  .card-flags,
  .pix-brand {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .header-content {
    gap: 8px;
    padding: 0 10px;
  }

  .logo img {
    max-width: 150px;
    height: 38px;
  }

  .cart-icon {
    padding: 7px 9px;
    font-size: 20px;
  }

  nav a {
    font-size: 12px;
    padding: 7px 10px;
  }

  .carousel-inner,
  .carousel-item {
    min-height: 210px;
  }

  .carousel-item {
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 8px;
    padding: 18px 34px;
  }

  .carousel-title,
  .carousel-item > h3 {
    font-size: 20px;
    line-height: 1.08;
  }

  .carousel-media {
    min-height: 130px;
  }

  .carousel-item img {
    width: 100px;
    max-height: 120px;
  }

  .category-section,
  .product-specifications,
  .product-reviews,
  .related-products,
  .cart-page,
  .checkout-page,
  .search-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .produtos,
  .related-produtos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card {
    padding: 10px;
  }

  .card img,
  .related-card img {
    height: 135px;
  }

  .card h3 {
    min-height: 54px;
    font-size: 13px;
  }

  .card .preco,
  .related-card .preco {
    font-size: 18px;
  }

  .card .afiliado a,
  .related-card .view-btn {
    min-height: 40px;
    padding: 9px 8px;
    font-size: 12px;
  }

  .product-container {
    width: calc(100% - 20px);
    padding: 12px;
  }

  .product-info h1 {
    font-size: 21px;
  }

  .current-price {
    font-size: 28px;
  }

  .cta-section,
  .checkout-buttons {
    gap: 10px;
  }

  .add-to-cart-btn,
  .buy-now-btn,
  .checkout-btn,
  .whatsapp-btn {
    width: 100%;
    min-height: 48px;
    white-space: normal;
  }

  .cart-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }

  .cart-row img {
    width: 76px;
    height: 76px;
  }

  .qty-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .checkout-form,
  .cart-list,
  .cart-summary,
  .payment-result-card,
  .empty-state {
    padding: 12px;
  }

  .summary-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pix-box {
    padding: 12px;
  }

  .pix-copy-code {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .produtos,
  .related-produtos {
    grid-template-columns: 1fr;
  }

  .card img,
  .related-card img {
    height: 175px;
  }

  .carousel-item {
    grid-template-columns: 1fr;
    padding: 18px 34px;
  }

  .carousel-media {
    min-height: 95px;
  }

  .carousel-item img {
    width: 96px;
    max-height: 96px;
  }
}

/* ===== RETIFICA GALERIA DO PRODUTO NO MOBILE ===== */
@media (max-width: 768px) {
  .product-container {
    margin-top: 10px;
  }

  .product-gallery {
    width: 100%;
    min-width: 0;
  }

  .main-image {
    width: 100%;
    height: clamp(230px, 68vw, 360px);
    min-height: 0;
    aspect-ratio: auto;
    padding: 12px;
    overflow: visible;
    border-radius: 8px;
  }

  .main-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  .main-image .offer-badge {
    top: 8px;
    left: 8px;
    z-index: 5;
  }

  .gallery-nav-btn {
    top: 50%;
    z-index: 20;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #ed0232;
    border: 1px solid rgba(237, 2, 50, 0.18);
    box-shadow: 0 8px 22px rgba(20, 24, 34, 0.18);
  }

  .gallery-nav-btn.prev {
    left: 8px;
  }

  .gallery-nav-btn.next {
    right: 8px;
  }

  .image-counter {
    right: 8px;
    bottom: 8px;
    z-index: 18;
  }

  .thumbnail-gallery {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding: 8px 4px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .thumbnail-btn {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    scroll-snap-align: start;
  }
}

@media (max-width: 430px) {
  .main-image {
    height: clamp(220px, 64vw, 300px);
    padding: 10px;
  }

  .gallery-nav-btn {
    width: 36px;
    height: 36px;
  }

  .thumbnail-btn {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    padding: 5px;
  }
}
