.pager {
  padding: 18px 12px 28px;
}
.pager-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}
.pager-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  opacity: .85;
}
.pager-btn.active {
  background: currentColor;
  color: #111;
  opacity: 1;
}
.pager-btn:disabled { opacity: .35; cursor: default; }
.pager-gap { opacity: .5; padding: 0 4px; }
.pager-meta {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  opacity: .65;
}

.card-rating { font-size: 12px; margin-bottom: 4px; }
.pdp-stars { color: #f5a524; font-weight: 700; }
.card-old, .pdp-old {
  text-decoration: line-through;
  opacity: .5;
  font-weight: 500;
  margin-left: 6px;
  font-size: .85em;
}
.card-badge, .pdp-discount {
  position: absolute;
  left: 8px;
  top: 8px;
  background: #f91155;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
}
.product-image img,
.pdp-main img,
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
body.theme-playps .pdp-thumb {
  background: #080b10;
}
body.theme-playps .pdp-thumb img {
  padding: 6%;
}
.pdp-thumb {
  padding: 0;
  overflow: hidden;
}

.pdp-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,.55);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.pdp {
  min-height: 100%;
  background: var(--tg-bg, #111);
  color: inherit;
  padding-bottom: 92px;
}
.pdp-back {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 100%;
  border: 0;
  background: color-mix(in srgb, var(--tg-bg, #111) 88%, transparent);
  backdrop-filter: blur(12px);
  color: inherit;
  text-align: left;
  padding: 14px 16px;
  font: inherit;
  cursor: pointer;
}
.pdp-main {
  width: 100%;
  aspect-ratio: 1;
  background: #111 center/cover no-repeat;
  position: relative;
}
.pdp-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
}
.pdp-thumb {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #222 center/cover no-repeat;
  cursor: pointer;
}
.pdp-thumb.active { border-color: #f91155; }
.pdp-body { padding: 8px 16px 16px; }
.pdp-brand {
  font-size: 13px;
  opacity: .7;
  margin-top: 6px;
}
.pdp-title {
  font-size: 22px;
  line-height: 1.25;
  margin: 6px 0 12px;
  font-weight: 700;
}
.pdp-prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pdp-price { font-size: 28px; font-weight: 800; }
.pdp-delivery {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  font-size: 14px;
}
.pdp-specs, .pdp-desc { margin: 18px 0; }
.pdp-specs h3, .pdp-desc h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.pdp-spec {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed color-mix(in srgb, currentColor 18%, transparent);
  font-size: 14px;
}
.pdp-spec span:first-child { opacity: .65; }
.pdp-desc p { line-height: 1.55; opacity: .9; }
.pdp-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--tg-bg, #111) 92%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.pdp-bar .btn-primary, .pdp-bar .card-counter { flex: 1; }
.pdp-bar-price { font-size: 20px; font-weight: 800; white-space: nowrap; }

.form-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.form-photo-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.form-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.form-photo-del {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 0;
  border-radius: 6px;
  padding: 4px 6px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  background: rgba(0,0,0,.72);
  color: #fff;
}
#product-form-clear-photos {
  margin-top: 8px;
}
.form-textarea-lg { min-height: 160px; }

.cat-sheet {
  min-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  padding-bottom: 88px;
}
#cat-picker.overlay { z-index: 55; }
.cat-filter-sheet {
  position: relative;
  padding-bottom: 88px;
}
.cat-filter-sheet .cat-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
}
.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 14px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.cat-head-title { font-size: 22px; font-weight: 700; }
.cat-head-check {
  width: 28px; height: 28px; border-radius: 50%;
  background: #1a9fff; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}
.cat-list { padding: 4px 0 20px; }
.cat-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 16px 4px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  cursor: pointer;
}
.cat-row-name { font-size: 16px; }
.cat-radio {
  width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  box-sizing: border-box;
}
.cat-radio.is-on, .cat-row.is-on .cat-radio {
  border-color: #1a9fff;
  background: radial-gradient(circle, #1a9fff 45%, transparent 48%);
}
.cat-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--tg-bg, #111) 94%, transparent);
}
.cat-view-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  background: #1a9fff;
  color: #fff;
  cursor: pointer;
}
.listing-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 4px;
}
.listing-back {
  width: 36px; height: 36px;
  border: 0; border-radius: 10px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: inherit; font-size: 18px; cursor: pointer;
}
.listing-title { font-weight: 800; font-size: 16px; }
.listing-meta { font-size: 12px; opacity: .65; }
.search-input {
  width: 100%;
  margin: 8px 0;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  color: inherit;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.sub-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
}
.chip {
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.chip.active {
  background: #1a9fff;
  border-color: #1a9fff;
  color: #fff;
}
.pdp-desc p { margin-bottom: 12px; }
