body {
  font-family: "Pangolin", cursive;
  margin: 0;
  padding: 0;
  color: #333;
}

.brand-logo{
	max-width: 100px;
	height: auto;
}

h1, h2 {
  text-align: center;
  font-family: "Playwrite IT Moderna", cursive;
}
a {
  text-decoration: none;
  color: inherit;
  position: relative;
	text-align: center;
}

a:not(:has(img))::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: #93B7D1;
  transition: width 0.3s ease;
}

a:not(:has(img)):hover::after {
  width: 100%;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  padding: 10px;
}

header nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
	align-items: center;
}

h1 {
  font-family: "Playwrite IT Moderna", cursive;
  font-size: 40px;
  font-weight: normal;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.navigation {
  list-style: none;
  padding: 0;
  margin: 0;
	text-align: center;
	justify-content: center;
}

.navigation li {
  font-size: 18px;
  display: inline;
	padding: 10px;
}

.navigation a {
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.navigation a:hover {
  background-color: #f2f2f2;
}

#hero {
  position: relative;
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
}

#popular-products {
  padding: 50px;
  background-color: #F2F9FF;
	border-radius: 3%;
}

.product-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 100%;
  margin: 0 auto;
}

.product-item {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-item img {
  width: 100%;
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
}

.product-item img:hover {
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.product-item.fade-in {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-item p {
  font-size: 16px;
  text-align: center;
  margin-top: 5px;
  color: #555;
}

.product-price {
  font-weight: bold;
  color: #000;
  margin-top: 2px;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-item img.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

#filter-sidebar{
	padding: 10px;
	/* CHANGE HERE 
	
	NEED TO MAKE IT STICKY, LIKE NAVBAR
	
	PLEASE */
	max-width: 250px;
}

.filter-option {
  margin-bottom: 15px;
  padding: 12px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  max-width: 250px;
  height: auto;
}

.filter-option label {
  font-size: 16px;
  margin-bottom: 8px;
  display: block;
  color: #333;
}

.filter-select, .filter-range {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #e9f5ff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-select:focus, .filter-range:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#price-range {
	-webkit-appearance: none;
	appearance: none;
  width: 93%;
  height: 8px;
  border-radius: 5px;
  background: #CBDCEB;
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
	max-width: 220px;
}

#price-range:hover {
  opacity: 1;
}

#price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #133E87;
  cursor: pointer;
  box-shadow: 0 0 1px #000;
}

#price-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
  box-shadow: 0 0 2px #000;
}


#price-value {
  margin-top: 5px;
}

.container {
  display: grid;
  grid-template-columns: repeat(2, auto);
}

#site-footer {
  background-color: white;
  padding: 40px 20px;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px; /* Increased gap for better spacing between sections */
  text-align: center;
  width: 100%;
  max-width: 1200px;
}

.footer-links, .footer-navigation, .footer-categories {
  font-size: 14px;
}

.footer-links h2,
.footer-navigation h2,
.footer-categories h2 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-links p,
.footer-navigation ul li,
.footer-categories ul li {
  margin: 5px 0;
}

.footer-links a,
.footer-navigation a,
.footer-categories a {
  text-decoration: none;
  color: inherit;
  position: relative;
}

.footer-links a::after,
.footer-navigation a::after,
.footer-categories a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: white;
  transition: width 0.3s ease;
}

.footer-links a:hover::after,
.footer-navigation a:hover::after,
.footer-categories a:hover::after {
  width: 100%;
}

.footer-navigation ul,
.footer-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-navigation ul li,
.footer-categories ul li {
  margin: 5px 0;
}

.footer-bottom {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #555;
}


#filter-button{
  text-decoration: none;
  border: none;
  background-color: white;
  display: none;
	padding: 10px;
}

/* Filter Button */
.filterIcon {
  width: 2rem;
  height: 1.5rem;
  display: block;
  position: relative;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  box-sizing: border-box;
}

.filterIcon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #000000;
  border-radius: 2px;
  opacity: 1;
  z-index: 0;
  
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
  
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

