#pc-shop, #pc-shop select, #pc-shop input, #pc-shop button {
  font-family: "Pofak", sans-serif;
  font-feature-settings: "ss01" 1;
  direction: rtl;
  background-color: var(--pc-surface);
  margin: 0;
}
#pc-shop a {
  text-decoration: none;
  color: inherit;
}

#pc-shop .shop-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#pc-shop .pc-cat-section {
  direction: rtl;
  padding: 0 10px;
  width: 100%;
  box-sizing: border-box;
}

#pc-shop .pc-cat-title {
  font-family: "Pofak";
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5em;
  color: var(--pc-primary);
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

#pc-shop .pc-cat-title-before {
  display: flex;
  justify-content: center;
}

#pc-shop .pc-cat-title:before {
  content: "";
  bottom: 0;
  left: -5px;
  top: 10px;
  right: -5px;
  position: absolute;
  background-color: var(--pc-primary-soft);
  border-radius: 10px;
  pointer-events: none;
  z-index: 1;
}

#pc-shop .pc-cat-scroll {
  width: 100%;
  scroll-padding-inline-start: 10px;
}

#pc-shop .pc-cat-list {
  list-style: none;
  margin: 0 auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

#pc-shop .pc-cat-item {
  width: calc(25% - 15px);
  min-width: 300px;
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-margin-inline-start: 10px;
  margin: 0;
}

#pc-shop .pc-cat-item:first-child {
  margin-right: 10px;
}

#pc-shop .pc-cat-item:last-child {
  margin-left: 10px;
}

#pc-shop .pc-cat-link {
  display: block;
  text-decoration: none;
  filter: drop-shadow(0 0px 0px #ffb8df);
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

#pc-shop .pc-cat-link:hover, #pc-shop .pc-cat-link:focus-visible {
  filter: drop-shadow(0 4px 5px #ffb8df);
  transform: translateY(-2px);
  outline: none;
}

#pc-shop .pc-cat-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 16px;
}

@media (max-width: 1024px) {
  #pc-shop .pc-cat-section {
    padding: 40px 0;
  }

  #pc-shop .pc-cat-title {
    font-size: 18px;
  }

  #pc-shop .pc-cat-scroll {
    overflow-x: scroll;
    overflow-y: visible;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-padding-inline-start: 10px;
    -ms-overflow-style: none;
    box-sizing: border-box;
  }

  #pc-shop .pc-cat-scroll::-webkit-scrollbar {
    display: none;
  }

  #pc-shop .pc-cat-list {
    margin: 0;
    padding: 0;
    max-width: none;
    justify-content: flex-start;
    gap: 10px;
  }

  #pc-shop .pc-cat-item {
    width: calc(35% - 8px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-width: 200px;
  }
}

#pc-shop .breadcrumbs {
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: #666;
  background-color: var(--pc-bg-soft);
}

#pc-shop .breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#pc-shop .breadcrumb-list li {
  display: flex;
  align-items: center;
  margin: 0;
}

#pc-shop .breadcrumb-list a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

#pc-shop .breadcrumb-list a:hover {
  color: var(--pc-secondary);
}

#pc-shop .separator svg {
  width: 16px;
  aspect-ratio: 1 / 1;
}
#pc-shop .separator svg path {
  stroke: #999;
  font-size: 16px;
  margin: 0 4px;
}

/* آیتم فعلی */
#pc-shop .current a {
  color: var(--pc-text);
  font-weight: 400;
  pointer-events: none;
}

#pc-shop .shop-top-discription {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
  padding: 5px;
  margin: -15px 0 0 0;
  border-radius: 10px;
  font-size: 14px;
  color: var(--pc-accent);
  background-color: var(--pc-accent-soft);
}
#pc-shop .shop-top-discription svg {
  flex-shrink: 0;
  margin-top: 3px;
}

#pc-shop .shop-main-section {
  display: flex;
  flex-direction: row-reverse;
  gap: 30px;
  width: 100%;
  padding-bottom: 50px;
}
#pc-shop .products-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80%;
}

#pc-shop .mobile-top-bar {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

#pc-shop .shop-sidebar {
  display: flex;
  flex-direction: column;
  width: 20%;
  border: 1px solid var(--pc-border);
  padding: 10px;
  border-radius: 20px;
  gap: 20px;
}
#pc-shop .sidebar-header {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  z-index: 3;
}

