body.modal-open { overflow: hidden !important; }

/* Container principal da loja */
.product-container {
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto;
    max-width: 1200px;
}

.filtro-categorias-label {
    font-size: 1.08em;
    margin-bottom: 6px;
    padding-bottom: 25px;
    display: block;
    color: #23232b;
    letter-spacing: 0.5px;
    /* Qualquer estilo adicional */
}

/* Sidebar lateral de filtros (desktop) */
.desktop-filters {
    width: 25%;
    padding: 20px;
    box-sizing: border-box;
    display: block;
}
@media (max-width: 900px) {
    .desktop-filters { display: none !important; }
}

/* Área de produtos */
.product-listing {
    width: 75%;
    padding: 20px;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .product-listing { width: 100%; padding: 10px; }
}

/* Breadcrumb */
.breadcrumb-container {
    margin-bottom: 18px;
}

/* Cabeçalho (filtros/ordenação) */
.product-header {
    margin-bottom: 20px;
}
.product-header-actions {
    display: flex;
    align-items: center;
    width: 100%;
}
.mobile-filter-btn {
    display: none;
    background: none;
    color: var(--primary-color);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    margin-right: auto;
    font-weight: 600;
}
.product-ordering {
    margin-left: auto;
}
.product-ordering select {
    padding: 10px;
    color: #8e8e8e;
    border: 1px solid #dbdada;
    border-radius: 5px;
    background: #fff;
    font-weight: 500;
}

/* Botão filtro só no mobile */
@media (max-width: 900px) {
    .mobile-filter-btn { display: inline-flex; align-items: center; }
    .product-header-actions { justify-content: space-between; }
    .product-ordering { margin-left: 0; }
}

/* Grid de produtos */
.custom-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) {
    .custom-product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Estilo geral filtros/categorias/preço */
.filter-section { margin-bottom: 30px; }
.cat-section strong,
.price-section strong {
    font-size: 1.08em;
    margin-bottom: 6px;
    display: block;
    color: #23232b;
}
.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cat-list li {
    margin-bottom: 10px;
}
.cat-list li a {
    text-decoration: none;
    color: #9f9f9f;
    font-size: 0.9rem;
    font-weight: 600;
}
.cat-list li a:hover {
    color: var(--primary-color);
}
.back-link a, .current-category {
    font-weight: bold;
    color: #6d6d6d;
}

/* Range de preço (jQuery UI) */
.price-slider {
    margin: 12px 0;
}
.price-slider .ui-slider-range {
    background: var(--primary-color) !important;
}
.price-slider .ui-slider-handle {
    border-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
    outline: none !important;
}
.price-form p {
    color: #515151;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 10px 0 0 0;
}
.price-form button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    padding: 10px 0;
    margin-top: 14px;
    transition: background 0.18s;
}
.price-form button:hover {
    background-color: var(--primary-dark);
}

/* Paginação estilizada */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.pagination-container .page-numbers {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    margin: 0 4px;
    padding: 0 10px;
    border-radius: 18px;
    border-color: transparent;
    background: #f2f3f7;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.pagination-container .page-numbers.current,
.pagination-container .page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* Off-canvas mobile: painel lateral e overlay */
.mobile-filters-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 350px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    flex-direction: column;
    box-shadow: 2px 0 16px rgba(0,0,0,0.12);
    transition: transform .3s cubic-bezier(.6,1.4,.7,1.0);
    transform: translateX(-100%);
}
.mobile-filters-panel.open {
    display: flex;
    transform: translateX(0);
    animation: slideIn .24s cubic-bezier(.6,1.4,.7,1.0);
}
@keyframes slideIn {
    0%   { opacity: 0; transform: translateX(-100%);}
    100% { opacity: 1; transform: translateX(0);}
}
.mobile-filters-header {
    background: #f5f5f5;
    color: #23232b;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 10px 22px;
    border-bottom: 1px solid #e4e4e4;
}
.mobile-filters-header button {
    background: transparent;
    border: none;
    color: #23232b;
    font-size: 2em;
    cursor: pointer;
    margin-left: 12px;
    margin-top: -3px;
}
.mobile-filters-content {
    width: 100%;
    padding: 22px 14px 30px 22px;
    overflow-y: auto;
    flex: 1;
}

/* Overlay escuro para painel mobile */
.mobile-filters-overlay {
    display: none;
}
@media (max-width: 900px) {
    .mobile-filters-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: rgba(28,28,32,0.36);
        z-index: 1999;
        transition: opacity .25s;
    }
    .mobile-filters-overlay.active { display: block; opacity: 1; }
    .mobile-filters-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0;
        width: 88vw; max-width: 350px; height: 100vh;
        background: #fff;
        z-index: 2000;
        box-shadow: 2px 0 16px rgba(0,0,0,0.12);
        transition: transform .3s cubic-bezier(.6,1.4,.7,1.0);
        transform: translateX(-100%);
    }
    .mobile-filters-panel.open {
        transform: translateX(0);
        animation: slideIn .24s cubic-bezier(.6,1.4,.7,1.0);
    }
}

/* Textos institucionais, mínimo da tela */
.container-motora-text { min-height: 400px; }
