.custom-product-grid .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    list-style-type: none !important;
}

.custom-product-grid .products .product {
    list-style-type: none !important;
    list-style: none !important;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    color: #fff;
    width: 100% !important;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 !important;
}

.custom-product-grid .products .product h3 {
    color: #a9d134;
}

.custom-product-grid .products .product::before,
.custom-product-grid .products .product::after {
    content: none !important;
    display: none !important;
}

.archive-title {
    font-size: 81.1px !important;
    font-family: "Archivo_Expanded-Black", sans-serif !important;
    text-align: center !important;
    margin-bottom: 50px;
    font-weight: 900 !important;
    color: #F6FFD2 !important;
}

.custom-sorting-container {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px;
    border-radius: 10px;
    z-index: 10;
    border: 2px solid #a9d134 !important;
}

.custom-sorting-container .woocommerce-ordering,
.custom-sorting-container form.woocommerce-ordering {
    margin: 0;
    display: flex;
    align-items: center;
}

.custom-select {
    position: relative;
    width: 220px;
}

.custom-select .select-selected {
    padding: 10px 15px;
    color: #fff;
    border-radius: 5px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-select .select-selected::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #a9d134;
    margin-left: 10px;
}

.custom-select .select-selected.open::after {
    border-top: none;
    border-bottom: 6px solid #a9d134;
}

.custom-select .select-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 5px;
    margin-top: 2px;
    display: none;
    z-index: 99;
    max-height: 200px;
    overflow-y: auto;
}

.custom-select .select-items a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.custom-select .select-items a:hover,
.custom-select .select-items .same-as-selected {
    background: #a9d134;
    color: #000;
}

.custom-select .select-items a.same-as-selected {
    font-weight: bold;
}

.custom-pagination {
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 20px;
}

.custom-pagination a, .custom-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    text-decoration: none;
    background: #2a4c44;
    border-radius: 5px;
    color: #fff;
}

.custom-pagination .current,
.custom-pagination a:hover {
    background: #a9d134;
    color: #000;
}

.custom-pagination .next {
    background: #a9d134;
    color: #000;
}

.custom-result-count {
    padding: 15px 20px;
    color: #d1e7c7;
    border-radius: 10px;
    margin-top: 10px;
    text-align: center;
}

.custom-archive-container {
    padding: 0px 0px!important;
    max-width: 1240px;
    margin: 0 auto;
    margin-top: 80px;
}

.results-sort-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.results-count p {
    margin: 0;
}





.results-sorting select {
    padding: 14px 20px!important;
    border: 1px solid #F6FFD2!important;
    border-radius: 12px!important;
    background-color: #fff;
    color: #F6FFD2;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23F6FFD2' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 28px 28px;
}
.results-sort-row option {
    background-color: #002A00!important;
    padding: 20px 20px!important;
} 
.results-sort-row option:hover {
    background-color: #8DC71D;
} 

/* Responsive Grid */
@media (max-width: 1024px) {
    .custom-product-grid .products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .custom-product-grid .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .custom-sorting-container {
        position: static;
        margin: 10px 0;
    }

    .custom-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .custom-product-grid .products {
        grid-template-columns: 1fr !important;
    }
}