
/* Removed: #clearFiltersBtn { all: unset; } */
#clearFiltersBtn {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  appearance: none;
  color: #c5161c;
}

/* -----------------------------
   Base scope
------------------------------ */
.tamland-wc-archive {
  direction: rtl;
  background: #f8f8f8;
  color: #202021;
  font-family: "YekanBakhFanum", Sans-serif;
  min-height: 100vh;
  margin: 0;
}

.tamland-wc-archive *,
.tamland-wc-archive *::before,
.tamland-wc-archive *::after {
  box-sizing: border-box;
  font-family: "YekanBakhFanum", Sans-serif !important;
}

.tamland-wc-archive a {
  text-decoration: none;
  color: inherit;
}

.tamland-wc-archive button,
.tamland-wc-archive input {
  font-family: inherit;
}

/* -----------------------------
   Layout container
------------------------------ */
.tamland-wc-archive__container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 120px;
  padding-right: 120px;
}

@media (max-width: 1200px) {
  .tamland-wc-archive__container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 768px) {
  .tamland-wc-archive__container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* -----------------------------
   Toast
------------------------------ */
.tamland-wc-archive__toast-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(520px, 92vw);
}

.tamland-wc-archive__toast-wrap--hidden {
  display: none;
}

.tamland-wc-archive__toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.tamland-wc-archive__toast--success {
  border-color: rgba(34, 197, 94, 0.25);
}

.tamland-wc-archive__toast--error {
  border-color: rgba(239, 68, 68, 0.25);
}

.tamland-wc-archive__toast-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tamland-wc-archive__toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.tamland-wc-archive__toast--success .tamland-wc-archive__toast-dot {
  background: #22c55e;
}

.tamland-wc-archive__toast--error .tamland-wc-archive__toast-dot {
  background: #ef4444;
}

.tamland-wc-archive__toast-msg {
  font-weight: 700;
  font-size: 14px;
  color: #202021;
}

.tamland-wc-archive__toast-close {
  font-weight: 800;
  color: #57595b;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 8px;
}

.tamland-wc-archive__toast-close:hover {
  color: #202021;
}

/* -----------------------------
   Main
------------------------------ */
.tamland-wc-archive__main {
  padding-top: 40px;
  padding-bottom: 40px;
}

.tamland-wc-archive__stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tamland-wc-archive__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tamland-wc-archive__title {
  font-size: 30px;
  font-weight: 900;
  color: #202021;
  margin: 0;
}

.tamland-wc-archive__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tamland-wc-archive__breadcrumb-link {
  font-size: 14px;
  color: #57595b;
  font-weight: 600;
  transition: color 200ms ease;
}

.tamland-wc-archive__breadcrumb-link:hover {
  color: #c5161c;
}

.tamland-wc-archive__breadcrumb-sep {
  color: #d5d5d6;
}

.tamland-wc-archive__breadcrumb-current {
  font-size: 14px;
  color: #202021;
  font-weight: 600;
}

/* -----------------------------
   Category cards
------------------------------ */
.tamland-wc-archive__categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 1024px) {
  .tamland-wc-archive__categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .tamland-wc-archive__categories {
    grid-template-columns: 1fr;
  }
  
  #productGrid {
          grid-template-columns: 1fr 1fr !important;
          gap: 4px;

  }
    #productGrid {
font-size: 80% !important;
  }
  .tamland-wc-archive__product {
      padding: 8px !important;
  }
  .tamland-wc-archive__product-img {
      border-radius: 4px !important;
  }
}

.tamland-wc-archive__category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  border-radius: 16px;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 200ms ease;
  cursor: pointer;
  border: 2px solid #e5e5e5;
  background: #ffffff;
  color: #202021;
}

.tamland-wc-archive__category-card:hover {
  border-color: #c5161c;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.tamland-wc-archive__category-card:active {
  transform: scale(0.98);
}

.tamland-wc-archive__category-card--selected {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #c5161c 0%, #a01318 100%);
  box-shadow: 0 8px 24px rgba(197, 22, 28, 0.35);
}

.tamland-wc-archive__category-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.tamland-wc-archive__category-card--selected .tamland-wc-archive__category-overlay {
  display: block;
}

.tamland-wc-archive__category-icon {
  position: relative;
  z-index: 2;
  padding: 12px;
  border-radius: 12px;
  background: #f8f8f8;
  color: #c5161c;
}

.tamland-wc-archive__category-card--selected .tamland-wc-archive__category-icon {
  color: #ffffff;
}

.tamland-wc-archive__category-icon-inner {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.tamland-wc-archive__category-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tamland-wc-archive__category-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
}

