@import './tamland-single-product-toast.css';

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

.tamland-wc-archive *,
.tamland-wc-archive *::before,
.tamland-wc-archive *::after {
  box-sizing: border-box;
  font-family: "Yekan Bakh FaNum", 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-inline: auto;
  padding-inline: 120px;
}

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

@media (max-width: 800px) {
  .tamland-wc-archive__container {
    padding-inline: 16px !important;
  }
}

/* =========================================================
   Mobile product card — <= 768px
   کارت افقی RTL:
     ردیف ۱: [عنوان] | [تصویر ۱۰۰×۱۰۰]
     ردیف ۲: [قیمت فعلی]
     ردیف ۳: [٪تخفیف] [قیمت قدیم خط‌خورده]   (فقط برای محصول تخفیف‌دار)
========================================================= */
@media (max-width: 768px) {

  .tamland-wc-archive__title,
  .tamland-wc-archive .elementor-kit-12 h1,
  .tamland-wc-archive h1.tamland-wc-archive__title {
    display: none !important;
  }

  /* یک کارت در هر ردیف */
  .tamland-wc-archive__grid {
    grid-template-columns: 1fr;
    gap: var(--tamland-space-12);
  }

  /* کارت: افقی مطابق دیزاین فیگما ۴۵۴۰:۸۹۳۰۶ - منحصراً در گرید آرشیو */
  .tamland-wc-archive__grid .tamland-wc-archive__product {
    background-color: var(--tamland-color-surface-card);
    border: 1px solid var(--tamland-color-border);
    border-radius: var(--tamland-radius-16);
    overflow: hidden;
    padding: 0;
    height: auto;
    box-shadow: none;
  }

  .tamland-wc-archive__grid .tamland-wc-archive__product-link {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: var(--tamland-space-8);
    gap: var(--tamland-space-12);
    min-height: 0;
  }

  .tamland-wc-archive__grid .tamland-wc-archive__product-media {
    width: 6.25rem;
    height: 6.25rem;
    border-radius: var(--tamland-radius-12);
    flex-shrink: 0;
    align-self: center;
    position: relative;
    overflow: hidden;
    background-color: var(--tamland-color-surface-muted);
  }

  .tamland-wc-archive__grid .tamland-wc-archive__product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--tamland-radius-12);
  }

  /* کارت‌های درون اسلایدر و کاروسل در دید موبایل: حفظ ساختار عمودی استاندارد */
  .swiper-slide > .tamland-wc-archive__product,
  .swiper-slide .tamland-wc-archive__product,
  .tamland-swiper .tamland-wc-archive__product,
  .tamland-product-carousel-wrapper .tamland-wc-archive__product,
  .pcs-slider-pane .tamland-wc-archive__product,
  .tamland-course-carousel .tamland-wc-archive__product {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
  }

  .swiper-slide .tamland-wc-archive__product-link,
  .tamland-swiper .tamland-wc-archive__product-link,
  .tamland-product-carousel-wrapper .tamland-wc-archive__product-link,
  .pcs-slider-pane .tamland-wc-archive__product-link,
  .tamland-course-carousel .tamland-wc-archive__product-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    gap: 0 !important;
    height: 100% !important;
  }

  .swiper-slide .tamland-wc-archive__product-media,
  .tamland-swiper .tamland-wc-archive__product-media,
  .tamland-product-carousel-wrapper .tamland-wc-archive__product-media,
  .pcs-slider-pane .tamland-wc-archive__product-media,
  .pcs-wrapper .tamland-wc-archive__product-media,
  .tamland-course-carousel .tamland-wc-archive__product-media {
    width: 100% !important;
    height: var(--tamland-shop-thumb-h, 12.5rem) !important;
    border-radius: var(--tamland-radius-16) var(--tamland-radius-16) 0 0 !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
    background-color: var(--tamland-color-surface, #ffffff) !important;
  }

  .swiper-slide .tamland-wc-archive__product-img,
  .swiper-slide .tamland-wc-archive__product-media img,
  .tamland-swiper .tamland-wc-archive__product-img,
  .tamland-swiper .tamland-wc-archive__product-media img,
  .tamland-product-carousel-wrapper .tamland-wc-archive__product-img,
  .tamland-product-carousel-wrapper .tamland-wc-archive__product-media img,
  .pcs-slider-pane .tamland-wc-archive__product-img,
  .pcs-slider-pane .tamland-wc-archive__product-media img,
  .pcs-wrapper .tamland-wc-archive__product-img,
  .pcs-wrapper .tamland-wc-archive__product-media img,
  .tamland-course-carousel .tamland-wc-archive__product-img,
  .tamland-course-carousel .tamland-wc-archive__product-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: var(--tamland-radius-16) var(--tamland-radius-16) 0 0 !important;
  }

  .tamland-wc-archive__type-badge,
  .custom-course-badge,
  .tamland-wc-archive__product-overlay {
    display: none;
  }

  .tamland-wc-archive__product-title-wrap {
    padding: 0;
    margin: 0;
  }

  .tamland-wc-archive__product-title,
  .tamland-shop__card-title,
  h4.tamland-wc-archive__product-title,
  h4.tamland-shop__card-title {
    font-size: var(--tamland-font-size-body-sm) !important;
    line-height: var(--tamland-line-height-body-sm) !important;
    font-weight: var(--tamland-font-weight-semibold) !important;
    color: var(--tamland-color-text-primary) !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    min-height: 2.5rem !important;
    height: 2.5rem !important;
    margin: 0 !important;
  }

  .tamland-wc-archive__product-meta {
    padding: 0;
    padding-top: var(--tamland-space-6);
    margin-top: auto;
    min-height: 1.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tamland-space-8);
    border-top: 1px solid var(--tamland-color-border-light);
  }
}

