/* ===== PRODUCTS PAGE ===== */

.pds-main {
  direction: rtl;
  padding-top: 10px;
  padding-bottom: 25px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 24%),
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 22%),
    linear-gradient(180deg, #f7faf8 0%, #eef3f8 100%);
  min-height: calc(100vh - 80px);
}

.pds-main:has(.app-footer-custom) {
  padding-bottom: 0;
}

.pd-crumb {
  font-family: var(--font);
  padding: 10px 16px;
  margin: 12px 14px 4px;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  border: 1px solid rgba(209, 219, 231, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

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

.pd-crumb .breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.pd-crumb .breadcrumb-item a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pd-crumb .breadcrumb-home-icon {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.pd-crumb .breadcrumb-item a:hover {
  color: var(--green);
}

.pd-crumb .breadcrumb-item a:hover .breadcrumb-home-icon {
  color: var(--green);
}

.pd-crumb .breadcrumb-item + .breadcrumb-item::before {
  content: "\f104";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.65rem;
  color: var(--text-light);
  margin-inline-end: 8px;
  margin-inline-start: 2px;
}

.pd-crumb .breadcrumb-item.active {
  color: var(--green);
  font-weight: 800;
}

.pds-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
  margin: 25px 14px 8px;
}

.pds-content {
  min-width: 0;
}

.pds-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.pds-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: 4px;
}

.pds-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  color: #0f766e;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  border: 1px solid #b7ece4;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.08);
  font-size: 0.84rem;
  font-weight: 800;
}

.pds-page-btn.is-disabled {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: none;
  pointer-events: none;
}

.pds-page-indicator {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
}

.pds-product-card {
  align-self: start;
  position: relative;
  overflow: hidden;
  min-height: 540px;
  padding: 18px 16px 16px;
  direction: rtl;
  text-align: right;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #dbe5ee;
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  cursor: pointer;
}

.pds-product-card:hover {
  transform: translateY(-4px);
  border-color: #c1d4e7;
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.11);
}

.pds-heart {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #64748b;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  font-size: 1rem;
}

.pds-heart.active,
.pds-heart:hover {
  color: var(--red);
}

.pds-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 8px 14px;
  color: #fff;
  background: linear-gradient(135deg, #047857 0%, #10b981 100%);
  border-radius: 0 0 0 16px;
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(4, 120, 87, 0.18);
}

.pds-badge-discount {
  background: linear-gradient(135deg, #0f766e 0%, #22c55e 100%);
}

.pds-media,
.pds-mini-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 305px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-radius: 18px;
}

.pds-media-glow {
  position: absolute;
  inset: 18px 24px auto;
  height: 90px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 72%);
  filter: blur(10px);
}

.pds-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pds-media-pink {
  background: linear-gradient(180deg, #f9c0df 0%, #f7d1e6 100%);
}

.pds-mini-carousel {
  position: relative;
}

.pds-mini-carousel .carousel-inner,
.pds-mini-carousel .carousel-item {
  height: 305px;
}

.pds-mini-carousel .carousel-item > div {
  height: 100%;
}

.pds-mini-carousel .carousel-control-prev,
.pds-mini-carousel .carousel-control-next {
  width: 28px;
  opacity: 1;
}

.pds-mini-carousel .carousel-control-prev-icon,
.pds-mini-carousel .carousel-control-next-icon {
  width: 18px;
  height: 18px;
  background-color: rgba(0, 0, 0, 0.28);
  border-radius: 50%;
  background-size: 60%;
}

.pds-mini-carousel .carousel-indicators {
  bottom: 4px;
  margin-bottom: 0;
}

.pds-mini-carousel .carousel-indicators button {
  width: 7px;
  height: 7px;
  background-color: #d1d5db;
  border-radius: 50%;
}

.pds-mini-carousel .carousel-indicators .active {
  background-color: #1f2937;
}

.pds-product-card h3 {
  min-height: 68px;
  margin: 0 0 2px;
  color: #18283c;
  font-family: "Cairo", sans-serif !important;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
}

.pds-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  direction: rtl;
  margin-top: 2px;
  color: #111827;
}

.pds-discount {
  color: #35b34a;
  font-size: 0.8rem;
  font-weight: 700;
}