.filterIcon span::after {
display: block;
  position: absolute;
  height: 0.25rem;
  width: 0.25rem;
  background: #FFFFFF;
  border-radius: 50%;
  border: 2px solid #000000;
  opacity: 1;
  z-index: 5;
  top: -150%;
  content:"";
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

.filterIcon span:nth-child(1) {
    top: 0;
 }
.filterIcon span:nth-child(1)::after {
    left: 15%;
 }
.filterIcon span:nth-child(2) {
    top: 46%;
}
.filterIcon span:nth-child(2)::after {
    left: 60%;
}
.filterIcon span:nth-child(3) {
    bottom: 0;
}
.filterIcon span:nth-child(3)::after {
    left: 30%;
} 
.filterIcon.open span::after {
    opacity: 0;
}

.filterIcon.open  span:nth-child(1) {
    top: 0;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
 } 
.filterIcon.open  span:nth-child(1)::after {
    left: 60%;
 } 

.filterIcon.open  span:nth-child(2) {
    top: 46%;
    opacity: 0;
    
}
.filterIcon.open  span:nth-child(2)::after {
    left: 15%;
}
.filterIcon.open span:nth-child(3) {
    bottom: 0;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.filterIcon.open span:nth-child(3)::after {
    left: 55%;
}
.filterIcon:hover span:nth-child(1)::after {
  left: 25%;
}
.filterIcon:hover span:nth-child(2)::after {
  left: 50%;
}
.filterIcon:hover span:nth-child(3)::after {
  left: 40%;
}

#filter-options{
  display: none;
}

@media screen and (width > 768px) {
  #filter-options{
    display: block;
  }
}

#filter-options.open{
  display: block;
}
@media (max-width: 768px){
	#filter-button{
    display: block;
  }
	#filter-sidebar{
		max-width: 100%;
	}
	.filter-option{
		max-width: 100%;
	}
	#price-range{
		max-width: 93%;
	}
	#popular-products{
		padding: 20px;
	}
	.product-collage {
		gap: 20px;
	}
	h1{
		font-size: 20px;
	}
	.navigation li {
		font-size: 18px;
	}

  .category-grid {
    grid-template-columns: 1fr;
  }
  .product-collage {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    grid-template-columns: repeat(1, auto);
  }
	.brand-logo{
		width: 100px;
		height: auto;
	}
	.footer-content {
    grid-template-columns: 1fr;
    gap: 20px; /* Adjusted for compactness on smaller screens */
  }
	/* Not sure if it is right for sizes, change if needed */
}

@media (max-width: 399px) {
  #filter-button{
    display: block;
  }
	#filter-sidebar{
		max-width: 100%;
	}
	.filter-option{
		max-width: 100%;
	}
	#price-range{
		max-width: 93%;
	}
	#popular-products{
		padding: 20px;
	}
	.product-collage {
		gap: 20px;
	}
	h1{
		font-size: 20px;
	}
	.navigation li {
		font-size: 15px;
	}
	#brand-name{
		font-size: 30px;
	}
	/* Not sure if it is right for h1 and navigation li */

  .category-grid {
    grid-template-columns: 1fr;
  }
  .product-collage {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    grid-template-columns: repeat(1, auto);
  }
}

.filter-toggle {
  display: none;
  background-color: #5c9cff;
  color: white;
  border: none;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  width: 30%;
	height: 40px;
  text-align: center;
}

.checkbox-container {
  display: flex;
  flex-direction: column;
}

.checkbox-circle {
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
}

.checkbox-circle.checked {
  background-color: #333;
}

.checkbox-circle:after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.checkbox-circle.checked:after {
  opacity: 1;
}

input[type="checkbox"] {
  display: none;
}

label.circle-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

label.circle-checkbox::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

label.circle-checkbox::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid whitesmoke;
  border-radius: 100%;
  background-color: whitesmoke;
  transition: background-color 0.3s ease;
}

input[type="checkbox"]:checked + label.circle-checkbox::before {
  background-color: #333;
  border-color: #D8C89E;
}

input[type="checkbox"]:checked + label.circle-checkbox::after {
  background-color: #D8C89E;
}


#sort-by {
  display: flex;
  gap: 10px;
}

#sort-by button {
  padding: 10px 20px;
  background-color: #CBDCE4;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
	color:#133E87;
}

#sort-by button:hover {
  background-color: #93B7D1;
	color:beige;
}

#sort-by button.active {
  background-color: #007bff;
  color: white;
}