/* -----------------------------
   Toast (Harmonized with Canonical sp-toast: Figma 5559-111314)
------------------------------ */
.tamland-wc-archive__toast-wrap--hidden {
  display: none !important;
}

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

.tamland-wc-archive__stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

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

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

.tamland-wc-archive__breadcrumb {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

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

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

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

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

/* -----------------------------
   Category cards
------------------------------ */
.tamland-wc-archive__categories {
  display: flex !important;
  gap: var(--tamland-space-12) !important;
  width: 100% !important;
  direction: rtl;
}

.tamland-wc-archive__category-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  gap: var(--tamland-space-12);
  padding: var(--tamland-space-20) var(--tamland-space-24);
  border-radius: var(--tamland-radius-16);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  border: 1px solid var(--tamland-color-border-subtle);
  background: var(--tamland-color-surface-card);
  color: var(--tamland-color-text-primary);
  direction: rtl;
}

.tamland-wc-archive__category-card:hover {
  background: #fafafa;
  transform: none;
  box-shadow: none;
}

.tamland-wc-archive__category-card:active {
  transform: none;
}

.tamland-wc-archive__category-card--selected {
  background: #fff5f5;
  color: var(--tamland-color-primary);
  border-color: var(--tamland-color-primary);
  box-shadow: none;
}

.tamland-wc-archive__category-overlay {
  display: none;
}

.tamland-wc-archive__category-icon {
  position: relative;
  z-index: 2;
  display: flex;
  flex-shrink: 0;
  padding: var(--tamland-space-10);
  border-radius: var(--tamland-radius-12);
  color: var(--tamland-color-primary);
  order: 1;
}

.tamland-wc-archive__category-card--selected .tamland-wc-archive__category-icon {
  color: var(--tamland-color-primary);
}

.tamland-wc-archive__category-card--selected .tamland-wc-archive__category-icon-inner img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(4800%) hue-rotate(349deg) brightness(92%) contrast(95%);
}

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

.tamland-wc-archive__category-icon-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tamland-wc-archive__category-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 auto;
  gap: var(--tamland-space-4);
  order: 2;
}

.tamland-wc-archive__category-title {
  font-size: var(--tamland-font-size-title-sm);
  line-height: var(--tamland-line-height-title-sm);
  font-weight: var(--tamland-font-weight-bold);
  text-align: start;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.tamland-wc-archive__category-subtitle {
  font-size: var(--tamland-font-size-body-sm);
  line-height: var(--tamland-line-height-body-sm);
  text-align: start;
  font-weight: var(--tamland-font-weight-regular);
  color: var(--tamland-color-text-secondary);
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.tamland-wc-archive__category-card--selected .tamland-wc-archive__category-subtitle {
  color: var(--tamland-color-primary);
  opacity: 0.8;
}

.tamland-wc-archive__category-indicator {
  display: none;
}

/* -----------------------------
   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: var(--tamland-shop-sidebar-w, 20rem);
  position: sticky;
  top: calc(var(--tamland-root-header-height, var(--tamland-header-height, 4.5rem)) + var(--tamland-space-24, 1.5rem));
  align-self: flex-start;
}

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

.tamland-wc-archive__sidebar-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: var(--tamland-space-20);
}

.tamland-wc-archive__sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--tamland-space-16);
  border-bottom: 1px solid var(--tamland-color-border-light);
}

.tamland-shop__sidebar-title-group,
.tamland-wc-archive__sidebar-title-group {
  display: flex;
  align-items: center;
  gap: var(--tamland-space-8);
}

.tamland-shop__sidebar-title-group::before,
.tamland-wc-archive__sidebar-title-group::before {
  content: '';
  display: inline-block !important;
  width: 0.1875rem; /* 3px */
  height: 1.125rem; /* 18px */
  background-color: var(--tamland-color-primary) !important;
  border-radius: var(--tamland-radius-pill) !important;
  flex-shrink: 0;
}

.tamland-wc-archive__sidebar-title,
.tamland-shop__sidebar-title {
  font-size: var(--tamland-font-size-title-sm) !important;
  font-weight: var(--tamland-font-weight-bold) !important;
  color: var(--tamland-color-text-primary) !important;
  line-height: var(--tamland-line-height-title-sm) !important;
  margin: 0;
}

.tamland-wc-archive__clear-btn,
.tamland-shop__clear-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: var(--tamland-space-4) var(--tamland-space-10) !important;
  background-color: var(--tamland-color-yellow-soft-bg) !important;
  color: var(--tamland-color-yellow-soft-text) !important;
  font-size: var(--tamland-font-size-label-sm) !important;
  font-weight: var(--tamland-font-weight-semibold) !important;
  border-radius: var(--tamland-radius-pill) !important;
  border: none !important;
  cursor: pointer;
  line-height: 1.2;
  transition: opacity 150ms ease;
  text-decoration: none !important;
}