#pc-shop .sort-button {
  display: none;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  height: 35px;
  border: 1px solid var(--pc-border);
  border-radius: 20px;
  background: none;
  color: var(--pc-text);
  padding: 0 10px;
}

#pc-shop .sort-button svg {
  width: 20px;
  aspect-ratio: 1 / 1;
}
#pc-shop .sidebar-header h3 {
  margin: 0;
  font-family: "Pofak";
  font-size: 20px;
  font-weight: 500;
  color: var(--pc-primary);
}
#pc-shop .sidebar-header svg {
  width: 24px;
  aspect-ratio: 1/1;
}
#pc-shop .sidebar-header svg path {
  stroke: var(--pc-primary);
  stroke-width: 2px;
}
#pc-shop .remove-filters-btn {
  font-family: "Pofak";
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5em;
  height: 100%;
  background: none;
  border: none;
  color: var(--pc-secondary);
  padding: 0;
  cursor: pointer;
  margin-right: auto;
}

#pc-shop .mobile-filter-btn {
  display: flex;
  flex-direction: row;
  gap: 5px;
  border: none;
  background-color: var(--pc-primary);
  border-radius: 10px;
  align-items: center;
  padding: 0 20px;
  height: 40px;
  font-size: 14px;
  color: var(--pc-surface);
}
#pc-shop .mobile-filter-btn svg {
  width: 20px;
  aspect-ratio: 1 / 1;
}
#pc-shop .mobile-filter-btn svg path {
  stroke: var(--pc-surface);
}

#pc-shop .sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 0;
  overflow: auto;
  z-index: 1;
  scrollbar-width: none;
}

#pc-shop .sidebar-footer {
  display: none;
  background-color: var(--pc-surface);
  z-index: 2;
  margin-top: auto;
}

#pc-shop .close-sidebar-btn {
  background: none;
  border: none;
  background-color: var(--pc-primary);
  color: var(--pc-surface);
  border-radius: 10px;
  width: calc(60% - 20px);
  height: 40px;
  align-items: center;
  justify-content: center;
}

#pc-shop .sidebar-item:not(:last-child) {
  border-bottom: 1px solid var(--pc-border);
  padding-bottom: 15px;
}

#pc-shop input.shop-page-search {
  font-family: "Pofak";
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  border-radius: 10px;
  padding: 0 15px;
  background: none;
  outline: none;
  color: var(--pc-text-muted);
  border: 1px solid var(--pc-border);
  transition: all 0.3s ease;
}

#pc-shop input.shop-page-search:focus {
  color: #505050;
  border-color: var(--pc-accent);
  box-shadow: var(--pc-shadow-focus);
}
#pc-shop .price-filter-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
}
#pc-shop .price-filter-header, #pc-shop .size-filter__header, #pc-shop .category-filter__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}
#pc-shop .price-filter-header svg, #pc-shop .size-filter__header svg, #pc-shop .category-filter__header svg {
  width: 22px;
  height: 22px;
}
#pc-shop .price-filter-header svg path, #pc-shop .size-filter__header svg path, #pc-shop .category-filter__header svg path {
  stroke-width: 1.3;
  stroke: var(--pc-text);
}
#pc-shop .price-range__label, #pc-shop .size-filter__title, #pc-shop .category-filter__title {
  font-family: "Pofak";
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--pc-text);
  margin: 0;
}

#pc-shop .price-range {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 10px;
}

#pc-shop .price-range__slider {
  position: relative;
  height: 20px;
}

#pc-shop .price-range__track, #pc-shop .price-range__track-active {
  position: absolute;
  top: calc(50% - 4px / 2);
  height: 4px;
  border-radius: calc(4px / 2);
}

#pc-shop .price-range__track {
  right: 0;
  left: 0;
  background: var(--pc-border);
}

#pc-shop .price-range__track-active {
  background: var(--pc-secondary);
}

#pc-shop .price-range__input {
  position: absolute;
  width: 100%;
  top: 0;
  height: 20px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}

#pc-shop .price-range__input::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 4px;
  background: transparent;
}

#pc-shop .price-range__input::-moz-range-track {
  height: 4px;
  background: transparent;
}

#pc-shop .price-range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pc-surface);
  border: 2px solid var(--pc-secondary);
  cursor: pointer;
  margin-top: calc((18px - 4px) / -2);
}

#pc-shop .price-range__input::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pc-surface);
  border: 2px solid var(--pc-primary);
  cursor: pointer;
}

#pc-shop .price-range__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#pc-shop .price-range__field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

