       :root {
           --green: #6d8f3c;
       }

       .shop-hero {
           text-align: center;
           padding: 140px 20px 80px;
           margin-top: -50px;
           background: linear-gradient(180deg, #f9fcf6 0%, #fff 100%);
       }

       .shop-hero h1 {
           font-family: 'Libre Baskerville', serif;
           font-size: 68px;
           margin-bottom: 10px;
           color: #222;
       }

       .shop-hero p {
           font-size: 18px;
           color: #666;
       }

       .shop-main {
           max-width: 1400px;
           margin: 0 auto;
           padding: 0 110px 120px;
           display: grid;
           grid-template-columns: 300px 1fr;
           gap: 80px;
       }

       /* SIDEBAR */
       .sidebar {
           background: white;
           padding: 40px;
           border-radius: 24px;
           box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
           position: sticky;
           top: 140px;
           height: fit-content;
       }

       /* CAMPO DE PESQUISA */
       .search-filter {
           margin-bottom: 40px;
       }

       .search-filter input {
           width: 100%;
           padding: 14px 18px;
           border: 2px solid #eee;
           border-radius: 50px;
           font-size: 16px;
           outline: none;
           transition: all .3s;
       }

       .search-filter input:focus {
           border-color: var(--green);
           box-shadow: 0 0 0 4px rgba(109, 143, 60, 0.1);
       }

       .search-filter button {
           width: 100%;
           margin-top: 12px;
           padding: 14px;
           background: var(--green);
           color: white;
           border: none;
           border-radius: 50px;
           font-weight: 600;
           cursor: pointer;
           transition: all .3s;
       }

       .search-filter button:hover {
           background: #5a7a30;
           transform: translateY(-2px);
       }

       /* RANGE SLIDER DUPLO (preço min/max) */
       /* RANGE SLIDER DUPLO – VERSÃO FINAL QUE FUNCIONA EM TODOS OS NAVEGADORES */
       .price-range {
           position: relative;
           height: 6px;
           background: #ddd;
           border-radius: 5px;
           margin: 40px 0 20px;
           overflow: visible !important;
           /* importante */
       }

       .price-range input[type="range"] {
           position: absolute;
           top: -8px;
           left: 0;
           width: 100%;
           height: 24px;
           background: transparent;
           pointer-events: none;
           -webkit-appearance: none;
           appearance: none;
           margin: 0;
           padding: 0;
           z-index: 3;
       }

       /* Remove a barra padrão do browser */
       .price-range input[type="range"]::-webkit-slider-runnable-track {
           background: transparent;
           border: none;
           height: 6px;
       }

       .price-range input[type="range"]::-moz-range-track {
           background: transparent;
           border: none;
           height: 6px;
       }

       /* THUMBS (os círculos verdes) */
       .price-range input[type="range"]::-webkit-slider-thumb {
           -webkit-appearance: none;
           height: 26px;
           width: 26px;
           border-radius: 50%;
           background: var(--green);
           pointer-events: auto;
           cursor: pointer;
           border: 4px solid #fff;
           box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
           margin-top: -10px;
           z-index: 5;

       }

       .price-range input[type="range"]::-moz-range-thumb {
           height: 26px;
           width: 26px;
           border-radius: 50%;
           background: var(--green);
           pointer-events: auto;
           cursor: pointer;
           border: 4px solid #fff;
           box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
           margin-top: -10px;
           box-sizing: border-box;

       }

       /* BARRA VERDE ENTRE OS DOIS THUMBS */
       #priceTrack {
           position: absolute;
           top: 0;
           left: 0;
           height: 6px;
           background: var(--green);
           border-radius: 5px;
           pointer-events: none;
           z-index: 2;
           transition: all 0.25s ease;
           width: 100% !important;
           /* JS controla */
       }

       .price-values {
           display: flex;
           justify-content: space-between;
           margin-top: 16px;
           font-weight: 600;
           color: var(--green);
           font-size: 17px;
       }

       /* CATEGORIAS */
       .category-list label {
           display: flex;
           align-items: center;
           gap: 12px;
           margin-bottom: 16px;
           cursor: pointer;
           font-size: 16px;
       }

       .category-list input[type="checkbox"] {
           accent-color: var(--green);
           width: 18px;
           height: 18px;
       }

       /* BOTÃO CLEAR */
       .btn-clear {
           background: transparent;
           border: 2px solid #ddd;
           color: #666;
           padding: 14px 20px;
           border-radius: 50px;
           width: 100%;
           font-weight: 600;
           cursor: pointer;
           transition: all .3s;
           margin-top: 20px;
       }

       .btn-clear:hover {
           background: #f0f8eb;
           border-color: var(--green);
           color: var(--green);
       }

       .shop-products-grid {
           display: grid;
           grid-template-columns: repeat(3, 1fr);
           /* ← FORÇA SEMPRE 3 COLUNAS */
           gap: 50px 30px;
           justify-content: center;
           /* centra se houver menos de 3 */
       }

       /* Responsivo perfeito – 2 no tablet, 1 no telemóvel */
       @media (max-width: 1100px) {
           .shop-products-grid {
               grid-template-columns: repeat(2, 1fr);
           }
       }



       .leaf-lefts {
           position: absolute;
           left: -0px;
           top: 35%;
           transform: translateY(-50%);
           width: 220px;
           opacity: 0.7;
           pointer-events: none;
           z-index: 1;
       }