.tamland-wc-archive__clear-btn:hover,
.tamland-shop__clear-btn:hover {
  opacity: 0.85;
}

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

.tamland-wc-archive__filter-title,
.tamland-shop__acc-title {
  font-size: var(--tamland-font-size-label-lg);
  font-weight: var(--tamland-font-weight-bold);
  color: var(--tamland-color-text-primary);
}

/* Search input & icon */
.tamland-wc-archive__search-wrap,
.tamland-shop__search-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.tamland-wc-archive__search-icon,
.tamland-shop__search-icon,
.tamland-wc-archive__search-wrap .tamland-wc-archive__search-icon,
.tamland-shop__search-wrap .tamland-shop__search-icon {
  position: absolute !important;
  right: var(--tamland-space-12) !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--tamland-color-text-secondary) !important;
  pointer-events: none !important;
}

.tamland-wc-archive__search-icon svg,
.tamland-shop__search-icon svg {
  width: 1.0625rem !important; /* 17px */
  height: 1.0625rem !important; /* 17px */
  stroke: currentColor !important;
}

.tamland-wc-archive__search-input,
.tamland-shop__search-input,
.tamland-wc-archive__search-wrap .tamland-wc-archive__search-input,
.tamland-shop__search-wrap .tamland-shop__search-input {
  width: 100% !important;
  height: 2.75rem !important; /* 44px */
  padding-right: 2.75rem !important;
  padding-left: var(--tamland-space-16) !important;
  padding-inline-start: 2.75rem !important;
  padding-inline-end: var(--tamland-space-16) !important;
  background-color: var(--tamland-color-surface-card) !important;
  border: 1px solid var(--tamland-color-border) !important;
  border-radius: var(--tamland-radius-12) !important;
  font-size: var(--tamland-font-size-body-sm) !important;
  font-weight: var(--tamland-font-weight-regular) !important;
  color: var(--tamland-color-text-primary) !important;
  outline: none !important;
  transition: border-color 200ms ease !important;
  box-sizing: border-box !important;
}

.tamland-wc-archive__search-input::placeholder,
.tamland-shop__search-input::placeholder {
  color: var(--tamland-color-text-secondary);
  font-weight: var(--tamland-font-weight-regular);
}

.tamland-wc-archive__search-input:focus,
.tamland-shop__search-input:focus {
  border-color: var(--tamland-color-primary) !important;
  background-color: var(--tamland-color-surface-card) !important;
}

/* Active filter chips - accordion & global chips */
#activeFilterChipsSection,
.tamland-wc-archive__chips-section {
  display: none !important;
}

.tamland-shop__chip,
.tamland-wc-archive__active-chip {
  display: inline-flex !important;
  align-items: center;
  gap: var(--tamland-space-6);
  padding: var(--tamland-space-4) var(--tamland-space-8) !important;
  background-color: var(--tamland-color-pink-soft-bg) !important;
  color: var(--tamland-color-primary) !important;
  border-radius: var(--tamland-radius-pill) !important;
  border: none !important;
  font-size: var(--tamland-font-size-label-sm) !important;
  font-weight: var(--tamland-font-weight-semibold) !important;
  line-height: 1;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 150ms ease;
  box-shadow: none !important;
}

.tamland-shop__chip > span:first-child,
.tamland-wc-archive__active-chip > span:first-child {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.tamland-shop__chip-remove,
.tamland-wc-archive__active-chip-x {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1rem !important; /* 16px */
  height: 1rem !important;
  border-radius: var(--tamland-radius-pill) !important;
  background-color: var(--tamland-color-primary) !important;
  color: var(--tamland-color-surface-card) !important;
  flex-shrink: 0;
  cursor: pointer;
  margin-inline-start: var(--tamland-space-4);
  transition: transform 150ms ease, opacity 150ms ease;
  line-height: 1;
  border: none !important;
}

.tamland-shop__chip-remove:hover,
.tamland-wc-archive__active-chip-x:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.tamland-shop__chip-remove svg,
.tamland-wc-archive__active-chip-x svg {
  width: 0.5rem !important; /* 8px */
  height: 0.5rem !important;
  stroke: var(--tamland-color-surface-card) !important;
  stroke-width: 2.2;
}

.tamland-wc-archive__filters-back-btn,
.tamland-shop__mobile-back-btn {
  display: none;
}

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

.tamland-shop__sidebar .tamland-wc-archive__divider {
  display: none !important;
}

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

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

.tamland-wc-archive__acc-chevron {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  position: relative;
  transition: transform 200ms ease;
  font-size: 0;
  color: transparent;
}

.tamland-wc-archive__acc-chevron::before,
.tamland-wc-archive__acc-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 2px;
  background: #57595b;
  border-radius: 2px;
  transition: background 200ms ease;
}

.tamland-wc-archive__acc-chevron::before {
  left: 1px;
  transform: translateY(-50%) rotate(45deg);
}

.tamland-wc-archive__acc-chevron::after {
  right: 1px;
  transform: translateY(-50%) rotate(-45deg);
}

.tamland-wc-archive__acc-btn.is-open .tamland-wc-archive__acc-chevron {
  transform: rotate(180deg);
}

