body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.top-bar {
    background: #222;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 10%;
    font-weight: bold;
    border-bottom: 2px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'rubik' sans-serif;
    font-size: 26px;
    font-weight: bold;
    color: #c49a6c;
}

.icons {
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.icons:hover {
    color: #c49a6c;
}
.sticky-filter {
    position: sticky;
    top: 0;
    background: white; /* Ensure background so content doesn't overlap */
    padding: 10px;
    z-index: 1000;
    border-bottom: 2px solid #ddd;
    box-shadow: #222;
}

main {
    padding: 40px 10%;
    text-align: center;
}

h2{
    font-family:  "Oxygen", sans-serif;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    justify-content: center;
    padding: 20px;
}

.product {
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.product img {
    width: 100%;  /* Flexible within the container */
    max-width: 250px;  /* Restricts maximum size */
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s;
}

.product:hover img {
    opacity: 0.9;
}

.bestseller {
    background: #e67e22;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    font-weight: bold;
}

.discount {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
}

/* Filters container */
.filters {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}
/* Target ALL product links */
a.product-name {
    color: #0066cc;          /* Default link color (blue) */
    text-decoration: none;   /* Remove underline */
    font-weight: bold;       /* Make it bold */
    transition: color 0.3s;  /* Smooth color change on hover */
  }
  
  /* Hover effect */
  a.product-name:hover {
    color: #ff6600;          /* Orange on hover */
    
    text-decoration: none; 
  }
  
  /* Visited link style (optional) */
  a.product-name:visited {
    color: #800080;          /* Purple if visited */
  }
/* Search input */
#search {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: 0.3s ease-in-out;
}

#search:focus {
    border-color: #ff5722;
}

/* Price range section */
.price-range-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Price value styling */
#minPriceVal, #maxPriceVal {
    color: #ff5722;
}

/* Range input */
input[type="range"] {
   
    width: 150px;
    height: 6px;
    background: linear-gradient(to right, #ff5722, #ff9800);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
}

/* Custom thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #ff5722;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #e64a19;
}

/* Filter button */
#filterBtn {
    background: #ff5722;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

#filterBtn:hover {
    background: #e64a19;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .top-bar{
        display: none;
    }
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    #search {
        width: 90%;
    }
    .price-range-container, #filterBtn{
        width: 100%;
    }
    .price-range-container {
        align-items: stretch;
    }
}