/*======================================================================
# DETALHES.CSS - Estilos da Página de Detalhes do Produto
======================================================================*/

/*======================================================================
# HEADER ICONS - Novos Botões com Ícones
======================================================================*/
.header-icon-btn,
.mobile-icon-btn {
  position: relative;
  background: none;
  border: 2px solid var(--primary-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary-color);
  font-size: 18px;
}

.header-icon-btn:hover,
.mobile-icon-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/*======================================================================
# SEÇÃO DE DETALHES DO PRODUTO
======================================================================*/
.product-details-section {
  margin-bottom: 40px;
}

/*======================================================================
# GALERIA DE IMAGENS
======================================================================*/
.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image-container {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--border-color);
  margin-bottom: 15px;
}

.main-product-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.main-image-container:hover .main-product-image {
  transform: scale(1.05);
}

.btn-favorite-detail {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-favorite-detail:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.btn-favorite-detail i {
  font-size: 20px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-favorite-detail:hover i {
  color: white;
}

.btn-favorite-detail.favorited {
  background: var(--primary-color);
}

.btn-favorite-detail.favorited i {
  color: white;
}

.sold-out-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
}

.sold-out-badge {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sold-out-badge i {
  font-size: 20px;
}

.zoom-icon {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
}

.main-image-container:hover .zoom-icon {
  opacity: 1;
}

.zoom-icon:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.zoom-icon i {
  color: var(--primary-color);
  font-size: 18px;
  transition: color 0.3s ease;
}

.zoom-icon:hover i {
  color: white;
}

.thumbnails-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 0;
  scrollbar-width: thin;
}

.thumbnails-container::-webkit-scrollbar {
  height: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.thumbnail-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: #fff;
}

.thumbnail-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*======================================================================
# CONTAINER DE INFORMAÇÕES
======================================================================*/
.product-info-container {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--border-color);
}

.product-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--light-bg), #fff);
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.product-category-badge i {
  font-size: 14px;
}

.product-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.product-short-description {
  font-size: 16px;
  color: var(--light-text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 3px;
}

.rating-stars i {
  color: #fbbf24;
  font-size: 16px;
}

.rating-text {
  margin-left: 8px;
  font-size: 14px;
  color: var(--light-text);
  font-weight: 600;
}

.product-sku,
.product-views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--light-text);
}

.product-sku i,
.product-views i {
  color: var(--primary-color);
  font-size: 15px;
}