.tamland-wc-archive__acc-btn:hover .tamland-wc-archive__acc-chevron::before,
.tamland-wc-archive__acc-btn:hover .tamland-wc-archive__acc-chevron::after {
  background: #c5161c;
}

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

.tamland-wc-archive__acc-panel--open,
.tamland-shop__acc-item.is-open .tamland-shop__acc-content,
.tamland-shop__acc-item.is-open .tamland-wc-archive__acc-panel {
  display: flex !important;
  flex-direction: column !important;
  max-height: 520px !important;
  overflow: visible !important;
}

.tamland-wc-archive__checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px 0;
}

/* Check row: label راست، checkbox چپ */
.tamland-wc-archive__check-row {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 10px;
  cursor: pointer;
  direction: rtl;
}

/* Custom checkbox */
.tamland-wc-archive__check {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #d5d5d6;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  transition: border-color 150ms ease, background 150ms ease;
  order: 2;
}

.tamland-wc-archive__check:checked {
  background: #c5161c;
  border-color: #c5161c;
}

.tamland-wc-archive__check:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 5px;
  height: 9px;
  border: 2px solid #ffffff;
  border-top: none;
  border-left: none;
  transform: translate(-50%, -50%) rotate(45deg);
}

.tamland-wc-archive__check-label {
  font-size: var(--tamland-font-size-body-sm);
  font-weight: var(--tamland-font-weight-bold);
  color: var(--tamland-color-text-primary);
  transition: color 150ms ease;
  order: 1;
  flex: 1;
  text-align: start;
}

.tamland-wc-archive__check:checked ~ .tamland-wc-archive__check-label,
.tamland-wc-archive__check-row:has(input:checked) .tamland-wc-archive__check-label,
.tamland-shop__check-row:has(input:checked) span,
.tamland-shop__check-row:has(input:checked) {
  color: var(--tamland-color-primary) !important;
  font-weight: var(--tamland-font-weight-bold) !important;
}

.tamland-wc-archive__check-row:hover .tamland-wc-archive__check-label {
  color: var(--tamland-color-primary);
}

.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: none;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid #d5d5d6;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.tamland-wc-archive__sort-bar > div {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
  min-width: 100%;
}

.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-inline-start: 12px;
  flex-wrap: nowrap;
}

.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;
  flex: 0 0 auto;
  white-space: nowrap;
  order: 2;
}

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

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

.tamland-wc-archive__sort-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.tamland-wc-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tamland-space-12);
  padding-top: var(--tamland-space-4);
}

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

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

@media (min-width: 769px) {
  .tamland-wc-archive__product {
    background-color: var(--tamland-color-surface-card);
    border-radius: var(--tamland-radius-16);
    padding: 0 0 var(--tamland-space-12);
    border: 1px solid var(--tamland-color-border);
    box-shadow: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 200ms ease, box-shadow 250ms ease, border-color 200ms ease;
  }

  .tamland-wc-archive__product:hover {
    transform: translateY(-2px);
    border-color: var(--tamland-color-primary);
    box-shadow: var(--tamland-shadow-shop-card-hover);
  }

  .tamland-wc-archive__product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
  }

  .tamland-wc-archive__product-media {
    position: relative;
    width: 100%;
    height: var(--tamland-shop-thumb-h, 12.5rem);
    flex-shrink: 0;
    border-radius: var(--tamland-radius-16) var(--tamland-radius-16) 0 0;
    overflow: hidden;
    margin: 0;
    background-color: var(--tamland-color-surface-muted);
  }
}

.tamland-wc-archive__product-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .tamland-wc-archive__product-img {
    height: 100% !important;
  }
}

.tamland-wc-archive__product:hover .tamland-wc-archive__product-img {
  transform: scale(1.04);
}

.tamland-wc-archive__type-badge,
.custom-course-badge,
.tamland-wc-archive__product-overlay,
.tamland-wc-archive__product-cta {
  display: none;
}

.tamland-wc-archive__product-title-wrap {
  padding: 0;
  margin-bottom: 0;
}

.tamland-wc-archive__product-title,
.tamland-shop__card-title,
h4.tamland-wc-archive__product-title,
h4.tamland-shop__card-title,
.tamland-wc-archive__product .tamland-wc-archive__product-title,
.tamland-shop__card .tamland-shop__card-title {
  margin: 0 !important;
  font-size: var(--tamland-font-size-label-lg) !important;
  font-weight: var(--tamland-font-weight-semibold) !important;
  line-height: var(--tamland-line-height-label-lg) !important;
  color: var(--tamland-color-text-primary) !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  min-height: 2.85rem !important;
  height: 2.85rem !important;
}

.tamland-wc-archive__product-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 !important;
  padding-top: var(--tamland-space-8) !important;
  border-top: 1px solid var(--tamland-color-border-light) !important;
  gap: var(--tamland-space-8) !important;
  margin-top: auto !important;
  min-height: 2.25rem !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.tamland-wc-archive__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--tamland-space-2, 0.125rem) var(--tamland-space-6, 0.375rem);
  background-color: var(--tamland-color-discount-pill-bg);
  color: var(--tamland-color-discount-pill-text);
  border-radius: var(--tamland-radius-4);
  font-size: var(--tamland-font-size-micro);
  font-weight: var(--tamland-font-weight-bold);
  width: auto;
  height: auto;
}

