/* Variáveis globais inspiradas no Windows 11 */
:root {
    --wp-admin-theme-color: #0078d4;
    --wp-admin-theme-color-darker-10: #006cbf;
    --surface: #ffffff;
    --surface-alt: #f3f3f3;
    --text-primary: #323130;
    --text-secondary: #605e5c;
    --border-radius: 8px;
    --shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.02), 
              0 6.7px 5.3px rgba(0, 0, 0, 0.028), 
              0 12.5px 10px rgba(0, 0, 0, 0.035), 
              0 22.3px 17.9px rgba(0, 0, 0, 0.042), 
              0 41.8px 33.4px rgba(0, 0, 0, 0.05), 
              0 100px 80px rgba(0, 0, 0, 0.07);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilo para os botões de paginação */
.pagination-controls {
    text-align: center;
    margin-top: 20px;
}

.petshop-prev-page,
.petshop-next-page {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #0a0a0a;
    background-color: #e3f2fd;
    border: 1px solid #cfd8dc;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.petshop-prev-page:hover,
.petshop-next-page:hover {
    background-color: #bbdefb;
    border-color: #90caf9;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

.petshop-prev-page:disabled,
.petshop-next-page:disabled {
    background-color: #f0f0f0;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    box-shadow: none;
}

.petshop-prev-page:focus,
.petshop-next-page:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.3);
}

/* Estilo para o grid de serviços */
.petshop-services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.petshop-services-grid.force-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
}

.petshop-service-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-width: 0;
}

.petshop-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.petshop-service-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.petshop-service-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover !important;
    display: block !important;
}

.petshop-service-content {
    padding: 16px;
}

.petshop-service-title {
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.petshop-service-category {
  font-size: 13px;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
  line-height: 1.3;
  font-weight: 700; /* agora em bold */
}
.petshop-service-valor {
  font-size: 13px;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
  line-height: 1.3;
  font-weight: 400; /* agora em bold */
}

.petshop-service-button {
    display: inline-block;
    padding: 8px 16px;
    background: var(--wp-admin-theme-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.petshop-service-button:hover {
    background: var(--wp-admin-theme-color-darker-10);
}

/* Estilo para a barra lateral de filtros */
.petshop-services-filter {
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    max-width: 300px;
    margin: 20px 0;
}

.petshop-services-filter h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.petshop-services-filter .filter-group {
    margin-bottom: 16px;
}

.petshop-services-filter label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.petshop-service-duracao {
    background: linear-gradient(90deg, #eef2f7, #f7f9fc);
    border-left: 4px solid #34dd62ff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 12px;
}

.petshop-duracao-label {
    font-weight: 600;
    color: #4f82f5;
}
.petshop-service-visualizacoes {
     background: linear-gradient(90deg, #eef2f7, #f7f9fc);
    border-left: 4px solid #34dd62ff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 12px;
}
.petshop-service-visualizacoes-label {
    font-weight: 600;
    color: #4f82f5;
}
.icone-valor {
  font-size: 0.8em;
  vertical-align: middle;
  margin-right: 4px;
  opacity: 0.7;
}
.icone-pata {
  font-size: 0.85em;
  vertical-align: middle;
  margin-right: 4px;
  opacity: 0.7;
}

/* Estilo modernizado para os selects de filtro */
#filter-type,
#filter-category {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--surface-alt);
    border-radius: var(--border-radius);
    background: var(--surface);
    color: var(--text-primary);
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

#filter-type:focus,
#filter-category:focus {
    border-color: var(--wp-admin-theme-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.2);
}

/* Estilizar as opções do dropdown */
#filter-type option,
#filter-category option {
    background: var(--surface);
    color: var(--text-primary);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--surface-alt);
    transition: var(--transition);
}

#filter-type option:hover,
#filter-category option:hover {
    background: var(--surface-alt);
    color: var(--wp-admin-theme-color);
    transform: translateX(5px);
}

#filter-type option:last-child,
#filter-category option:last-child {
    border-bottom: none;
}

/* Estilizar a barra de rolagem para selects */
#filter-type::-webkit-scrollbar,
#filter-category::-webkit-scrollbar {
    width: 8px;
}

#filter-type::-webkit-scrollbar-track,
#filter-category::-webkit-scrollbar-track {
    background: var(--surface-alt);
    border-radius: 4px;
}

