/* CSS Layout & Styling for Catalogo Widget e2924b27 */

.catalogo-e2924b27-container {
    width: 100%;
    margin: 0 auto;
}

/* Search bar styling - centered and proportional */
.catalogo-e2924b27-search-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 25px;
}

.catalogo-e2924b27-search {
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

.catalogo-e2924b27-search:focus {
    border-color: #333;
}

/* Filters wrapper styling */
.catalogo-e2924b27-filters-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 35px;
    width: 100%;
}

.catalogo-e2924b27-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Base button styling */
.catalogo-e2924b27-filter-btn {
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.catalogo-e2924b27-filter-btn:hover,
.catalogo-e2924b27-filter-btn.active {
    background-color: #333;
    color: #fff;
}

/* Products grid - Desktop default: 4 columns */
.catalogo-e2924b27-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.catalogo-e2924b27-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Product Card design */
.catalogo-e2924b27-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-sizing: border-box;
    height: 100%;
}

/* Image fully clean - no shadow, frame, outline, border */
.catalogo-e2924b27-image-wrapper {
    display: block;
    width: 100%;
    margin: 0 0 15px 0;
    padding: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.catalogo-e2924b27-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Info container layout with auto bottom CTA placement */
.catalogo-e2924b27-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.catalogo-e2924b27-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.catalogo-e2924b27-title a {
    color: #333;
    text-decoration: none;
}

.catalogo-e2924b27-title a:hover {
    color: #777;
}

.catalogo-e2924b27-price {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

/* Bottom aligned CTA */
.catalogo-e2924b27-cta {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: 12px 15px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.catalogo-e2924b27-cta:hover {
    background-color: #444;
    color: #fff;
}

.catalogo-e2924b27-no-results {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 16px;
    padding: 40px 0;
    color: #666;
}

/* Pagination container and buttons */
.catalogo-e2924b27-pagination-container {
    width: 100%;
    box-sizing: border-box;
}

.catalogo-e2924b27-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.catalogo-e2924b27-pag-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.catalogo-e2924b27-pag-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.catalogo-e2924b27-pag-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #888;
}

/* Hover effects compatibility */
.elementor-animation-grow {
    transition-duration: 0.3s;
    transition-property: transform;
}
.elementor-animation-grow:hover, .elementor-animation-grow:focus, .elementor-animation-grow:active {
    transform: scale(1.1);
}

.elementor-animation-shrink {
    transition-duration: 0.3s;
    transition-property: transform;
}
.elementor-animation-shrink:hover, .elementor-animation-shrink:focus, .elementor-animation-shrink:active {
    transform: scale(0.9);
}

/* --- TABLET MEDIA QUERY --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .catalogo-e2924b27-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- MOBILE MEDIA QUERY --- */
@media (max-width: 767px) {
    .catalogo-e2924b27-search-container {
        margin-bottom: 20px;
    }

    .catalogo-e2924b27-search {
        width: 100% !important;
        max-width: 100% !important;
    }

    .catalogo-e2924b27-filters-wrapper {
        align-items: stretch !important;
        overflow: visible !important;
        margin-bottom: 20px;
    }

    .catalogo-e2924b27-filters {
        display: flex !important;
        flex-direction: column !important; /* Stack vertically */
        align-items: stretch !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .catalogo-e2924b27-filter-btn {
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 0 10px 0 !important; /* Vertical gap between stacked buttons */
        display: flex !important;
    }

    .catalogo-e2924b27-filter-btn:last-child {
        margin-bottom: 0 !important;
    }

    .catalogo-e2924b27-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .catalogo-e2924b27-card {
        width: 100% !important;
    }

    /* Mobile pagination optimization */
    .catalogo-e2924b27-pag-btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
    
    .catalogo-e2924b27-pagination {
        gap: 5px !important;
    }
}
