:root {
  --op-ink: #0c193a;
  --op-muted: #505971;
  --op-line: #d8dadf;
  --op-soft: #f5f6f7;
  --op-card: #ffffff;
  --op-brand: #1e3c87;
  --op-accent: #29b9ad;
  --op-accent-strong: #1b9e9f;
  --op-warn: #ffb950;
  --op-shadow: 0 4px 14px rgba(12, 25, 58, 0.08);
}

* {
  box-sizing: border-box;
}

body.op-product-page {
  margin: 0;
  background: var(--op-soft);
  color: var(--op-ink);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.45;
}

.op-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--op-card);
  border-bottom: 1px solid var(--op-line);
}

.op-header__top,
.op-nav__inner,
.op-page,
.op-footer__inner {
  max-width: 1376px;
  margin: 0 auto;
}

.op-header__top {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 14px 24px;
}

.op-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--op-brand);
  font-family: "Bricolage Grotesque", "Open Sans", Arial, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.op-logo::before {
  width: 30px;
  height: 30px;
  content: "";
  display: inline-block;
  background: url("play-market-icon.svg") center / contain no-repeat;
}

.op-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--op-line);
  border-radius: 6px;
  background: var(--op-soft);
  color: var(--op-muted);
}

.op-search svg,
.op-icon-link svg {
  width: 20px;
  height: 20px;
}

.op-header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.op-icon-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--op-line);
  border-radius: 50%;
  color: var(--op-ink);
  text-decoration: none;
}

.op-nav {
  border-top: 1px solid var(--op-line);
  background: var(--op-card);
}

.op-nav__inner {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 24px;
  scrollbar-width: none;
}

.op-nav__inner::-webkit-scrollbar {
  display: none;
}

.op-nav a {
  flex: 0 0 auto;
  color: var(--op-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.op-page {
  padding: 18px 24px 56px;
}

.op-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--op-muted);
  font-size: 12px;
}

.op-breadcrumbs a {
  color: var(--op-muted);
  text-decoration: none;
}

.op-product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.op-gallery,
.op-panel,
.op-summary,
.op-related-card {
  background: var(--op-card);
  border: 1px solid var(--op-line);
  border-radius: 8px;
  box-shadow: var(--op-shadow);
}

.op-gallery {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.op-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 612px;
  overflow: auto;
}

.op-thumb {
  width: 70px;
  height: 70px;
  padding: 4px;
  border: 1px solid var(--op-line);
  border-radius: 6px;
  background: var(--op-card);
  cursor: pointer;
}

.op-thumb[aria-pressed="true"] {
  border: 2px solid var(--op-accent);
}

.op-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.op-main-image {
  display: grid;
  place-items: center;
  min-height: 520px;
  background: #fff;
  border-radius: 6px;
}

.op-main-image img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.op-summary {
  position: sticky;
  top: 122px;
  padding: 24px;
}

.op-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e9efff;
  color: var(--op-brand);
  font-size: 12px;
  font-weight: 700;
}

.op-summary h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Open Sans", Arial, sans-serif;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: 0;
}

.op-rating {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: var(--op-muted);
  font-size: 13px;
}

.op-stars {
  color: var(--op-warn);
  letter-spacing: 0;
}

.op-price {
  margin-top: 22px;
}

.op-price__main {
  display: block;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.op-price__old {
  display: inline-block;
  margin-top: 8px;
  color: var(--op-muted);
  font-size: 15px;
  text-decoration: line-through;
}

.op-tax {
  margin-top: 6px;
  color: var(--op-muted);
  font-size: 12px;
}

.op-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.op-button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--op-accent);
  color: var(--op-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.op-button:hover {
  background: var(--op-accent-strong);
}

.op-button--ghost {
  border: 1px solid var(--op-line);
  background: var(--op-card);
}

.op-delivery,
.op-seller {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--op-line);
  color: var(--op-muted);
  font-size: 14px;
}

.op-delivery strong,
.op-seller strong {
  display: block;
  color: var(--op-ink);
}

.op-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 16px;
  overflow-x: auto;
}

.op-tab {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--op-line);
  border-radius: 6px;
  background: var(--op-card);
  color: var(--op-ink);
  font-weight: 700;
  text-decoration: none;
}

.op-panel {
  padding: 24px;
}

.op-panel + .op-panel {
  margin-top: 18px;
}

.op-panel h2,
.op-panel h3 {
  margin: 0 0 14px;
  font-family: "Bricolage Grotesque", "Open Sans", Arial, sans-serif;
  letter-spacing: 0;
}

.op-description {
  max-width: 920px;
  color: var(--op-ink);
}

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

.op-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.op-features li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--op-line);
}

.op-features span:first-child {
  color: var(--op-muted);
}

.op-related {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.op-related-card {
  display: grid;
  grid-template-rows: 170px auto;
  overflow: hidden;
  color: var(--op-ink);
  text-decoration: none;
}

.op-related-card__image {
  display: grid;
  place-items: center;
  padding: 12px;
  background: var(--op-soft);
}

.op-related-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.op-related-card__body {
  padding: 14px;
}

.op-related-card__title {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.op-related-card__price {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
}

.op-footer {
  background: #0c193a;
  color: #fff;
}

.op-footer__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 32px 24px;
}

.op-footer h2,
.op-footer h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.op-footer p,
.op-footer a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.op-footer a {
  display: block;
  margin-top: 6px;
  text-decoration: none;
}

@media (max-width: 980px) {
  .op-header__top {
    grid-template-columns: 1fr auto;
  }

  .op-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .op-product {
    grid-template-columns: 1fr;
  }

  .op-summary {
    position: static;
  }

  .op-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .op-header__top,
  .op-nav__inner,
  .op-page,
  .op-footer__inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .op-logo {
    font-size: 20px;
  }

  .op-gallery {
    grid-template-columns: 1fr;
  }

  .op-thumbs {
    order: 2;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }

  .op-main-image {
    min-height: 330px;
  }

  .op-summary {
    padding: 18px;
  }

  .op-summary h1 {
    font-size: 21px;
  }

  .op-price__main {
    font-size: 30px;
  }

  .op-features,
  .op-footer__inner {
    grid-template-columns: 1fr;
  }

  .op-related {
    grid-template-columns: 1fr;
  }
}
