/* Store page — UI layout over existing site background (#particles-js + hero bg) */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.store-body .footer {
  position: relative;
  z-index: 2;
}

.store-shell {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: clamp(16px, 3vw, 28px) max(16px, env(safe-area-inset-right, 0px))
    clamp(32px, 5vh, 56px) max(16px, env(safe-area-inset-left, 0px));
}

.store-shell__inner {
  width: min(1220px, 100%);
  margin-inline: auto;
}

.store-head {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.store-head__title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f4f6fb;
}

.store-head__crumb {
  font-size: 0.9rem;
  color: rgba(210, 214, 225, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-head__crumb a {
  color: rgba(224, 49, 49, 0.85);
  text-decoration: none;
  font-weight: 600;
}

.store-head__crumb a:hover {
  color: #e03131;
  text-decoration: underline;
}

.store-head__crumb-current {
  color: rgba(255, 255, 255, 0.72);
}

.store-head__crumb-sep {
  opacity: 0.45;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  align-items: start;
}

@media (max-width: 900px) {
  .store-layout {
    grid-template-columns: 1fr;
  }
}

/* صفحات catalog (ملفات / ويب ديزاين) — عمود واحد بلا سايدبار */
.store-layout--solo {
  grid-template-columns: 1fr;
}

.store-shell--catalog .store-layout {
  max-width: 1220px;
  margin-inline: auto;
}

.store-head__lead {
  margin: 0;
  max-width: 52rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(210, 214, 225, 0.78);
}

.store-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.store-panel {
  background: rgba(10, 12, 18, 0.38);
  border: 1px solid rgba(224, 49, 49, 0.35);
  border-radius: 14px;
  padding: 18px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.store-main-panel {
  background: rgba(10, 12, 18, 0.38);
  border: 1px solid rgba(224, 49, 49, 0.35);
  border-radius: 14px;
  padding: clamp(16px, 2.2vw, 22px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.store-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.store-panel__title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.store-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-cat {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(245, 247, 252, 0.82);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.store-cat:hover {
  background: rgba(224, 49, 49, 0.08);
  color: #fff;
}

.store-cat.is-active {
  background: rgba(224, 49, 49, 0.14);
  color: #ff6b6b;
}

.store-cat__icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e03131;
  box-shadow: 0 0 10px rgba(224, 49, 49, 0.55);
  flex-shrink: 0;
}

.store-price-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.store-price-tier {
  padding: 11px 10px;
  border-radius: 10px;
  border: 1px solid rgba(224, 49, 49, 0.45);
  background: rgba(224, 49, 49, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}

.store-price-tier:hover {
  background: rgba(224, 49, 49, 0.14);
  border-color: rgba(224, 49, 49, 0.65);
}

.store-price-tier.is-active {
  background: #e03131;
  border-color: #e03131;
  color: #fff;
  box-shadow: 0 0 18px rgba(224, 49, 49, 0.35);
}

.store-price-tier[data-price-tier="200plus"] {
  grid-column: 1 / -1;
}

.store-price-custom {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-price-custom__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.store-price-custom__value {
  color: var(--accent-2, #ff5b5b);
  font-variant-numeric: tabular-nums;
}

.store-price-custom__slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.store-price-custom__slider-row input[type="range"] {
  flex: 1;
  min-width: 0;
  height: 28px;
  accent-color: var(--accent, #e03131);
  cursor: pointer;
}

.store-price-custom__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.store-price-custom__field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.store-price-custom__field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  background: rgba(14, 14, 18, 0.88);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.22),
    0 0 12px rgba(var(--accent-rgb), 0.04);
}

.store-price-custom__field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.store-price-custom__field input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.65);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}

.store-price-custom__field input::-webkit-outer-spin-button,
.store-price-custom__field input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.store-price-custom__field input[type="number"] {
  appearance: textfield;
}

.store-search {
  position: relative;
  flex: 1;
  min-width: min(100%, 240px);
}

.store-search__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 44px 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  background: rgba(14, 14, 18, 0.88);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.28),
    0 0 14px rgba(var(--accent-rgb), 0.05);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.store-search__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.store-search__input:focus {
  outline: none;
  border-color: rgba(224, 49, 49, 0.45);
  box-shadow: 0 0 0 3px rgba(224, 49, 49, 0.12);
}

.store-search__icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.store-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  /* لا يعتمد عرضُه على أقصر نص في القائمة — عرض الفرز ثابت على الطفل */
  width: max-content;
}

.store-sort-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.store-sort-dd {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 auto;
  /* ثابت دائمًا بعرض يستوعب أطول خيار (Price: High to Low) — لا يضيق مع Popular / Rating */
  width: 300px;
  min-width: 300px;
}

.store-sort-dd__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(224, 49, 49, 0.55);
  background: rgba(224, 49, 49, 0.08);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}

.store-sort-dd__trigger:hover {
  background: rgba(224, 49, 49, 0.2);
  border-color: rgba(224, 49, 49, 0.75);
  box-shadow: 0 0 22px rgba(224, 49, 49, 0.22);
}

.store-sort-dd__trigger:focus-visible {
  outline: none;
  border-color: rgba(224, 49, 49, 0.88);
  box-shadow: 0 0 0 3px rgba(224, 49, 49, 0.2);
}

.store-sort-dd__trigger[aria-expanded="true"] {
  border-color: rgba(224, 49, 49, 0.88);
  background: rgba(224, 49, 49, 0.22);
  box-shadow: 0 0 20px rgba(224, 49, 49, 0.35);
}

.store-sort-dd__value {
  flex: 1;
  min-width: 0;
  text-align: start;
}

.store-sort-dd__chev {
  display: flex;
  color: rgba(255, 255, 255, 0.65);
  transition: transform 0.2s ease;
}

.store-sort-dd__trigger[aria-expanded="true"] .store-sort-dd__chev {
  transform: rotate(180deg);
}

.store-sort-dd__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(224, 49, 49, 0.38);
  background: rgba(12, 12, 18, 0.98);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(224, 49, 49, 0.08);
}

.store-sort-dd__menu[hidden] {
  display: none !important;
}

.store-sort-dd__opt {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  margin: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  text-align: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}

.store-sort-dd__opt:hover {
  background: rgba(224, 49, 49, 0.14);
  border-color: rgba(224, 49, 49, 0.35);
}

.store-sort-dd__opt.is-selected {
  border-color: rgba(224, 49, 49, 0.88);
  background: rgba(224, 49, 49, 0.22);
  box-shadow: 0 0 18px rgba(224, 49, 49, 0.28);
}

.store-sort-dd__opt:focus-visible {
  outline: none;
  border-color: rgba(224, 49, 49, 0.65);
  box-shadow: 0 0 0 3px rgba(224, 49, 49, 0.18);
}

html[dir="rtl"] .store-sort-dd__value {
  text-align: right;
}

html[dir="rtl"] .store-sort-dd__opt {
  text-align: right;
}

html[dir="rtl"] .store-search__icon {
  right: auto;
  left: 14px;
}

html[dir="rtl"] .store-search__input {
  padding: 12px 16px 12px 44px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

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

@media (max-width: 520px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}

.store-card {
  position: relative;
  background: rgba(18, 18, 24, 0.92);
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 14px;
  padding: 14px;
  padding-bottom: 56px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(var(--accent-rgb), 0.05);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  cursor: pointer;
  will-change: transform;
}

.store-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-rgb), 0.72);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(var(--accent-rgb), 0.28),
    0 0 56px rgba(var(--accent-rgb), 0.12),
    inset 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .store-card {
    transition:
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  .store-card:hover {
    transform: none;
  }
}

