@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');


.products-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8f9fb, #ffffff);
}

/* LAYOUT */

.products-layout {
  display: grid;
  gap: 50px;
  grid-template-columns: 20% 77%;
  width: 90%;
  margin: 0 auto;
}

/* FILTER SIDEBAR */

.filters-sidebar {
  border-radius: 7px;
  position: sticky;
  top: 20px;
  transition: 0.3s;
  padding: 20px;
  background: #181510;
}

.inner-filters-sidebar {
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
  overflow-y: auto;
  /* height: 100%;
    overscroll-behavior: contain; */
  /* padding-bottom: 330px; */
}

.inner-filters-sidebar:hover {
  -ms-overflow-style: auto;
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 rgba(0, 0, 0, 0);
}

.reset-all-filter-btn,
.filter-menus {
  padding-right: 0;
}

.filters-title {
  font-size: 20px;
  font-weight: bold;
  line-height: 24px;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.filter-group {
  margin-bottom: 22px;
}

.filter-group label {
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.filter-select {
  width: 100%;
  padding: 9px 14px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: 0.25s;
}

.filter-select:hover {
  border-color: #000;
}

.load-more-wrapper {
  text-align: center;
  margin-top: 40px;
}

.filters-title {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: 0.5px;
  color: #fff;
  font-family: 'mundial-light', sans-serif;
}

.filter-group {
  margin-bottom: 0;
}

.filter-group label {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 9px;
  display: block;
  color: #fff;
}

.filter-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: white;
  transition: 0.25s;
}

.filter-select:hover {
  border-color: #000;
}

.load-more-wrapper {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  padding: 20px 40px;
  border: none;
  background: black;
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  width: 280px;
  font-family: 'mundial-light', sans-serif;
}

.load-more-btn:hover {
  background: #222;
  transform: translateY(-2px);
}

.filter-select:focus {
  border-color: black;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* PRODUCTS GRID */

a.main-product-link {
  text-decoration: none !important;
  color: inherit !important;
}

.products-grid {
  /* flex: 1; */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* PRODUCT CARD */

.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05), 0 20px 50px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.06);
}

/* IMAGE */

.product-image {
  height: 240px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
}

.product-image img {
  width: 100%;
  transition: transform 1.2s ease;
}

.products-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 0px;
}

.reset-filter-btn {
  color: #fff8ee;
  width: 100%;
  padding: 7px 6px;
  border: none;
  background: transparent;
  border-radius: 5px;
  margin-bottom: 0;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  border: 1px solid;
  line-height: 1;
}

.reset-filter-btn:hover {
  background: #fff8ee;
  color: #000;
  transition: 0.3s;
}

.load-more-wrapper {
  text-align: center;
  margin-top: 60px;
}

.product-card:hover img {
  transform: scale(1.12);
}

/* INFO */

.product-info-main {
  padding: 24px;
  text-align: center;
}

.product-info-main h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #d7ac7b;
}

/* BUTTON */

.view-btn {
  display: inline-block;
  padding: 12px 22px;
  background: transparent;
  color: #000;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
  border: 1px solid;
}

.view-btn:hover {
  background: #222;
  transform: translateY(-2px);
  color: #fff;
}

.products-area .product-info-main .view-btn {
  width: 100%;
  padding: 14px 22px;
}

/* FILTER ANIMATION */

.product-show {
  animation: fadeIn 0.4s ease;
}

