.set-page {
  padding-top: 18px;
}

.set-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 420px;
  gap: 20px;
  align-items: start;
}

.set-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.set-gallery {
  padding: 14px;
  overflow: hidden;
}

.set-gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.set-gallery__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  max-width: 100%;
}

.set-gallery__thumbs::-webkit-scrollbar {
  height: 8px;
}

.set-gallery__thumbs::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

.set-gallery__thumbs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

.set-gallery__thumb {
  width: 78px;
  min-width: 78px;
  flex: 0 0 78px;
  aspect-ratio: 1 / 1;
}
.set-gallery__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.05), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  padding: 8px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.set-gallery__thumb:hover,
.set-gallery__thumb.is-active {
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.38);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.2),
    0 0 0 3px rgba(250, 204, 21, 0.06);
  background:
    radial-gradient(circle at 50% 18%, rgba(250, 204, 21, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
}

.set-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.set-gallery__stage {
  min-height: 430px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 30% 62%, rgba(59, 130, 246, 0.10), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(250, 204, 21, 0.10), transparent 22%),
    linear-gradient(180deg, rgba(8, 14, 28, 0.88), rgba(8, 14, 28, 0.58));
  border: 1px solid rgba(255,255,255,0.06);
}

.set-gallery__image {
  width: 100%;
  max-width: 560px;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.42));
}

.set-summary {
  padding: 10px 4px 10px 2px;
}

.set-summary__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.set-summary__theme {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #9fb0ca;
}

.set-summary__title {
  margin-top: 12px;
  font-size: 46px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.set-summary__meta-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.set-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}

.set-rating__stars {
  color: #facc15;
  letter-spacing: 1px;
  font-size: 14px;
}

.set-rating__text {
  font-weight: 800;
  color: #f8fafc;
}

.set-rating__reviews {
  color: #94a3b8;
  font-size: 13px;
}

.set-summary__wishlist {
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 13px;
}

.set-specs {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 340px;
}

.set-specs__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
}

.set-specs__item dt {
  color: #9fb0ca;
  font-size: 14px;
  font-weight: 700;
}

.set-specs__item dd {
  margin: 0;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 800;
}

.set-buybox {
  padding: 18px;
}

.set-buybox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.set-buybox__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b4c1d8;
  font-size: 12px;
  font-weight: 700;
}

.set-buybox__toggle input {
  accent-color: #facc15;
}

.set-buybox__price-row {
  margin-top: 18px;
}

.set-buybox__price {
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
}

.set-buybox__compare {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.set-buybox__old {
  color: #7f8ca3;
  text-decoration: line-through;
  font-size: 14px;
  font-weight: 700;
}

.set-buybox__save {
  margin-top: 10px;
  color: #d8e3f3;
  font-size: 14px;
}

.set-buybox__offer {
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.set-buybox__offer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.set-buybox__shop-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 26px;
}

.set-buybox__shop-name {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
}

.set-buybox__shop-stock {
  margin-top: 4px;
}

.set-buybox__mini-cta {
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 12px;
  flex-shrink: 0;
}

.set-buybox__cta {
  width: 100%;
  margin-top: 14px;
}

.set-buybox__cashback {
  margin-top: 12px;
  text-align: center;
  color: #facc15;
  font-size: 13px;
  font-weight: 700;
}

.set-buybox__empty {
  margin-top: 20px;
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
}

.set-tabs {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 0 4px;
}

.set-tabs__link {
  position: relative;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 800;
  color: #c8d4e6;
  transition: color .18s ease;
}

.set-tabs__link:hover,
.set-tabs__link.is-active {
  color: #ffffff;
}

.set-tabs__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fde047, #facc15);
}

.set-tabs__share {
  margin-left: auto;
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 12px;
}

.set-content-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.set-chart-card,
.set-offers-card {
  padding: 18px;
}

.set-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.set-chart-card__ranges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.set-range-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 11px;
  color: #c7d3e5;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.set-range-btn:hover,
.set-range-btn.is-active {
  color: #ffffff;
  border-color: rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.08);
}

.set-chart-placeholder {
  position: relative;
  min-height: 350px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to top, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  background-size: 64px 64px, 64px 64px, auto;
}

.set-chart-placeholder::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 78px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(250, 204, 21, 0.50) 0%,
    rgba(250, 204, 21, 0.85) 22%,
    rgba(250, 204, 21, 0.42) 46%,
    rgba(250, 204, 21, 0.78) 72%,
    rgba(250, 204, 21, 0.58) 100%);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.22);
}

.set-chart-placeholder__grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 18%, rgba(250, 204, 21, 0.06), transparent 20%),
    radial-gradient(circle at 22% 64%, rgba(59, 130, 246, 0.05), transparent 26%);
}

.set-chart-placeholder__label {
  position: absolute;
  inset: auto 18px 18px auto;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(11, 17, 32, 0.82);
  border: 1px solid rgba(255,255,255,0.07);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 14px 26px rgba(0,0,0,0.24);
}