.pds-price-row del {
  color: #9ca3af;
  font-size: 0.8rem;
}

.pds-price-row strong {
  font-size: 1.02rem;
  font-weight: 900;
}

.pds-meta,
.pds-ship,
.pds-ranking {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 600;
}

.pds-ranking i,
.pds-ship i {
  color: #ff8a00;
}

.pds-cashback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  color: #0f766e;
  background:
    linear-gradient(135deg, rgba(239, 252, 248, 0.98) 0%, rgba(232, 255, 251, 0.98) 100%);
  border: 1px solid #b5ece2;
  border-radius: 22px;
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  text-align: center;
}

.pds-cashback-copy {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.pds-cashback-copy strong {
  color: #0f766e;
  font-family: "Cairo", sans-serif !important;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pds-cashback-copy span {
  color: #356d69;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0.95;
}

.pds-sidebar {
  position: sticky;
  top: 84px;
}

.pds-sidebar-box {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dbe5ee;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.pds-tree-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 16px;
  color: #5b6270;
  border-bottom: 1px solid #eceff4;
}

.pds-tree-parent small,
.pds-tree-parent span {
  display: block;
}

.pds-tree-parent small {
  margin-bottom: 4px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
}

.pds-tree-parent span {
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 800;
}

.pds-tree-parent-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #0f766e;
  background: #ecfdf5;
  border-radius: 12px;
  font-size: 1rem;
}

.pds-tree-group {
  border-bottom: 1px solid #eceff4;
}

.pds-tree-group:last-child {
  border-bottom: 0;
}

.pds-tree-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: #334155;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 800;
  list-style: none;
}

.pds-tree-child::-webkit-details-marker {
  display: none;
}

.pds-tree-group[open] .pds-tree-child {
  color: #0f172a;
}

.pds-tree-sublist {
  padding: 0 18px 16px;
}

.pds-tree-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #556070;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.pds-tree-check input {
  width: 18px;
  height: 18px;
  accent-color: #0f766e;
}

.pds-tree-check.checked {
  color: #0f766e;
}

.pds-tree-subitem {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: #5b6270;
  text-decoration: none;
  border-bottom: 1px solid #f0f2f5;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.pds-tree-subitem:last-child {
  border-bottom: 0;
}

.pds-tree-subitem.is-active {
  color: #0f766e;
}

.pds-tree-subitem i {
  color: #7b8794;
  font-size: 0.9rem;
}

@media (max-width: 1399px) {
  .pds-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .pds-hero-card {
    grid-template-columns: 1fr;
  }

  .pds-layout {
    grid-template-columns: 1fr;
  }

  .pds-sidebar {
    position: static;
    order: -1;
    display: none;
  }

  .pds-sidebar.is-open {
    display: block;
  }

  .pds-sidebar-toggle {
    display: inline-flex;
  }

  .pds-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pd-crumb {
    margin-inline: 12px;
  }

  .pds-layout {
    margin-inline: 12px;
  }

  .pds-pagination {
    gap: 8px;
    margin-top: 12px;
  }

  .pds-page-btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.76rem;
  }

  .pds-page-indicator {
    font-size: 0.72rem;
  }

  .pds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pds-product-card {
    min-height: 312px;
    padding: 10px 8px 12px;
    border-radius: var(--r-md);
  }

  .pds-media,
  .pds-mini-carousel,
  .pds-mini-carousel .carousel-inner,
  .pds-mini-carousel .carousel-item {
    height: 116px;
  }

  .pds-product-card h3 {
    min-height: 58px;
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 2px;
  }

  .pds-ship,
  .pds-ranking,
  .pds-cashback {
    font-size: 0.68rem;
  }

  .pds-badge {
    padding: 7px 12px;
    border-radius: 0 0 0 14px;
    font-size: 0.68rem;
  }

  .pds-price-row {
    gap: 4px;
  }

  .pds-price-row strong {
    font-size: 0.98rem;
  }

  .pds-price-row del,
  .pds-discount {
    font-size: 0.72rem;
  }

  .pds-cashback {
    margin-top: 10px;
    padding: 10px;
  }

  .pds-cashback-copy strong {
    font-size: 0.82rem;
  }

  .pds-cashback-copy span {
    font-size: 0.62rem;
  }

}

@media (max-width: 479px) {
  .pds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