#pc-shop .price-range__field-box {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  padding: 0 10px;
  height: 36px;
}

#pc-shop .price-range__text {
  border: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  text-align: right;
  outline: none;
  color: var(--pc-text);
  direction: ltr;
  text-align: left;
}

#pc-shop .price-range__field-box span {
  font-size: 12px;
  color: #505050;
  white-space: nowrap;
}
#pc-shop .price-range-sub {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: -15px;
}
#pc-shop .price-range__sub {
  color: var(--pc-text-muted);
  top: 20px;
  font-size: 12px;
  font-weight: 300;
}
#pc-shop .price-range__sub.sub-min {
  right: 0;
}
#pc-shop .price-range__sub.sub-max {
  left: 0;
}

#pc-shop .size-filter {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border: none;
  gap: 15px;
}
#pc-shop .size-filter__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px;
}
#pc-shop .checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#pc-shop .checkbox-item input {
  display: none;
}

#pc-shop .checkbox-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--pc-text);
}
#pc-shop .checkbox-button {
  display: flex;
  align-items: center;
  gap: 10px;
}

#pc-shop .checkbox-decorator {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

#pc-shop .checkbox-bg {
  position: absolute;
  inset: 0;
  border: 1px solid var(--pc-border);
  background: var(--pc-surface);
  border-radius: 5px;
  transition: all 0.25s ease;
}

#pc-shop .checkbox-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 75%;
  height: 75%;
  color: white;
  transition: transform 0.3s ease;
}

#pc-shop .check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.3s ease 0.1s;
}

#pc-shop .checkbox-item input:checked + .checkbox-button .checkbox-bg {
  background: var(--pc-primary);
  border-color: var(--pc-primary);
}

#pc-shop .checkbox-item input:checked + .checkbox-button .check-path {
  stroke-dashoffset: 0;
}

#pc-shop .checkbox-item:hover .checkbox-bg {
  border-color: var(--pc-primary);
}

#pc-shop .checkbox-item input:focus + .checkbox-button .checkbox-bg {
  box-shadow: 0 0 0 3px rgba(246, 59, 215, 0.3);
}

#pc-shop .category-filter.sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#pc-shop .category-list {
  list-style: none;
  margin: 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#pc-shop .category-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#pc-shop .category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

#pc-shop .category-link, #pc-shop .sub-category-link {
  flex: 1;
  font-size: 14px;
  color: #444;
  text-decoration: none;
  padding: 0;
  transition: color 0.2s ease;
}

#pc-shop .category-link:hover, #pc-shop .sub-category-link:hover {
  color: var(--pc-primary);
}

#pc-shop .sub-category-link.active {
  color: var(--pc-primary);
  font-weight: 600;
}

/* دکمه فلش */
#pc-shop .category-toggle {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  min-height: auto;
  transition:
    transform 0.3s ease,
    color 0.2s ease;
}

#pc-shop .category-toggle:hover {
  color: var(--pc-primary);
}

#pc-shop .category-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

#pc-shop .category-toggle svg path {
  stroke-width: 1.8;
}

/* وقتی باز است فلش بچرخد (از چپ به راست در RTL) */
#pc-shop .category-item.open > .category-row .category-toggle svg {
  transform: rotate(-90deg);
}

/* زیرمجموعه‌ها */
#pc-shop .sub-category-list {
  list-style: none;
  margin: 0;
  padding: 0 10px 0 0;
  display: none;
  flex-direction: column;
  gap: 5px;
  position: relative;
  padding-right: 5px;
  margin-right: 4px;
}

#pc-shop .sub-category-list::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 12px;
  width: 14px;
  border-radius: 0 0 10px 0;
  border-right: 1px solid var(--pc-border);
  border-bottom: 1px solid var(--pc-border);
  border-left: none;
}

#pc-shop .sub-category-list li {
  position: relative;
  padding-right: 14px;
}
#pc-shop .sub-category-list li::before {
  content: "";
  position: absolute;
  right: -5px;
  top: 14px;
  width: 15px;
  height: 1.5px;
  background: var(--pc-border);
}
#pc-shop .sub-category-list li:last-child:before {
  height: 0;
}
#pc-shop .sub-category-link {
  font-size: 13px;
  color: var(--pc-text-muted);
}
#pc-shop .sub-category-link.active {
  color: var(--pc-primary);
  font-weight: 600;
}

#pc-shop .category-item.open > .sub-category-list {
  display: flex;
}