.set-chart-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.set-chart-stat {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.set-chart-stat__value {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.set-chart-stat__label {
  margin-top: 4px;
  font-size: 12px;
  color: #98a8c2;
  font-weight: 700;
}

.set-offers-table-wrap {
  overflow-x: auto;
}

.set-offers-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.set-offers-table th,
.set-offers-table td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.set-offers-table th {
  color: #92a3be;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.set-offers-table td {
  color: #edf4ff;
  font-size: 14px;
  vertical-align: middle;
}

.set-offers-table__seller {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.set-offers-table__shop-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
}

.set-offers-table__shop-name {
  font-weight: 800;
  color: #ffffff;
}

.set-offers-table__stock {
  margin-top: 4px;
}

.set-offers-table__total {
  font-weight: 800;
  color: #facc15;
}

.set-offers-table__action {
  text-align: right;
}

.set-empty-block,
.set-empty-state {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding: 24px;
}

.set-empty-state {
  min-height: 420px;
}

.set-empty-block__icon,
.set-empty-state__icon {
  font-size: 34px;
}

.set-empty-block__title {
  font-size: 16px;
  font-weight: 800;
}

.set-feature-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.set-feature-card {
  min-height: 84px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.set-feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  background: rgba(255,255,255,0.06);
  font-size: 18px;
}

.set-feature-card__title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.set-feature-card__text {
  margin-top: 4px;
  color: #97a8c3;
  font-size: 13px;
  line-height: 1.5;
}

.badge.is-good {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.24);
}

.badge.is-bad {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.24);
}

.badge.is-neutral {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="light"] .set-gallery__thumb {
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .set-gallery__thumb:hover,
html[data-theme="light"] .set-gallery__thumb.is-active {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow:
    0 10px 18px rgba(15, 23, 42, 0.05),
    0 0 0 3px rgba(37, 99, 235, 0.08);
}

html[data-theme="light"] .set-gallery__stage {
  background:
    radial-gradient(circle at 30% 62%, rgba(59, 130, 246, 0.08), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(250, 204, 21, 0.12), transparent 22%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="light"] .set-summary__theme,
html[data-theme="light"] .set-specs__item dt,
html[data-theme="light"] .set-rating__reviews,
html[data-theme="light"] .set-buybox__toggle,
html[data-theme="light"] .set-chart-stat__label,
html[data-theme="light"] .set-feature-card__text,
html[data-theme="light"] .set-offers-table th {
  color: #64748b;
}

html[data-theme="light"] .set-summary__title,
html[data-theme="light"] .set-rating__text,
html[data-theme="light"] .set-specs__item dd,
html[data-theme="light"] .set-buybox__price,
html[data-theme="light"] .set-buybox__shop-name,
html[data-theme="light"] .set-chart-stat__value,
html[data-theme="light"] .set-offers-table td,
html[data-theme="light"] .set-offers-table__shop-name,
html[data-theme="light"] .set-feature-card__title,
html[data-theme="light"] .set-tabs__link:hover,
html[data-theme="light"] .set-tabs__link.is-active {
  color: #0f172a;
}

html[data-theme="light"] .set-rating__stars,
html[data-theme="light"] .set-buybox__cashback,
html[data-theme="light"] .set-offers-table__total {
  color: #d97706;
}

html[data-theme="light"] .set-buybox__old {
  color: #94a3b8;
}

html[data-theme="light"] .set-buybox__save {
  color: #475569;
}

html[data-theme="light"] .set-buybox__offer,
html[data-theme="light"] .set-chart-stat,
html[data-theme="light"] .set-feature-card {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="light"] .set-range-btn {
  color: #475569;
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="light"] .set-range-btn:hover,
html[data-theme="light"] .set-range-btn.is-active {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.07);
  border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="light"] .set-chart-placeholder {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(to top, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #f8fafc);
  background-size: 64px 64px, 64px 64px, auto;
}

html[data-theme="light"] .set-chart-placeholder__label {
  background: rgba(255,255,255,0.96);
  border-color: rgba(148, 163, 184, 0.16);
  color: #0f172a;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .set-tabs__link {
  color: #475569;
}

html[data-theme="light"] .set-tabs__link.is-active::after {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

html[data-theme="light"] .set-offers-table th,
html[data-theme="light"] .set-offers-table td {
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

@media (max-width: 1280px) {
  .set-hero {
    grid-template-columns: 1fr;
  }

  .set-content-grid {
    grid-template-columns: 1fr;
  }

  .set-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .set-hero__main {
    grid-template-columns: 1fr;
  }

  .set-summary__title {
    font-size: 38px;
  }

  .set-chart-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .set-gallery__thumbs {
    order: 2;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .set-gallery__thumb {
    width: 74px;
    min-width: 74px;
  }

  .set-gallery__stage {
    min-height: 300px;
  }

  .set-summary__title {
    font-size: 31px;
  }

  .set-tabs {
    gap: 14px;
  }

  .set-tabs__share {
    margin-left: 0;
  }

  .set-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .set-chart-stats,
  .set-feature-grid {
    grid-template-columns: 1fr;
  }
}

