#archive-header {
  width: 93.5%;
  margin: 48px auto 30px auto;
  background: var(--bg-white);
  border-radius: 20px;
  padding: 30px 40px;
  box-shadow: var(--shadow-card)
}
#archive-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-gray)
}
#archive-breadcrumb a {
  color: var(--text-gray);
  transition: color .3s ease
}
#archive-breadcrumb a:hover {
  color: var(--primary-color)
}
#archive-breadcrumb span {
  color: var(--primary-color);
  font-weight: 600
}
#archive-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-gray-light)
}
#archive-title {
  font-family: Ray,Vazirmatn;
  font-weight: 950;
  font-size: 28px;
  line-height: 44px;
  color: var(--text-dark);
  margin: 0
}
#archive-count {
  font-size: 15px;
  line-height: 23px;
  color: var(--text-gray-medium);
  font-weight: 600
}
#archive-top-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap
}
.control-group {
  display: flex;
  align-items: center;
  gap: 10px
}
.control-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-gray-dark);
  font-weight: 600;
  cursor: pointer
}
.control-group input[type=checkbox] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-peach);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--primary-color)
}
.custom-dropdown {
  position: relative;
  min-width: 220px;
  font-family: inherit
}
.dropdown-selected {
  padding: 12px 20px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-peach);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-gray-dark);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.05)
}
.dropdown-selected:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(254,128,71,.15)
}
.dropdown-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
  border: 1px solid var(--border-gray-light);
  overflow: hidden;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .3s cubic-bezier(.4,0,.2,1)
}
.custom-dropdown.active .dropdown-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}
.custom-dropdown.active .dropdown-selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(254,128,71,.1)
}
.custom-dropdown .dropdown-selected svg {
  transform: rotate(90deg);
  transition: transform .3s ease
}
.custom-dropdown.active .dropdown-selected svg {
  transform: rotate(0)
}
.dropdown-option {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-gray);
  transition: all .2s ease;
  border-bottom: 1px solid rgba(0,0,0,.03)
}
.dropdown-option:last-child {
  border-bottom: none
}
.dropdown-option:hover {
  background-color: var(--bg-card-light);
  color: var(--primary-color);
  padding-right: 25px
}
.dropdown-option.selected {
  background: var(--gradient-main);
  color: var(--text-white)
}
#close-filters-btn {
  display: none;
  background: 0 0;
  border: none;
  cursor: pointer;
  color: var(--text-gray);
  padding: 5px;
  border-radius: 50%;
  transition: all .2s ease
}
#close-filters-btn:hover {
  background-color: var(--bg-card-light);
  color: var(--secondary-color)
}
#filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 10px 16px;
  background: var(--gradient-main);
  color: var(--text-white);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  transition: all .3s ease;
  font-family: "Yekan Bakh",Vazirmatn
}
#filter-toggle-btn svg {
  width: 18px;
  height: 18px
}
#filter-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(254,128,71,.3)
}
#archive-main-layout {
  display: flex;
  width: 93.5%;
  margin: 0 auto 60px auto;
  gap: 30px
}
#filters-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--bg-white);
  border-radius: 20px;
  padding: 25px;
  box-shadow: var(--shadow-card);
  height: fit-content;
  align-self: flex-start
}
#filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-gray-light)
}
.filters-header-right {
  display: flex;
  align-items: center;
  gap: 10px
}
#filters-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0
}
#clear-filters {
  font-size: 13px;
  color: var(--primary-color);
  background: rgba(254,128,71,.1);
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all .3s ease;
  padding: 8px 12px;
  border-radius: 8px
}
#clear-filters:hover {
  background: var(--primary-color);
  color: #fff;
  text-decoration: none
}
.filter-group {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-gray-light);
  padding-bottom: 24px
}
.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none
}
.filter-group-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  user-select: none
}
.filter-group-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1
}
.filter-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%
}
.filter-group-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark)
}
.filter-group-summary {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 500;
  height: 0;
  opacity: 0;
  transition: all .3s ease;
  white-space: normal;
  line-height: 1.4;
  overflow: hidden
}
.filter-group-summary.has-value {
  height: auto;
  min-height: 18px;
  opacity: 1;
  margin-top: 4px
}
.filter-group.active .filter-group-summary {
  height: 0;
  opacity: 0;
  margin-top: 0
}
.accordion-icon {
  transition: transform .3s ease;
  color: var(--text-gray);
  flex-shrink: 0;
  transform: rotate(90deg)
}
.filter-group.active .accordion-icon {
  transform: rotate(0)
}
.filter-group-content {
  max-height: 0;
  overflow: hidden;
  display: block;
  transition: max-height .3s cubic-bezier(0,1,0,1);
  background: var(--bg-white)
}
.filter-group.active .filter-group-content {
  overflow: visible
}
.scrollable-options {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  display: block
}
.scrollable-options::-webkit-scrollbar {
  width: 4px
}
.scrollable-options::-webkit-scrollbar-track {
  background: #f1f1f1
}
.scrollable-options::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px
}
.scrollable-options::-webkit-scrollbar-thumb:hover {
  background: #aaa
}
.filter-options {
  display: flex!important;
  flex-direction: column!important;
  justify-content: flex-start!important;
  align-items: stretch!important;
  gap: 10px;
  text-align: right;
  width: 100%
}
.internal-search-box {
  width: 100%;
  padding: 10px 0 10px 0;
  margin-bottom: 0;
  background: var(--bg-white);
  z-index: 5;
  border-bottom: 1px solid var(--border-gray-light);
  height: auto!important;
  position: relative!important;
  display: block!important
}
.internal-search-box input {
  width: 100%;
  padding: 8px 40px 8px 12px;
  border: 1px solid var(--border-gray-light);
  border-radius: 8px;
  font-size: 13px;
  background: var(--bg-white);
  transition: border-color .2s ease;
  direction: rtl;
  height: 38px;
  display: block
}
.internal-search-box svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%)!important;
  color: var(--text-gray-light);
  pointer-events: none;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1
}
.filter-option {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  cursor: pointer;
  transition: all .2s ease;
  padding: 8px 10px;
  border-radius: 12px;
  direction: rtl;
  text-align: right;
  width: 100%
}
.filter-option:hover {
  background: var(--bg-light-orange)
}
.filter-option label {
  order: 1;
  font-size: 14px;
  color: var(--text-gray);
  cursor: pointer;
  flex: 1;
  font-weight: 500;
  transition: color .2s ease
}
.filter-option:hover label {
  color: var(--text-dark)
}
.filter-option input[type=checkbox] {
  order: 2;
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-gray-light);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  background-color: var(--bg-white);
  flex-shrink: 0
}
.filter-option input[type=checkbox]::after {
  content: "";
  position: absolute;
  top: 48%;
  left: 50%;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: translate(-50%,-60%) rotate(45deg) scale(0);
  transition: transform .2s cubic-bezier(.4,0,.2,1)
}
.filter-option input[type=checkbox]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(254,128,71,.25)
}
.filter-option input[type=checkbox]:checked::after {
  transform: translate(-50%,-60%) rotate(45deg) scale(1)
}
.filter-option:hover input[type=checkbox] {
  border-color: var(--primary-color)
}
.filter-option input[type=checkbox]:checked + label {
  color: var(--text-dark);
  font-weight: 700
}
.filter-option:hover {
  background: var(--bg-card-light)
}
.color-option {
  display: flex;
  align-items: center;
  gap: 8px
}
.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-gray-light);
  transition: all .2s ease
}
.color-option:hover .color-swatch {
  border-color: var(--primary-color);
  transform: scale(1.1)
}
.filter-search-wrapper {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-gray-light)
}
.filter-search-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  padding: 12px 40px 12px 12px;
  border: 2px solid var(--border-gray-light);
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  font-family: inherit;
  outline: 0;
  transition: all .3s ease;
  background: var(--bg-white)
}
.filter-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(254,128,71,.1)
}
.internal-filter-search svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray-light);
  pointer-events: none;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1
}
.filter-search-icon {
  position: absolute;
  right: 12px;
  top: 15px;
  color: var(--text-gray);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1
}
.filter-search-icon svg {
  display: block
}
.filter-search-input:focus ~ .filter-search-icon {
  color: var(--primary-color)
}
.price-inputs-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  margin-top: 10px
}
.price-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-white);
  border: 1px solid var(--border-gray-light);
  border-radius: 8px;
  padding: 6px 10px
}
.price-input-group label {
  font-size: 12px;
  color: var(--text-gray)
}
.price-input-group input {
  flex: 1;
  border: none;
  background: 0 0;
  outline: 0;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
  width: 100%
}
.price-input-group span {
  font-size: 10px;
  color: var(--text-gray)
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
  width: 100%
}
.toggle-label {
  font-size: 14px;
  color: var(--text-gray);
  cursor: pointer
}
.toggle-wrapper-label {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  margin: 0
}
.toggle-input {
  opacity: 0;
  width: 0;
  height: 0
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .4s;
  border-radius: 50%
}
.toggle-input:checked + .toggle-slider {
  background-color: var(--primary-color)
}
.toggle-input:checked + .toggle-slider:before {
  transform: translateX(18px)
}
.price-range-container {
  padding: 12px 0
}
.dual-slider-wrapper {
  position: relative;
  height: 24px;
  margin-bottom: 0;
  direction: ltr;
  margin-top: 5px
}
.slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  background: #eaeaea;
  border-radius: 4px;
  transform: translateY(-50%)
}
.slider-track-active {
  position: absolute;
  top: 50%;
  height: 6px;
  background: var(--gradient-main);
  border-radius: 4px;
  transform: translateY(-50%);
  transition: all .1s ease;
  box-shadow: 0 0 10px rgba(254,128,71,.4)
}
.range-slider {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  background: 0 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  outline: 0;
  margin: 0;
  padding: 0;
  z-index: 10
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  transition: all .2s cubic-bezier(.175,.885,.32,1.275);
  margin-top: 0
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(254,128,71,.3);
  background: var(--primary-color);
  border-color: #fff;
  border-width: 3px
}
.range-slider::-webkit-slider-thumb:active {
  transform: scale(1.05);
  background: var(--primary-color);
  border-color: #fff
}
.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-orange);
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  transition: all .2s ease
}
.range-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(254,128,71,.4)
}
.price-range-values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-gray-dark);
  font-weight: 600;
  direction: rtl
}
.price-range-values .max-value,
.price-range-values .min-value {
  color: var(--color-orange)
}
#archive-products {
  flex: 1
}
#products-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-bottom: 50px
}
.archive-product-card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-white);
  border: 1px solid rgba(254,128,71,.21);
  box-shadow: var(--shadow-card);
  border-radius: 20px;
  padding: 20px;
  transition: all .3s cubic-bezier(.25,.8,.25,1)
}
.archive-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,.08);
  border-color: var(--primary-color)
}
.archive-product-card > * {
  width: 100%
}
.archive-product-card .product-image-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 7px;
  width: 100%
}
.archive-product-card .product-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center
}
.archive-product-card .product-image img {
  width: 120px;
  height: 144px;
  object-fit: contain
}
#archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 30px 0
}
.pagination-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: var(--bg-white);
  border: 2px solid var(--border-peach);
  border-radius: 12px;
  cursor: pointer;
  transition: all .3s ease;
  color: var(--text-gray)
}
.pagination-btn svg {
  width: 20px;
  height: 20px
}
.pagination-btn:hover:not(:disabled) {
  background: var(--gradient-main);
  border-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange)
}
.pagination-btn:disabled {
  opacity: .3;
  cursor: not-allowed
}
.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 10px
}
.page-number {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  background: var(--bg-white);
  border: 2px solid var(--border-peach);
  border-radius: 12px;
  font-size: 15px;
  line-height: 23px;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  transition: all .3s ease
}
.page-number:hover {
  background: var(--bg-card-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px)
}
.page-number.active {
  background: var(--gradient-main);
  border-color: var(--primary-color);
  color: var(--text-white);
  box-shadow: var(--shadow-orange)
}
.pagination-dots {
  font-size: 18px;
  color: var(--text-gray);
  padding: 0 5px
}
#sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,.5);
  z-index: 999;
  opacity: 0;
  transition: opacity .3s ease
}
@media (max-width:1024px) {
  #products-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 18px
  }
  #archive-title {
    font-size: 24px;
    line-height: 38px
  }
  #filters-sidebar {
    width: 240px;
    min-width: 240px
  }
}
@media (max-width:768px) {
  #archive-header {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px
  }
  #archive-breadcrumb {
    justify-content: center;
    margin-bottom: 10px
  }
  #archive-title-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-gray-light);
    padding-bottom: 15px;
    width: 100%
  }
  #archive-title {
    font-size: 22px
  }
  #archive-top-controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%
  }
  .control-group {
    justify-content: center;
    width: 100%
  }
  .custom-dropdown {
    width: 100%
  }
  #filter-toggle-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px
  }
  #close-filters-btn {
    display: flex;
    align-items: center;
    justify-content: center
  }
  #archive-main-layout {
    flex-direction: column
  }
  #filters-sidebar {
    display: none;
    width: 100%;
    max-width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 1000;
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform .3s ease
  }
  #filters-sidebar.active {
    display: block;
    transform: translateX(0)
  }
  #sidebar-backdrop.active {
    display: block;
    opacity: 1
  }
  #filter-toggle-btn {
    display: flex;
    margin-right: auto
  }
  #products-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 15px
  }
  #archive-top-controls {
    gap: 15px
  }
  .control-group select {
    min-width: 150px
  }
  #archive-title {
    font-size: 22px;
    line-height: 34px
  }
  #archive-count {
    font-size: 13px
  }
  .archive-product-card {
    padding: 16px
  }
}
@media (max-width:480px) {
  #archive-header {
    width: 90%;
    padding: 20px;
    margin: 30px auto
  }
  #archive-title-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px
  }
  #archive-title {
    font-size: 20px;
    line-height: 32px
  }
  #archive-top-controls {
    flex-direction: column;
    width: 100%;
    gap: 12px
  }
  .control-group {
    width: 100%
  }
  .control-group select {
    width: 100%;
    min-width: auto
  }
  #filter-toggle-btn {
    width: 100%;
    justify-content: center
  }
  #archive-products {
    width: 100%
  }
  #archive-main-layout {
    width: 90%
  }
  #products-grid {
    grid-template-columns: 1fr;
    gap: 15px
  }
  .archive-product-card {
    padding: 15px
  }
  .archive-product-card .product-image img {
    width: 100px;
    height: 120px
  }
  #archive-pagination {
    flex-wrap: wrap;
    gap: 10px
  }
  .page-number,
  .pagination-btn {
    width: 40px;
    height: 40px;
    min-width: 40px
  }
  .pagination-numbers {
    gap: 8px
  }
}
@media (max-width:375px) {
  #archive-header {
    padding: 15px
  }
  #archive-title {
    font-size: 18px;
    line-height: 28px
  }
  .archive-product-card .product-image img {
    width: 90px;
    height: 110px
  }
  .product-title {
    font-size: 14px;
    line-height: 22px
  }
  .product-des {
    font-size: 12px;
    line-height: 18px
  }
  .regular-price .price {
    font-size: 18px
  }
}