.store-card__visual {
  aspect-ratio: 1;
  border-radius: 12px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.store-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card__glyph {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
}

.store-card__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  padding-right: 44px;
}

html[dir="rtl"] .store-card__title {
  padding-right: 0;
  padding-left: 44px;
}

.store-card__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.store-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(210, 214, 225, 0.62);
}

.store-card--rich {
  padding-bottom: 72px;
  cursor: default;
}

.store-card--rich.store-card--clickable {
  cursor: pointer;
}

.store-card--rich.store-card--clickable:focus-visible {
  outline: 2px solid rgba(224, 49, 49, 0.85);
  outline-offset: 3px;
}

.store-card--rich .store-card__title {
  padding-right: 52px;
}

html[dir="rtl"] .store-card--rich .store-card__title {
  padding-right: 0;
  padding-left: 52px;
}

.store-card__desc {
  margin: 10px 0 0;
  padding-right: 52px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(198, 204, 218, 0.78);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

html[dir="rtl"] .store-card__desc {
  padding-right: 0;
  padding-left: 52px;
}

.store-card__tag {
  margin: 8px 0 0;
  padding-right: 52px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(224, 49, 49, 0.88);
}

html[dir="rtl"] .store-card__tag {
  padding-right: 0;
  padding-left: 52px;
}

.store-card--rich .store-card__cart {
  bottom: 16px;
  right: 16px;
}

html[dir="rtl"] .store-card--rich .store-card__cart {
  right: auto;
  left: 16px;
}

.store-card__stars {
  color: #ffc107;
  font-weight: 700;
}

/* طبقة حركة فقط — يُنشأ من fly-to-cart.js */
.athar-cart-fly-particle {
  will-change: transform, opacity;
}

.store-card__cart {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(224, 49, 49, 0.55);
  background: rgba(224, 49, 49, 0.92);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    filter 0.15s,
    transform 0.15s;
}

html[dir="rtl"] .store-card__cart {
  right: auto;
  left: 14px;
}

.store-card__cart:hover {
  filter: brightness(1.1);
}

.store-card__cart:active {
  transform: scale(0.96);
}

.store-card__cart svg {
  width: 20px;
  height: 20px;
}

/* في السلة — تبديل حالة: أسود غامق */
.store-card__cart.is-in-cart {
  background: linear-gradient(145deg, #0a0a0e 0%, #12121a 55%, #070709 100%);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(245, 246, 250, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.store-card__cart.is-in-cart:hover {
  filter: brightness(1.12);
  border-color: rgba(224, 49, 49, 0.45);
}

.store-card__cart.is-in-cart svg {
  stroke: rgba(245, 246, 250, 0.92);
}

.store-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
}

.store-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 4vw, 36px);
}

