:root {
  --primary: #5b3926;
  --gray: #666;
  --border: #eee;
  --light: #f5f5f5;
  --accent: #f5a623;
  --green: #4caf50;
}

.banner {
  background-image: url("../images/product-page.png");
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  padding-left: 2.8rem;
  color: white;
}
.banner h2 {
  font-size: 2.5rem;
  line-height: 1;
}

.breadcrumb {
  padding: 1rem 2rem !important;
  font-size: 0.9rem !important;
  color: var(--gray);
}
.breadcrumb a {
  color: var(--gray);
  text-decoration: underline;
  margin-right: 5px;
}

.container {
  display: flex;
  gap: 2rem;
  padding: 0px;
  margin: 0px;
}

.sidebar,
#filterForm {
  width: 260px;
  font-size: 0.95rem;
}

.filters {
  padding: 10px;
  border-right: 1px solid var(--border);
}

.filters h3 {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.clear-filter {
  color: var(--primary);
  cursor: pointer;
  font-size: 0.85rem;
}

.toggle-switch {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.toggle-switch label {
  margin-right: auto;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 30px;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: var(--primary);
}

.switch input:checked + .slider:before {
  transform: translateX(18px);
}

details {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}

summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

details[open] summary::after {
  content: "▲";
  float: right;
}

summary::after {
  content: "▼";
  float: right;
}

.checkbox-group {
  margin-top: 0.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  margin: 0.3rem 0;
  gap: 0.4rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.price-inputs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.price-inputs input {
  padding: 0.4rem;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.main {
  position: relative;
  flex: 1;
}

.sort-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.sort-bar select {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); */
  gap: 1rem;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  position: relative;
}

.product-card img {
  width: 100%;
  object-fit: cover;
}
.product-card a {
  text-decoration: none;
  color: black;
}

.discount {
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  font-size: 0.75rem;
  position: absolute;
  top: 10px;
  border-radius: 0px 3px 3px 0px;
  color: #582f0e;
  font-weight: 500;
}

.product-name {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.price {
  font-size: 1rem;
}

.price del {
  color: #999;
  margin-right: 0.4rem;
}
.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
}
.rating {
  color: var(--green);
  font-size: 1.2rem;
}

.pagination {
  position: absolute;
  bottom: 0;
  left: 50%;
  text-align: center;
  margin: 2rem 0;
}

.pagination button {
  border: none;
  background: none;
  margin: 0 5px;
  font-size: 1rem;
  cursor: pointer;
  color: #888;
}

.pagination .active {
  font-weight: bold;
  color: green;
  text-decoration: underline;
}
.product-container {
  display: flex;
  gap: 2rem;
  padding: 0px;
  margin: 0px;
}
.main-product-dec {
  border-bottom: 1px solid rgba(0, 0, 0, 0.17);
}
.apply-button {
  padding: 0.5rem 1rem;
  border: 1px solid #654321;
  background-color: white;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.apply-button:hover {
  background-color: #654321;
  color: white;
}
@media (max-width: 768px) {
  .products{
    grid-template-columns: repeat(1, 1fr);
  }
  .product-container {
    flex-direction: column;
  }
  .padding-bottoms {
    padding-bottom: 40px !important;
  }
  .pagination {
    left: 28%;
    bottom: -15px;
  }
  /* .main {
    padding-bottom: 76px;
  } */
  .banner {
    background-image: url("../images/product-page1.png");
    background-size: cover;
    background-position: center;
    padding-left: 1rem;
    height: 600px;
  }
  .container {
    flex-direction: column;
  }
  .sidebar,
  #filterForm {
    width: 100%;
  }
}
