.wcr-root {
  --wcr-bg: #f6f8fb;
  --wcr-surface: #ffffff;
  --wcr-border: #e2e6f0;
  --wcr-text: #0f1c2e;
  --wcr-muted: #5a6475;
  --wcr-accent: #1d7fe2;
  --wcr-accent-2: #006ab1;
  --wcr-accent-soft: rgba(29, 127, 226, 0.12);
  --wcr-shadow: 0 18px 50px -26px rgba(12, 28, 45, 0.38);
  color: var(--wcr-text);
  background: transparent;
  direction: rtl;
  line-height: 1.6;
  padding: 0;
  width: 100%;
  max-width: none;
}

.wcr-root *, .wcr-root *::before, .wcr-root *::after {
  box-sizing: border-box;
}

.wcr-sort__label{
  font-size: 17px;
}
.wcr-mobile-filter span{
  font-size: 17px;
}
.wcr-root a {
  text-decoration: none;
}

.wcr-root button.wcr-filters__close {
  font-size: 30px !important;
}

.wcr-root button {
  line-height: 1.2;
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 12px;
  justify-content: normal !important;
  color: #1a1a1a !important;
  font-size: 15px !important;
}
.wcr-root button:hover{
background-color: #e4effb !important;
color: #1a1a1a !important;
}



.wcr-breadcrumb {
  border-bottom: 1px solid var(--wcr-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.wcr-breadcrumb ol {
  list-style: none;
  display: inline-flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  align-items: baseline;
  white-space: nowrap;
  overflow-x: auto;
  line-height: 1.4;
}

.wcr-breadcrumb__item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 17px;
  color: var(--wcr-muted);
}

.wcr-breadcrumb__item:not(:last-child)::after {
  content: "\203A";
  color: var(--wcr-border);
  font-weight: 700;
  position: relative;
  top: -1px;
}

.wcr-header {
  margin-bottom: 12px;
}

.wcr-title {
  margin: 0;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.4px;
}


.wcr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.wcr-sort {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wcr-sort__title {
  display: none;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--wcr-muted);
  white-space: nowrap;
}

.wcr-sort__toggle {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e6ebf2;
  background: #fff;
  color: var(--wcr-text);
  box-shadow: 0 10px 24px -20px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.wcr-sort__chevron {
  font-size: 15px;
  color: var(--wcr-muted);
}

.wcr-sort__menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.28);
  padding: 6px;
  display: none;
  z-index: 20;
}

.wcr-sort.is-open .wcr-sort__menu {
  display: grid;
  gap: 4px;
  animation: fadeDown 0.16s ease;
}

.wcr-sort__option {
  text-align: right;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e6ebf2;
  background: #f7f9fc;
  color: var(--wcr-text);
  transition: background 0.15s ease;
}

.wcr-sort__option[aria-selected="true"] {
  background: var(--wcr-accent-soft);
  color: var(--wcr-accent-2);
  font-weight: 700;
}

.wcr-sort__option:hover {
  background: #eef3fb;
}

.wcr-sort__toggle:focus-visible,
.wcr-filter-toggle:focus-visible,
.wcr-page__link:focus-visible,
.wcr-check input:focus-visible + .wcr-check__box {
  outline: 2px solid var(--wcr-accent);
  outline-offset: 2px;
}

@media (min-width: 992px) {
  .wcr-toolbar {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 8px 10px;
    box-shadow: 0 12px 30px -26px rgba(15, 24, 40, 0.24);
    justify-content: flex-start;
  }

  .wcr-sort__toggle {
    display: none !important;
  }

  .wcr-sort__title {
    display: inline-flex;
  }

  .wcr-filter-toggle {
    display: none;
  }

  .wcr-filters__close {
    display: none !important;
  }

  .wcr-sort__menu {
    position: static;
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .wcr-sort__option {
    background: #f7f9fc;
  }
}

.wcr-mobile-filter {
  display: none;
}

.wcr-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--wcr-text);
  border: 1px solid #e6ebf2;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -20px rgba(0, 0, 0, 0.22);
}

.wcr-icon {
  width: 25px;
  height: 25px;
  color: var(--wcr-accent-2);
  display: inline-block;
}

.wcr-shell {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}


.wcr-filters {
  width: 320px;
  flex: 0 0 320px;
  background: var(--wcr-surface);
  border: 1px solid var(--wcr-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 26px -22px rgba(15, 24, 40, 0.18);
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.wcr-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  position: sticky;
  top: 0;
  background: var(--wcr-surface);
  padding-bottom: 10px;
  z-index: 2;
}

.wcr-filters__title {
  font-weight: 800;
}

.wcr-filter {
  border-top: 1px solid var(--wcr-border);
  padding-top: 12px;
  margin-top: 12px;
}

.wcr-filter:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.wcr-filter__title {
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 0;
  font-size: 14px;
  cursor: pointer;
}

.wcr-filter__chevron {
  font-size: 12px;
  color: var(--wcr-muted);
  transition: transform 0.18s ease;
}

.wcr-filter.is-open .wcr-filter__chevron {
  transform: rotate(180deg);
}

.wcr-filter__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wcr-filter__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.wcr-filter.is-open .wcr-filter__panel {
  max-height: 680px;
}

.wcr-accordion {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wcr-price {
  background: #f2f6fb;
  border: 1px solid var(--wcr-border);
  border-radius: 14px;
  padding: 16px 14px;
}

.wcr-price__range {
  position: relative;
  height: 56px;
}

.wcr-price__range input[type="range"] {
  position: absolute;
  inset: 18px 0 18px 0;
  width: 100%;
  pointer-events: none;
  appearance: none;
  background: transparent;
  z-index: 100;
}

.wcr-price__range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wcr-accent), var(--wcr-accent-2));
  border: 2px solid #fff;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}