.pagination-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 60px;
    padding: 0 20px;
}

.pagination-wrapper nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 50px !important; 
    margin: 10px 0px;
    margin-left: 250px;
}
.pagination-wrapper div {
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border: 2px solid #eee !important;
    border-radius: 50px !important;
}
.pagination-wrapper a,
.pagination-wrapper span.inline-flex,
.pagination-wrapper span[aria-disabled="true"],
.pagination-wrapper span[aria-current="page"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 0px !important; 
    margin: 0 5px;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    transform: none !important;
}

.pagination-wrapper a:hover:not([aria-disabled="true"]) {
    border-color: var(--green) !important;
    color: #eee !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(109,143,60,0.15) !important;
    background-color: #6d8f3c;
}

.pagination-wrapper [aria-current="page"],
.pagination-wrapper span[aria-current="page"],
.pagination-wrapper a[aria-current="page"] {
    background: var(--green) !important;
    border-color: var(--green) !important;
    color: rgb(255, 255, 255) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(109,143,60,0.25) !important;
}

.pagination-wrapper a[aria-label="Anterior"],
.pagination-wrapper a[aria-label="Previous"] {
    padding: 0 28px !important;
}

.pagination-wrapper a[aria-label="Próxima"],
.pagination-wrapper a[aria-label="Next"] {
    padding: 0 28px !important;
}

.pagination-wrapper svg {
    width: 14px !important;
    height: 14px !important;
    fill: currentColor !important;
    margin: 0 6px 0 0 !important; 
}

.pagination-wrapper a[aria-label="Próxima"] svg,
.pagination-wrapper a[aria-label="Next"] svg {
    margin: 0 0 0 6px !important; 
    order: 2;
}

