:root {
  --deep-blue: #012C4A;
  --soft-green: #21b8ab;
  --light-gray: #f6f8fa;
  --white: #fff;
  --text-dark: #21b8ab;
  --text-light: #2aada2e7;
  --shadow: 0 2px 10px rgba(1, 44, 74, 0.07);
  --transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
  --font-main: 'Poppins', Arial, sans-serif;
}


body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  /* background: #f8f8f8; */
}

.container {
  display: flex;
  padding: 20px;
}

.sidebar {
  width: 300px;
  height: 80vh;
  overflow-y: auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-right: 20px;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  font-size: 25px;
  text-align: center;
  margin-bottom: 15px;
  color: var(--deep-blue);
}

.sidebar::-webkit-scrollbar {
  width: 8px;

}

.sidebar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.scrollable-section {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 10px;
}

.scrollable-section::-webkit-scrollbar {
  width: 6px;
}

.scrollable-section::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.main-content {
  flex: 1;
}

.main-content h2 {
  color: var(--deep-blue);
}

.filter-group {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fafafa;
}

.filter-group h4 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #21b8ab;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
}

.filter-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

input:checked~.checkmark {
  background-color: black;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  padding: 20px 0;
  gap: 20px;

}



.product-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.wmx-feature-product-card a {
  text-decoration: none;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  text-decoration: none;
  max-width: 95%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;

}

.product-card h3 {
  margin: 0 auto;
  font-size: 20px;
  text-align: center;
  color: var(--deep-blue);
  cursor: pointer;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  width: 150px;
}

.product-card h3:hover {
  color: #21b8ab;
}


.product-card p {
  margin-top: 2px;
  font-size: 12px;
  margin: 0 auto;
  text-align: center;
  color: #333;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  width: 150px;
  cursor: pointer;
}

.product-card h5 {
    margin: 0 auto;
  width: 150px;
  cursor: pointer;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  text-align: center;
  color: #333;
  margin-top: 2px !important;

}
.addto-cart-btn {
  font-size: 18px;
  background-color: #009688;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.addto-cart-btn:hover {
  background-color: #108375;
}
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination button {
  padding: 8px 12px;
  border: none;
  background-color: var(--soft-green);
  color: white;
  border-radius: 5px;
  cursor: pointer;
  min-width: 36px;
  transition: background-color 0.3s;
}

.pagination button.active {
  background-color: var(--deep-blue);
}

.pagination button:hover {
  background-color: #00796b;
}

.pagination-arrow {
  font-weight: bold;
  font-size: 16px;
}

@media (max-width: 600px) {
  .pagination {
    gap: 4px;
  }

  .pagination button {
    padding: 6px 10px;
    font-size: 14px;
  }

  .pagination-arrow {
    font-size: 18px;
  }
}

.search-box {
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

input:focus {
  color: #009688 !important;
}


.mobile-header,
.overlay,
.filter-toggle {
  display: none;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }

  .product-card h3 {
    font-size: 18px;
  }

  .product-card p {
    font-size: 11px;
    width: 160px;
  }

  .product-card h5 {
    font-size: 13px;
  }

  .addto-cart-btn {
    font-size: 16px;
    padding: 10px;
  }

  .filter-group h4 {
    font-size: 18px;
  }

  .filter-group label {
    font-size: 14px;
  }
}

@media (max-width: 480px) {


  .container {
    flex-direction: column;
    padding: 10px;
  }

 


  /* filter icon button */
  .filter-toggle {
    display: flex;
  
    justify-content: center !important;
    background: none;
    border: none;
    font-size: 24px;
    margin: 10px auto;
    cursor: pointer;
    gap:10px;
  }
  .fa-filter{
    margin-top: 6px !important;
  }

  .sidebar {
    width: 50% !important;
    position: fixed;
    inset: 120px 0 0 auto;
    width: 100%;
    height: 70vh;
    background: #fff;
    margin-right: 0 !important;
    z-index: 999;
    transform: translateX(120%);
    transition: all .5s ease;
    border-radius:10px 0 0 10px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, .15); */
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }


  .mobile-search{
    display: block;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* internal scrolling for the filters */
  .sidebar .filter-group {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 15px 15px;
  }

  /* hide original “Filter Products” title on phone */
  .sidebar h3 {
    display: none;
  }

  /* ---- BACKDROP / OVERLAY ---- */
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 998;
    display: none;
  }

  .overlay.show {
    display: block;
  }
  .main-content{
    text-align: center;
  }

  .product-grid {
    

    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .product-card h3 {
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin: auto;
    /* width: 100px; */
    /* line-height: 10px; */
    font-size: 16px;
  }

  .product-card p {
    display: none;
  }


  .addto-cart-btn {
    font-size: 14px;
    padding: 8px;
  }
  .pagination {
  display: flex;
  justify-content: center;
  

  margin-top: 30px;
  /* gap: 1px !important; */
}


}