.wcr-price__range input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wcr-accent), var(--wcr-accent-2));
  border: 2px solid #fff;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}

.wcr-price__range::-webkit-slider-runnable-track,
.wcr-price__range::-moz-range-track {
  height: 6px;
}

.wcr-price__rail {
  position: absolute;
  inset: 24px 0;
  height: 8px;
  background: #dfe3ec;
  border-radius: 999px;
  overflow: hidden;
}

.wcr-price__rail span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1d7fe2, #006ab1);
}

.wcr-price__thumbs {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.wcr-price__badge {
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 12px;
  box-shadow: 0 12px 22px -18px rgba(0, 0, 0, 0.4);
  transform: translateY(-12px);
}

.wcr-check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 6px 0;
  position: relative;
}

.wcr-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.wcr-check__box {
  width: 14px;
  height: 14px;
  border: 2px solid var(--wcr-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.wcr-check input:checked + .wcr-check__box {
  background: var(--wcr-accent);
  border-color: var(--wcr-accent);
}

.wcr-check input:checked + .wcr-check__box::after {
  content: "\2713";
  color: #fff;
  font-size: 10px;
}

.wcr-check__label {
  font-weight: 700;
}

.wcr-check__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  border-radius: 999px;
  background: #f2f5fa;
  color: var(--wcr-muted);
  font-size: 11px;
  padding: 0 6px;
}

.wcr-products {
  flex: 1;
  min-width: 0;
}


.wcr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.wcr-skeleton {
  background: #eef2f7;
  border-radius: 16px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.wcr-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.55), rgba(255,255,255,0));
  transform: translateX(-100%);
  animation: wcrShimmer 1.1s infinite;
}

.wcr-root.is-loading .wcr-grid {
  position: relative;
}

.wcr-root.is-loading .wcr-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(1px);
  animation: wcrPulse 1s ease-in-out infinite;
  z-index: 3;
}

.wcr-loader {
  color: var(--wcr-accent-2);
  font-weight: 700;
}

.wcr-sentinel {
  width: 100%;
  height: 1px;
}

.wcr-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 18px;
  padding: 0;
  min-height: 220px;
  box-shadow: 0 12px 24px -20px rgba(15, 24, 40, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wcr-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 106, 177, 0.22);
  box-shadow: 0 18px 36px -22px rgba(15, 24, 40, 0.18);
}

.wcr-card__link {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  height: 100%;
  color: inherit;
}

.wcr-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #eef3fa;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.wcr-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wcr-card__placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wcr-border);
}

.wcr-card__body {
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.wcr-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--wcr-text);
}

.wcr-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: var(--wcr-muted);
}

.wcr-stars {
  --rating: 0;
  position: relative;
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  color: #e2e6ee;
}

.wcr-stars::before {
  content: "\2605\2605\2605\2605\2605";
  letter-spacing: 2px;
}

.wcr-stars::after {
  content: "\2605\2605\2605\2605\2605";
  letter-spacing: 2px;
  color: #f5b301;
  position: absolute;
  inset: 0;
  width: calc((var(--rating) / 5) * 100%);
  overflow: hidden;
}

.wcr-rating__value {
  font-weight: 700;
  color: #b67900;
}

.wcr-card__price {
  font-weight: 900;
  color: #0f1c2e;
  font-size: 16px;
}

.wcr-card__price .woocommerce-Price-currencySymbol,
.wcr-card__price .woocommerce-price-suffix {
  font-weight: 700;
  color: var(--wcr-muted);
  font-size: 14px;
  margin-right: 4px;
}

.wcr-foot {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wcr-count {
  color: var(--wcr-muted);
  font-weight: 600;
}

.wcr-pagination {
  display: none;
}

.wcr-page__link {
  display: none;
}

.wcr-page__gap {
  display: none;
}

.wcr-empty {
  background: var(--wcr-surface);
  border: 1px dashed var(--wcr-border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  color: var(--wcr-muted);
}

.wcr-description {
  margin-top: 32px;
  padding: 0 0px 8px;
  display: block;
}

.wcr-description__inner {
  background: var(--wcr-surface);
  border: 1px solid var(--wcr-border);
  border-radius: 12px;
  box-shadow: var(--wcr-shadow);
  line-height: 1.8;
  width: 100%;
  padding: 15px 10px;
  position: relative;
}

@media (max-width: 1200px) {
}

@media (max-width: 992px) {
  .wcr-shell {
    flex-direction: column;
  }

  .wcr-mobile-filter {
    display: block;
  }

  .wcr-sort__title {
    display: none;
  }

  .wcr-sort__toggle {
    display: inline-flex;
  }
  .wcr-filters {
    position: fixed;
    inset: 0;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wcr-filters.is-open {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
  }

  .wcr-filters__close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    background: #f2f5f9;
    color: var(--wcr-text);
  }

  .wcr-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .wcr-card {
    min-height: auto;
  }

  .wcr-card__link {
    grid-template-columns: 46% 1fr;
    align-items: center;
    padding: 12px;
  }

  .wcr-card__media {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

@media (max-width: 640px) {
  .wcr-root {
    padding: 0px;
  }
  .wcr-filters__close{
    display: inline-flex;
    font-size: 30px !important;
  }
  .wcr-title {
    font-size: 23px;
  }

  .wcr-sort {
    min-width: 0;
  }

  .wcr-card__link {
    grid-template-columns: 44% 1fr;
    gap: 10px;
  }

  .wcr-card__img {
    width: 100%;
    height: 100%;
  }
}

@keyframes wcrPulse {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.4;
  }
}

@keyframes wcrShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
