.productes-archive {
    padding: 3rem 0 2rem 0;
    /* background: #f8f9fb; */
    min-height: 100vh;
}

/* Estilos para los filtros */
.productes-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.materials-filter h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #222;
    font-weight: 600;
}

.productes-search {
    flex: 1;
    max-width: 420px;
}

@media (max-width: 768px) {
    .productes-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .materials-filter h3 {
        text-align: center;
    }
    
    .productes-search {
        max-width: 100%;
    }
}
.productes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.productes-buscador.mejorado {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.search-form.mejorado {
    background: #fff;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 420px;
}
.search-field.mejorado {
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    background: #f3f4f7;
    flex: 1;
    transition: background 0.2s;
}
.search-field.mejorado:focus {
    background: #e9eaf0;
}
.search-submit.mejorado {
    background: #EC892E;
    color: #fff;
    border: 2px solid #EC892E;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.search-submit.mejorado:hover {
    background: #d67a1a;
    border-color: #d67a1a;
}
.icon-lupa {
    display: flex;
    align-items: center;
    height: 20px;
}
.productes-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 18px;
    /* box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06); */
    padding: 0 !important;
}
@media (max-width: 1200px) {
    .productes-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 2rem 1rem;
    }
}
@media (max-width: 900px) {
    .productes-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem 0.5rem;
    }
}
@media (max-width: 600px) {
    .productes-grid {
        grid-template-columns: 1fr;
        padding: 1rem 0.2rem;
    }
    .search-form.mejorado {
        max-width: 100%;
        padding: 0.3rem 0.5rem;
    }
    .search-field.mejorado {
        font-size: 1rem;
        padding: 0.5rem 0.7rem;
    }
    .search-submit.mejorado {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}
.producte-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}
.producte-card:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
.producte-card a {
    text-decoration: none;
    color: inherit;
}
.producte-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f3f4f7;
}
.producte-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.producte-info {
    padding: 1.2rem 1rem 1rem 1rem;
}
.producte-info h2 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #222;
    font-weight: 500;
}
.producte-tipus {
    font-size: 0.95rem;
    color: #666;
}
.no-productes {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Breadcrumb Styles */
.productes-breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #EC892E !important;
    text-decoration: none;
    transition: color 0.2s;
    text-transform: capitalize;
}

.breadcrumb-item a:hover {
    color: #005177;
    text-decoration: underline;
}

.breadcrumb-item.current span {
    color: #222;
    font-weight: 500;
    text-transform: capitalize;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #999;
}

@media (max-width: 600px) {
    .breadcrumb-list {
        font-size: 0.85rem;
    }
    
    .breadcrumb-separator {
        margin: 0 0.3rem;
    }
}

/* Estilos del filtro de productos */
.productes-filter {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #222;
    font-size: 1.1rem;
    margin: 0;
    white-space: nowrap;
    text-transform: capitalize;
}

.productes-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    min-width: 250px;
    max-width: 400px;
    flex: 1;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    font-family: inherit;
    text-transform: capitalize;
}

/* Fallback para navegadores que no soportan appearance: none */
@supports not (appearance: none) {
    .productes-select {
        background-image: none;
        padding-right: 1rem;
    }
}

.productes-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.productes-select:hover {
    border-color: #0073aa;
}

.productes-select option {
    padding: 0.5rem;
    color: #333;
    text-transform: capitalize;
}

.productes-select option:disabled {
    color: #999;
    font-style: italic;
}

@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .filter-label {
        text-align: center;
    }
    
    .productes-select {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .productes-filter {
        padding: 1rem;
    }
    
    .filter-label {
        font-size: 1rem;
    }
    
    .productes-select {
        font-size: 0.95rem;
        padding: 0.6rem 0.8rem;
        padding-right: 2.2rem;
    }
}

/* Estilos para producte-title en todos los dispositivos */
.single-producte .producte-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Estilos para botones submit */
button[type="submit"] {
    background: #EC892E !important;
    color: #fff !important;
    border: 2px solid #EC892E !important;
    border-radius: 8px !important;
    padding: 0.7rem 1.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

button[type="submit"]:hover {
    background: #000 !important;
    border-color: #000 !important;
}

/* Estilos para input de búsqueda */
.productes-search-input {
    border-radius: 8px !important;
    border: 2px solid #e0e0e0 !important;
    transition: all 0.2s !important;
}

.productes-search-input:focus {
    border-color: #EC892E !important;
    outline: none !important;
}

.productes-search-input:hover {
    border-color: #EC892E !important;
}

/* Estilos para el buscador del header de Astra */
.ast-header-html-1 .search-form {
    background: transparent !important;
    border-radius: 8px !important;
    padding: 0.3rem 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    max-width: 200px !important;
    margin-right: 30px !important;
}

.ast-header-html-1 .search-field {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    font-size: 0.9rem !important;
    padding: 0.4rem 0.6rem !important;
    flex: 1 !important;
    outline: none !important;
    border-radius: 4px !important;
}

.ast-header-html-1 .search-field::placeholder {
    color: #999 !important;
}


.ast-header-html-1 .search-submit:hover {
    background: #333 !important;
    color: #fff !important;
    min-width: 32px !important;
    min-height: 32px !important;
    width: 32px !important;
    height: 32px !important;
}

.ast-header-html-1 .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

/* Estilos para mobile en single producte */
@media (max-width: 768px) {
    .single-producte .producte-content {
        padding: 0 !important;
        box-shadow: none !important;
    }
}