/* سطح سوم کمی بیشتر فاصله */
#pc-shop .sub-category-list .sub-category-list {
  padding-right: 12px;
}

#pc-shop .product-cards-header {
  font-size: 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
#pc-shop .sort-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}
#pc-shop .sort-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pc-text);
  font-size: 14px;
}
#pc-shop .sort-title svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
#pc-shop ul.sort-options-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 10px;
  color: var(--pc-text-muted);
}
#pc-shop ul.sort-options-list li{
	margin: 0;
}
#pc-shop .sort-option a {
  position: relative;
  color: var(--pc-text-muted);
  transition: color 0.3s ease;
}
#pc-shop .sort-option:hover a, #pc-shop .sort-option.active a {
  color: var(--pc-primary);
}

#pc-shop .close-sort-btn {
  display: none;
  background: none;
  border: none;
  width: auto;
  height: auto;
  padding: 0;
  position: absolute;
  top: 10px;
  left: 10px;
}

#pc-shop .close-sort-btn svg {
  width: 30px;
  height: 30px;
  color: var(--pc-primary);
}

#pc-shop .product-number {
  color: var(--pc-text-muted);
}

#pc-shop .products-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  grid-auto-rows: 1fr;
}

#pc-shop .product-card {
  position: relative;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--pc-surface);
  box-shadow: var(--pc-shadow-card);
  border-radius: 20px;
  transition: background-color 0.3s ease;
}
#pc-shop .product-card:hover {
  background-color: var(--pc-bg-soft);
}
#pc-shop .off-product-discount {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 4;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  background: var(--pc-primary);
  color: var(--pc-surface);
  border-radius: 14px;
  padding: 3px 5px 3px 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
#pc-shop .off-product-discount svg {
  width: 12px;
  height: 12px;
}
#pc-shop .product-card-images {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 1 / 1;
}
#pc-shop .product-card-images .product-image-1 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  display: block;
  transform-origin: center;
  transition:
    transform 1s ease,
    opacity 0.4s ease;
}
#pc-shop .product-card-images .product-image-2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  display: block;
  opacity: 0;
  transform-origin: center;
  transition:
    transform 1s ease,
    opacity 0.4s ease;
}
#pc-shop .product-card:hover .product-card-images .product-image-1 {
  transform: scale(1.1);
}
#pc-shop .product-card:hover .product-card-images .product-image-2 {
  opacity: 1;
  transform: scale(1.1);
}

#pc-shop .card-lower {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 13px 13px;
  flex: 1;
}

#pc-shop .card-title {
	font-family: "Pofak";
  font-size: clamp(12px, calc(1.5vw + 0.4rem), 14.5px);
  margin: 0;
  font-weight: 600;
  color: var(--pc-text);
  line-height: 1.6;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#pc-shop .card-category-div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  margin-top: 5px;
  color: #444;
  font-size: 13px;
  font-weight: 500;
  min-width: 0;

  transition:
    transform 0.3s,
    opacity 0.3s;
}

#pc-shop .card-category-div .card-category-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#pc-shop .product-card:hover .card-category-div {
  opacity: 0;
  transform: translateY(-15px);
}
#pc-shop .card-category-div svg {
  width: 16px;
  aspect-ratio: 1/1;
}

#pc-shop .product-cart-price {
  display: flex;
  direction: ltr;
  flex-direction: column;
  padding-top: 17px;
  left: 13px;
  right: 13px;
  bottom: 13px;
  margin-top: auto;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
#pc-shop .product-card:hover .product-cart-price {
  transform: translateY(-47px);
}

#pc-shop .product-cart-price ins {
  text-decoration: none;
}
#pc-shop .product-cart-price del {
  display: block;
  font-size: 13px;
  color: var(--pc-text-disabled);
  text-decoration: line-through;
  line-height: 1.25;
}
#pc-shop .product-cart-price bdi {
  display: block;
  font-size: 16px;
  color: var(--pc-text);
  font-weight: 500;
  line-height: 1.25;
}

#pc-shop .product-cart-price .woocommerce-Price-currencySymbol {
  font-size: 13px;
}

#pc-shop .add-to-card-cart {
  position: absolute;
  display: flex;
  flex-direction: row-reverse;
  gap: 5px;
  justify-content: center;
  align-items: center;
  left: 13px;
  right: 13px;
  bottom: 13px;
  height: 42px;
  line-height: 39px;
  text-align: center;
  text-decoration: none;
  background-color: var(--pc-surface);
  color: var(--pc-primary);
  border: 1.5px solid var(--pc-primary);
  border-radius: 13px;
  font-family: Pofak;
  font-weight: 700;
  font-size: 13.5px;
  opacity: 0;
  transform: translateY(18px);
  cursor: pointer;
  transition:
    opacity 0.3s,
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    background-color 0.2s,
    color 0.2s;
}