.store-page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 18, 0.75);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.store-page-btn:hover:not(:disabled) {
  border-color: rgba(224, 49, 49, 0.45);
}

.store-page-btn.is-active {
  border-color: rgba(224, 49, 49, 0.85);
  background: rgba(224, 49, 49, 0.15);
  color: #fff;
}

body.store-body.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.store-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.store-page-ellipsis {
  color: rgba(255, 255, 255, 0.35);
  padding: 0 4px;
  user-select: none;
}

/* --- Product detail modal --- */
.pd-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.pd-modal[hidden] {
  display: none !important;
}

.pd-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pd-modal__panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  background: linear-gradient(165deg, rgba(16, 14, 22, 0.98), rgba(8, 8, 14, 0.99));
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    0 28px 90px rgba(0, 0, 0, 0.72),
    0 0 70px rgba(var(--accent-rgb), 0.14);
}

.pd-modal__scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 22px 22px 26px;
}

.pd-modal__x {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 16, 0.92);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.pd-modal__x:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
}

.pd-breadcrumb {
  font-size: 0.82rem;
  color: rgba(210, 214, 225, 0.55);
  margin-bottom: 14px;
}

.pd-breadcrumb a {
  color: rgba(224, 49, 49, 0.95);
  text-decoration: none;
  font-weight: 600;
}

.pd-breadcrumb a:hover {
  text-decoration: underline;
}

.pd-crumb-sep {
  margin: 0 6px;
  opacity: 0.45;
}

.pd-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 28px);
  margin-bottom: clamp(20px, 3vw, 32px);
}

@media (max-width: 900px) {
  .pd-top {
    grid-template-columns: 1fr;
  }
}

.pd-media__main {
  position: relative;
}

.pd-hero {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: linear-gradient(145deg, rgba(18, 14, 22, 0.95), rgba(6, 6, 12, 0.98));
}

.pd-hero--video {
  background: #000;
}

.pd-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-play-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.65);
  background: rgba(8, 8, 14, 0.82);
  color: #ffc9c9;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.35);
}

.pd-play-icon {
  margin-left: 3px;
  font-size: 1rem;
}

.pd-vframe,
.pd-vtag {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pd-vtag {
  position: absolute;
  object-fit: contain;
  background: #000;
}

.pd-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pd-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 16, 0.9);
  cursor: pointer;
  flex-shrink: 0;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-thumb.is-active {
  border-color: rgba(var(--accent-rgb), 0.85);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.25);
}

.pd-thumb--video .pd-thumb-v {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.1rem;
  color: #ffc9c9;
}

.pd-summary__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pd-title {
  margin: 0;
  flex: 1 1 auto;
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.pd-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.18);
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  color: #ffc9c9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pd-rating-line {
  margin-top: 8px;
  font-size: 0.88rem;
  color: rgba(230, 232, 240, 0.85);
}

.pd-stars {
  color: #ffc107;
  font-weight: 700;
}

.pd-muted {
  color: rgba(210, 214, 225, 0.48);
}

.pd-price {
  font-size: clamp(1.65rem, 4vw, 2.05rem);
  font-weight: 800;
  color: #fff;
  margin: 14px 0 10px;
}

.pd-short {
  margin: 0 0 14px;
  color: rgba(215, 218, 228, 0.78);
  line-height: 1.55;
  font-size: 0.94rem;
}

.pd-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.pd-bullets li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: rgba(230, 232, 240, 0.88);
  font-size: 0.9rem;
}