.tamland-wc-archive__badge-text {
  font-size: var(--tamland-font-size-micro);
  color: var(--tamland-color-discount-pill-text);
  font-weight: var(--tamland-font-weight-bold);
  line-height: 1.2;
}

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

.tamland-wc-archive__price-now {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: var(--tamland-space-4) !important;
  margin-inline-start: auto !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.tamland-wc-archive__price-now-value {
  font-size: var(--tamland-font-size-title-sm) !important;
  color: var(--tamland-color-primary) !important;
  font-weight: var(--tamland-font-weight-bold) !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.tamland-wc-archive__price-unit {
  font-size: var(--tamland-font-size-micro) !important;
  color: var(--tamland-color-text-muted) !important;
  font-weight: var(--tamland-font-weight-semibold) !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.tamland-wc-archive__price-old-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: var(--tamland-space-6, 0.375rem) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.tamland-wc-archive__price-old {
  font-size: var(--tamland-font-size-label-sm) !important;
  color: var(--tamland-color-text-muted) !important;
  font-weight: var(--tamland-font-weight-regular) !important;
  text-decoration: line-through !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 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;
}

/* Empty State (Figma: 6387-138203) */
.tamland-wc-archive__empty,
.tamland-shop__empty {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: var(--tamland-space-16) !important;
  background: transparent !important;
  border: none !important;
  border-radius: var(--tamland-radius-16) !important;
  padding: var(--tamland-space-32) var(--tamland-space-16) !important;
  min-height: min(44rem, 70vh) !important;
  margin: 0 !important;
}

.tamland-wc-archive__empty-title,
.tamland-shop__empty-title {
  margin: 0 !important;
  color: var(--tamland-color-text-primary) !important;
  font-family: var(--tamland-font-family) !important;
  font-size: var(--tamland-font-size-title-sm, 1.125rem) !important;
  font-weight: var(--tamland-font-weight-bold) !important;
  line-height: var(--tamland-line-height-title-sm, 1.5) !important;
  text-align: center !important;
}

.tamland-wc-archive__empty-btn,
.tamland-shop__empty-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--tamland-input-height, 3rem) !important;
  padding-inline: var(--tamland-space-24) !important;
  background-color: var(--tamland-color-pink-soft-bg) !important;
  border: 1px solid var(--tamland-color-primary) !important;
  border-radius: var(--tamland-radius-12) !important;
  color: var(--tamland-color-primary) !important;
  font-family: var(--tamland-font-family) !important;
  font-size: var(--tamland-font-size-label-lg, 0.875rem) !important;
  font-weight: var(--tamland-font-weight-bold) !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: all 180ms ease !important;
}

.tamland-wc-archive__empty-btn:hover,
.tamland-shop__empty-btn:hover,
.tamland-wc-archive__empty-btn:focus-visible,
.tamland-shop__empty-btn:focus-visible {
  background-color: var(--tamland-color-primary) !important;
  border-color: var(--tamland-color-primary) !important;
  color: var(--tamland-color-text-white) !important;
}

/* Hide sort bar when empty */
.tamland-wc-archive__products:has(.tamland-shop__empty) .tamland-wc-archive__sort-bar,
.tamland-wc-archive__products:has(.tamland-wc-archive__empty) .tamland-wc-archive__sort-bar,
.tamland-shop__layout:has(.tamland-shop__empty) .tamland-shop__sort-bar {
  display: none !important;
}

@media (max-width: 767px) {
  .tamland-wc-archive__empty,
  .tamland-shop__empty {
    min-height: min(28rem, 60vh) !important;
    padding: var(--tamland-space-24) var(--tamland-space-16) !important;
  }
}

/* Skeleton & Grid Wrap */
.tamland-wc-archive__grid-wrap {
  position: relative;
  overflow: visible;
}

.tamland-wc-archive__skeleton {
  display: none;
  position: absolute;
  inset: 0;
  z-index: var(--tamland-z-loader, 1000);
  padding: 0;
  padding-top: var(--tamland-space-4);
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tamland-space-12);
  align-content: start;
  background: transparent;
}

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

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

.tamland-wc-archive__skeleton-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--tamland-radius-16);
  border: 1px solid var(--tamland-color-border);
  background-color: var(--tamland-color-surface-card);
  box-shadow: none;
  padding: 0 0 var(--tamland-space-12);
  overflow: hidden;
  min-height: 25.625rem; /* 410px: exactly matches loaded 3-column card height */
  height: 100%;
  box-sizing: border-box;
}

.tamland-wc-archive__skeleton-media {
  width: 100%;
  height: var(--tamland-shop-thumb-h, 12.5rem); /* 200px */
  border-radius: var(--tamland-radius-16) var(--tamland-radius-16) 0 0;
  background-color: var(--tamland-color-surface-muted);
  flex-shrink: 0;
}

.tamland-wc-archive__skeleton-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  padding: var(--tamland-space-12);
  gap: var(--tamland-space-12);
  box-sizing: border-box;
}

/* Fallback if skeleton-body is omitted */
.tamland-wc-archive__skeleton-card > .tamland-wc-archive__skeleton-lines {
  padding: var(--tamland-space-12) var(--tamland-space-12) 0;
}