.tamland-wc-archive__category-subtitle {
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  font-weight: 600;
  color: #57595b;
}

.tamland-wc-archive__category-card--selected .tamland-wc-archive__category-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.tamland-wc-archive__category-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 3px;
  background: #ffffff;
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  transform: translateX(-50%);
  display: none;
}

.tamland-wc-archive__category-card--selected .tamland-wc-archive__category-indicator {
  display: block;
}

/* -----------------------------
   Content split
------------------------------ */
.tamland-wc-archive__content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .tamland-wc-archive__content {
    flex-direction: column;
  }
}

/* Sidebar */
.tamland-wc-archive__sidebar {
  width: 280px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .tamland-wc-archive__sidebar {
    width: 100%;
    position: static;
  }
}

.tamland-wc-archive__sidebar-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #d7d7d7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tamland-wc-archive__sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.tamland-wc-archive__sidebar-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0;
}

.tamland-wc-archive__clear-btn {
  font-size: 12px;
  font-weight: 600;
  color: #c5161c;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 0;
  transition: color 200ms ease;
}

.tamland-wc-archive__clear-btn:hover {
  color: #a01318;
}

.tamland-wc-archive__clear-btn--hidden {
  display: none;
}

.tamland-wc-archive__filter-title {
  font-size: 16px;
  font-weight: 800;
}

#searchInput {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5d5d6;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 200ms ease;
  background: #ffffff;
}

.tamland-wc-archive__search-input:focus {
  border-color: #c5161c;
}

.tamland-wc-archive__divider {
  height: 1px;
  background: #e5e5e5;
}

.tamland-wc-archive__acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.tamland-wc-archive__acc-btn:hover .tamland-wc-archive__filter-title {
  color: #c5161c;
}

.tamland-wc-archive__acc-chevron {
  color: #57595b;
  transition: transform 200ms ease;
}

.tamland-wc-archive__acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 200ms ease;
}

.tamland-wc-archive__acc-panel--open {
  max-height: 520px;
}

.tamland-wc-archive__checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: calc( min( 250px , min-content) + 10px );
  overflow-y: scroll;
}

.tamland-wc-archive__check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.tamland-wc-archive__check {
  width: 18px;
  height: 18px;
  border: 2px solid #d5d5d6;
  border-radius: 4px;
}

.tamland-wc-archive__check-label {
  font-size: 14px;
  font-weight: 600;
  color: #202021;
  transition: color 200ms ease;
}

.tamland-wc-archive__check-row:hover .tamland-wc-archive__check-label {
  color: #c5161c;
}

.tamland-wc-archive__price-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tamland-wc-archive__price-val {
  font-size: 13px;
  color: #57595b;
  font-weight: 600;
}

.tamland-wc-archive__price-unit-muted {
  font-size: 11px;
  color: #9e9e9e;
  font-weight: 600;
}

.tamland-wc-archive__price-sep {
  font-size: 12px;
  color: #d5d5d6;
}

.tamland-wc-archive__range {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  appearance: none;
  cursor: pointer;
  background: #d5d5d6;
  outline: none;
}

.tamland-wc-archive__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #c5161c;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tamland-wc-archive__range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #c5161c;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tamland-wc-archive__apply-btn {
  width: 100%;
  background: #c5161c;
  color: #ffffff;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 8px !important;
  border: 0;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 200ms ease, opacity 200ms ease;
  cursor: pointer;
}

.tamland-wc-archive__apply-btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tamland-wc-archive__apply-btn:not(.tamland-wc-archive__apply-btn--disabled):hover {
  background: #a01318;
}

.tamland-wc-archive__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 999px;
  animation: tamland-wc-archive-spin 800ms linear infinite;
}

@keyframes tamland-wc-archive-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Products area */
.tamland-wc-archive__products {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tamland-wc-archive__sort-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid #d5d5d6;
  gap: 12px;
  flex-wrap: wrap;
overflow-x: auto; 
      -webkit-overflow-scrolling: touch;
}



.tamland-wc-archive__sort-bar > div {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;

}

.tamland-wc-archive__sort-label {
  font-size: 14px;
  font-weight: 800;
  color: #202021;
}

.tamland-wc-archive__sort-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-right: 12px;
  flex-wrap: wrap;
}

.tamland-wc-archive__sort-btn {
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #57595b;
  transition: color 200ms ease;
  padding: 4px 0;
}

.tamland-wc-archive__sort-btn:hover {
  color: #c5161c;
}

.tamland-wc-archive__sort-btn--active {
  color: #c5161c;
}

.tamland-wc-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .tamland-wc-archive__products {
    width: 100%;
  }
  .tamland-wc-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .tamland-wc-archive__grid {
    grid-template-columns: 1fr;
  }
}