.product-hide {
  animation: fadeOut 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* RESPONSIVE */

.filter-mob-btn {
  margin-bottom: 20px;
  display: none;
}

.filters-sidebar-menu-close-btn {
  display: none;
}

.filter-header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.filter-checkbox input[type='checkbox'] {
  accent-color: #fff8ee;
}

.filter-checkbox input.filter-checkbox-input {
  margin-right: 3px;
}

.inner-filters-sidebar .filter-group:last-child {
  border: none;
  padding-bottom: 5px;
}

.products-area .product-info-main .view-btn {
  width: 100%;
  padding: 9px 22px 10px;
}

.filter-menus .filter-header .arrow::after {
  content: "+";
}

.filter-menus .active .filter-header .arrow::after {
  content: "-";
}

.filter-menus .filter-group label:last-child {
  margin-bottom: 0;
}

/* RESPONSIVE */

@media only screen and (max-width: 1800px) {
  .products-layout {
    gap: 44px;
  }
}

@media only screen and (max-width: 1679px) {
  .products-layout {
    gap: 37px;
    justify-content: space-between;
  }
}

@media only screen and (max-width: 1399px) {
  .product-image {
    height: 230px;
  }
}

@media only screen and (max-width: 1365px) {
  .product-image {
    height: 210px;
  }
}

@media only screen and (max-width: 1199px) {
  .products-grid {
    gap: 25px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-filters-sidebar {
    padding-bottom: 220px;
  }

  .products-section {
    padding: 60px 0;
  }

  .products-layout {
    display: grid;
    gap: 50px;
    grid-template-columns: 26% 69%;
    width: 90%;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 991px) {
  .load-more-btn {
    padding: 14px 30px;
    font-size: 14px;
    width: 200px;
  }

  .load-more-wrapper {
    margin-top: 60px;
  }
}

@media only screen and (max-width: 919px) {
  .filter-mob-btn button {
    font-size: 16px;
    line-height: 19px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    justify-content: end;
    margin: 0 0 0 auto;
    border: 1px solid #000;
    padding: 0 14px;
    height: 35px;
    border-radius: 6px;
    background-color: #000;
    color: #fff;
  }

  .filter-mob-icon svg {
    font-size: 20px;
  }

  .filter-mob-btn {
    margin-bottom: 20px;
    display: block;
  }

  .filters-sidebar {
    padding-left: 28px;
    padding-top: 25px;
    border-radius: 0;
    position: relative;
    top: 0;
  }

  .filters-sidebar-wapper {
    position: fixed;
    top: 0;
    left: -1000px;
    background-color: #fff;
    z-index: 9;
    width: 300px;
    transition: 0.3s;
  }

  .filters-sidebar-overlay {
    position: fixed;
    width: 0;
    height: 0;
    background-color: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
  }

  .filters-sidebar-wapper.active .filters-sidebar-overlay {
    width: 100%;
    height: 100%;
    opacity: 1;
  }

  .inner-filters-sidebar {
    padding-bottom: 40px;
    padding-top: 40px;
  }

  .inner-filters-sidebar .filter-menus {
    -ms-overflow-style: none;
    scrollbar-width: none;
    scrollbar-color: #c1c1c1 rgba(0, 0, 0, 0);
    overflow-y: auto;
    height: 100vh;
    overscroll-behavior: contain;
    padding-bottom: 90px;
  }

  .inner-filters-sidebar {
    overflow-y: revert;
  }

  .filters-sidebar-menu-close-btn {
    display: block;
  }

  .filters-sidebar-menu-close-btn {
    font-size: 18px;
    position: absolute;
    right: 6px;
    top: 10px;
    padding: 4px;
  }

  .filters-sidebar-menu-close-btn button {
    font-size: 22px;
    background-color: transparent;
    border: 1px solid #fff;
    width: 24px;
    height: 24px;
    padding: 0;
  }

  .filters-sidebar-wapper.active {
    left: 0;
    transition: 0.3s;
  }

  .products-layout {
    grid-template-columns: 100%;
  }

  .filters-sidebar-menu-close-btn button svg {
    fill: #fff !important;
    width: 18px !important;
    height: 18px !important;
  }
}

@media only screen and (max-width: 767px) {
  .products-section {
    padding: 30px 0;
  }

  .load-more-btn {
    padding: 14px 30px;
    width: 160px;
  }

  .product-info-main h3 {
    font-size: 14px;
  }

  .product-price {
    font-size: 14px;
  }

  .products-grid {
    gap: 20px 16px;
  }

  .view-btn {
    padding: 8px 20px 10px;
    font-size: 13px;
  }

  .product-image {
    height: 160px;
  }

  .load-more-wrapper {
    margin-top: 30px;
  }
}

@media only screen and (max-width: 575px) {
  .products-area {
    padding: 0 12px;
  }

  .products-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .products-layout {
    width: 100%;
  }

  .product-image {
    height: auto;
  }

  .product-image img {
    height: auto;
  }
}