/* Shop Layout */
.shop-layout {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 30px 0 50px;
  position: relative ;
}

/* Shop Sidebar */
.shop-sidebar {
  width: 27%;
  transition: none;
}

.filter-title {
  display: none;
}

.shop-overlay {
  display: none;
}

.filters-layout {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  position: sticky;
  top: 30px;
}

/* Shop Content */
.shop-content {
  width: 70%;
}

/* Shop Accordion */
.shop-sidebar-item {
  background: var(--white);
  border-radius: 4px;
  width: 100%;
  border: 1px solid var(--grey220);
}

/* Button */
.shop-sidebar-btn {
  width: 100%;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #fdfdfd;
  color: var(--black);
  cursor: pointer;
  outline: none;
  transition: color 0.3s ease;
  border-start-start-radius: 4px;
  border-start-end-radius: 4px;
}

.shop-sidebar-btn-active {
  color: #3f3f3f;
    border-bottom: 1px solid var(--grey220);
}

.shop-sidebar-btn span {
  text-align: start;
}

.shop-filter-icon-active {
  color: var(--primary);
}

.shop-sidebar-btn .icon {
  transition: transform 0.3s ease;
}

/* Accordion Content */
.shop-sidebar-content {
  overflow: hidden;
  background: var(--white);
  transition: max-height 0.4s ease;
  border: 2px solid var(--secondary);
  border-top: none;
  border-end-start-radius: 4px;
  border-end-end-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Icon */
.shop-filter-icon {
  font-size: 20px;
}

/* First filter */
.shop-cat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
}

/* Second Filter */
.price-slider-container {
  width: 100%;
  position: relative;
}

/* All Values */
.values {
  display: flex;
  justify-content: center;
  column-gap: 5px;
  margin: 10px 0 0;
  font-size: 14px;
}

.values span {
  color: var(--primary);
  white-space: nowrap;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 4px;
  margin-top: 15px;
  direction: ltr;
}

.progress {
  position: absolute;
  background-color: var(--primary);
  height: 100%;
  border-radius: 4px;
  z-index: 1;
}

.range-input {
  position: relative;
  width: 100%;
  direction: ltr;
}

.range-input input[type="range"] {
  position: absolute;
  top: -6px;
  height: 8px;
  width: 100%;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* Input Handles */
.range-input input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--primary);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  margin-top: -8px;
  position: relative;
  z-index: 3;
  transition: background-color 0.2s ease;
}

.range-input input[type="range"]::-moz-range-thumb {
  pointer-events: all;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--primary);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  appearance: none;
  transition: background-color 0.2s ease;
}

.range-input input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
  border: none;
  height: 8px;
}
.range-input input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
  height: 8px;
}

.range-input input[type="range"]:focus::-webkit-slider-thumb {
  background-color: var(--secondary);
}
.range-input input[type="range"]:focus {
  outline: none;
}

/* Shop Content */
.sort-layout {
  display: flex;
  justify-content: space-between;
  padding: 11px;
  background-color: #fdfdfd;
  border-radius: 4px;
  border: 1px solid var(--grey220);
}

.sort-layout select {
  outline: none;
  padding: 2px;
  border-radius: 2px;
  color: var(--primary);
  border: 1px solid var(--grey220);
}

/* Products */
.product-layout {
  margin: 20px 0 0px;
  display: grid;
  grid-template-columns: repeat(3, 31%);
  justify-content: space-between;
  row-gap: 30px;
}

/* product Item */
.product-layout .product-item {
  cursor: pointer;
  border-start-end-radius: 50%;
  border-start-start-radius: 50%;
  border-end-end-radius: 8px;
  border-end-start-radius: 8px;
  transition: all 0.5s ease;
}

.product-layout .product-item:hover {
  transform: scale(1.05);
}

.product-item .product-top {
  position: relative;
  height: 250px;
  width: 100%;
  padding: 10px;
  display: flex;
  align-items: end;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-start-end-radius: 50%;
  border-start-start-radius: 50%;
  border: 1px solid var(--grey220);
}

.product-item .bottom-product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--secondary);
  padding: 10px;
  border-end-end-radius: 8px;
  border-end-start-radius: 8px;
  border: 1px solid var(--grey220);
  border-top: unset;
}

.bottom-product .product-title {
  color: var(--primary);
}

.bottom-product .latin-title {
  color: gray;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 3px;
  text-align: justify;
}

.bottom-product .btn-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bottom-product .btn-price button {
  font-size: 12px;
  border: 2px solid var(--primary);
  border-radius: 2px;
  color: var(--white);
  background-color: var(--primary);
  padding: 3px 5px;
  height: fit-content;
  width: fit-content;
  transition: all 0.5s ease;
}

.bottom-product .btn-price div {
  display: flex;
  flex-direction: column;
  row-gap: 2px;
  align-items: flex-end;
}

.bottom-product .btn-price p:nth-child(1) {
  font-size: 12px;
  color: gray;
  text-decoration: line-through;
}

.bottom-product .btn-price p:nth-child(2) {
  font-size: 14px;
  color: var(--black);
  transition: all 0.5s ease;
}

/* Mobile Filter */
.filter-mobile-btn {
  position: fixed ;
  bottom: 20px;
  right: 20px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: none;
  background-color: var(--secondary);
  border: 2px solid var(--primary);
  box-shadow: 0px 0px 5px var(--black);
}

.filter-mobile-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Product Layout Responsive  */
@media (max-width: 1150px) {
  .product-layout {
    grid-template-columns: repeat(2, 48%);
  }
}

/* Mobile filter list does not Shows < 992px */
@media (min-width: 992px) {
  .mobile-filter-list {
    display: none;
  }
}

/* Responsive */
@media (max-width: 992px) {
  /* Hide sidbar */
  .shop-sidebar {
    display: none;
  }

  /* Overlay Show on filter Mobile */
  .shop-overlay {
    top: 0;
    position: fixed;
    display: none;
    transition: opacity 0.5s ease-out;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.7);
    width: 100vw;
    height: 100vh;
    z-index: 5;
  }

  .shop-overlay.open {
    display: block;
    opacity: 1;
  }

  /* Remove Padding Container */
  .unset-padding {
    padding: 0 !important;
  }

  .filter-title {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    font-weight: bold;
    color: var(--primary);
  }

  /* Mobile Filter List */
  .mobile-filter-list {
    position: fixed ;
    max-height: 80vh;
    height: fit-content !important;
    background-color: var(--white);
    width: 100%;
    z-index: 10;
    border-top: 1px solid var(--primary);
    padding: 20px;
    overflow-y: scroll;
    bottom: 0;
    transform: translateY(100%) ;
    transition: transform 0.5s ease;
  }

  .mobile-filter-list.open {
    transform: translateY(0);
    height: fit-content !important;
  }

  .filter-mobile-btn {
    display: flex;
    column-gap: 5px;
    align-items: center;
    justify-content: center;
  }

  .shop-content {
    width: 100%;
    padding: 0 20px;
  }
}

/* Product Layout */
@media (max-width: 600px) {
  .product-layout {
    grid-template-columns: repeat(1, 100%);
  }
}

/* Order Table Pagination */
.order-table-pagination {
  display: flex;
  align-items: center;
  margin: 0 auto;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.order-table-pagination span {
  cursor: pointer;
  font-size: 14px;
  padding: 0 3px;
  transition: all 0.5s ease;
}

.order-table-pagination span:hover {
  color: var(--primary);
}

.order-table-pagination span.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}