.bp-selectedproductcategory {
  direction: rtl;
  margin: 1rem 0;
  text-align: right;
}


.bp-selectedproductcategory-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.bp-selectedproductcategory-heading {
  min-width: 0;
}

.bp-selectedproductcategory-title {
  margin-bottom: 0.35rem;
  text-align: right;
}

.bp-selectedproductcategory-title a {
  color: inherit;
  text-decoration: none;
}

.bp-selectedproductcategory-title a:hover,
.bp-selectedproductcategory-title a:focus {
  text-decoration: underline;
}

.bp-selectedproductcategory-subtitle {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.bp-selectedproductcategory-view-all {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  justify-content: center;
  line-height: 1.35;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bp-selectedproductcategory-view-all:hover,
.bp-selectedproductcategory-view-all:focus {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.24);
  color: inherit;
  text-decoration: none;
}

.bp-selectedproductcategory-view-all-list {
  align-items: center;
  color: #555;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 0.4rem 0.6rem;
  margin: -0.35rem 0 1rem;
}

.bp-selectedproductcategory-view-all-list a {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  color: inherit;
  padding: 0.28rem 0.7rem;
  text-decoration: none;
}

.bp-selectedproductcategory-view-all-list a:hover,
.bp-selectedproductcategory-view-all-list a:focus {
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.bp-selectedproductcategory-slider {
  direction: rtl;
  position: relative;
}

.bp-selectedproductcategory-viewport {
  direction: rtl;
  overflow: hidden;
  width: 100%;
}

.bp-selectedproductcategory-track {
  direction: rtl;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin-left: auto;
  margin-right: 0;
  transition: transform 0.45s ease;
  will-change: transform;
}

.bp-selectedproductcategory-slide {
  box-sizing: border-box;
  direction: rtl;
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 0.5rem;
  text-align: right;
  margin: 20px 0;
}

.bp-selectedproductcategory-slide .product-miniature {
  width: 100%;
      height: 100%;
}

.bp-selectedproductcategory-control {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  height: 2.25rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  z-index: 2;
}

.bp-selectedproductcategory-icon {
  display: block;
  fill: none;
  height: 1.35rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 1.35rem;
}

.bp-selectedproductcategory-control[disabled] {
  cursor: default;
  opacity: 0.35;
}

.bp-selectedproductcategory-prev {
  left: auto;
  right: 1.25rem;
}

.bp-selectedproductcategory-next {
  left: 1.25rem;
  right: auto;
}

@media (min-width: 768px) and (orientation: portrait) {
  .bp-selectedproductcategory-slide {
    flex-basis: 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) {
  .bp-selectedproductcategory-slide {
    flex-basis: 25%;
    max-width: 25%;
  }
}

@media (min-width: 1200px) {
  .bp-selectedproductcategory-slide {
    flex-basis: 20%;
    max-width: 20%;
  }
}


@media (max-width: 575.98px) {
  .bp-selectedproductcategory-header {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.75rem;
  }

  .bp-selectedproductcategory-view-all {
    width: auto;
  }
}

.bp-selectedproductcategory-grouped-tabs {
  margin-top: 2rem;
}

.bp-selectedproductcategory-tablist {
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
}

.bp-selectedproductcategory-tab {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.45rem 0.9rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bp-selectedproductcategory-tab:hover,
.bp-selectedproductcategory-tab:focus,
.bp-selectedproductcategory-tab.is-active {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.24);
}

.bp-selectedproductcategory-tab-panel {
  min-height: 5rem;
  position: relative;
}

.bp-selectedproductcategory-tab-panel.is-loading {
  pointer-events: none;
}

.bp-selectedproductcategory-tab-panel.is-loading::before {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 0.75rem;
  bottom: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  color: #333;
  content: 'در حال بارگذاری...';
  display: flex;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: center;
  left: 0;
  min-height: 5rem;
  padding-top: 3.25rem;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  z-index: 20;
}

.bp-selectedproductcategory-tab-panel.is-loading::after {
  animation: bp-selectedproductcategory-spin 0.75s linear infinite;
  border: 3px solid rgba(0, 0, 0, 0.13);
  border-top-color: rgba(0, 0, 0, 0.58);
  border-radius: 50%;
  content: '';
  height: 2.4rem;
  left: 50%;
  margin-left: -1.2rem;
  margin-top: -1.55rem;
  position: absolute;
  top: 50%;
  width: 2.4rem;
  z-index: 21;
}

.bp-selectedproductcategory-tab.is-loading {
  opacity: 0.78;
  position: relative;
}

.bp-selectedproductcategory-tab.is-loading::after {
  animation: bp-selectedproductcategory-spin 0.75s linear infinite;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  content: '';
  display: inline-block;
  height: 0.85rem;
  margin-right: 0.45rem;
  vertical-align: -0.12rem;
  width: 0.85rem;
}

@keyframes bp-selectedproductcategory-spin {
  to {
    transform: rotate(360deg);
  }
}

.bp-selectedproductcategory-tab-toolbar {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.85rem;
}

.bp-selectedproductcategory-empty,
.bp-selectedproductcategory-error {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  padding: 1rem;
}