#pc-shop .add-to-card-cart svg {
  width: 14px;
  height: 14px;
}

#pc-shop .add-to-card-cart svg path {
  stroke-width: 2;
}

#pc-shop .add-to-card-cart.added {
  font-weight: 400;
}

#pc-shop .add-to-card-cart:hover {
  background-color: var(--pc-primary);
  color: var(--pc-surface);
}
#pc-shop .product-card:hover .add-to-card-cart {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ========== محصول ناموجود ========== */
#pc-shop .product-card.out-of-stock .product-image-1, #pc-shop .product-card.out-of-stock .product-image-2 {
  filter: grayscale(100%);
  transition:
    filter 0.4s ease,
    transform 1s ease,
    opacity 0.4s ease;
}

#pc-shop .out-of-stock-text {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--pc-text-disabled);
  line-height: 1.4;
}

#pc-shop .product-card.out-of-stock .add-to-card-cart {
  display: none !important;
}

#pc-shop .product-card.out-of-stock:hover .product-cart-price {
  transform: none;
}

#pc-shop .product-card.out-of-stock:hover .card-category-div {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  #pc-shop .product-card.out-of-stock .out-of-stock-price {
    padding-top: 0;
  }
}

#pc-shop .pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

#pc-shop .pagination-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
#pc-shop .pagination-list li{
	margin: 0;
}

#pc-shop .pagination-page, #pc-shop .pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  transition: all 0.25s ease;
  text-decoration: none;
}

#pc-shop .pagination-page:hover, #pc-shop .pagination-btn:hover {
  border-color: var(--pc-primary);
  color: var(--pc-primary);
  background: var(--pc-surface);
}

#pc-shop .pagination-page.active {
  background: var(--pc-primary);
  border-color: var(--pc-primary);
  color: var(--pc-surface);
  pointer-events: none;
}

#pc-shop .pagination-dots {
  padding: 0 6px;
  color: #999;
  font-size: 16px;
}

#pc-shop .pagination-btn svg {
  flex-shrink: 0;
  stroke: var(--pc-text);
  width: 18px;
  height: 18px;
}

#pc-shop .pagination-page, #pc-shop .pagination-btn {
  cursor: pointer;
}

#pc-shop .pagination-btn:disabled, #pc-shop .pagination-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  #pc-shop .pagination-list {
    gap: 4px;
  }

  #pc-shop .pagination-page, #pc-shop .pagination-btn {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
    padding: 0 8px;
  }
}

#pc-shop .shop-category-description {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#pc-shop .shop-category-description .description-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
#pc-shop .shop-category-description h2 {
  font-family: "Pofak";
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5em;
  color: var(--pc-primary);
  text-align: center;
  position: relative;
  z-index: 2;
  margin: 0;
}
#pc-shop .shop-category-description h2::before {
  content: "";
  bottom: 0;
  left: -5px;
  top: 10px;
  right: -5px;
  position: absolute;
  background-color: var(--pc-primary-soft);
  border-radius: 10px;
  pointer-events: none;
  z-index: 1;
}
#pc-shop .shop-category-description p {
  margin: 0;
  padding: 0;
  font-size: 14px;
}

#pc-shop .product-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

#pc-shop .product-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#pc-shop .product-modal__content {
  position: relative;
  background: var(--pc-surface);
  border-radius: 20px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#pc-shop .product-modal.active .product-modal__content {
  transform: translateY(0);
}

/* دکمه بستن */
#pc-shop .product-modal__close {
  position: absolute;
  top: 14px;
  left: 14px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #666;
  display: flex;
  border-radius: 8px;
  transition: all 0.2s ease;
}

#pc-shop .product-modal__close:hover {
  background: #f5f5f5;
  color: var(--pc-primary);
}

#pc-shop .product-modal__close svg {
  width: 22px;
  height: 22px;
}

/* عنوان */
#pc-shop .product-modal__title {
  margin: 0 0 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--pc-text);
  text-align: center;
  line-height: 1.5;
  padding: 0 30px;
}

/* گروه‌های انتخاب */
#pc-shop .product-modal__options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

#pc-shop .modal-option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#pc-shop .modal-option-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

