.product-grid {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.pc-card {
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 20, 48, 0.92), rgba(6, 9, 25, 0.98));
  text-align: right;
  isolation: isolate;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: transform 0.28s cubic-bezier(.2, .7, .2, 1), border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.pc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 76, 255, 0.12), transparent 42%, rgba(255, 192, 2, 0.08));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.pc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 142, 255, 0.34);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(77, 142, 255, 0.08);
}

.pc-card:hover::before {
  opacity: 1;
}

.pc-media-shell {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #0b1028, #050819);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.pc-media-link,
.pc-img {
  display: block;
  width: 100%;
  height: 100%;
}

.pc-img {
  position: relative;
  overflow: hidden;
}

.pc-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.002);
  transition: transform 0.55s cubic-bezier(.2, .7, .2, 1), filter 0.35s ease;
}

.pc-media-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 3, 21, 0.18), transparent 38%, rgba(1, 3, 21, 0.62));
}

.pc-card:hover .pc-img img {
  transform: scale(1.052);
  filter: saturate(1.08) contrast(1.03);
}

.pc-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 4px 2px;
}

.pc-kicker {
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(77, 142, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(77, 142, 255, 0.08);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-title-link {
  display: block;
  margin-top: 9px;
}

.pc-title {
  min-height: 43px;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--white);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0;
  transition: color 0.22s ease;
}

.pc-title-link:hover .pc-title,
.pc-card:hover .pc-title {
  color: #f7fbff;
}

.pc-price {
  margin: auto 0 0;
  padding-top: 13px;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  direction: ltr;
  min-width: 0;
}

.pc-price strong {
  color: var(--gold);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.pc-old-price {
  color: rgba(255, 255, 255, 0.32);
  font-size: 12px;
  font-weight: 800;
  text-decoration-thickness: 1px;
}

.pc-topline {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: calc(100% - 60px);
}

.pc-heart {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 7;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(2, 5, 18, 0.62);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s cubic-bezier(.2, .7, .2, 1), color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  line-height: 0;
}

.pc-heart::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pc-heart::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 91, 135, 0.74);
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
}

.pc-heart-ripple {
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 91, 135, 0.22), transparent 64%);
  opacity: 0;
  transform: scale(0.6);
}

