.stock-detail-page {
  min-height: 100vh;
  background: #f5f5f5;
  color: #111;
}

.stock-detail-nav .sidebar-link.is-active .sidebar-icon {
  background: var(--color-green);
}

.stock-detail-shell {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 0;
}

.stock-detail-intro {
  grid-area: intro;
  padding: 28px 34px 10px;
  border-radius: var(--radius-md);
  background: #fff;
}

.stock-detail-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.stock-detail-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.stock-detail-breadcrumbs a:hover,
.stock-detail-seller a:hover,
.stock-detail-catalog a:hover {
  text-decoration: underline;
}

.stock-detail-breadcrumbs > span:last-child {
  overflow: hidden;
  max-width: 280px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-detail-heading {
  margin-bottom: 24px;
}

.stock-detail-heading__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.stock-detail-heading h1 {
  margin: 0;
  font-size: clamp(28px, 2.4rem, 40px);
  line-height: 1.12;
  font-weight: 700;
}

.stock-detail-model-rating { display: inline-flex; align-items: baseline; gap: 5px; margin-top: 10px; color: #111; font-size: 14px; font-weight: 700; white-space: nowrap; }
.stock-detail-model-rating span { display: inline; color: #666; font-size: 13px; font-weight: 400; }
.stock-detail-model-rating:hover { text-decoration: underline; }

.stock-detail-mobile-price {
  display: none;
}
.stock-detail-mobile-price strong { display: block; white-space: nowrap; }
.stock-detail-mobile-price span { display: block; color: #666; font-size: 15px; font-weight: 400; white-space: nowrap; }

.stock-detail-mobile-price-note { display: none; }

.stock-detail-price-note {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: #f3f3f3;
  font-size: 12px;
  line-height: 1.45;
}

.stock-detail-price-note > strong { font-size: 13px; }
.stock-detail-price-note ul { margin: 4px 0 0; padding-left: 16px; }
.stock-detail-price-note li + li { margin-top: 4px; }
.stock-detail-price-note dl { display: grid; gap: 7px; margin: 4px 0 0; }
.stock-detail-price-note dl > div { display: flex; justify-content: space-between; gap: 12px; }
.stock-detail-price-note dt { color: #555; }
.stock-detail-price-note dd { margin: 0; padding: 1px 5px; border-radius: var(--radius-xxs); background: var(--color-green); color: #111; font-weight: 700; text-align: right; }
.stock-detail-price-note small { color: #666; line-height: 1.4; }
.stock-detail-price-note--plain ul { margin: 0; padding-left: 20px; }

.stock-detail-subtitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #555;
  font-size: 15px;
}
.stock-detail-purchase > .stock-detail-subtitle { margin: 18px 0 12px; }
.stock-detail-stock-chip { border-radius: 999px; background: #eceff1; padding: 7px 13px; color: #333; line-height: 1.4; }

.stock-detail-primary {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) minmax(270px, .95fr);
  grid-template-areas: "gallery middle side" "content content content";
  gap: 22px;
  align-items: start;
}
.stock-detail-side { grid-area: side; display: grid; gap: 14px; min-width: 0; }
.stock-detail-middle { grid-area: middle; display: grid; align-content: start; gap: 26px; min-width: 0; }
.stock-detail-middle > .stock-detail-intro,
.stock-detail-middle > .stock-detail-summary { grid-area: auto; }
.stock-detail-summary--mobile { display: none; }
.stock-detail-discounts { min-width: 0; padding: 20px; border-radius: var(--radius-md); background: #fff; }
.stock-detail-discounts .stock-detail-price-note { padding: 0; background: transparent; font-size: 14px; }
.stock-detail-summary { grid-area: summary; min-width: 0; padding: 0 14px 14px; }
.stock-detail-summary .stock-detail-purchase__summary { margin: 0; }
.stock-detail-summary__specs { display: grid; gap: 0; margin: 0; font-size: 14px; }
.stock-detail-summary__specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid #e8e8e8; }
.stock-detail-summary__specs dt { color: #666; }
.stock-detail-summary__specs dd { min-width: 0; margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.stock-detail-summary .stock-detail-spec-link--button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--control-height-md); margin: 16px 0 0; padding: 10px 16px; border: var(--control-border-width) solid #111; border-radius: var(--control-radius); text-decoration: none; text-align: center; }
.stock-detail-intro { padding: 14px 10px 0; background: transparent; }
.stock-detail-breadcrumbs { margin-bottom: 18px; }
.stock-detail-heading h1 { font-size: 28px; }
.stock-detail-price { padding: 20px; border-radius: var(--radius-md); background: #fff; }

.stock-detail-gallery {
  grid-area: gallery;
  min-width: 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fff;
}

.stock-detail-gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
  border-radius: var(--radius-sm);
}

.stock-detail-gallery__main > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.stock-detail-gallery__main > img:focus-visible { outline: 2px solid #111; outline-offset: -4px; }
.stock-detail-gallery__arrow { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(255,255,255,.94); cursor: pointer; }
.stock-detail-gallery__arrow--prev { left: 12px; }
.stock-detail-gallery__arrow--next { right: 12px; }
.stock-detail-gallery__arrow img { width: 24px; height: 24px; }

.stock-detail-gallery__main > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  background: rgba(17, 17, 17, 0.76);
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
}
.stock-detail-gallery__main > .stock-detail-gallery__status { top: 12px; right: auto; bottom: auto; left: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.94); color: #222; font-size: 13px; font-weight: 600; }

.stock-detail-gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 3px;
}

.stock-detail-gallery__thumb {
  flex: 0 0 82px;
  width: 82px;
  height: 62px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm);
  background: #f3f3f3;
  box-shadow: none;
  cursor: pointer;
}

.stock-detail-gallery__thumb:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

.stock-detail-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html:has(.stock-gallery-dialog[open]) { overflow: hidden; }

.stock-gallery-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f5f5f5;
  color: #111;
  overflow: hidden;
}
.stock-gallery-dialog::backdrop { background: #111; }
.stock-gallery-dialog__layout { display: grid; grid-template-columns: 92px minmax(0, 1fr) 330px; grid-template-rows: auto minmax(0, 1fr); gap: 0 16px; width: 100%; height: 100dvh; padding: 16px; }
.stock-gallery-dialog__header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; padding: 0 0 14px; }
.stock-gallery-dialog__header > div { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.stock-gallery-dialog__header strong { font-size: 20px; }
.stock-gallery-dialog__header span { display: none; color: #555; font-size: 15px; white-space: nowrap; }
.stock-gallery-dialog__close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; }
.stock-gallery-dialog__close:hover { background: #e9e9e9; }
.stock-gallery-dialog__close img { width: 28px; height: 28px; filter: invert(1); }
.stock-gallery-dialog__thumbs { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; padding: 2px 4px 2px 0; }
.stock-gallery-dialog__thumb { flex: 0 0 64px; width: 84px; height: 64px; overflow: hidden; border: 0; border-radius: var(--radius-sm); background: #e5e5e5; }
.stock-gallery-dialog__thumb img { width: 100%; height: 100%; object-fit: cover; }
.stock-gallery-dialog__thumb.is-active { outline: 2px solid #111; outline-offset: -2px; }
.stock-gallery-dialog__stage { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; border-radius: var(--radius-sm); background: #e8e8e8; touch-action: pan-y; }
.stock-gallery-dialog__stage > img { width: 100%; height: 100%; object-fit: contain; }
.stock-gallery-dialog__arrow { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; transform: translateY(-50%); border-radius: 50%; background: rgba(255,255,255,.94); }
.stock-gallery-dialog__arrow:hover { background: #fff; }
.stock-gallery-dialog__arrow--prev { left: 16px; }
.stock-gallery-dialog__arrow--next { right: 16px; }
.stock-gallery-dialog__arrow img { width: 24px; height: 24px; }
.stock-gallery-dialog__counter { position: absolute; right: var(--photo-counter-right, 16px); bottom: var(--photo-counter-bottom, 16px); padding: 7px 10px; border-radius: 4px; background: rgba(17,17,17,.82); color: #fff; font-size: 14px; }
.stock-gallery-dialog__contact { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 0; padding: 20px; border-radius: var(--radius-sm); background: #fff; align-self: start; }
.stock-gallery-dialog__contact > strong { font-size: 26px; line-height: 1.2; }
.stock-gallery-dialog__contact > span { color: #555; font-size: 14px; }
.stock-gallery-dialog__contact .stock-detail-action { display: flex; width: 100%; min-height: 48px; padding: 10px; font-size: 13px; white-space: nowrap; }
.stock-gallery-dialog__contact small { color: #666; font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  .stock-gallery-dialog__layout { grid-template-columns: 76px minmax(0, 1fr); }
  .stock-gallery-dialog__thumb { width: 68px; height: 52px; flex-basis: 52px; }
  .stock-gallery-dialog__contact { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 12px; }
  .stock-gallery-dialog__contact > strong { font-size: 20px; }
  .stock-gallery-dialog__contact .stock-detail-action { width: auto; }
}

@media (max-width: 760px) {
  .stock-gallery-dialog__layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 0; padding: 0; }
  .stock-gallery-dialog__header { position: absolute; z-index: 3; top: 12px; right: 0; left: 0; grid-column: auto; padding: 0 12px; }
  .stock-gallery-dialog__header > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
  .stock-gallery-dialog__header strong { font-size: 18px; }
  .stock-gallery-dialog__header span { display: block; margin: 0; font-size: 14px; }
  .stock-gallery-dialog__close { flex-basis: 44px; width: 44px; height: 44px; border-radius: 8px; background: #fff; }
  .stock-gallery-dialog__close:hover { background: #f1f1f1; }
  .stock-gallery-dialog__thumbs { display: none; }
  .stock-gallery-dialog__stage { grid-column: 1; border-radius: 0; background: #f5f5f5; }
  .stock-gallery-dialog__arrow { width: 40px; height: 40px; }
  .stock-gallery-dialog__arrow--prev { left: 8px; }
  .stock-gallery-dialog__arrow--next { right: 8px; }
  .stock-gallery-dialog__contact { position: absolute; z-index: 3; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); left: 16px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0; padding: 0; border-radius: 0; background: transparent; }
  .stock-gallery-dialog__contact > strong, .stock-gallery-dialog__contact > span { display: none; }
  .stock-gallery-dialog__contact .stock-detail-action { width: 100%; }
  .stock-gallery-dialog__contact small { color: #111; text-shadow: 0 1px 2px #fff, 0 -1px 2px #fff; }
}

.stock-detail-purchase {
  padding: 20px;
  border-radius: var(--radius-md);
  background: #fff;
}

.stock-detail-price {
  display: block;
  font-size: 32px;
  line-height: 1.15;
}
.stock-detail-price strong { display: block; }
.stock-detail-price span { display: block; margin-top: 5px; color: #666; font-size: 14px; font-weight: 400; }

.stock-detail-purchase__summary {
  margin: 10px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.stock-detail-seller {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 0 18px;
  font-size: 14px;
}
.stock-detail-seller__identity { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.stock-detail-seller__identity > div { display: grid; gap: 5px; min-width: 0; }
.stock-detail-seller__identity .stock-detail-seller__name,
.stock-detail-seller__identity .stock-detail-seller__rating { display: block; }
.stock-detail-seller__logo { flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid #e9e9e9; border-radius: var(--radius-sm); background: #fff; object-fit: contain; }
.stock-detail-seller__logo--letters { display: grid; place-items: center; background: #f2f2f2; font-weight: 700; }
.stock-detail-seller__official { display: flex; align-items: center; gap: 5px; color: #333; font-size: 14px; line-height: 1.35; }
.stock-detail-seller__official img { width: 18px; height: 18px; flex: 0 0 auto; }

.stock-detail-seller > span {
  color: #666;
  font-size: 14px;
}

.stock-detail-seller > strong {
  color: #111;
  font-size: 14px;
}

.stock-detail-seller .stock-detail-seller__name {
  margin: 0;
  color: #111;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.stock-detail-seller__name a { color: inherit; text-decoration: none; }
.stock-detail-seller__name a:hover { text-decoration: underline; }

.stock-detail-spec-link {
  display: inline-block;
  margin-top: 16px;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stock-detail-purchase > .stock-detail-spec-link {
  margin: 10px 0 18px;
}
.stock-detail-purchase > .stock-detail-spec-link--button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--control-height-md); padding: 10px 16px; border: var(--control-border-width) solid #111; border-radius: var(--control-radius); text-decoration: none; text-align: center; }

.stock-detail-seller a,
.stock-detail-catalog a {
  width: fit-content;
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

.stock-detail-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: var(--control-radius);
  background: var(--color-green);
  color: #111;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.stock-detail-action:hover {
  background: #9dea1f;
}

.stock-detail-source {
  margin: 14px 0 0;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
}

.stock-detail-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stock-detail-seller .stock-detail-seller__rating {
  color: #555;
  font-size: 13px;
}

.stock-detail-callback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 10px 12px;
  border: var(--control-border-width) solid #111;
  border-radius: var(--control-radius);
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}
.stock-detail-callback,
.stock-detail-summary .stock-detail-spec-link--button { font-family: "Graphik LCG", Arial, sans-serif; font-size: 14px; font-weight: 700; line-height: 1.3; transition: background-color .18s ease, border-color .18s ease; }
.stock-detail-callback:not(.stock-detail-callback--primary):hover,
.stock-detail-summary .stock-detail-spec-link--button:hover { background: #f1f1f1; color: #111; text-decoration: none; }
.stock-detail-callback:focus-visible,
.stock-detail-summary .stock-detail-spec-link--button:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

.stock-detail-callback--primary {
  border-color: var(--color-green);
  background: var(--color-green);
}
.stock-detail-callback--primary:hover { background: #9dea1f; }

.stock-detail-callback-hours {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 12px;
  text-align: center;
}

.stock-detail-contact-note {
  margin: 8px 0;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.stock-detail-content {
  grid-area: content;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.stock-detail-section {
  padding: 28px;
  border-radius: var(--radius-md);
  background: #fff;
}

.stock-detail-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e7e7e7;
}

.stock-detail-tabs button {
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.stock-detail-tabs button[aria-selected="true"] {
  border-color: #111;
  color: #111;
  font-weight: 700;
}

.stock-detail-spec-note {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.stock-detail-section [hidden] {
  display: none;
}

.stock-detail-section h2 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.2;
}

.stock-detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
}

.stock-detail-specs > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  line-height: 1.45;
}

.stock-detail-specs dt {
  color: #666;
}

.stock-detail-specs dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.stock-detail-description {
  max-width: 760px;
  margin: 0;
  max-height: 248px;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.65;
}

.stock-detail-description.is-expanded {
  max-height: none;
}

.stock-detail-description:not(:has(+ .stock-detail-expand)) {
  max-height: none;
}

.stock-detail-description p {
  margin: 0 0 12px;
}

.stock-detail-questions__own {
  margin-top: 12px;
  width: auto;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--control-radius);
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.stock-detail-expand {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--control-radius);
  background: #f0f0f0;
  color: #111;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.stock-detail-expand:hover { background: #e4e4e4; }

.stock-detail-questions {
  margin-top: 16px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: #fff;
}

.stock-detail-questions h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.stock-detail-questions > p {
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
}

.stock-detail-questions__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-detail-questions__list button {
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #f0f0f0;
  color: #111;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.stock-detail-questions__list button:hover {
  background: #e3e3e3;
}

.stock-detail-equipment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.stock-detail-catalog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.stock-detail-catalog__label {
  display: block;
  margin-bottom: 10px;
  color: #666;
  font-size: 13px;
}

.stock-detail-catalog h2 {
  margin-bottom: 8px;
}

.stock-detail-catalog p {
  margin: 0 0 8px;
  color: #555;
  font-size: 14px;
}

.stock-detail-catalog img {
  max-width: 110px;
  max-height: 90px;
  object-fit: contain;
}

.stock-detail-recommendations {
  margin-top: 16px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: #fff;
}

.stock-detail-variants { margin-top: 16px; padding: 28px; border-radius: var(--radius-md); background: #fff; }
.stock-detail-variants h2 { margin: 0 0 8px; font-size: 24px; }
.stock-detail-variants__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.stock-detail-variants__rating { display: inline-flex; align-items: baseline; gap: 5px; flex: 0 0 auto; color: #222; font-size: 16px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.stock-detail-variants__rating span { display: inline; color: #666; font-size: 13px; font-weight: 400; }
.stock-detail-variants__rating:hover { text-decoration: underline; }
.stock-detail-variants h3 { margin: 26px 0 14px; font-size: 19px; }
.stock-detail-variants__all { color: #1767a8; text-decoration: none; }
.stock-detail-variants__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stock-detail-variants__grid--colors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stock-detail-variant { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px; border-radius: var(--radius-sm); background: #f0f1f3; color: #111; text-decoration: none; }
.stock-detail-variant:hover, .stock-detail-variant.is-selected { background: #e6e9ec; }
.stock-detail-variant__title { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 16px; }
.stock-detail-variant__title > span:not(.stock-detail-variant__swatch) { min-width: 0; overflow-wrap: anywhere; }
.stock-detail-variant__title img { width: 20px; height: 20px; margin-left: auto; flex: 0 0 auto; }
.stock-detail-variant__detail, .stock-detail-variant small { color: #686d72; font-size: 13px; line-height: 1.4; }
.stock-detail-variant__current { position: absolute; top: -12px; right: 12px; padding: 4px 9px; border-radius: 999px; background: #111; color: #fff; font-size: 11px; }
.stock-detail-variant__swatch { flex: 0 0 26px; width: 26px; height: 26px; border: 1px solid #d3d6d8; border-radius: 50%; background: #bbb; }
.stock-detail-variant__swatch[data-color*="бел"] { background: #fff; }
.stock-detail-variant__swatch[data-color*="чёр"], .stock-detail-variant__swatch[data-color*="чер"] { background: #161616; }
.stock-detail-variant__swatch[data-color*="сер"] { background: #92969b; }
.stock-detail-variant__swatch[data-color*="сереб"] { background: #c3c8cd; }
.stock-detail-variant__swatch[data-color*="крас"] { background: #b53c3a; }
.stock-detail-variant__swatch[data-color*="син"] { background: #3972a1; }

.stock-detail-recommendations[hidden] {
  display: none;
}

.stock-detail-recommendations h2 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.2;
}

.stock-detail-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 12px;
}

.stock-detail-page .stock-offer-card { min-width: 0; background: #fff; }
.stock-detail-page .stock-offer-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-sm); }
.stock-detail-page .stock-offer-card__image-link,
.stock-detail-page .stock-offer-card picture { display: block; width: 100%; height: 100%; }
.stock-detail-page .stock-offer-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stock-detail-page .stock-gallery-dots { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 5px; min-height: 18px; }
.stock-detail-page .stock-gallery-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.14); cursor: pointer; }
.stock-detail-page .stock-gallery-dot.is-active { width: 24px; background: #fff; }
.stock-detail-page .stock-offer-card__body { padding: 16px 0 2px; }
.stock-detail-page .stock-offer-card__price { margin-bottom: 8px; font-size: var(--type-body-large-size); font-weight: var(--type-heading-weight); line-height: var(--type-body-large-line); }
.stock-detail-page .stock-offer-card h3 { margin: 0 0 10px; font-size: var(--type-body-large-size); font-weight: var(--type-heading-weight); line-height: var(--type-body-large-line); }
.stock-detail-page .stock-offer-card h3 a { color: #111; text-decoration: none; }
.stock-detail-page .stock-offer-card__specs { margin: 0; color: rgba(0,0,0,.58); font-size: var(--type-body-size); line-height: var(--type-body-line); }


.stock-detail-card-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 22%);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.stock-detail-card-rail .stock-offer-card__media { aspect-ratio: 16 / 9; }
.stock-detail-card-rail .stock-offer-card__price,
.stock-detail-card-rail .stock-offer-card h3 { font-size: 16px; }
.stock-detail-card-rail .stock-offer-card__specs { font-size: 12px; }

.stock-detail-related-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #111;
  text-decoration: none;
}

.stock-detail-related-card:hover {
  opacity: 0.86;
}

.stock-detail-related-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  object-fit: cover;
  background: #f5f5f5;
}

.stock-detail-related-card strong {
  margin-top: 8px;
  font-size: 19px;
}

.stock-detail-related-card span {
  font-size: 14px;
  font-weight: 600;
}

.stock-detail-related-card small {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.stock-detail-related-card--viewed img { aspect-ratio: 16 / 9; }
.stock-detail-related-card--viewed strong { font-size: 16px; }
.stock-detail-related-sentinel { min-height: 24px; }
.stock-detail-related-sentinel button { margin-top: 16px; padding: 10px 16px; border: 0; border-radius: 4px; background: #eee; font: inherit; cursor: pointer; }
.stock-detail-related-pages { flex-wrap: wrap; margin-top: 28px; }
.stock-detail-related-pages[hidden] { display: none; }

.stock-footer { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.55fr); gap: 34px 56px; margin-top: 12px; padding: 38px 34px 26px; border-radius: var(--radius-md); background: #111; color: #fff; }
.stock-footer__brand { min-height: 238px; display: flex; flex-direction: column; align-items: flex-start; }
.stock-footer__logo { display: inline-flex; }
.stock-footer__logo img { display: block; width: 119px; height: auto; }
.stock-footer p { margin: 24px 0 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.5; }
.stock-footer__support { margin-top: auto; }
.stock-footer__support span, .stock-footer__bottom span { display: block; color: rgba(255,255,255,.46); font-size: 12px; }
.stock-footer h2 { margin: 0 0 14px; color: #fff; font-size: 14px; }
.stock-footer a { display: inline-block; color: rgba(255,255,255,.72); font-size: 13px; text-decoration: none; }
.stock-footer a:hover { text-decoration: underline; }
.stock-footer__support a { display: block; margin-top: 6px; color: #fff; font-size: 14px; }
.stock-footer__columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.stock-footer nav, .stock-footer__note { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.stock-footer nav a + a { margin-top: 10px; }
.stock-footer__note p { margin: 0; font-size: 13px; }
.stock-footer__bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; }

.stock-detail-dialog {
  width: min(440px, calc(100% - 24px));
  max-height: min(90vh, 600px);
  padding: 24px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.2);
}

.stock-detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.stock-detail-dialog__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.stock-detail-dialog h2 {
  margin: 0;
  font-size: 24px;
}

.stock-detail-dialog__head button {
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.stock-detail-dialog p {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.stock-detail-dialog label {
  display: block;
  margin: 16px 0;
  font-size: 13px;
  font-weight: 600;
}

.stock-detail-dialog input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font: inherit;
}

.stock-detail-dialog textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font: inherit;
  resize: vertical;
}

.stock-detail-mobile-call {
  display: none;
}

@media (min-width: 761px) {
  .stock-detail-mobile-call {
    position: fixed;
    z-index: 30;
    bottom: 16px;
    left: 50%;
    display: block;
    width: min(360px, calc(100vw - 48px));
    transform: translateX(-50%);
  }
  .stock-detail-mobile-call .stock-detail-action { width: 100%; }
}

.stock-detail-dialog .stock-detail-action {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.stock-detail-dialog .stock-detail-action[hidden] {
  display: none;
}

.stock-detail-dialog__status {
  min-height: 20px;
}

.stock-detail-dialog small {
  color: #777;
  font-size: 11px;
  line-height: 1.5;
}

.stock-detail-dialog small a {
  color: inherit;
}

@media (min-width: 1024px) {
  .stock-detail-shell {
    --stock-detail-width: min(1260px, calc(100vw - var(--desktop-rail-width, 136px) - 48px));
    width: var(--stock-detail-width);
    margin-left: calc(var(--desktop-rail-width, 136px) + (100vw - var(--desktop-rail-width, 136px) - var(--stock-detail-width)) / 2);
  }
}

@media (min-width: 1920px) {
  .stock-detail-shell {
    --stock-detail-width: min(1700px, calc(100vw - var(--desktop-rail-width, 136px) - 48px));
  }
}

@media (min-width: 761px) and (max-width: 1099px) {
  .stock-detail-primary { grid-template-columns: minmax(0, 1.4fr) minmax(270px, .8fr); grid-template-areas: "gallery side" "middle side" "content content"; }
  .stock-detail-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .stock-detail-shell {
    width: min(100% - 16px, 560px);
    padding: 0 0 36px;
  }

  .stock-detail-page {
    padding-bottom: 78px;
  }

  .stock-detail-intro {
    padding: 18px 16px 10px;
    background: #fff;
  }

  .stock-detail-breadcrumbs {
    margin-bottom: 18px;
  }

  .stock-detail-heading h1 {
    min-width: 0;
    margin: 0;
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .stock-detail-mobile-price {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    font-size: 22px;
    line-height: 1.12;
  }

  .stock-detail-heading__row { align-items: flex-start; margin-bottom: 14px; }

  .stock-detail-primary {
    grid-template-columns: 1fr;
    grid-template-areas: "gallery" "middle" "discounts" "purchase" "summary" "content";
    gap: 18px;
  }
  .stock-detail-primary:not(:has(.stock-detail-discounts)) { grid-template-areas: "gallery" "middle" "purchase" "summary" "content"; }
  .stock-detail-middle { display: block; }
  .stock-detail-summary--desktop { display: none; }
  .stock-detail-summary--mobile { display: block; grid-area: summary; }
  .stock-detail-side { display: contents; }
  .stock-detail-side > .stock-detail-price { display: none; }
  .stock-detail-discounts { grid-area: discounts; }
  .stock-detail-purchase { grid-area: purchase; }
  .stock-detail-discounts { padding: 20px 16px; }
  .stock-detail-summary { padding: 20px 16px; border-radius: var(--radius-md); background: #fff; }
  .stock-detail-questions__own { width: 100%; }

  .stock-detail-purchase {
    position: static;
    padding: 20px 16px;
  }

  .stock-detail-gallery {
    padding: 0;
  }

  .stock-detail-gallery__thumbs {
    display: none;
  }

  .stock-detail-gallery__main {
    touch-action: pan-y;
  }

  .stock-detail-mobile-call {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 0 16px calc(10px + env(safe-area-inset-bottom));
    background: transparent;
  }

  .stock-detail-mobile-call .stock-detail-action {
    width: 100%;
    border: 0;
    font: inherit;
    font-weight: 700;
  }

  .stock-detail-section,
  .stock-detail-questions,
  .stock-detail-recommendations,
  .stock-detail-variants {
    padding: 22px 16px;
  }
  .stock-detail-variants__grid--colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .stock-detail-price {
    display: none;
  }

  .stock-detail-specs {
    grid-template-columns: 1fr;
  }

  .stock-detail-equipment {
    grid-template-columns: 1fr;
  }

  .stock-detail-section h2 {
    font-size: 21px;
  }
  .stock-detail-seller .stock-detail-seller__name { font-size: 21px; }

  .stock-detail-card-rail {
    grid-auto-columns: minmax(130px, 43%);
  }

  .stock-detail-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .stock-detail-related-grid .stock-offer-card__body { padding-top: 10px; }

  .stock-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px 20px;
  }

  .stock-footer__brand { min-height: 0; }
  .stock-footer__support { margin-top: 24px; }
  .stock-footer__columns { grid-template-columns: 1fr; gap: 24px; }
  .stock-footer__bottom { display: block; }
  .stock-footer__bottom a { display: block; margin-top: 8px; }
}

@media (max-width: 380px) {
  .stock-detail-heading h1 { font-size: 18px; white-space: nowrap; }
  .stock-detail-mobile-price { font-size: 18px; }
  .stock-detail-mobile-price span { font-size: 12px; }
  .stock-detail-subtitle { gap: 8px; font-size: 13px; }
  .stock-detail-stock-chip { padding: 5px 9px; }
}
