/*======================================================================
# MOBILE.CSS - Media queries para todos os arquivos
======================================================================*/

/*======================================================================
# FILTROS MOBILE UNIVERSAIS
======================================================================*/
.mobile-filter-buttons {
  display: flex !important;
  margin-bottom: 15px;
  gap: 10px;
  justify-content: space-between;
}

.mobile-filter-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--text-color);
  border: none;
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  flex: 1 !important; /* Cada botão ocupa metade da largura */
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(106, 197, 202, 0.1);
}

.mobile-filter-btn i {
  margin-right: 8px;
  font-size: 16px;
}

.mobile-filter-btn:hover,
.mobile-filter-btn.active,
.mobile-filter-btn[aria-expanded="true"] {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 197, 202, 0.3);
}

.mobile-filter-panel {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
}

.mobile-filter-title {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  position: relative;
  display: flex;
  align-items: center;
  font-size: 16px;
}

.mobile-filter-title i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 18px;
}

.mobile-filter-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
}

/* Divisor entre filtros mobile */
.mobile-filter-divider {
  margin: 25px 0;
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-light), transparent);
}

/* Filtro de preço mobile */
.mobile-price-filter {
  margin-top: 15px;
}

/* Estilos para ordenação mobile */
.mobile-sort-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-sort-option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--light-bg);
  border-radius: var(--border-radius-sm);
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.mobile-sort-option i {
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 16px;
}

.mobile-sort-option:hover {
  background-color: var(--primary-light);
  color: var(--text-color);
  transform: translateX(5px);
  border-color: var(--primary-color);
}

/*======================================================================
# FILTRO DE TAMANHO MOBILE
======================================================================*/
.size-options {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: flex-start !important;
  margin-top: 10px !important;
}

.size-checkbox {
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

.size-label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--border-radius-sm) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--light-text) !important;
  background-color: var(--white) !important;
  position: relative !important;
  user-select: none !important;
}

.size-checkbox:checked + .size-label {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border-color: var(--primary-color) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(106, 197, 202, 0.4) !important;
}

.size-checkbox:checked + .size-label::after {
  content: '✓' !important;
  position: absolute !important;
  top: -10px !important;
  right: -10px !important;
  background-color: var(--accent-color) !important;
  color: white !important;
  border-radius: 50% !important;
  width: 18px !important;
  height: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: bold !important;
  border: 2px solid white !important;
}

.size-label:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 12px rgba(106, 197, 202, 0.3) !important;
}

/*======================================================================
# CLASSES DE UTILIDADE MOBILE
======================================================================*/
@media (max-width: 767px) {
  .ocultar-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .ocultar-desktop {
    display: none !important;
  }
}

/*======================================================================
# RESPONSIVIDADE PROMO BAR
======================================================================*/
@media (max-width: 768px) {
  .promo-bar {
    padding: 6px 0;
    min-height: 36px;
  }
  
  .promo-text {
    font-size: 13px;
  }
  
  .promo-icon {
    font-size: 14px;
  }
  
  .promo-carousel {
    height: 20px;
  }
}

@media (max-width: 480px) {
  .promo-text {
    font-size: 12px;
  }
  
  .promo-icon {
    font-size: 13px;
  }
  
  .promo-content {
    gap: 6px;
  }
}

