@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
 font-family: 'Roboto', sans-serif;
}


.category-item img, .product-item img, .subcategory-item img {
  border:white solid 8px;
  /* transition: 0.6s; */
}

.category-item img:hover,.product-item img:hover, .subcategory-item img:hover {
  border: rgba(243, 110, 33, 0.7) solid 2px;
  /* transform: scale(1.05); */
  transition: border 0.3s ease;
  transform: scale(1.05);
  z-index: 1;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;

}


/* section 1 */
.Category {
  width: 100vw;
  height: 70vh;
  background-image: url(https://vitafurniturefittings.com/wp-content/uploads/2025/03/Hero-Image-Container-8.png) !important;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 20px;
  overflow: hidden;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2);

}

.Category-text {
  background: rgba(243, 110, 33, 0.7);
  padding: 40px 80px;
  text-align: center;
  max-width: 50%;
  border-radius: 10px;
}

.Category h2 {
  color: #fff;
  font-size: 4rem;
  margin: 0;
}

@media (max-width: 1024px) {
  .Category {
    height: 60vh;
  }

  .Category-text {
    max-width: 70%;
    padding: 30px 60px;
  }

  .Category h2 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .Category {
    height: 50vh;
    padding: 10px;
  }

  .Category-text {
    max-width: 85%;
    padding: 20px 40px;
  }

  .Category h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .Category {
    height: 40vh;
  }

  .Category-text {
    max-width: 90%;
    padding: 15px 25px;
  }

  .Category h2 {
    font-size: 2rem;
  }
}

@media (max-width: 320px) {
  .Category {
    height: 35vh;
  }

  .Category-text {
    padding: 10px 20px;
  }

  .Category h2 {
    font-size: 1.8rem;
  }
}

/* section 2 */

.all-product-categories {
  padding: 0px;
}

.all-product-categories h1 {
  text-align: center;
  font-size: 60px;
}

/* .filter-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  background-color: #f373289e;
  padding: 10px 15px;
  border-radius: 5px;
  max-width: 800px;
  margin: 20px auto;
} */

.sort-filter,
.search-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

label {
  font-size: 24px;
  font-weight: bold;
  color: #ffff;
}

select,
input[type="text"] {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  width: 100%;
  max-width: 200px;
}

select {
  background-color: white;
  cursor: pointer;
  margin-left: -70px;
}

input[type="text"] {
  width: 100%;
  max-width: 150px;
}

input[type="text"]:focus,
select:focus {
  border-color: #f28c50;
}

.category-detail {
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.category-detail h2 {
  font-size: 40px;
  color: #555;
  margin-bottom: 15px;
}

.products-grid,
.subcategories-grid, .categories-grid {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.product-item,
.subcategory-item {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 40px;
}

.product-item a {
  text-decoration: none;
  color: #555;
  font-weight: bold;
  font-size: 20px;
  margin-top: 15px;
}

.subcategory-item a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 20px;
  list-style: none;
}

.product-item img {
  display: block;
  margin: 0 auto 10px;
  /* border-radius: 5px; */
  width: 100%;
  max-width: 250px;
  height: 100%;
  max-height: 300px;
  border: 1px solid #6d6d6d;
    border-radius: 10px;
    padding: 5px;
}

.subcategory-item img {
  display: block;
  margin: 0 auto 10px;
  /* border-radius: 5px; */
  width: 100%;
  height: auto;
  min-height: 350px;
  max-width: 350px;
  border: 1px solid #6d6d6d;
    border-radius: 10px;
	max-height:350px;
}

.subcategory-item {
	
}

/* .products-grid{
  display: flex;
  flex-direction: row;
} */
.categories-grid {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 0px;
  padding-bottom: 20px;
}
.products-grid {
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 10px;
}
.category-item {
  padding: 20px;
  text-align: center;
}

.category-item img {
  max-width: 300px;
  height: 300px;
  width: 100%;
  border: 1px solid #6d6d6d;
    border-radius: 10px;
}

.category-item a {
  text-decoration: none;
  font-size: 18px;
  color: black;
  font-family: Open Sans;
}
.category-item h3{
  margin-top: 15px;
}
.subcategory-item h3{
  margin-top: 15px;
  /* font-size: 20px; */
  /* color: #000; */
}
.back a {
  color: #000;
  text-decoration: none;
  font-size: 20px;
     font-weight: 900;
}
.back{
  margin-top: 40px;
}

/* Responsive Styles */

@media screen and (max-width: 1440px) {

.categories-grid ,.products-grid,
.subcategories-grid {
  grid-template-columns: auto auto auto;
}

}


@media screen and (max-width: 1024px) {
  .products-grid, .categories-grid,
  .subcategories-grid {
    grid-template-columns: auto auto;
  }
 
}

@media screen and (max-width: 768px) {
  .all-product-categories {
    padding: 0px;
  }

  .all-product-categories h1 {
    font-size: 40px;
  }



.category-item img {
    max-width: 100%;
    height: 200px;
  }

  label {
    font-size: 18px;
  }

  .products-grid,
  .subcategories-grid {
    grid-template-columns: auto auto;
  }

  .category-item {
    padding: 20px;
  }

  .category-item h3,
  .subcategory-item h3 {
    font-size: 18px;
  }
  .subcategory-item img {
    margin: auto;
    min-height: 200px;
    max-width: 300px;
}


.product-item,
.subcategory-item {
  padding: 0px;
}
}

@media screen and (max-width: 480px) {
  .all-product-categories h1 {
    font-size: 30px;
  }
/* 
  .filter-container {
    padding: 10px;
  } */

  .products-grid,
  .subcategories-grid {
    grid-template-columns: auto auto;
  }

  .category-item h3 {
    font-size: 14px;
  }

  .subcategory-item h3 {
    font-size: 16px;
  }
}

@media screen and (max-width: 425px) {
  /* .filter-container {
    flex-direction: column;
    align-items: center;
  } */

  .categories-grid,
  .subcategory-grid,
  {
    grid-template-columns: auto auto;
    gap: 15px;
  }
  .products-grid {
    grid-template-columns: auto;
    gap: 25px;
  }
  .category-item img {
    max-width: 100%;
    height: 200px;
  }

  .all-product-categories {
    padding: 0px;
  }


}

@media screen and (max-width: 320px) {
  .categories-grid,
  .subcategories-grid,
  .products-grid {
    grid-template-columns: auto;
  }

  .subcategories-grid p a {
    text-decoration: none;
  }
  .subcategory-item img {
    min-height: 200px;
    max-width: 300px;
}
}




/* .single-product-wrapper {
  padding: 40px;
  background-color: #fff;
} */

.single-product {
  display: flex;
  flex-wrap: wrap;
  /* gap: 40px; */
  justify-content: center;
  align-items: flex-start;
}

.single-1,
.single-2 {
  flex: 1 1 45%;
  min-width: 300px;
}

.product-images img {
  width: 100%;
  max-width: 100%;
  margin-bottom: 10px;
  /* border: 2px solid #eee; */
  border-radius: 6px;
  transition: border 0.3s ease;
}

.product-images img .selected {
  border: 2px solid #0073aa;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}


.product-size,
.product-description,
.product-price {
  margin: 20px 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.buy-now-button button {
  background: #f36f21;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
}