#filter-type::-webkit-scrollbar-thumb,
#filter-category::-webkit-scrollbar-thumb {
    background: var(--wp-admin-theme-color);
    border-radius: 4px;
}

#filter-type::-webkit-scrollbar-thumb:hover,
#filter-category::-webkit-scrollbar-thumb:hover {
    background: var(--wp-admin-theme-color-darker-10);
}

/* Estilo para os botões de filtro */
.filter-buttons {
    display: flex !important;
    gap: 10px;
}

.petshop-filter-button,
.petshop-clear-filter-button {
    padding: 10px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    transition: var(--transition);
}

.petshop-filter-button {
    background: var(--wp-admin-theme-color);
    color: white;
}

.petshop-filter-button:hover {
    background: var(--wp-admin-theme-color-darker-10);
}

.petshop-clear-filter-button {
    background: #d63638;
    color: white;
}

.petshop-clear-filter-button:hover {
    background: #b32d2e;
}

/* Estilo para mensagens vazias */
.petshop-services-empty {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: var(--text-secondary);
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Estilo para o select de bairros */
.petshop-service-bairro label {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

.petshop-bairro-select {
    text-transform: uppercase;
    margin: 0 0 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #fff;
    color: black;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;

}

.petshop-bairro-select:focus {
    border-color: #0078D4;
    box-shadow: 0 0 0 2px rgba(0,120,212,0.2);
    outline: none;
}

/* Estilo para "Fim de Serviços" */
.petshop-services-end {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

/* Forçar grid em contêineres do Elementor */
.elementor .petshop-services-grid,
.elementor-section .petshop-services-grid,
.elementor-container .petshop-services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
}
/* Estilo para o filtro de preço */
.price-filter {
    margin-bottom: 16px;
}

.price-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#price-min-label,
#price-max-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

#price-slider {
    flex-grow: 1;
        margin: 0px 010px 0px;
    height: 6px;
}

.ui-slider {
    background: var(--surface-alt);
    height: 6px;
    border-radius: 3px;
    position: relative;
}

.ui-slider .ui-slider-range {
    background: var(--wp-admin-theme-color);
    height: 100%;
    border-radius: 3px;
    position: absolute;
    
}

.ui-slider .ui-slider-handle {
    width: 16px;
    height: 16px;
    background: var(--wp-admin-theme-color);
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    top: -5px;
    position: absolute;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.2);
    transition: var(--transition);
}

.ui-slider .ui-slider-handle:hover {
    transform: scale(1.2);
}
/* Responsividade */
/* Aumentar o tamanho dos handles em dispositivos móveis para melhor usabilidade com toque */
@media (max-width: 768px) {
    .ui-slider .ui-slider-handle {
        width: 20px;
        height: 20px;
        top: -7px;
    }
.price-slider-container {
    margin: 0px 0px 35px 0px;
}
    .petshop-services-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        padding: 10px;
        gap: 15px; /* Reduzir o gap para melhor ajuste com 10 itens */
    }

    .petshop-service-card {
        margin: 0;
        max-width: 100%;
    }

    .petshop-service-image {
        aspect-ratio: 4 / 3;
    }

    .petshop-service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .petshop-service-title {
        font-size: 16px;
    }

    .petshop-service-category {
        font-size: 13px;
    }

    .petshop-service-button {
        width: 100%;
        text-align: center;
    }

    .petshop-services-filter {
        max-width: 100%;
    }

    .petshop-prev-page,
    .petshop-next-page {
        padding: 8px 16px; /* Reduzir padding em mobile */
        font-size: 13px;
    }
}

/* Media query para telas muito pequenas */
@media (max-width: 480px) {
    .petshop-services-grid {
        grid-template-columns: 1fr !important;
        gap: 10px; /* Ajuste adicional para telas pequenas */
    }
.price-slider-container {
    margin: 0px 0px 35px 0px;
}
    .petshop-service-image {
        aspect-ratio: 4 / 3;
    }

    .petshop-service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .petshop-services-filter {
        max-width: 100%;
    }

    .petshop-prev-page,
    .petshop-next-page {
        padding: 6px 12px; /* Mais compacto em telas muito pequenas */
        font-size: 12px;
    }
}