.pc-heart-icon {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
  transform: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.34));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.pc-heart-shape {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.9px;
  stroke-linejoin: round;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.pc-heart:hover {
  transform: translateY(-2px) scale(1.045);
  color: #ff5b87;
  border-color: rgba(255, 91, 135, 0.66);
  background: rgba(14, 9, 25, 0.72);
  box-shadow: 0 18px 34px rgba(255, 91, 135, 0.16), 0 12px 26px rgba(0, 0, 0, 0.38);
}

.pc-heart:hover::before {
  opacity: 1;
  transform: scale(1);
}

.pc-heart:hover .pc-heart-icon {
  transform: scale(1.08) rotate(-4deg);
}

.pc-heart.is-active {
  color: #ff5b87;
  border-color: rgba(255, 91, 135, 0.76);
  background: rgba(32, 12, 34, 0.76);
  box-shadow: 0 18px 38px rgba(255, 91, 135, 0.22), 0 12px 28px rgba(0, 0, 0, 0.38);
}

.pc-heart.is-active .pc-heart-shape {
  fill: currentColor;
  stroke: currentColor;
}

.pc-heart.is-busy {
  pointer-events: none;
}

.pc-heart.is-animating {
  animation: wishlistPop 0.52s cubic-bezier(.18, .89, .32, 1.28);
}

.pc-heart.is-animating .pc-heart-icon {
  animation: wishlistHeartBeat 0.52s ease;
}

.pc-heart.is-animating::after {
  animation: wishlistCirclePulse 0.52s ease-out;
}

.pc-heart.is-animating .pc-heart-ripple {
  animation: wishlistRipple 0.52s ease-out;
}

.pc-card.is-removing {
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.wishlist-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid rgba(53, 255, 183, 0.22);
  border-radius: 14px;
  color: var(--white);
  background: rgba(6, 14, 32, 0.92);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.wishlist-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wishlist-toast.is-error {
  border-color: rgba(255, 91, 135, 0.42);
}

.pc-platform {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(2, 5, 18, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pc-platform img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.pc-discount {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.96), rgba(255, 91, 135, 0.88));
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.pc-cta {
  position: static;
  margin: 12px 0 0;
  padding: 0;
  opacity: 1;
  transform: none;
}

.pc-card.is-adding .pc-img img {
  transform: scale(1.035);
}

.pc-card.is-adding .pc-cta button,
.buy-box.is-adding .btn {
  animation: purchasePulse 0.5s ease;
}

.pc-card.is-added .pc-cta button {
  background: linear-gradient(135deg, var(--green), #16a34a);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.32);
}

.pc-cta button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, #0a5cff, var(--blue));
  box-shadow: 0 12px 24px rgba(0, 76, 255, 0.26);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  white-space: normal;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pc-cta button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 76, 255, 0.34);
}

@keyframes wishlistPop {
  0% { transform: scale(1); }
  38% { transform: scale(1.18); }
  70% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

@keyframes wishlistHeartBeat {
  0% { transform: scale(1) rotate(0); }
  36% { transform: scale(1.22) rotate(-8deg); }
  68% { transform: scale(0.92) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes wishlistCirclePulse {
  0% { opacity: 0.9; transform: scale(0.88); }
  100% { opacity: 0; transform: scale(1.58); }
}

@keyframes wishlistRipple {
  0% { opacity: 0.85; transform: scale(0.55); }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes purchasePulse {
  0% { transform: scale(1); }
  45% { transform: scale(0.96); }
  78% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.sort-wrap {
  position: relative;
}

.sort-btn,
.filter-mobile-btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sort-btn {
  min-width: 170px;
}

.sort-btn:hover,
.filter-mobile-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.sort-btn strong {
  color: var(--white);
  font-weight: 700;
}

.sort-icon {
  color: var(--blue);
}

.sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 260px;
  display: none;
  padding: 8px;
  background: #0d0d18;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.sort-menu.is-open {
  display: block;
}

.sort-menu a,
.sort-menu button {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
  text-align: right;
  font-size: 13px;
}

.sort-menu a:hover,
.sort-menu button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.catalog-filters {
  width: 100%;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.filter-section {
  margin-bottom: 22px;
}

.filter-section h3 {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 500;
}

.chip.active {
  color: var(--blue-soft);
  border-color: rgba(0, 76, 255, 0.4);
  background: rgba(0, 76, 255, 0.15);
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.price-inputs input {
  width: 100%;
  height: 28px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  outline: 0;
}

.range-line {
  position: relative;
  height: 4px;
  margin: 22px 0 13px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.range-line span {
  position: absolute;
  inset: 0 0 0 7px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
}

.range-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 0 12px rgba(0, 76, 255, 0.6);
}

.range-values {
  display: flex;
  justify-content: space-between;
  direction: ltr;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.range-values b {
  color: var(--gold);
  font-weight: 700;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 38px;
  direction: ltr;
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 600;
}

.pagination span {
  background: transparent;
  border-color: transparent;
  color: rgba(255, 255, 255, 0.25);
}

.pagination a.active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 2px 10px rgba(0, 76, 255, 0.35);
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 17, 24, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  outline: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
}

.field textarea {
  min-height: 138px;
  padding-top: 12px;
  resize: vertical;
}

.notice-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(0, 0, 0, 0.6);
}

.filter-drawer.is-open {
  display: block;
}

.filter-drawer__panel {
  width: 280px;
  height: 100%;
  padding: 20px;
  background: #0d0d18;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.filter-drawer.is-open .filter-drawer__panel {
  transform: translateX(0);
}

.drawer-close {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font-size: 24px;
  line-height: 1;
}

.filter-drawer .drawer-close span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.filter-drawer .drawer-close span:first-child {
  transform: rotate(45deg);
}

.filter-drawer .drawer-close span:last-child {
  transform: rotate(-45deg);
}

@media (max-width: 1279px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1023px) {
  .filter-mobile-btn {
    display: inline-flex;
    justify-content: center;
  }

  .sort-wrap,
  .filter-mobile-btn {
    flex: 1 1 0;
  }

  .sort-btn,
  .filter-mobile-btn {
    width: 100%;
  }

  .product-grid {
    width: 100%;
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .pc-card {
    padding: 8px;
    border-radius: 14px;
  }

  .pc-card:hover .pc-img img {
    transform: none;
  }

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

  .pc-media-shell {
    border-radius: 12px;
    aspect-ratio: 1 / 1.04;
  }

  .pc-body {
    padding: 11px 2px 0;
  }

  .pc-kicker {
    min-height: 23px;
    padding: 0 7px;
    font-size: 10.5px;
  }

  .pc-title {
    min-height: 38px;
    font-size: 12.8px;
    line-height: 1.48;
  }

  .pc-price {
    padding-top: 9px;
    gap: 6px;
  }

  .pc-price strong {
    font-size: 18px;
  }

  .pc-old-price {
    font-size: 10.5px;
  }

  .pc-heart {
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
  }

  .pc-heart-icon {
    width: 18px;
    height: 18px;
  }

  .pc-topline {
    top: 8px;
    right: 8px;
    gap: 6px;
    max-width: calc(100% - 50px);
  }

  .pc-platform {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .pc-platform img {
    width: 20px;
    height: 20px;
  }

  .pc-discount {
    min-height: 23px;
    padding: 0 7px;
    font-size: 10px;
  }

  .pc-cta {
    margin-top: 10px;
  }

  .pc-cta button {
    min-height: 40px;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 12px;
  }

  .pagination {
    gap: 5px;
    overflow: hidden;
  }
}

@media (max-width: 359px) {
  .product-grid {
    gap: 9px;
  }

  .pc-card {
    padding: 7px;
  }

  .pc-title {
    font-size: 12px;
  }

  .pc-price strong {
    font-size: 16.5px;
  }

  .pc-cta button {
    font-size: 11.5px;
  }
}