.tamland-wc-archive__skeleton-card > .tamland-wc-archive__skeleton-bottom {
  padding: 0 var(--tamland-space-12);
}

.tamland-wc-archive__skeleton-lines {
  display: flex;
  flex-direction: column;
  gap: var(--tamland-space-8);
  min-height: 2.85rem;
}

.tamland-wc-archive__skeleton-line {
  height: 0.875rem; /* 14px */
  border-radius: var(--tamland-radius-pill);
  background-color: var(--tamland-color-surface-muted);
  width: 85%;
}

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

.tamland-wc-archive__skeleton-badges {
  display: flex;
  flex-direction: column;
  gap: var(--tamland-space-8);
  min-height: 3.125rem;
}

.tamland-wc-archive__skeleton-badge-row {
  display: flex;
  align-items: center;
  gap: var(--tamland-space-4);
  min-height: 1.25rem;
}

.tamland-wc-archive__skeleton-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--tamland-space-8);
  border-top: 1px solid var(--tamland-color-border-light);
  margin-top: auto;
  min-height: 2.25rem;
  gap: var(--tamland-space-8);
}

.tamland-wc-archive__skeleton-pill {
  height: 1.25rem;
  width: 3.75rem;
  border-radius: var(--tamland-radius-pill);
  background-color: var(--tamland-color-surface-muted);
}

.tamland-wc-archive__skeleton-pill--wide {
  width: 5.5rem;
}

.tamland-wc-archive__skeleton-pill--price {
  width: 5rem;
  height: 1.5rem;
  margin-inline-start: auto;
}

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

  .tamland-wc-archive__skeleton-card:nth-child(n+9) {
    display: none;
  }
}

@media (max-width: 768px) {
  .tamland-wc-archive__skeleton {
    grid-template-columns: 1fr;
    gap: var(--tamland-space-12);
  }

  .tamland-wc-archive__skeleton-card {
    min-height: 10rem; /* 160px: matches loaded horizontal mobile card */
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    padding: var(--tamland-space-8) !important;
    gap: var(--tamland-space-12) !important;
    border-radius: var(--tamland-radius-16) !important;
  }

  .tamland-wc-archive__skeleton-card:nth-child(n+5) {
    display: none !important;
  }

  .tamland-wc-archive__skeleton-media {
    width: 6.25rem !important; /* 100px */
    height: 6.25rem !important;
    border-radius: var(--tamland-radius-12) !important;
    align-self: center !important;
    flex-shrink: 0 !important;
  }

  .tamland-wc-archive__skeleton-body {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: var(--tamland-space-6) !important;
  }

  .tamland-wc-archive__skeleton-lines {
    min-height: 2.5rem !important;
    gap: var(--tamland-space-4) !important;
  }

  .tamland-wc-archive__skeleton-badges {
    gap: var(--tamland-space-4) !important;
    min-height: 2.75rem !important;
  }

  .tamland-wc-archive__skeleton-badge-row {
    min-height: 1.125rem !important;
    gap: var(--tamland-space-4) !important;
  }

  .tamland-wc-archive__skeleton-bottom {
    padding-top: var(--tamland-space-6) !important;
    margin-top: auto !important;
    min-height: 1.875rem !important;
  }
}

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

.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  right: -9.375rem;
  height: 100%;
  width: 9.375rem;
  background: var(--tamland-gradient-shimmer);
  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: none;
  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-inline-start: 8px; /* RTL: badge appears left of title */
}

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

/* Sticky sidebar — grows with content, capped at viewport height. */
.tamland-wc-archive__sidebar {
  position: sticky;
  top: calc(var(--tamland-root-header-height, var(--tamland-header-height, 4.5rem)) + var(--tamland-space-24, 1.5rem));
  align-self: flex-start;
}

body.admin-bar .tamland-wc-archive__sidebar {
  top: calc(var(--tamland-adminbar-height-desktop, 32px) + var(--tamland-root-header-height, var(--tamland-header-height, 4.5rem)) + var(--tamland-space-24, 1.5rem));
}