/*======================================================================
# RESPONSIVIDADE GERAL - TABLET E MOBILE
======================================================================*/
@media (max-width: 768px) {
  /* Filtros e Layout Mobile */
  .filtro-wrapper {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  .section-title-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .ordenar-dropdown {
    margin-top: 15px;
    width: 100%;
  }

  .ordenar-btn {
    width: 100%;
    justify-content: space-between;
  }

  .fancy-title {
    font-size: 24px;
  }

  .new-badge {
    right: -35px;
    font-size: 10px;
  }

  /* Cards Mobile */
  .card-img-top {
    height: 150px;
  }

  .card-title {
    font-size: 14px;
    line-height: 1.2em;
    max-height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tamanho {
    width: 24px;
    height: 24px;
    margin: 3px;
    font-size: 11px;
  }

  .product-actions {
    gap: 6px;
  }
  
  .btn-comprar {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .btn-carrinho {
    width: 40px;
    height: 40px;
  }
  
  .btn-carrinho i {
    font-size: 16px;
  }

  /* Footer Mobile */
  .payment-methods {
    justify-content: center;
    margin-top: 15px;
  }
  
  .footer-bottom .col-md-6 {
    text-align: center;
  }

  /* Filtros mobile específicos */
  .mobile-filter-buttons {
    flex-direction: row !important;
    gap: 10px !important;
  }

  .mobile-filter-btn {
    flex: 1 !important;
    min-height: 50px;
    font-size: 13px;
    padding: 12px 16px;
  }

  .mobile-filter-panel {
    padding: 20px;
  }

  .mobile-filter-title {
    font-size: 15px;
  }

  .size-options {
    gap: 8px !important;
  }

  .size-label {
    width: 38px !important;
    height: 38px !important;
    font-size: 13px !important;
  }

  /* AJUSTES PARA CENTRALIZAÇÃO DOS PRODUTOS NO MOBILE */
  .col-6 {
    padding: 0 8px !important;
  }

  .row.justify-content-center {
    margin: 0 -8px !important;
  }

  .bloco {
    margin-bottom: 20px !important;
  }

  .card {
    margin: 0 auto !important;
    max-width: 95% !important;
  }

  /* AJUSTES ESPECÍFICOS PARA POSICIONAMENTO */
  .mobile-filter-buttons {
    margin-top: -20px !important;
    margin-bottom: 25px !important;
  }
  
  .new-arrivals-section {
    margin-top: 10px !important;
  }

  /* Badges responsivas */
  .girls-badge, .boys-badge, .accessories-badge, .toys-badge {
    top: 5px;
    left: 5px;
    padding: 3px 8px;
    font-size: 10px;
  }
  
  /* Info cards responsivas */
  .girls-info-card, .boys-info-card, .accessories-info-card, .toys-info-card {
    padding: 20px;
  }
  
/*======================================================================
# CONTINUAÇÃO DAS MEDIA QUERIES - TABLET E MOBILE
======================================================================*/
@media (max-width: 768px) {
  /* Info headers responsivas */
  .girls-info-header, .boys-info-header, .accessories-info-header, .toys-info-header {
    flex-direction: column;
    gap: 10px;
  }
  
  .girls-info-header i, .boys-info-header i, .accessories-info-header i, .toys-info-header i {
    font-size: 1.5rem;
  }
  
  /* Features responsivas */
  .girls-feature, .boys-feature, .accessories-feature, .toys-feature {
    margin-bottom: 15px;
    padding: 15px;
  }

  /* Tamanho único responsivo para acessórios */
  .tamanho-unico {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/*======================================================================
# RESPONSIVIDADE MOBILE ESPECÍFICA - TELAS PEQUENAS
======================================================================*/
@media (max-width: 480px) {
  /* Cards muito pequenos */
  .card-img-top {
    height: 120px;
  }

  .fancy-title {
    font-size: 20px;
  }

  .card-title {
    font-size: 13px;
  }

  .tamanho {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .btn-comprar {
    font-size: 11px;
    padding: 6px 10px;
  }

  .btn-carrinho {
    width: 35px;
    height: 35px;
  }

  .btn-carrinho i {
    font-size: 14px;
  }

  /* Mais responsividade para mobile muito pequeno */
  .mobile-filter-btn {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 45px;
  }

  .mobile-filter-panel {
    padding: 15px;
  }

  .size-label {
    width: 35px !important;
    height: 35px !important;
    font-size: 12px !important;
  }

  .mobile-filter-title {
    font-size: 14px;
  }

  .mobile-filter-title i {
    font-size: 16px;
  }

  /* AJUSTES ESPECÍFICOS PARA TELAS MUITO PEQUENAS */
  .col-6 {
    padding: 0 6px !important;
  }

  .row.justify-content-center {
    margin: 0 -6px !important;
  }

  .card {
    max-width: 98% !important;
  }

  .card-body {
    padding: 12px !important;
  }

  /* Tamanho único ainda menor */
  .tamanho-unico {
    padding: 4px 10px;
    font-size: 10px;
  }
}

/*======================================================================
# CORREÇÃO ESPECÍFICA PARA MOBILE - CARDS MAIORES MAS 2 POR LINHA
======================================================================*/
@media (max-width: 767px) {
  /* Container dos produtos */
  .row.justify-content-center {
    margin: 0 -2px !important;
    padding: 0 !important;
  }
  
  /* Cada coluna de produto - TAMANHO SEGURO */
  .col-md-4.col-6.mb-4.bloco {
    padding: 0 2px !important;
    flex: 0 0 48% !important; /* 48% é seguro para 2 por linha */
    max-width: 48% !important;
  }
  
  /* Produto da ESQUERDA */
  .col-md-4.col-6.mb-4.bloco:nth-child(odd) {
    transform: translateX(6px) !important;
  }
  
  /* Produto da DIREITA */
  .col-md-4.col-6.mb-4.bloco:nth-child(even) {
    transform: translateX(8px) !important;
  }
}

@media (max-width: 480px) {
  .col-md-4.col-6.mb-4.bloco {
    flex: 0 0 49% !important;
    max-width: 49% !important;
  }
  
  .col-md-4.col-6.mb-4.bloco:nth-child(odd) {
    transform: translateX(7px) !important;
  }
  
  .col-md-4.col-6.mb-4.bloco:nth-child(even) {
    transform: translateX(10px) !important;
  }
}

/*======================================================================
# RESPONSIVIDADE DO DROPDOWN DE ORDENAÇÃO
======================================================================*/
@media (max-width: 767px) {
  .ordenar-dropdown {
    display: none;
  }

  .section-title-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .section-title-left {
    flex: 1;
  }
}

/*======================================================================
# RESPONSIVIDADE DA SIDEBAR DO CARRINHO
======================================================================*/
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    max-width: 400px;
  }
  
  .carrinho-item-img {
    width: 50px;
    height: 50px;
  }
  
  .carrinho-item-nome {
    font-size: 13px;
  }
  
  .carrinho-item-preco {
    font-size: 13px;
  }
  
  .quantity-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  .quantity-display {
    min-width: 30px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 100%;
  }
  
  .carrinho-item {
    padding: 12px;
    gap: 10px;
  }
  
  .carrinho-item-img {
    width: 45px;
    height: 45px;
  }
  
  .carrinho-item-nome {
    font-size: 12px;
  }
}

/*======================================================================
# RESPONSIVIDADE DO MENU MOBILE
======================================================================*/
@media (max-width: 480px) {
  .mobile-menu {
    width: 90%;
  }
  
  .mobile-menu-header {
    padding: 15px;
  }
  
  .mobile-menu-header h5 {
    font-size: 16px;
  }
  
  .mobile-category {
    padding: 10px 0;
  }
  
  .user-greeting {
    padding: 10px;
  }
  
  .user-greeting i {
    font-size: 24px;
  }
}

/*======================================================================
# RESPONSIVIDADE DOS FILTROS DESKTOP EM MOBILE
======================================================================*/
@media (max-width: 767px) {
  .filtro-wrapper,
  .filtro-container,
  .filtro-titulo,
  .filtro-item {
    display: none;
  }
}

/*======================================================================
# RESPONSIVIDADE DAS BADGES E ANIMAÇÕES
======================================================================*/
@media (max-width: 768px) {
  @keyframes girl-sparkle {
    0%, 100% { transform: scale(0.9) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
  }
  
  @keyframes boy-energy {
    0%, 100% { transform: scale(0.9) rotate(0deg); }
    50% { transform: scale(1.1) rotate(0deg); }
  }
  
  @keyframes accessory-shine {
    0%, 100% { transform: scale(0.9) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.1) rotate(90deg); opacity: 0.9; }
  }
  
  @keyframes toy-bounce {
    0%, 100% { transform: scale(0.9) translateY(0); }
    50% { transform: scale(1.1) translateY(-2px); }
  }
}

/*======================================================================
# RESPONSIVIDADE DO HEADER MOBILE
======================================================================*/
@media (max-width: 480px) {
  .mobile-top-bar {
    padding: 10px 12px;
  }
  
  .logo-mobile-img {
    height: 40px;
  }
  
  .menu-toggle,
  .cart-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  
  .mobile-search-bar {
    padding: 0 12px 10px;
  }
}

/*======================================================================
# RESPONSIVIDADE DO FOOTER
======================================================================*/
@media (max-width: 768px) {
  .main-footer {
    padding: 40px 0 0;
  }
  
  .footer-about {
    text-align: center;
    margin-bottom: 25px;
  }
  
  .footer-logo {
    max-width: 120px;
  }
  
  .footer-links {
    margin-bottom: 25px;
  }
  
  .footer-links h5 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .footer-bottom {
    padding: 15px 20px;
    text-align: center;
  }
  
  .payment-methods {
    justify-content: center;
    margin-top: 15px;
  }
  
  .payment-icon {
    width: 35px;
    height: 35px;
  }
  
  .payment-icon i {
    font-size: 18px;
  }
  
  .developer-credits {
    padding: 10px 0;
  }
  
  .developer-link {
    padding: 5px 12px;
  }
  
  .dev-text {
    font-size: 11px;
  }
  
  .dev-name {
    font-size: 13px;
  }
  
  .dev-icon {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .main-footer {
    padding: 30px 0 0;
  }
  
  .footer-about p {
    font-size: 13px;
  }
  
  .social-links {
    justify-content: center;
    gap: 8px;
  }
  
  .social-link {
    width: 32px;
    height: 32px;
  }
  
  .social-link i {
    font-size: 14px;
  }
  
  .footer-links h5 {
    font-size: 15px;
  }
  
  .footer-links ul li a {
    font-size: 13px;
  }
  
  .footer-bottom {
    padding: 12px 15px;
  }
  
  .footer-bottom p {
    font-size: 12px;
  }
  
  .payment-icon {
    width: 32px;
    height: 32px;
  }
  
  .payment-icon i {
    font-size: 16px;
  }
}

/*======================================================================
# RESPONSIVIDADE ESPECÍFICA PARA CATEGORIAS
======================================================================*/
@media (max-width: 768px) {
  /* Ajustes específicos para badges de categorias */
  .accessories-badge,
  .toys-badge {
    top: 5px;
    left: 5px;
    padding: 3px 6px;
    font-size: 9px;
  }
  
  /* Ajustes para seções de informação de categorias */
  .accessories-info-section,
  .toys-info-section {
    margin: 15px 0;
  }
  
  .accessories-no-products,
  .toys-no-products {
    padding: 30px;
  }
}

/*======================================================================
# AJUSTES FINAIS PARA COMPATIBILIDADE
======================================================================*/
@media (max-width: 768px) {
  /* Garantir que não há overflow horizontal */
  body,
  html {
    overflow-x: hidden !important;
  }
  
  /* Ajuste de margem do container */
  .container {
    padding: 0 12px;
  }
  
  /* Ajuste de espaçamento geral */
  .py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  /* Ajuste do título principal */
  .fancy-title {
    text-align: center;
  }
  
  .title-underline {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}