.tamland-wc-archive__product {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #d7d7d7;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.tamland-wc-archive__product:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.tamland-wc-archive__product-media {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.tamland-wc-archive__product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tamland-wc-archive__product-overlay {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 200ms ease, transform 200ms ease;
}

.tamland-wc-archive__product:hover .tamland-wc-archive__product-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tamland-wc-archive__product-cta {
  width: 180px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.tamland-wc-archive__product-cta--primary {
  background: #c5161c !important;
  color: #ffffff !important;
}

.tamland-wc-archive__product-cta--primary:hover {
  background: #a01318;
}

.tamland-wc-archive__product-cta--secondary {
  background: #ffffff;
  color: #c5161c;
}

.tamland-wc-archive__product-cta--secondary:hover {
  background: #f5f5f5;
}

.tamland-wc-archive__product-title-wrap {
  border-bottom: 1px solid #a7a9ac;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.tamland-wc-archive__product-title {
  font-size: 16px;
  color: #231f20;
  text-align: center;
  line-height: 22px;
  font-weight: 900;
  margin: 0;
}

.tamland-wc-archive__product-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-left: 8px;
  padding-right: 8px;
  gap: 12px;
}

.tamland-wc-archive__badge {
  background: #c4161c;
  border-radius: 4px;
  padding: 6px 8px;
  align-self: flex-start;
}

.tamland-wc-archive__badge-text {
  font-size: 12px;
  color: #ffffff;
  font-weight: 900;
}

.tamland-wc-archive__price-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.tamland-wc-archive__price-now {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tamland-wc-archive__price-now-value {
  font-size: 20px;
  color: #231f20;
  font-weight: 900;
}

.tamland-wc-archive__price-unit {
  font-size: 12px;
  color: #57595b;
  font-weight: 800;
}

.tamland-wc-archive__price-old {
  position: relative;
  font-size: 12px;
  color: #9e9e9e;
  font-weight: 800;
  padding: 0 2px;
}

.tamland-wc-archive__price-old::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #c4161c;
  transform: translateY(-50%);
}

/* Utility */
.tamland-wc-archive__hidden {
  display: none !important;
}

.tamland-wc-archive__pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.tamland-wc-archive__pagination a,
.tamland-wc-archive__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #d7d7d7;
  background: #ffffff;
  font-weight: 700;
  color: #202021;
}

.tamland-wc-archive__pagination .current {
  border-color: #c5161c;
  color: #c5161c;
}

.tamland-wc-archive__empty {
  background: #ffffff;
  border: 1px solid #d7d7d7;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  font-weight: 800;
  color: #57595b;
}

/* Skeleton */
.tamland-wc-archive__grid-wrap {
  position: relative;
}

.tamland-wc-archive__skeleton {
  display: none;
}

.tamland-wc-archive__grid-wrap.is-loading .tamland-wc-archive__skeleton {
  display: grid;
}

.tamland-wc-archive__grid-wrap.is-loading #productGrid {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.tamland-wc-archive__skeleton {
  position: absolute;
  inset: 0;
  z-index: 30;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

