/*======================================================================
# ROUPAS.CSS - Layout de Produtos (Meninas Rosa / Meninos Azul)
======================================================================*/

/*======================================================================
# IMPORTAÇÃO DE FONTES
======================================================================*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/*======================================================================
# CORES TEMA MENINAS (ROSA)
======================================================================*/
.meninas-theme {
  --primary-color: #ff69b4;
  --secondary-color: #ff1493;
  --light-color: #ffb6d9;
  --bg-color: #fff0f5;
  --accent-color: #ff69b4;
}

/*======================================================================
# CORES TEMA MENINOS (AZUL BEBÊ/CIANO)
======================================================================*/
.meninos-theme {
  --primary-color: #6ac5ca;
  --secondary-color: #4ba3a8;
  --light-color: #8de2e7;
  --bg-color: #f3f9fb;
  --accent-color: #6ac5ca;
}

/*======================================================================
# CORES TEMA MENINAS HOVER
======================================================================*/

.meninas-theme .category-link:hover {
  background: linear-gradient(135deg, #ff1493, #c71585);
  color: white;
}

.meninas-theme .category-item.has-dropdown:hover .category-link,
.meninas-theme .category-item.active .category-link {
  background: linear-gradient(135deg, #ff1493, #c71585);
  color: white;
}

.meninas-theme .category-link:hover i,
.meninas-theme .category-item.has-dropdown:hover .category-link i,
.meninas-theme .category-item.active .category-link i {
  color: white;
}
/*======================================================================
# TEMA MENINOS - SOBRESCREVER CORES HARDCODED
======================================================================*/
.meninos-theme .breadcrumb-custom {
  background: linear-gradient(135deg, #f3f9fb, #fff);
  box-shadow: 0 2px 8px rgba(106, 197, 202, 0.1);
  border: 1px solid rgba(106, 197, 202, 0.1);
}

.meninos-theme .product-card {
  box-shadow: 0 2px 10px rgba(106, 197, 202, 0.1);
  border: 1px solid rgba(106, 197, 202, 0.1);
}

.meninos-theme .product-card:hover {
  box-shadow: 0 6px 20px rgba(106, 197, 202, 0.2);
}

.meninos-theme .product-badge {
  border-bottom: 1px solid rgba(106, 197, 202, 0.1);
}

.meninos-theme .size-badge {
  border: 2px solid rgba(106, 197, 202, 0.2);
  box-shadow: 0 3px 15px rgba(106, 197, 202, 0.1);
}

.meninos-theme .size-badge:hover {
  box-shadow: 0 4px 12px rgba(106, 197, 202, 0.2);
}

.meninos-theme .size-badge.active {
  box-shadow: 0 4px 12px rgba(106, 197, 202, 0.3);
}

.meninos-theme .btn-buy {
  box-shadow: 0 8px 25px rgba(106, 197, 202, 0.18);
}

.meninos-theme .btn-buy:hover {
  box-shadow: 0 3px 10px rgba(106, 197, 202, 0.25);
}

.meninos-theme .btn-add-cart:hover {
  box-shadow: 0 3px 12px rgba(106, 197, 202, 0.25);
}

.meninos-theme .btn-add-cart:active {
  box-shadow: 0 5px 18px rgba(106, 197, 202, 0.35);
}

.meninos-theme .category-badge {
  box-shadow: 0 3px 12px rgba(106, 197, 202, 0.15);
  border: 2px solid rgba(106, 197, 202, 0.1);
}

.meninos-theme .category-badge.active,
.meninos-theme .category-badge:hover {
  border: 2px solid rgba(106, 197, 202, 0.2);
  box-shadow: 0 6px 20px rgba(106, 197, 202, 0.3);
}

.meninos-theme .ordenar-btn:hover {
  box-shadow: 0 4px 15px rgba(106, 197, 202, 0.2);
}

/*======================================================================
# BREADCRUMB
======================================================================*/
.breadcrumb-custom {
  display: flex;
  flex-wrap: wrap;
  padding: 15px 20px;
  margin-bottom: 0;
  list-style: none;
  background: linear-gradient(135deg, var(--bg-color), #fff);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.1);
  border: 1px solid rgba(255, 105, 180, 0.1);
}

.breadcrumb-item {
  font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 10px;
  color: var(--primary-color);
  font-weight: 600;
}

.breadcrumb-item a {
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.breadcrumb-item i {
  margin-right: 5px;
  font-size: 13px;
}

/*======================================================================
# SEÇÃO DE PRODUTOS
======================================================================*/
.products-section {
  padding: 20px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--primary-color);
}

.section-header-left {
  flex: 1;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title i {
  color: var(--primary-color);
  font-size: 28px;
}

.section-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0;
  font-weight: 400;
}

.new-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/*======================================================================
# ORDENAÇÃO
======================================================================*/
.ordenar-dropdown {
  position: relative;
}

.ordenar-btn {
  background: white;
  border: 2px solid #e0e0e0;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.ordenar-btn:hover {
  border-color: var(--primary-color);
  background: var(--bg-color);
  color: var(--primary-color);
}

.ordenar-btn i {
  color: var(--primary-color);
  font-size: 16px;
}

.ordem-atual {
  font-weight: 600;
  color: #333;
}

.ordenar-opcoes {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.2);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
  overflow: hidden;
}

.ordenar-opcoes.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ordenar-opcoes a {
  display: block;
  padding: 14px 20px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 105, 180, 0.1);
}

.ordenar-opcoes a:last-child {
  border-bottom: none;
}

.ordenar-opcoes a:hover {
  background: var(--bg-color);
  color: var(--primary-color);
  padding-left: 25px;
}

/*======================================================================
# FILTROS DESKTOP
======================================================================*/
.filters-desktop {
  background: white;
  padding: 20px 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(255, 105, 180, 0.1);
  border: 1px solid rgba(255, 105, 180, 0.1);
  align-items: center;
  gap: 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.filter-label i {
  color: var(--primary-color);
  font-size: 16px;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-checkbox {
  display: none;
}

.size-label {
  display: inline-block;
  padding: 10px 16px;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  min-width: 45px;
  text-align: center;
}

.size-label:hover {
  border-color: var(--primary-color);
  background: var(--bg-color);
  transform: translateY(-2px);
  color: var(--primary-color);
}

.size-checkbox:checked + .size-label {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--secondary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

/*======================================================================
# CATEGORIAS MENINAS
======================================================================*/
.categories-navigation {
  background: linear-gradient(135deg, var(--bg-color), white);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 2px solid rgba(255, 105, 180, 0.2);
  box-shadow: 0 3px 15px rgba(255, 105, 180, 0.1);
}

.categories-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
}

.categories-title i {
  color: var(--primary-color);
  font-size: 20px;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-badge {
  display: inline-block;
  padding: 10px 18px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-badge:hover {
  background: var(--bg-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}

.category-badge.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--secondary-color);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

/*======================================================================
# GRID DE PRODUTOS
======================================================================*/
.products-grid {
  margin-top: 30px;
}

.product-item {
  margin-bottom: 30px;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*======================================================================
# CARD DE PRODUTO - DESIGN COMPACTO E ELEGANTE
======================================================================*/
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.18);
  border-color: var(--primary-color);
}

/* Botão Favorito */
.btn-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 38px;
  height: 38px;
  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 3px 10px rgba(255, 105, 180, 0.25);
}

.btn-favorite:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.btn-favorite i {
  font-size: 16px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-favorite:hover i {
  color: white;
}

.btn-favorite.favorited {
  background: var(--primary-color);
}

.btn-favorite.favorited i {
  color: white;
}

/* Imagem do Produto */
.product-image-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.product-image-wrapper {
  position: relative;
  padding-top: 110%;
  overflow: hidden;
  background: #f8f9fa;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.06);
}

/* Badge de Produto */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 5px 12px;
  border-radius: 18px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.shorts-badge {
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  color: white;
  display: flex;
  align-items: center;
  gap: 4px;
}

.shorts-badge i {
  font-size: 11px;
}

.bermudas-badge {
  background: linear-gradient(135deg, #6ac5ca, #4ba3a8);
  color: white;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bermudas-badge i {
  font-size: 11px;
}

/* Esgotado */
.produto-esgotado {
  opacity: 0.75;
}

.esgotado-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
}

.esgotado-badge {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Informações do Produto */
.product-info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #f5f5f5;
}

.product-name {
  font-size: 14px;
  font-weight: 400;
  color: #2c3e50;
  margin-bottom: 8px;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

.product-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-name a:hover {
  color: var(--primary-color);
}

/* Informação Extra (entre título e tamanhos) */
.product-meta {
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-meta i {
  font-size: 11px;
  color: var(--primary-color);
}

/* Tamanhos no Card */
.product-sizes {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f5f5f5;
}

.size-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 34px;
  text-align: center;
}

.size-badge:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.size-badge.more-sizes {
  background: var(--bg-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.size-badge.more-sizes:hover {
  background: var(--primary-color);
  color: white;
}

/* Preço */
.product-price {
  font-size: 20px;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 0.3px;
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Botões de Ação */
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-buy {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 11px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(255, 105, 180, 0.25);
}

.btn-buy:hover {
  background: linear-gradient(135deg, var(--secondary-color), #c71585);
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(255, 105, 180, 0.35);
  color: white;
}

.btn-buy.disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.btn-buy.disabled:hover {
  transform: none;
}

.btn-add-cart {
  width: 44px;
  height: 44px;
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-add-cart:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

.btn-add-cart i {
  font-size: 16px;
  color: var(--primary-color);
  transition: all 0.3s ease;
  font-weight: 700;
}

.btn-add-cart:hover i {
  color: white;
}

/*======================================================================
# FILTROS MOBILE
======================================================================*/
.mobile-filter-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.mobile-filter-btn {
  flex: 1;
  background: white;
  border: 2px solid #e0e0e0;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.mobile-filter-btn:hover,
.mobile-filter-btn:focus {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--bg-color);
}

.mobile-filter-btn i {
  font-size: 16px;
}

.mobile-filter-panel {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px rgba(255, 105, 180, 0.15);
  border: 2px solid rgba(255, 105, 180, 0.1);
}

.mobile-filter-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

.mobile-filter-title i {
  color: var(--primary-color);
  font-size: 18px;
}

.mobile-sort-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-sort-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f8f9fa;
  border-radius: 10px;
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.mobile-sort-option:hover {
  background: var(--bg-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.mobile-sort-option i {
  color: var(--primary-color);
  font-size: 16px;
}

/*======================================================================
# SEM PRODUTOS
======================================================================*/
.alert {
  border-radius: 15px;
  border: none;
  padding: 40px 30px;
}

.alert-info {
  background: linear-gradient(135deg, var(--bg-color), #f0f8ff);
  color: #666;
  border: 2px solid rgba(255, 105, 180, 0.2);
}

.alert h4 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 24px;
}

.alert p {
  color: #666;
  margin-bottom: 20px;
  font-size: 15px;
}

.alert .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.alert .btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-color), #c71585);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3);
}

.alert .btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: white;
}

.alert .btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/*======================================================================
# RESPONSIVIDADE
======================================================================*/
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-title i {
    font-size: 22px;
  }
  
  .new-badge {
    font-size: 11px;
    padding: 5px 12px;
  }
  
  .product-name {
    font-size: 15px;
    min-height: 42px;
  }
  
  .product-price {
    font-size: 24px;
  }
  
  .btn-buy {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .btn-add-cart {
    width: 46px;
    height: 46px;
  }
  
  .categories-navigation {
    padding: 20px;
  }
  
  .categories-title {
    font-size: 16px;
  }
  
  .category-badge {
    font-size: 13px;
    padding: 8px 14px;
  }
  
  .breadcrumb-custom {
    padding: 12px 15px;
  }
  
  .breadcrumb-item {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .product-image-wrapper {
    padding-top: 130%;
  }
  
  .size-badge {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 42px;
  }
  
  .btn-favorite {
    width: 38px;
    height: 38px;
  }
  
  .btn-favorite i {
    font-size: 16px;
  }
  
  .product-info {
    padding: 15px;
  }
}