.pagination-wrapper span[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.pagination-wrapper span:where(:not([aria-current]):not(.inline-flex)):not([aria-disabled]) {
    color: #aaa;
    font-weight: 600;
    padding: 0 8px;
    background: transparent !important;
    border: none !important;
    min-width: auto;
    height: auto;
}

.pagination-wrapper p {
    display: none !important;
}

@media (max-width: 768px) {
    .pagination-wrapper a,
    .pagination-wrapper span {
        min-width: 42px;
        height: 42px;
        font-size: 15px;
        padding: 0 16px !important;
    }
}
/* ============== AJUSTES APENAS PARA MOBILE ============== */
@media (max-width: 768px) {
    /* Hero mais compacto */
    .shop-hero {
        padding: 80px 15px 50px;
    }

    .shop-hero h1 {
        font-size: 42px;
    }

    .shop-hero p {
        font-size: 16px;
    }

    /* Esconde as folhas grandes laterais no mobile (ocupam espaço) */
    .leaf-lefts,
    .leaf-rights {
        display: none;
    }

    /* Layout: sidebar em cima, produtos em baixo */
    .shop-main {
        grid-template-columns: 1fr !important; /* Força uma coluna só */
        gap: 40px;
        padding: 20px 15px 80px;
    }

    /* Sidebar mais compacta e fácil de usar no mobile */
    .sidebar {
        padding: 24px;
        border-radius: 20px;
        position: static; /* Remove sticky no mobile */
    }

    .search-filter input,
    .search-filter button,
    .btn-clear {
        padding: 14px 16px;
        font-size: 16px;
    }

    .filter-group h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .price-values {
        font-size: 16px;
    }

    /* Grid de produtos: 1 coluna no mobile */
    .shop-products-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-items: center;
    }

    /* Cartões de produto mais espaçosos e legíveis */
    .product-card {
        max-width: 320px;
        width: 100%;
    }

    .product-info h4 {
        font-size: 18px;
    }

    .new-price {
        font-size: 20px;
    }

    /* Paginação centrada e mais compacta */
    .pagination-wrapper {
        margin-top: 50px;
    }

    .pagination-wrapper nav {
        margin-left: 0 !important; /* Remove o margin-left: 250px que quebra tudo */
    }

    .pagination-wrapper a,
    .pagination-wrapper span {
        min-width: 44px;
        height: 44px;
        font-size: 15px;
        padding: 0 12px !important;
    }

    .pagination-wrapper a[aria-label="Anterior"],
    .pagination-wrapper a[aria-label="Próxima"] {
        padding: 0 20px !important;
        font-size: 14px;
    }

    /* Esconde as folhinhas decorativas pequenas no mobile */
    .leaf-deco {
        display: none;
    }
}

/* Tablet pequeno (opcional, se quiseres um meio-termo entre mobile e desktop) */
@media (min-width: 769px) and (max-width: 1024px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-main {
        padding: 0 40px 100px;
        gap: 60px;
    }
}
/* Esconde toda a secção mobile no desktop */
.mobile-filters-section {
    display: none;
}

/* ============== MOBILE ONLY ============== */
@media (max-width: 768px) {

    /* Esconde a sidebar clássica no mobile */
    .sidebar {
        display: none;
    }

    /* Mostra a nova secção mobile */
    .mobile-filters-section {
        display: block;
        margin-bottom: 30px;
    }

    /* Layout principal vira coluna única */
    .shop-main {
        grid-template-columns: 1fr !important;
        padding: 20px 15px 80px !important;
        gap: 20px;
    }

    /* Barra de pesquisa + botão filtros */
    .mobile-search-filter-bar {
        display: flex;
        gap: 12px;
        padding: 0 15px;
        align-items: center;
    }

    .mobile-search-form {
        flex: 1;
    }

    .search-input-wrapper {
        position: relative;
    }

    .search-input-wrapper input {
        width: 100%;
        padding: 15px 50px 15px 20px;
        border: 2px solid #eee;
        border-radius: 50px;
        font-size: 16px;
    }

    .search-submit-btn {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--green);
        color: white;
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 15px 20px;
        background: white;
        border: 2px solid #eee;
        border-radius: 50px;
        font-weight: 600;
        white-space: nowrap;
    }

    /* Modal bottom sheet */
    .mobile-filters-modal-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .mobile-filters-modal-overlay.active {
        display: block;
    }

    .mobile-filters-modal {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
        overflow-y: auto;
        padding: 24px;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .modal-header h3 {
        font-size: 20px;
        font-weight: 600;
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 32px;
        color: #999;
        width: 40px;
        height: 40px;
    }

    .modal-actions {
        display: flex;
        gap: 12px;
        margin-top: 40px;
    }

    .modal-actions .btn-clear {
        flex: 1;
        padding: 16px;
        background: #f8f8f8;
        border: 2px solid #eee;
        border-radius: 50px;
        text-align: center;
        color: #666;
        text-decoration: none;
        font-weight: 600;
    }

    .btn-apply {
        flex: 1;
        padding: 16px;
        background: var(--green);
        color: white;
        border: none;
        border-radius: 50px;
        font-weight: 600;
        font-size: 16px;
    }
}