.pd-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* طرق الدفع — تحت أزرار الشراء */
.pd-pay {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pd-pay__title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(200, 204, 218, 0.78);
  letter-spacing: 0.03em;
}

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

@media (max-width: 520px) {
  .pd-pay__grid {
    grid-template-columns: 1fr;
  }
}

.pd-pay__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: auto;
  padding: 12px 12px 14px;
  border-radius: 12px;
  font: inherit;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  background: rgba(14, 14, 20, 0.82);
  color: #fff;
  transition:
    filter 0.15s,
    border-color 0.15s,
    background 0.15s;
}

.pd-pay__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  min-height: 30px;
}

.pd-pay__logos--dual {
  gap: 8px;
}

.pd-pay__img {
  display: block;
  height: 24px;
  width: auto;
  max-width: min(100%, 130px);
  object-fit: contain;
}

.pd-pay__img--visa {
  height: 20px;
  max-width: 64px;
}

.pd-pay__img--mc {
  height: 28px;
  max-width: 44px;
}

.pd-pay__img--paypal {
  height: 26px;
  max-width: 100px;
  filter: brightness(1.35) saturate(1.05);
}

.pd-pay__img--applepay {
  height: 30px;
  max-width: 132px;
}

.pd-pay__img--bitcoin {
  height: 32px;
  max-width: 40px;
}

.pd-pay__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.pd-pay__btn--ghost:hover {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.58);
  filter: brightness(1.04);
}

.pd-pay__btn--disabled,
.pd-pay__btn:disabled {
  opacity: 0.88;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(6, 6, 10, 0.65);
  filter: grayscale(0.25);
}

.pd-pay__btn--disabled:hover,
.pd-pay__btn:disabled:hover {
  filter: grayscale(0.25);
  background: rgba(6, 6, 10, 0.65);
}

.pd-pay__label {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
}

.pd-pay__sub {
  font-size: 0.72rem;
  color: rgba(200, 204, 218, 0.7);
  line-height: 1.2;
}

.pd-pay__badge {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fca5a5;
  letter-spacing: 0.01em;
}

.pd-pay__hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: rgba(252, 211, 77, 0.96);
  line-height: 1.4;
}

.pd-btn {
  appearance: none;
  border-radius: 12px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    filter 0.15s,
    transform 0.12s;
}

.pd-btn:active {
  transform: scale(0.99);
}

.pd-btn--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}

.pd-btn--primary:hover {
  filter: brightness(1.06);
}

.pd-btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(14, 14, 20, 0.92);
  color: #fff;
  border-color: rgba(var(--accent-rgb), 0.38);
}

.pd-btn--ghost:hover {
  background: rgba(var(--accent-rgb), 0.12);
}

#pd-cart.is-in-cart {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #13131c 0%, #08080e 100%);
  color: rgba(245, 246, 250, 0.95);
}

#pd-cart.is-in-cart:hover {
  filter: brightness(1.08);
  border-color: rgba(224, 49, 49, 0.42);
}

.pd-tabs-wrap {
  margin-top: 4px;
}

.pd-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.pd-tab {
  appearance: none;
  border: 0;
  background: none;
  color: rgba(210, 214, 225, 0.52);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 2px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.pd-tab.is-active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.pd-tabpanel {
  padding-bottom: 8px;
}

.pd-tabpanel[hidden] {
  display: none;
}

.pd-desc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}

@media (max-width: 760px) {
  .pd-desc-grid {
    grid-template-columns: 1fr;
  }
}

.pd-subhead {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.pd-prose {
  color: rgba(218, 220, 232, 0.88);
  line-height: 1.65;
  font-size: 0.92rem;
}

.pd-prose img {
  max-width: 100%;
  border-radius: 10px;
}

.pd-spec-box {
  background: rgba(12, 12, 18, 0.88);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 14px;
  padding: 8px 14px 10px;
}

.pd-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.pd-spec-row:last-child {
  border-bottom: 0;
}

.pd-spec-k {
  color: rgba(210, 214, 225, 0.62);
}

.pd-spec-v {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.pd-tags {
  margin-top: 14px;
}

.pd-tag {
  display: inline-block;
  margin: 4px 8px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(230, 232, 240, 0.92);
}

.pd-tags-block {
  margin-top: 18px;
}

.pd-tags-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(230, 232, 240, 0.52);
}

.pd-tags-block .pd-tags {
  margin-top: 0;
}

.systems-intro {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.systems-toolbar {
  margin-bottom: 18px;
}

html[dir="rtl"] .pd-modal__x {
  right: auto;
  left: 12px;
}

html[dir="rtl"] .pd-play-overlay {
  left: auto;
  right: 12px;
}

html[dir="rtl"] .pd-spec-v {
  text-align: left;
}
