/* Reset e configurações base */
* {
  box-sizing: border-box;
}

.produto-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  background: #fff;
  min-height: calc(100vh - 200px);
}

#produtoConteudo {
  min-height: 600px;
}

/* Breadcrumbs — mesmo estilo da listagem de produtos */
.produto-container .breadcrumbs-container {
  padding: 15px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--bs-gray-300, #dee2e6);
}

.produto-container .breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.produto-container .breadcrumbs li {
  display: flex;
  align-items: center;
}

.produto-container .breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin: 0 10px;
  color: var(--bs-cinza, #8a8a8a);
  font-size: 18px;
}

.produto-container .breadcrumbs a {
  color: var(--bs-primary, #00675d);
  text-decoration: none;
  transition: color 0.2s ease;
}

.produto-container .breadcrumbs a:hover {
  color: var(--bs-secondMeusPedidos, #00675d);
  text-decoration: underline;
}

.produto-container .breadcrumbs .breadcrumb-current {
  color: var(--bs-cinza, #8a8a8a);
  font-weight: 500;
}

.produto-container .breadcrumbs .breadcrumb-home {
  color: var(--bs-primary, #00675d);
}

.product-main-layout {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: stretch;
  min-height: 300px;
}

.image-gallery {
  flex: 1;
  top: 20px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  align-content: center;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition: min-height 0.3s ease;
}

.main-image-container {
  background: #fff;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  transition: min-height 0.3s ease;
}

.main-image-container img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.main-image-container:hover img {
  transform: scale(1.05);
}

.image-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: grab;
  overflow: hidden;
}

.image-zoom-overlay:active {
  cursor: grabbing;
}

.image-zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.1s ease-out;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  touch-action: none;
}

.image-zoom-overlay img.zoomed {
  cursor: grab;
}

.image-zoom-overlay img.zoomed:active {
  cursor: grabbing;
}

.image-zoom-overlay.dragging {
  cursor: grabbing !important;
}

.image-zoom-overlay.dragging img {
  cursor: grabbing !important;
  transition: none;
}

.zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  z-index: 10000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: background 0.2s;
}

.zoom-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.zoom-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10000;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.zoom-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.zoom-indicator {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 10000;
}

.product-info {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  transition: min-height 0.3s ease;
}

.product-info .product-header {
  flex: 0 0 auto;
}

.product-info .login-prompt {
  flex: 0 0 auto;
  margin-top: auto;
}

.product-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-stock {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #c3e6cb;
}

.badge-stock.out {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.badge-oferta {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border: 1px solid #ffeaa7;
}

.badge-marca {
  background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
  color: #6d767e;
  border: 1px solid #d6d8db;
}

.product-title {
  font-size: 22px;
  font-weight: 700;
  color: #6d767e;
  line-height: 1.3;
  margin-bottom: 12px;
}

.product-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8f9fa;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 16px;
}

.pricing-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.pricing-section.oferta {
  background: linear-gradient(135deg, #fffbf0 0%, #ffeaa7 100%);
  border: 2px solid #ffc107;
}

.oferta-badge {
  position: absolute;
  top: -8px;
  right: 20px;
  background: linear-gradient(135deg, #ffc107 0%, #f9a825 100%);
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
  z-index: 10;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.price-original {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
}

.price-current {
  font-size: 28px;
  font-weight: 700;
  color: #00675d;
  line-height: 1;
}

.price-oferta {
  color: #f57c00;
}

.price-label {
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
}

.economia-info {
  background: #fff3cd;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.economia-info i {
  color: #856404;
  font-size: 16px;
}

.economia-text {
  color: #856404;
  font-size: 12px;
  font-weight: 600;
}

/* Seção de compra */
.purchase-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 0;
  margin-top: auto;
  flex-shrink: 0;
}

.purchase-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.purchase-price {
  flex: 1;
  min-width: 150px;
}

.price-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-info-oferta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-label-inline {
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
}

.price-original-small {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.economia-badge-small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ffc107 0%, #f9a825 100%);
  color: #000;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 11px;
  width: fit-content;
}

.purchase-quantity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.quantity-label-inline {
  font-weight: 600;
  color: #6d767e;
  font-size: 12px;
}

.quantity-total-price {
  font-size: 14px;
  font-weight: 600;
  color: #00675d;
  margin-top: 4px;
}

.purchase-title {
  font-size: 16px;
  font-weight: 600;
  color: #00675d;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quantity-selector {
  margin-bottom: 16px;
}

.quantity-label {
  font-weight: 600;
  color: #6d767e;
  margin-bottom: 8px;
  display: block;
  font-size: 13px;
}

.purchase-button {
  flex: 1;
  min-width: 200px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  background: white;
  width: fit-content;
}

.quantity-btn {
  background: #f8f9fa;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: #6d767e;
}

.quantity-btn:hover {
  background: #e9ecef;
  color: #00675d;
}

.quantity-input {
  border: none;
  width: 60px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #6d767e;
  background: white;
}

.quantity-input:focus {
  outline: none;
}

.btn-add-cart {
  background: #00675d;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
  white-space: nowrap;
}

.btn-add-cart:hover {
  background: #79dd2f;
  transform: translateY(-2px);
  color: #000;
}

.btn-add-cart:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.btn-add-cart .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Toast de sucesso para carrinho */
.toast-container-carrinho {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 11000;
  pointer-events: none;
}

.toast-carrinho {
  min-width: 300px;
  max-width: 400px;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  margin-bottom: 12px;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease-out;
}

.toast-carrinho.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-carrinho-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #d4edda;
  border-bottom: 1px solid #c3e6cb;
  font-weight: 600;
}

.toast-carrinho-header i.fa-check-circle {
  color: #28a745;
  font-size: 18px;
}

.toast-carrinho-header strong {
  flex: 1;
  color: #155724;
  font-size: 14px;
}

.toast-carrinho-close {
  background: none;
  border: none;
  color: #155724;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  transition: background 0.2s;
  font-size: 14px;
}

.toast-carrinho-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.toast-carrinho-body {
  padding: 12px 16px;
  color: #155724;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .toast-container-carrinho {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .toast-carrinho {
    min-width: auto;
    max-width: 100%;
    width: 100%;
  }
}

/* Informações adicionais */
.product-features {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 0;
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  transition: min-height 0.3s ease;
}

.features-title {
  font-size: 16px;
  font-weight: 600;
  color: #00675d;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: space-around;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.feature-label {
  font-size: 12px;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-value {
  font-size: 14px;
  color: #6d767e;
  font-weight: 500;
}

/* Descrição do produto */
.product-description {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.description-title {
  font-size: 18px;
  font-weight: 600;
  color: #00675d;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.description-content {
  color: #6d767e;
  line-height: 1.8;
  white-space: pre-line;
}

.alert-modern {
  padding: 12px 16px;
  border-radius: 6px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.alert-info {
  background: #e8f4f8;
  border-left: 4px solid #0c5460;
  color: #0c5460;
}

.alert-warning {
  background: #fff3cd;
  border-left: 4px solid #856404;
  color: #856404;
}

.alert-danger {
  background: #f8d7da;
  border-left: 4px solid #721c24;
  color: #721c24;
}

.login-prompt {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-left: 4px solid #00675d;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  color: #6d767e;
  margin: 0;
  margin-top: auto;
  position: relative;
}

.login-prompt-content {
  position: relative;
  z-index: 1;
}

.login-prompt i {
  display: none;
}

.login-prompt h6 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #6d767e;
}

.login-prompt p {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 14px;
}

.login-prompt .btn-login {
  background: #00675d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  line-height: 1;
  height: auto;
}

.login-prompt .btn-login,
.login-prompt .btn-login i,
.login-prompt .btn-login span {
  color: white !important;
  text-decoration: none !important;
}

.login-prompt .btn-login i {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  font-size: inherit;
}

.login-prompt .btn-login span {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}

.login-prompt .btn-login:hover {
  background: #00675d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(143, 180, 53, 0.3);
  color: white;
  text-decoration: none !important;
}

.login-prompt .btn-login:hover,
.login-prompt .btn-login:hover i,
.login-prompt .btn-login:hover span {
  color: white !important;
  text-decoration: none !important;
}

/* Seção de itens do kit */
.kit-items-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.kit-items-title {
  font-size: 18px;
  font-weight: 600;
  color: #00675d;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Seção de produtos relacionados */
.related-products {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.related-title {
  font-size: 18px;
  font-weight: 600;
  color: #00675d;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.related-grid::-webkit-scrollbar {
  height: 6px;
}

.related-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.related-grid::-webkit-scrollbar-thumb {
  background: #00675d;
  border-radius: 3px;
}

.related-grid::-webkit-scrollbar-thumb:hover {
  background: #7fa02d;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: none;
  /* Escondido por padrão */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(143, 180, 53, 0.15);
}

.carousel-btn:hover {
  background: #00675d;
  color: #fff;
  border-color: #00675d;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -20px;
}

.carousel-next {
  right: -20px;
}

.carousel-btn i {
  font-size: 14px;
}

.related-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #fff;
  flex: 0 0 200px;
  min-width: 200px;
}

.related-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(143, 180, 53, 0.15);
  border-color: #00675d;
}

.related-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #f8f9fa;
}

.related-info {
  padding: 12px;
}

.related-name {
  font-size: 14px;
  font-weight: 600;
  color: #6d767e;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-price {
  font-size: 16px;
  font-weight: 700;
  color: #00675d;
}

.related-type {
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
  margin-top: 4px;
  margin-bottom: 8px;
  padding: 2px 6px;
  background: #f8f9fa;
  border-radius: 4px;
  display: inline-block;
}

.related-price {
  font-size: 14px;
  font-weight: 600;
  color: #00675d;
  margin-top: 4px;
}

.related-price.unavailable {
  color: #dc3545;
  font-size: 12px;
}

.related-price.visitor {
  color: #6c757d;
  font-size: 11px;
  font-weight: 500;
}

/* ===== OTIMIZAÇÕES MOBILE ===== */

/* Layout mobile otimizado */
@media (max-width: 768px) {
  .produto-container {
    padding: 10px;
    margin: 0;
  }

  /* Breadcrumb mobile */
  .produto-container .breadcrumbs-container {
    padding: 10px 0;
    margin-bottom: 16px;
  }

  .produto-container .breadcrumbs {
    font-size: 13px;
  }

  /* Layout principal mobile */
  .product-main-layout {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }

  .product-features {
    flex: 1 1 auto;
    width: 100%;
    margin-bottom: 16px;
    order: 2;
  }

  /* Galeria de imagens mobile */
  .image-gallery {
    position: static;
    order: 1;
  }

  .main-image-container {
    padding: 15px;
    min-height: 300px;
    border-radius: 8px;
  }

  .main-image-container img {
    max-height: 300px;
    width: 100%;
    object-fit: contain;
  }

  /* Informações do produto mobile */
  .product-info {
    min-height: auto;
    order: 3;
  }

  .product-title {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .product-code {
    font-size: 11px;
    padding: 4px 8px;
    margin-bottom: 12px;
  }

  /* Badges mobile */
  .product-badges {
    gap: 4px;
    margin-bottom: 6px;
  }

  .badge-modern {
    font-size: 9px;
    padding: 3px 6px;
  }

  /* Seção de preços mobile */
  .pricing-section {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
  }

  .oferta-badge {
    font-size: 12px;
    padding: 6px 12px;
    top: -6px;
    right: 15px;
  }

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

  .price-original {
    font-size: 16px;
  }

  .economia-info {
    padding: 6px 10px;
    margin-top: 8px;
  }

  .economia-text {
    font-size: 11px;
  }

  /* Seção de compra mobile */
  .purchase-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .purchase-price,
  .purchase-quantity,
  .purchase-button {
    width: 100%;
    min-width: auto;
  }

  .purchase-section {
    padding: 16px;
    margin-top: 16px;
    border-radius: 8px;
  }

  .purchase-title {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .quantity-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .quantity-controls {
    border-radius: 4px;
  }

  .quantity-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .quantity-input {
    width: 50px;
    font-size: 13px;
  }

  .btn-add-cart {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 6px;
  }

  /* Alertas mobile */
  .alert-modern {
    padding: 10px 12px;
    font-size: 12px;
    margin: 8px 0;
  }

  .login-prompt {
    padding: 12px;
    margin: 8px 0;
  }

  .login-prompt i {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .login-prompt h6 {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .login-prompt p {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .login-prompt .btn-login {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* Seções de conteúdo mobile */
  .product-features,
  .product-description,
  .kit-items-section,
  .related-products {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
  }

  .features-title,
  .description-title,
  .kit-items-title,
  .related-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-item {
    padding: 10px;
  }

  .feature-label {
    font-size: 11px;
  }

  .feature-value {
    font-size: 13px;
  }

  .description-content {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Produtos relacionados mobile */
  .related-item {
    flex: 0 0 160px;
    min-width: 160px;
  }

  .related-image {
    height: 100px;
  }

  .related-info {
    padding: 10px;
  }

  .related-name {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .related-type {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .related-price {
    font-size: 13px;
  }

  /* Botões do carousel mobile */
  .carousel-btn {
    width: 32px;
    height: 32px;
  }

  .carousel-btn i {
    font-size: 12px;
  }

  .carousel-prev {
    left: -12px;
  }

  .carousel-next {
    right: -12px;
  }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
  .produto-container {
    padding: 8px;
  }

  .produto-container .breadcrumbs-container {
    padding: 8px 0;
    margin-bottom: 12px;
  }

  .produto-container .breadcrumbs {
    font-size: 12px;
  }

  .product-main-layout {
    gap: 12px;
    margin-bottom: 16px;
  }

  .main-image-container {
    padding: 12px;
    min-height: 250px;
  }

  .main-image-container img {
    max-height: 250px;
  }

  .product-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .product-code {
    font-size: 10px;
    padding: 3px 6px;
    margin-bottom: 10px;
  }

  .badge-modern {
    font-size: 8px;
    padding: 2px 5px;
  }

  .pricing-section {
    padding: 10px;
    margin-bottom: 6px;
  }

  .oferta-badge {
    font-size: 11px;
    padding: 5px 10px;
    top: -5px;
    right: 12px;
  }

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

  .price-original {
    font-size: 14px;
  }

  .purchase-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .purchase-price,
  .purchase-quantity,
  .purchase-button {
    width: 100%;
    min-width: auto;
  }

  .purchase-section {
    padding: 12px;
    margin-top: 12px;
  }

  .purchase-title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .quantity-input {
    width: 45px;
    font-size: 12px;
  }

  .btn-add-cart {
    padding: 12px 14px;
    font-size: 14px;
  }

  .product-features,
  .product-description,
  .kit-items-section,
  .related-products {
    padding: 12px;
    margin-bottom: 12px;
  }

  .features-title,
  .description-title,
  .kit-items-title,
  .related-title {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .feature-item {
    padding: 8px;
  }

  .feature-label {
    font-size: 10px;
  }

  .feature-value {
    font-size: 12px;
  }

  .description-content {
    font-size: 13px;
    line-height: 1.5;
  }

  .related-item {
    flex: 0 0 140px;
    min-width: 140px;
  }

  .related-image {
    height: 90px;
  }

  .related-info {
    padding: 8px;
  }

  .related-name {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .related-type {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .related-price {
    font-size: 12px;
  }

  .carousel-btn {
    width: 28px;
    height: 28px;
  }

  .carousel-btn i {
    font-size: 11px;
  }

  .carousel-prev {
    left: -10px;
  }

  .carousel-next {
    right: -10px;
  }
}

/* Melhorias de touch para mobile */
@media (max-width: 768px) {
  /* Elementos tocáveis maiores */
  .btn-add-cart,
  .login-prompt .btn-login,
  .quantity-btn {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Melhor espaçamento para touch */
  .product-badges .badge-modern {
    min-height: 24px;
    display: flex;
    align-items: center;
  }

  /* Scroll suave */
  .related-grid {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* Zoom da imagem otimizado para mobile */
  .image-zoom-overlay {
    padding: 20px;
  }

  .image-zoom-overlay img {
    max-width: 95%;
    max-height: 95%;
  }

  .zoom-close {
    top: 10px;
    right: 10px;
    font-size: 20px;
    padding: 10px;
  }

  /* Melhorias de acessibilidade mobile */
  .main-image-container img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Indicador visual de interação */
  .main-image-container img:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  /* Melhor contraste para textos */
  .product-title {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }

  /* Espaçamento otimizado para leitura */
  .description-content {
    text-align: justify;
    hyphens: auto;
  }

  /* Melhor visualização de preços */
  .price-current {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }

  /* Botões com melhor feedback visual */
  .btn-add-cart:active {
    transform: translateY(0px) !important;
    box-shadow: 0 2px 8px rgba(113, 191, 69, 0.3) !important;
  }

  /* Carousel com melhor indicador */
  .related-grid {
    scrollbar-width: thin;
    scrollbar-color: #00675d #f1f1f1;
  }

  .related-grid::-webkit-scrollbar {
    height: 4px;
  }

  .related-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
  }

  .related-grid::-webkit-scrollbar-thumb {
    background: #00675d;
    border-radius: 2px;
  }

  .related-grid::-webkit-scrollbar-thumb:hover {
    background: #7fa02d;
  }
}

/* Modal de detalhes do item do kit */
.modal-item-kit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-item-kit-content {
  background: #fff;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-item-kit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  flex-shrink: 0;
}

.modal-item-kit-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #6d767e;
  flex: 1;
  padding-right: 20px;
}

.modal-item-kit-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-item-kit-close:hover {
  background: #f8f9fa;
  color: #dc3545;
}

.modal-item-kit-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-item-kit-detalhes {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.modal-item-kit-imagem {
  flex: 0 0 250px;
  min-width: 200px;
}

.modal-item-kit-imagem img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  object-fit: contain;
}

.modal-item-kit-info {
  flex: 1;
  min-width: 300px;
}

.modal-item-kit-codigo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8f9fa;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 16px;
}

.modal-item-kit-codigo i {
  color: #00675d;
}

.modal-item-kit-nome {
  font-size: 22px;
  font-weight: 600;
  color: #6d767e;
  margin-bottom: 20px;
  line-height: 1.3;
}

.modal-item-kit-caracteristicas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-item-kit-caracteristica {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.modal-item-kit-caracteristica-label {
  font-size: 12px;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.modal-item-kit-caracteristica-value {
  font-size: 14px;
  color: #6d767e;
  font-weight: 500;
}

.modal-item-kit-descricao {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

.modal-item-kit-descricao-title {
  font-size: 16px;
  font-weight: 600;
  color: #00675d;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-item-kit-descricao-content {
  color: #6d767e;
  line-height: 1.8;
  white-space: pre-line;
}

/* Responsivo para modal */
@media (max-width: 768px) {
  .modal-item-kit-overlay {
    padding: 10px;
  }

  .modal-item-kit-content {
    max-height: 95vh;
  }

  .modal-item-kit-header {
    padding: 16px;
  }

  .modal-item-kit-header h3 {
    font-size: 18px;
  }

  .modal-item-kit-body {
    padding: 16px;
  }

  .modal-item-kit-detalhes {
    flex-direction: column;
    gap: 16px;
  }

  .modal-item-kit-imagem {
    flex: 0 0 auto;
    text-align: center;
  }

  .modal-item-kit-imagem img {
    max-width: 100%;
  }

  .modal-item-kit-info {
    min-width: auto;
  }

  .modal-item-kit-nome {
    font-size: 18px;
  }
}