#pc-shop .modal-option-hint {
  margin: 0;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

/* سلکت */
#pc-shop .modal-select-wrapper {
  position: relative;
}

#pc-shop .modal-select {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  background: var(--pc-surface);
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

#pc-shop .modal-select:focus {
  border-color: var(--pc-accent);
  box-shadow: 0 0 0 3px rgba(246, 175, 47, 0.15);
}

/* اینپوت تگ */
#pc-shop .modal-text-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
}

#pc-shop .modal-text-input:focus {
  border-color: var(--pc-accent);
  box-shadow: 0 0 0 3px rgba(246, 175, 47, 0.15);
}

#pc-shop .char-counter {
  font-size: 12px;
  color: #999;
  text-align: left;
  direction: ltr;
}

/* دکمه افزودن */
#pc-shop .product-modal__add-btn {
  width: 100%;
  height: 48px;
  background: var(--pc-primary);
  color: var(--pc-surface);
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

#pc-shop .product-modal__add-btn:hover {
  background: var(--pc-primary);
}

#pc-shop .product-modal__add-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* موبایل */
@media (max-width: 480px) {
  #pc-shop .product-modal__content {
    padding: 24px 18px 20px;
    border-radius: 16px;
  }
}

#pc-shop .overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

#pc-shop .overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 769px) {
  #pc-shop .mobile-top-bar {
    display: none;
  }
}
@media (max-width: 768px) {
  #pc-shop .shop-sidebar {
    padding: 10px;
    visibility: hidden;
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    background: var(--pc-surface);
    width: auto;
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-radius: 0;
    border: none;
  }

  #pc-shop .shop-sidebar.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  #pc-shop .sort-section {
    display: none;
    position: fixed;
    height: auto;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--pc-surface);
    border: 1px solid var(--pc-border);
    border-radius: 15px;
    padding: 15px;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  #pc-shop .sort-section.active {
    display: flex;
    flex-direction: column;
  }

  #pc-shop .sidebar-item.search-box {
    display: none;
  }

  #pc-shop .sidebar-footer {
    display: flex;
    flex-direction: row;

  }
  #pc-shop .close-sort-btn {
    display: flex;
  }
  #pc-shop .remove-filters-btn {
    position: absolute;
    top: auto;
    bottom: 10px;
    left: 10px;
    right: auto;
    width: calc(40% - 20px);
    height: 40px;
    border: 1px solid var(--pc-secondary);
    border-radius: 10px;
    background-color: var(--pc-surface);
  }
  #pc-shop .shop-page {
    padding: 0 10px;
  }
  #pc-shop .products-section {
    width: 100%;
  }

  #pc-shop .sort-button {
    display: flex;
  }
  #pc-shop .price-range__fields {
    flex-direction: row;
  }
  #pc-shop .products-list {
    grid-template-columns: 1fr;
  }
  #pc-shop .product-card {
    max-width: 100%;
    flex-direction: row;
    box-shadow: none;
    padding: 0px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pc-text-faint);
    border-radius: 0;
  }
  #pc-shop .product-card:hover {
    background-color: var(--pc-surface);
  }
  #pc-shop .product-card:last-child {
    border-bottom: none;
  }

  #pc-shop .product-card-images {
    flex: 0 0 30%;
    width: 30%;
    aspect-ratio: 1 / 1;
    align-self: flex-start;
    border-radius: 10px;
  }

  #pc-shop .card-lower {
    padding: 5px 10px 5px 5px;
    gap: 0;
  }

  #pc-shop .product-cart-price {
    padding-top: 0;
  }

  #pc-shop .off-product-discount {
    font-size: 12px;
    right: calc(30% + 7px);
    bottom: 7px;
    left: auto;
    top: auto;
  }
  #pc-shop .off-product-discount svg {
    width: 12px;
  }
  #pc-shop .product-card:hover .card-category-div {
    opacity: 1;
    transform: none;
  }
  #pc-shop .product-card:hover .product-cart-price {
    transform: none;
  }
  #pc-shop .add-to-card-cart {
    display: none;
  }
  #pc-shop .product-card:hover .product-card-images .product-image-1 {
    transform: none;
  }
  #pc-shop .product-card:hover .product-card-images .product-image-2 {
    opacity: 0;
    transform: none;
  }

  #pc-shop .shop-category-description h2 {
    font-size: 16px;
  }
  #pc-shop .shop-category-description p {
    font-size: 12px;
  }
}