/*======================================================================
# PREÇOS
======================================================================*/
.price-container {
  background: linear-gradient(135deg, var(--light-bg), #fff);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 2px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.price-old {
  font-size: 16px;
  color: #999;
}

.price-old span {
  text-decoration: line-through;
  font-weight: 500;
}

.price-current {
  font-size: 18px;
  color: var(--text-color);
  font-weight: 600;
}

.price-current span {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.price-current.single span {
  font-size: 40px;
}

.price-discount {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stock-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #f0fdf4;
  border-radius: 10px;
  margin-bottom: 25px;
  font-size: 15px;
}

.stock-info i {
  font-size: 18px;
}

/*======================================================================
# SELEÇÃO DE CORES E TAMANHOS
======================================================================*/
.color-selection,
.size-selection,
.quantity-selection {
  margin-bottom: 25px;
}

.selection-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
}

.selection-label i {
  color: var(--primary-color);
  font-size: 18px;
}

.selection-label span {
  color: var(--primary-color);
  font-weight: 700;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-option {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

.color-option:hover {
  border-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-option.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(var(--primary-color), 0.2);
}

.color-option.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.color-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.color-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.color-name-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  padding: 2px;
}

.size-options-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-option-detail {
  min-width: 60px;
  padding: 12px 20px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.size-option-detail:hover:not(.out-of-stock) {
  border-color: var(--primary-color);
  background: var(--light-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.size-option-detail.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--secondary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.size-option-detail.out-of-stock {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
  position: relative;
}

.size-option-detail.out-of-stock::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: #999;
  transform: translateY(-50%) rotate(-15deg);
}

.size-unavailable {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
}

.size-guide-link {
  margin-top: 10px;
}

.size-guide-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.size-guide-link a:hover {
  color: var(--primary-dark);
  gap: 8px;
}

.size-guide-link i {
  font-size: 15px;
}

/*======================================================================
# QUANTIDADE
======================================================================*/
.quantity-controls {
  display: inline-flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 16px;
  transition: all 0.3s ease;
}

.qty-btn:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

.qty-btn:active {
  background: var(--primary-color);
  color: white;
}

.qty-input {
  width: 60px;
  height: 44px;
  border: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  background: white;
}

.qty-input:focus {
  outline: none;
}

.stock-available {
  margin-left: 15px;
  font-size: 14px;
  color: var(--light-text);
}

/*======================================================================
# BOTÕES DE AÇÃO
======================================================================*/
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.btn-add-to-cart-detail,
.btn-buy-now {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-add-to-cart-detail {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-add-to-cart-detail:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-buy-now {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.btn-buy-now:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-add-to-cart-detail i,
.btn-buy-now i {
  font-size: 18px;
}

.btn-add-to-cart-detail:disabled {
  background: #e0e0e0;
  border-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-add-to-cart-detail:disabled:hover {
  transform: none;
}

/*======================================================================
# INFORMAÇÕES ADICIONAIS
======================================================================*/
.additional-info {
  background: linear-gradient(135deg, var(--light-bg), #fff);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item i {
  font-size: 24px;
  color: var(--primary-color);
  width: 30px;
  text-align: center;
}

.info-item div {
  flex: 1;
}

.info-item strong {
  display: block;
  color: var(--text-color);
  font-size: 15px;
  margin-bottom: 2px;
}

.info-item span {
  color: var(--light-text);
  font-size: 13px;
}

/*======================================================================
# COMPARTILHAR
======================================================================*/
.share-product {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.share-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 15px;
}

.share-label i {
  color: var(--primary-color);
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.whatsapp {
  background: #25d366;
  color: white;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.copy {
  background: #6c757d;
  color: white;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/*======================================================================
# ABAS DE INFORMAÇÕES
======================================================================*/
.product-tabs {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--border-color);
}

.product-tabs .nav-tabs {
  border-bottom: 3px solid var(--border-color);
  background: var(--light-bg);
  padding: 0 20px;
}

.product-tabs .nav-item {
  margin-bottom: 0;
}

.product-tabs .nav-link {
  border: none;
  color: var(--light-text);
  font-weight: 600;
  font-size: 15px;
  padding: 18px 30px;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-tabs .nav-link i {
  font-size: 17px;
}

.product-tabs .nav-link:hover {
  color: var(--primary-color);
  background: rgba(var(--primary-color), 0.05);
}

.product-tabs .nav-link.active {
  color: var(--primary-color);
  background: white;
  border-bottom-color: var(--primary-color);
}

.tab-content-wrapper {
  padding: 30px;
}

.product-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color);
}

.product-description p {
  margin-bottom: 15px;
}

.product-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.video-item {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.video-item iframe,
.video-item video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.specs-table {
  width: 100%;
  margin: 0;
}

.specs-table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

.specs-table tbody tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 15px 10px;
  font-size: 15px;
  vertical-align: top;
}

.specs-table td:first-child {
  width: 200px;
  color: var(--light-text);
}

.specs-table td:last-child {
  color: var(--text-color);
  font-weight: 500;
}

/*======================================================================
# PRODUTOS RELACIONADOS
======================================================================*/
.related-products {
  margin-top: 40px;
}

.related-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.related-title i {
  color: var(--primary-color);
  font-size: 26px;
}

/*======================================================================
# MODAL DE ZOOM
======================================================================*/
#imageZoomModal .modal-body {
  padding: 0;
}

#zoomedImage {
  max-height: 80vh;
  width: auto;
  margin: 0 auto;
}

/*======================================================================
# GUIA DE TAMANHOS MODAL
======================================================================*/
.size-guide-content {
  padding: 10px 0;
}

.size-guide-content .table {
  margin-bottom: 0;
}

.size-guide-content .table thead th {
  background: var(--light-bg);
  color: var(--text-color);
  font-weight: 700;
  text-align: center;
  padding: 15px;
  border: none;
}

.size-guide-content .table tbody td {
  text-align: center;
  padding: 12px;
  vertical-align: middle;
}

.size-guide-content .table tbody td:first-child {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 16px;
}

/*======================================================================
# RESPONSIVIDADE
======================================================================*/
@media (max-width: 992px) {
  .product-gallery {
    position: static;
    margin-bottom: 30px;
  }
  
  .product-title {
    font-size: 26px;
  }
  
  .price-current span {
    font-size: 32px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .product-info-container {
    padding: 20px;
  }
  
  .product-title {
    font-size: 22px;
  }
  
  .price-container {
    padding: 15px;
  }
  
  .price-current span {
    font-size: 28px;
  }
  
  .price-current.single span {
    font-size: 32px;
  }
  
  .btn-add-to-cart-detail,
  .btn-buy-now {
    padding: 14px 20px;
    font-size: 14px;
  }
  
  .product-tabs .nav-link {
    padding: 14px 20px;
    font-size: 13px;
  }
  
  .tab-content-wrapper {
    padding: 20px;
  }
  
  .related-title {
    font-size: 22px;
  }
  
  .specs-table td:first-child {
    width: 140px;
  }
  
  .specs-table td {
    font-size: 14px;
    padding: 12px 8px;
  }
  
  .share-product {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .thumbnails-container {
    gap: 8px;
  }
  
  .thumbnail-item {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .product-category-badge {
    font-size: 11px;
    padding: 6px 12px;
  }
  
  .product-title {
    font-size: 20px;
  }
  
  .product-meta-info {
    gap: 12px;
  }
  
  .rating-stars i {
    font-size: 14px;
  }
  
  .product-sku,
  .product-views {
    font-size: 12px;
  }
  
  .price-current span {
    font-size: 26px;
  }
  
  .price-current.single span {
    font-size: 30px;
  }
  
  .size-option-detail {
    min-width: 50px;
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .color-option {
    width: 44px;
    height: 44px;
  }
  
  .btn-favorite-detail {
    width: 42px;
    height: 42px;
  }
  
  .btn-favorite-detail i {
    font-size: 18px;
  }
  
  .zoom-icon {
    width: 38px;
    height: 38px;
  }
  
  .zoom-icon i {
    font-size: 16px;
  }
  
  .sold-out-badge {
    padding: 10px 24px;
    font-size: 14px;
  }
  
  .product-tabs .nav-link {
    padding: 12px 16px;
    font-size: 12px;
  }
  
  .tab-content-wrapper {
    padding: 15px;
  }
  
  .related-title {
    font-size: 20px;
  }
  
  .info-item i {
    font-size: 20px;
  }
  
  .info-item strong {
    font-size: 14px;
  }
  
  .info-item span {
    font-size: 12px;
  }
  
  .header-icon-btn,
  .mobile-icon-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}