/* 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: var(--secondary);
  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: var(--primary);
    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: var(--secondary);
  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;
  overflow: hidden;
  border-start-end-radius: 50%;
  border-start-start-radius: 50%;
  border: 1px solid var(--grey220);
}

.product-item .product-top img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-start-end-radius: 50%;
  border-start-start-radius: 50%;
}

.shop-page-header {
  margin-bottom: 20px;
}

.shop-page-title {
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: var(--black);
}

.shop-page-intro {
  margin: 0;
  line-height: 1.9;
  color: var(--grey120);
}

.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;
}

/* Empty shop state */
.shop-empty-state {
  margin-top: 20px;
}

.shop-empty-card {
  max-width: 560px;
  margin: 0 auto 36px;
  padding: 48px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid #ebe3dd;
  border-radius: 22px;
  box-shadow: 0 15px 45px rgba(67, 44, 29, 0.06);
}

.shop-empty-card > span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: #9b6748;
  background: #f3e8e0;
  border-radius: 50%;
}

.shop-empty-card > span i {
  font-size: 36px;
}

.shop-empty-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--primary);
}

.shop-empty-card p {
  margin: 0 0 24px;
  color: #857a73;
  font-size: 13px;
  line-height: 2;
}

.shop-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.shop-empty-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  color: #fff;
  background: #8f5c3e;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.3s ease;
}

.shop-empty-actions a:hover {
  background: #7a4f35;
}

.shop-empty-actions .shop-empty-secondary {
  color: #8f5c3e;
  background: #f3e8e0;
}

.shop-empty-actions .shop-empty-secondary:hover {
  background: #e8d9cd;
}

.shop-suggested h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--primary);
}

.shop-suggested h3 i {
  color: #9b6748;
  font-size: 22px;
}

.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) {
  .shop-content {
    padding: 0 12px;
  }

  .product-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: initial;
    gap: 12px 8px;
  }

  .product-layout .product-item:hover {
    transform: none;
  }

  .product-item .product-top {
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-start-start-radius: 50%;
    border-start-end-radius: 50%;
    border-end-start-radius: 0;
    border-end-end-radius: 0;
  }

  .product-item .product-top img {
    border-start-start-radius: 50%;
    border-start-end-radius: 50%;
  }

  .product-item .bottom-product {
    min-width: 0;
    gap: 6px;
    padding: 8px;
    border-radius: 0 0 10px 10px;
  }

  .bottom-product .product-title {
    min-height: 39px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .bottom-product .latin-title {
    display: block;
    overflow: hidden;
    font-size: 9px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .bottom-product .btn-price {
    justify-content: flex-start;
    margin-bottom: 2px;
  }

  .bottom-product .btn-price button {
    display: none;
  }

  .bottom-product .btn-price div {
    align-items: flex-start;
  }

  .bottom-product .btn-price p:nth-child(2) {
    font-size: 11px;
    font-weight: bold;
  }

  .shop-empty-card {
    margin-bottom: 24px;
    padding: 36px 18px;
    border-radius: 16px;
  }

  .shop-empty-card h2 {
    font-size: 17px;
  }

  .shop-suggested h3 {
    font-size: 16px;
    margin-bottom: 14px;
  }
}

/* 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);
}
