.product-category-box {
background-color: #fff;
border: 1px solid #eee;
border-radius: 12px;
padding: 30px 30px;
margin-bottom: 30px;
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
width: 100%;
max-width: 270px;
}
.category-heading {
font-size: 22px;
font-weight: 700;
margin-bottom: 20px;
color: #222;
border-bottom: 2px solid #fbd078;
display: inline-block;
padding-bottom: 6px;
margin-top: -5px;
}
.category-list {
list-style: none;
padding: 0;
margin: 0;
}
.category-list li {
margin-bottom: 16px;
font-size: 17px;
}
.category-list li a {
color: #333;
text-decoration: none;
transition: color 0.2s ease;
font-weight: 500;
}
.category-list li a:hover {
color: #fbd078;
font-weight: 600;
}
/* العنصر الحالي */
.category-list li.active a {
color: #fbd078;
font-weight: 600;
}
Filter by price
Price: EGP55 — EGP9000
.price-filter-box {
background-color: #fff;
border: 1px solid #eee;
border-radius: 12px;
padding: 25px;
margin-bottom: 30px;
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}
.price-heading {
font-size: 18px;
font-weight: 700;
margin-bottom: 20px;
border-bottom: 2px solid #fbd078;
padding-bottom: 5px;
color: #222;
}
.range-slider {
position: relative;
height: 40px;
}
.range-slider input[type="range"] {
position: absolute;
width: 100%;
height: 4px;
background: transparent;
pointer-events: none;
-webkit-appearance: none;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
pointer-events: auto;
-webkit-appearance: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: #fbd078;
cursor: pointer;
border: none;
margin-top: -6px;
}
.range-slider input[type="range"]::-webkit-slider-runnable-track {
background: #fbd078;
height: 4px;
border-radius: 4px;
}
.price-display {
font-size: 14px;
color: #444;
margin: 15px 0 10px;
}
.price-filter-btn {
background-color: #fbd078;
color: white;
border: none;
border-radius: 50px;
padding: 8px 20px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s ease;
}
.price-filter-btn:hover {
background-color: #e0a84f;
}
function updateUnifiedSlider() {
const minSlider = document.getElementById("minRange");
const maxSlider = document.getElementById("maxRange");
let min = parseInt(minSlider.value);
let max = parseInt(maxSlider.value);
// Prevent overlap
if (min > max - 200) {
min = max - 200;
minSlider.value = min;
}
if (max < min + 200) {
max = min + 200;
maxSlider.value = max;
}
document.getElementById("price-min").textContent = `EGP${min}`;
document.getElementById("price-max").textContent = `EGP${max}`;
}
function applyUnifiedFilter() {
const min = document.getElementById("minRange").value;
const max = document.getElementById("maxRange").value;
const url = new URL(window.location.href);
url.searchParams.set("min_price", min);
url.searchParams.set("max_price", max);
window.location.href = url.toString();
}