.tamland-wc-archive__sidebar-card {
  max-height: calc(100vh - var(--tamland-root-header-height, var(--tamland-header-height, 4.5rem)) - var(--tamland-space-24, 1.5rem) - var(--tamland-space-24, 1.5rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body.admin-bar .tamland-wc-archive__sidebar-card {
  max-height: calc(100vh - var(--tamland-adminbar-height-desktop, 32px) - var(--tamland-root-header-height, var(--tamland-header-height, 4.5rem)) - var(--tamland-space-24, 1.5rem) - var(--tamland-space-24, 1.5rem));
}

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

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

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

/* دکمه فیلتر — در دسکتاپ مخفی، در موبایل/تبلت زیر categories */
.tamland-wc-archive__filters-fab {
  display: none;
}

/* دکمه بازگشت — فقط در موبایل داخل هدر سایدبار */
.tamland-wc-archive__filters-back-btn {
  display: none;
}

@media (max-width: 1024px) {
  .tamland-wc-archive__filters-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tamland-space-8, 8px);
    width: 100%;
    padding: var(--tamland-space-12, 12px) var(--tamland-space-20, 20px);
    background: var(--tamland-color-primary, #c5161c);
    color: var(--tamland-color-text-white, #ffffff);
    border: 0;
    border-radius: var(--tamland-radius-12, 12px);
    font-size: var(--tamland-font-size-label-md, 14px);
    font-weight: var(--tamland-font-weight-bold, 700);
    cursor: pointer;
    font-family: inherit;
  }

  .tamland-wc-archive__filters-fab img {
    filter: brightness(0) invert(1);
  }
}

/* Overlay */
.tamland-wc-archive__filters-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--tamland-z-drawer-backdrop, 9990);
  background: var(--tamland-overlay-backdrop, rgba(0, 0, 0, 0.45));
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.tamland-wc-archive.is-filters-open .tamland-wc-archive__filters-overlay,
body.is-filters-open .tamland-wc-archive__filters-overlay {
  opacity: 1;
  pointer-events: auto;
}

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

@media (max-width: 1024px) {
  .tamland-wc-archive__sort-bar {
    display: none;
    border: 1px solid var(--tamland-color-border);
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);
    padding: var(--tamland-space-8) var(--tamland-space-12);
    background: var(--tamland-color-surface-card);
    border-radius: var(--tamland-radius-8);
  }

  /* گرید ۲×۲ categories در موبایل */
  .tamland-wc-archive__categories {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: var(--tamland-space-8) !important;
    overflow: visible !important;
    flex-wrap: unset !important;
  }

  .tamland-wc-archive__category-card {
    flex: unset !important;
    height: auto !important;
    min-height: var(--tamland-shop-cat-h-mobile, 3.75rem) !important;
    padding: var(--tamland-space-10) var(--tamland-space-8) !important;
    gap: var(--tamland-space-8) !important;
    border-radius: var(--tamland-radius-12) !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .tamland-wc-archive__category-icon {
    padding: var(--tamland-space-6) !important;
    border-radius: var(--tamland-radius-8) !important;
    flex-shrink: 0 !important;
  }

  .tamland-wc-archive__category-icon-inner {
    width: var(--tamland-shop-cat-icon-size-mobile, 1.375rem) !important;
    height: var(--tamland-shop-cat-icon-size-mobile, 1.375rem) !important;
  }

  .tamland-wc-archive__category-text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: var(--tamland-space-4) !important;
    overflow: hidden !important;
  }

  .tamland-wc-archive__category-title {
    font-size: var(--tamland-font-size-item-title) !important;
    line-height: var(--tamland-line-height-item-title) !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .tamland-wc-archive__category-subtitle {
    font-size: var(--tamland-font-size-label-sm) !important;
    line-height: var(--tamland-line-height-label-sm) !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-overflow: clip !important;
  }

  .tamland-wc-archive__stack {
    gap: var(--tamland-space-12);
  }
}

.tamland-archive-banner{
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}
.tamland-archive-banner img{
  width: 100%;
  display: block;
}
.tamland-archive-banner__link{
  display:block;
}

.status-out-of-stock {
  color: rgb(255, 255, 255) !important;
  background: rgb(230, 57, 70) !important;
}

@media (max-width: 768px) {
  .tamland-shop__sidebar #activeFilterChipsSection,
  .tamland-shop__sidebar .tamland-wc-archive__chips-section {
    display: none !important;
  }

  /* Mobile Filter Search Box Margins (Inset to match header and items) */
  .tamland-shop__sidebar .tamland-shop__search-wrap,
  .tamland-shop__sidebar .tamland-wc-archive__search-wrap,
  .tamland-wc-archive__sidebar .tamland-shop__search-wrap,
  .tamland-wc-archive__sidebar .tamland-wc-archive__search-wrap {
    display: flex !important;
    margin: var(--tamland-space-16) var(--tamland-space-16) var(--tamland-space-12) !important;
    width: auto !important;
    box-sizing: border-box !important;
  }

  .tamland-shop__sidebar.is-sub-open .tamland-shop__search-wrap,
  .tamland-shop__sidebar.is-sub-open .tamland-wc-archive__search-wrap,
  .tamland-wc-archive__sidebar.is-sub-open .tamland-shop__search-wrap,
  .tamland-wc-archive__sidebar.is-sub-open .tamland-wc-archive__search-wrap {
    display: none !important;
  }

  .tamland-shop__sidebar .tamland-wc-archive__divider {
    display: none !important;
  }

  .tamland-shop__sidebar .tamland-wc-archive__acc-count {
    display: none !important;
  }

  .tamland-shop__sidebar .tamland-wc-archive__acc-item {
    padding: 0 !important;
    border-bottom: 1px solid var(--tamland-color-border-light) !important;
  }

  .tamland-shop__sidebar .tamland-wc-archive__acc-btn {
    padding: var(--tamland-space-16) !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Main View selected chips (matching 4540-86367.jpg) */
  .tamland-shop__sidebar:not(.is-sub-open) .tamland-shop__acc-item.has-selected-chip .tamland-shop__acc-header,
  .tamland-shop__sidebar:not(.is-sub-open) .tamland-shop__acc-item.has-selected-chip .tamland-wc-archive__acc-btn,
  .tamland-shop__sidebar:not(.is-sub-open) .tamland-shop__acc-item:has(.tamland-shop__acc-selected:not(:empty)) .tamland-shop__acc-header,
  .tamland-shop__sidebar:not(.is-sub-open) .tamland-shop__acc-item:has(.tamland-wc-archive__acc-selected:not(:empty)) .tamland-wc-archive__acc-btn {
    padding-bottom: var(--tamland-space-8) !important;
  }

  .tamland-shop__sidebar:not(.is-sub-open) .tamland-shop__acc-selected,
  .tamland-shop__sidebar:not(.is-sub-open) .tamland-wc-archive__acc-selected {
    display: none;
    flex-wrap: wrap;
    gap: var(--tamland-space-8);
    padding: 0 var(--tamland-space-16) var(--tamland-space-16) !important;
    margin: 0 !important;
  }

  .tamland-shop__sidebar:not(.is-sub-open) .tamland-shop__acc-selected:not(:empty),
  .tamland-shop__sidebar:not(.is-sub-open) .tamland-wc-archive__acc-selected:not(:empty),
  .tamland-shop__sidebar:not(.is-sub-open) .tamland-shop__acc-item.has-selected-chip .tamland-shop__acc-selected,
  .tamland-shop__sidebar:not(.is-sub-open) .tamland-shop__acc-item.has-selected-chip .tamland-wc-archive__acc-selected {
    display: flex !important;
    padding: 0 var(--tamland-space-16) var(--tamland-space-16) !important;
    margin: 0 !important;
  }

  .tamland-shop__sidebar .tamland-shop__chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--tamland-space-6) !important;
    background-color: var(--tamland-color-primary-subtle) !important;
    color: var(--tamland-color-primary) !important;
    border-radius: var(--tamland-radius-pill, 9999px) !important;
    padding: var(--tamland-space-4) var(--tamland-space-10) !important;
    font-size: var(--tamland-font-size-label-md, 0.75rem) !important;
    font-weight: var(--tamland-font-weight-medium, 500) !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }

  .tamland-shop__sidebar .tamland-shop__chip > span {
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    transform: translateY(-0.5px) !important;
  }

  .tamland-shop__sidebar .tamland-wc-archive__acc-chevron::before,
  .tamland-shop__sidebar .tamland-wc-archive__acc-chevron::after {
    display: none !important;
    content: none !important;
  }

  /* Hide checklist in Main View */
  .tamland-shop__sidebar:not(.is-sub-open) .tamland-shop__acc-content,
  .tamland-shop__sidebar:not(.is-sub-open) .tamland-wc-archive__acc-panel,
  .tamland-shop__sidebar:not(.is-sub-open) .tamland-wc-archive__acc-panel--open,
  .tamland-shop__sidebar:not(.is-sub-open) .tamland-shop__acc-item.is-open .tamland-shop__acc-content,
  .tamland-shop__sidebar:not(.is-sub-open) .tamland-shop__acc-item.is-open .tamland-wc-archive__acc-panel {
    display: none !important;
  }

  /* Sub View state when a category is active */
  .tamland-shop__sidebar.is-sub-open .tamland-shop__acc-item,
  .tamland-shop__sidebar.is-sub-open .tamland-wc-archive__acc-item {
    display: none !important;
  }

  .tamland-shop__sidebar.is-sub-open .tamland-shop__acc-item.is-active-sub,
  .tamland-shop__sidebar.is-sub-open .tamland-wc-archive__acc-item.is-active-sub {
    display: block !important;
    border-bottom: none !important;
  }

  .tamland-shop__sidebar.is-sub-open .tamland-shop__acc-item.is-active-sub .tamland-shop__acc-header,
  .tamland-shop__sidebar.is-sub-open .tamland-shop__acc-item.is-active-sub .tamland-wc-archive__acc-btn {
    display: none !important;
  }

  .tamland-shop__sidebar.is-sub-open .tamland-shop__acc-item.is-active-sub .tamland-shop__acc-selected,
  .tamland-shop__sidebar.is-sub-open .tamland-shop__acc-item.is-active-sub .tamland-wc-archive__acc-selected {
    display: flex !important;
    padding: var(--tamland-space-12) var(--tamland-space-16) !important;
    border-bottom: 1.5px solid var(--tamland-color-primary) !important;
  }

  .tamland-shop__sidebar.is-sub-open .tamland-shop__acc-item.is-active-sub .tamland-wc-archive__acc-panel {
    display: flex !important;
    flex-direction: column !important;
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
    padding: var(--tamland-space-12) var(--tamland-space-16) !important;
    gap: 0 !important;
  }

  .tamland-shop__sidebar.is-sub-open .tamland-shop__acc-item.is-active-sub .tamland-wc-archive__checklist {
    display: flex !important;
    flex-direction: column !important;
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .tamland-shop__sidebar .tamland-wc-archive__check-row {
    flex-direction: row !important;
    justify-content: flex-start !important;
    padding: var(--tamland-space-10) 0 !important;
    border-bottom: none !important;
    gap: var(--tamland-space-12) !important;
    width: 100% !important;
    font-weight: var(--tamland-font-weight-bold) !important;
  }

  .tamland-shop__sidebar .tamland-wc-archive__check-row .tamland-wc-archive__check-label {
    font-weight: var(--tamland-font-weight-bold) !important;
  }
}