@media (max-width: 1024px) {
  .tamland-wc-archive__skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tamland-wc-archive__skeleton {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.tamland-wc-archive__skeleton-card {
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  padding: 12px;
}

.tamland-wc-archive__skeleton-media {
  height: 180px;
  border-radius: 12px;
  background: #eee;
}

.tamland-wc-archive__skeleton-lines {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tamland-wc-archive__skeleton-line {
  height: 12px;
  border-radius: 10px;
  background: #eee;
}

.tamland-wc-archive__skeleton-line--short {
  width: 65%;
}

.tamland-wc-archive__skeleton-bottom {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tamland-wc-archive__skeleton-pill {
  height: 28px;
  width: 70px;
  border-radius: 999px;
  background: #eee;
}

.tamland-wc-archive__skeleton-pill--wide {
  width: 120px;
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: tamlandShimmer 1.2s ease-in-out infinite;
}

@keyframes tamlandShimmer {
  0%   { transform: translateX(0); }
  100% { transform: translateX(500px); }
}


/* Only add margin when accordion is open (JS toggles this class). */
.tamland-wc-archive__acc-btn.is-open {
  margin-bottom: 12px;
}

/* Count badge beside accordion title. */
.tamland-wc-archive__acc-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  background: #f1f1f1;
  color: #57595b;
  margin-right: 8px; /* RTL: badge appears left of title */
}

.tamland-wc-archive__acc-count.is-hidden {
  display: none;
}


/* Sticky sidebar that fits within viewport height (no overflow past bottom). */
.tamland-wc-archive__sidebar {
  position: sticky;
  top: 100px; /* keep your existing top offset */
  height: calc(100vh - 100px - 24px); /* 24px bottom breathing room */
  align-self: flex-start;
}

/* Allow internal scrolling inside the sidebar card. */
.tamland-wc-archive__sidebar-card {
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain; /* prevents scroll chaining issues */
  -webkit-overflow-scrolling: touch;
}

/* Optional: make the checklists responsive to available space (reduce double-scroll pain). */
.tamland-wc-archive__checklist {
  max-height: 250px; /* keep your design */
  overflow-y: auto;
}

/* Mobile: disable sticky as you already do with width changes (optional safeguard). */
@media (max-width: 1024px) {
  .tamland-wc-archive__sidebar {
    position: static;
    height: auto;
  }

  .tamland-wc-archive__sidebar-card {
    max-height: none;
    overflow: visible;
  }
}




/* =============================
   Mobile Offcanvas Filters
============================= */

/* Button (sticky / floating) */
.tamland-wc-archive__filters-fab {
  display: none;
  position: fixed;
  left: 16px;
  bottom: 130px;
  z-index: 10020;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #c5161c;
  cursor: pointer;
  width: 40px;
}

/* Overlay */
.tamland-wc-archive__filters-overlay {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 220ms ease;
}

/* Offcanvas: only on mobile */
@media (max-width: 1024px) {
  .tamland-wc-archive__filters-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* Turn sidebar into offcanvas panel */
  .tamland-wc-archive__sidebar {
    position: fixed !important;
    top: 10px !important;
    right: 10px;
    left: 10px;
    width: min(90vw, 320px) !important;
    height: 100vh !important;
    z-index: 10015;
    background: transparent;
    transform: translateX(105%);
    transition: transform 260ms ease;
    padding: 0;
    overflow: hidden; /* inner card scrolls */
    margin: 0 auto;
    display: none;
  }

  .tamland-wc-archive__sidebar-card {
    max-height: calc(100vh - 32px) !important;
    overflow: auto !important;
    border-radius: 16px;
  }

  /* Open state */
  .tamland-wc-archive.is-filters-open .tamland-wc-archive__sidebar {
    transform: translateX(0);
    display: block;
  }

  .tamland-wc-archive.is-filters-open .tamland-wc-archive__filters-overlay {
    opacity: 1;
  }
}

/* Prevent body scroll when open */
body.tamland-wc-archive--no-scroll {
  overflow: hidden;
  touch-action: none;
}





/* اسکرول افقی مرتب‌سازی */
.tamland-wc-archive__sort-bar{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;

  flex-wrap: nowrap;         /* مهم: جلوگیری از شکستن ردیف */
  overflow-x: auto;          /* مهم */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* همون div داخلی که الان width:100% گذاشتی، باعث میشه overflow از بین بره */
.tamland-wc-archive__sort-bar > div{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;

  width: max-content;        /* مهم: محتوا عرض خودش را می‌گیرد */
  min-width: 100%;           /* مهم: روی دسکتاپ کل عرض را پر کند */
}

/* دکمه‌ها نباید wrap بشن */
.tamland-wc-archive__sort-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 12px;

  flex-wrap: nowrap;         /* مهم */
}

/* هر دکمه خودش را جمع نکند و متن هم نشکند */
.tamland-wc-archive__sort-btn,
.tamland-wc-archive__sort-label{
  flex: 0 0 auto;            /* مهم */
  white-space: nowrap;       /* مهم */
}

.tamland-wc-archive__sort-btn {
  order: 2;
}
.tamland-wc-archive__sort-btn--active {
    order: 1 !important;
}


@media (max-width: 1024px) {
.tamland-wc-archive__sort-bar {
    border: 1px solid #D5D5D6;
box-shadow: 0 3px 10px 0 rgba( 0 , 0 ,0 , 0.1);
padding: 8px 12px;
background: #fff;
border-radius: 8px;
}

.tamland-wc-archive__category-icon, 
.tamland-wc-archive__category-subtitle {
 display: none;   
}
  .tamland-wc-archive__categories {
    display: flex;                 /* بجای grid */
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    flex-wrap: nowrap;
    padding: 12px 8px;           /* جا برای اسکرول */
  }

  .tamland-wc-archive__category-card {
    flex: 0 0 auto;                /* هر کارت خودش */
    width: fit-content;                  /* می‌تونی 220..280 تست کنی */
    padding: 14px 16px;
  }

  /* اگر خواستی عنوان هم نشکنه */
  .tamland-wc-archive__category-title {
    white-space: nowrap;
  }
  .tamland-wc-archive__stack {
  gap: 12px;
}
}





















