/* === General Container Styling === */
.custom-shop-container {
    
    max-width: 1240px!important;
    margin: auto;
    /* background-color: #F6FFD2; */
    color: #8DC71D;
}
.shop-title {
    font-family: "Archivo_Expanded-Black";
    text-align: center;
    padding: 100px 0px 0px 0px!important;
    font-size: 81.1px;
}
/* === Layout: Sidebar + Products === */
.shop-layout-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.shop-sidebar {
    width: 300px!important;
    /* background-color: #F6FFD2; */
    /* padding: 15px; */
   /* border: 1px solid #F6FFD2; */
    border-radius: 8px;
}
.custom-category-filter {
    padding-top: 30px;
}
.shop-products {
    flex: 1;
}

/* === Sidebar Category Checkboxes === */
.custom-category-filter label {
 display: block;
    /* margin-bottom: 12px; */
    padding-top: 0px;
    font-size: 15px;
    margin-bottom: -10px!important;
    gap: 1px;
    color: #8DC71D;
    cursor: pointer;
}

.custom-category-filter input[type="checkbox"] {
    accent-color: #8DC71D;
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

/* Checkbox hover and focus states */
.custom-category-filter input[type="checkbox"]:hover,
.custom-category-filter input[type="checkbox"]:focus {
    outline: 2px solid #8DC71D;
}

/* === Filter Button === */
.custom-category-filter button {
    margin-top: 10px;
    padding: 6px 16px;
    background-color: #8DC71D;
    color: #1b1b01;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.custom-category-filter button:hover {
    background-color: #7aba1a;
}

/* === Product Grid: 3 Columns === */
.custom-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* === Remove Woo + Astra Sale Badge + Extra Padding === */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.ast-onsale-card,
.ast-on-card-button,
.ast-card-action-tooltip {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
}

.woocommerce ul.products li.product {
    padding-top: 0 !important;
    margin-top: 0 !important;
    display: none;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce ul.products li.product .ast-onsale-card-wrap,
.woocommerce ul.products li.product .ast-on-card-button {
    padding-top: 0 !important;
    margin-top: 0 !important;
    display: none!important;
}
.ast-article-single {
    list-style: none;
}
/* === Pagination Styling === */
.custom-pagination {
    margin-top: 30px;
    text-align: center;
}

.custom-pagination .page-numbers {
    display: inline-block;
    margin: 0 6px;
    padding: 8px 14px;
    background-color: transparent;
    border: 1px solid #8DC71D;
    color: #8DC71D;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.custom-pagination .page-numbers:hover {
    background-color: #8DC71D;
    color: #011B01;
}

.custom-pagination .current {
    background-color: #8DC71D;
    color: #011B01;
    font-weight: bold;
}
.ast-separate-container .ast-article-single {
    padding: 0px!important;
}
.results-sort-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.results-count p {
    margin: 0;
    color: #F6FFD2;
    font-weight: 500;
}

.woocommerce .woocommerce-ordering {
    padding: 6px 14px;
    margin-bottom: 0px!important;
    border: 1px solid #F6FFD2;
    border-radius: 10px;

}
.results-sorting select {
    padding: 6px 10px;
    border: 1px solid #F6FFD2;
    border-radius: 4px;
    background-color: #fff;
    color: #F6FFD2;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.results-sorting select {
    padding: 6px 10px;
    border: 1px solid #F6FFD2;
    border-radius: 4px;
    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 10px center;
    background-size: 28px 28px;
}
.results-sort-row option {
    background-color: transparent;
    padding: 20px 20px!important;
} 
.results-sort-row option:hover {
    background-color: #8DC71D;
} 
/* Style only <select> – looks good across browsers */
.filter-price-sec {
    display: flex;
    padding: 20px 0px;
}
.filter-price-sec label {
    display: block;
}
 .woocommerce-page input[type=number] {
    background-color: transparent!important;
    border: 1px solid #F6FFD2;
    color: #F6FFD2;
    border-radius: 6px!important;
    width: 120px;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.custom-price-filter label {
    display: block;
}

.shop-search-form {
    margin-bottom: 20px;
    text-align: right;
}

.shop-search-form form.woocommerce-product-search {
    display: inline-flex;
    gap: 10px;
}

.shop-search-form input.search-field {
    padding: 14px;
    border-radius: 4px;
    background-color: transparent!important;
      border-radius: 8px!important;
      color: white;
    border: 1px solid #8DC71D;
    width: 100%!important;
}

.shop-search-form button {
    padding: 12px 16px;
    background: #8DC71D;
    color: #002A00;
    border: none;
    border-radius: 4px!important;
    cursor: pointer;
}
.results-sort-row option {
    background-color: transparent;
    padding: 30px 30px !important;
    background: #011B01;
}

.shop-search-form form.woocommerce-product-search {
    width: 100%;
}
.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single {
padding: 0px;
}
.shop-products li {
	list-style: none;
}
.shop-search-form {
    margin-bottom: 20px;
    text-align: right;
}

.shop-search-form form.woocommerce-product-search {
    display: inline-flex;
    gap: 10px;
}

.shop-search-form input.search-field {
    padding: 14px;
    border-radius: 4px;
    background-color: transparent!important;
      border-radius: 8px!important;
      color: white;
    border: 1px solid #8DC71D;
    width: 100%!important;
}

.shop-search-form button {
    padding: 12px 16px;
    background: #8DC71D;
    color: #ffffff;
    border: none;
    border-radius: 4px!important;
    cursor: pointer;
}
.custom-product-grid {
	padding-top: 50px;
	width: 100%;
}


/* === Responsive Layout === */
@media (max-width: 1024px) {
    .custom-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-layout-grid {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .custom-product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 10px;
    }

    .custom-product-card {
        padding: 16px;
    }

    .product-title {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .custom-product-grid {
        grid-template-columns: repeat(2, 1fr); /* still 2 columns on very small screens */
        gap: 12px;
    }
}

.custom-product-grid.loading {
 
    filter: blur(3px);
    pointer-events: none;
    position: relative;
}
.custom-product-grid.loading::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
