body.single-post {
  background: var(--ok-page-bg);
}

.ok-product-page {
  min-height: 0;
  --ok-product-preview-min-height: 0px;
  --ok-product-preview-max-height: 820px;
  --ok-product-preview-mobile-max-height: 560px;
  padding: clamp(22px, 3vw, 42px) 0 clamp(56px, 7vw, 96px);
  color: var(--ok-ink);
}

.ok-product-shell {
  width: min(80%, 1800px);
  margin-inline: auto;
}

.ok-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(14px, 1.8vw, 24px);
  align-items: start;
}

.ok-product-preview-card,
.ok-product-panel,
.ok-product-details {
  border: 1px solid rgba(218, 220, 224, .86);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 24px 76px rgba(60, 64, 67, .12);
  backdrop-filter: blur(18px);
}

.ok-product-preview-card {
  min-width: 0;
  padding: 12px;
  border-radius: 5px;
}

.ok-product-preview-box {
  width: 100%;
  min-height: var(--ok-product-preview-min-height);
  display: grid;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(218, 220, 224, .76);
  border-radius: 5px;
  background:
    linear-gradient(45deg, rgba(232, 240, 254, .72) 25%, transparent 25% 75%, rgba(232, 240, 254, .72) 75%),
    linear-gradient(45deg, rgba(232, 240, 254, .72) 25%, transparent 25% 75%, rgba(232, 240, 254, .72) 75%),
    #fff;
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
}

.ok-product-preview-box.is-png {
  background:
    linear-gradient(45deg, rgba(226, 232, 240, .95) 25%, transparent 25% 75%, rgba(226, 232, 240, .95) 75%),
    linear-gradient(45deg, rgba(226, 232, 240, .95) 25%, transparent 25% 75%, rgba(226, 232, 240, .95) 75%),
    #fff;
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.ok-product-preview-box.is-video {
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #070b14;
}

.ok-product-preview-box img,
.ok-product-preview-box video,
.ok-product-preview-box picture {
  display: block;
}

.ok-product-preview-box picture {
  width: 100%;
}

.ok-product-preview-box img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(82vh, var(--ok-product-preview-max-height));
}

.ok-product-preview-box picture img {
  width: 100%;
  height: auto;
}

.ok-product-preview-box video {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(82vh, var(--ok-product-preview-max-height));
}

.ok-product-preview-box img,
.ok-product-preview-box video {
  object-fit: contain;
  object-position: center;
}

.ok-product-panel {
  position: sticky;
  top: 96px;
  min-width: 0;
  padding: 10px;
  border-radius: 5px;
}

.ok-product-preview-title {
  margin: 10px 2px 0;
  color: var(--ok-ink);
  font-size: 15px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.ok-product-list {
  overflow: hidden;
  border: 1px solid var(--ok-border-soft);
  border-radius: 8px;
  background: #fff;
}

.ok-product-list-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid var(--ok-border-soft);
}

.ok-product-list-row:last-child {
  border-bottom: 0;
}

.ok-product-list-row span {
  color: var(--ok-ink-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ok-product-list-row strong {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

.ok-product-list-row i {
  color: #111827;
}

.ok-product-alert {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(253, 214, 99, .62);
  border-radius: 12px;
  background: rgba(255, 248, 225, .88);
  color: #7a4a00;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 760;
}

.ok-product-utility {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 14px;
  padding: 6px;
  border: 1px solid var(--ok-border-soft);
  border-radius: 8px;
  background: #fff;
}

.ok-product-utility button,
.ok-product-utility span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--ok-surface-soft);
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.ok-product-utility button {
  cursor: pointer;
}

.ok-product-utility button:hover {
  background: var(--ok-blue-soft);
  color: var(--ok-blue);
}

.ok-product-creator-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--ok-border-soft);
  border-radius: 8px;
  background: #fff;
}

.ok-product-creator-card img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 999px;
}

.ok-product-creator-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.ok-product-creator-card strong i {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ok-blue);
  color: #fff;
  font-size: 10px;
}

.ok-product-creator-card span {
  display: block;
  margin-top: 3px;
  color: var(--ok-ink-muted);
  font-size: 13px;
  font-weight: 760;
}

.ok-product-action {
  margin: 12px 0 10px;
}

.ok-product-primary,
.ok-product-primary:visited {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(115deg, #0b57d0 0%, #1a73e8 58%, #5b9cff 100%) !important;
  background-size: 140% 140% !important;
  color: #fff !important;
  box-shadow: none;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: background-position .28s ease;
}

.ok-product-primary span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  font-size: 12px;
}

.ok-product-primary:hover {
  background:
    radial-gradient(circle at 30% 0, rgba(255,255,255,.22), transparent 38%),
    linear-gradient(115deg, #0b57d0 0%, #2b7de9 54%, #7fb2ff 100%) !important;
  background-position: 100% 50% !important;
  box-shadow: none;
}

.ok-product-empty {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--ok-border-soft);
  border-radius: 16px;
  background: var(--ok-surface-soft);
  color: var(--ok-ink-muted);
  font-weight: 760;
}

.ok-product-description > span,
.ok-product-tags > div > span,
.ok-product-section-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--ok-ink-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ok-product-license {
  display: flex;
  gap: 11px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 240, 254, .9), rgba(248, 251, 255, .92));
  color: var(--ok-ink-muted);
  font-size: 13px;
  font-weight: 720;
}

.ok-product-license i,
.ok-product-license a {
  color: var(--ok-blue);
}

.ok-product-license p {
  margin: 0;
}

.ok-post-download-ad {
  margin-top: 16px;
}

.ok-product-details {
  width: 100%;
  margin: clamp(20px, 2.8vw, 34px) auto 0;
  display: block;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 5px;
}

.ok-product-description {
  min-width: 0;
}

.ok-product-content {
  color: var(--ok-ink-soft);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ok-product-content > :first-child {
  margin-top: 0;
}

.ok-product-content > :last-child {
  margin-bottom: 0;
}

.ok-product-content img,
.ok-product-content video,
.ok-product-content iframe,
.ok-product-content embed,
.ok-product-content object {
  max-width: 100%;
  height: auto;
}

.ok-product-content img,
.ok-product-content video {
  border-radius: 18px;
}

.ok-product-content figure,
.ok-product-content picture,
.ok-product-content .wp-caption,
.ok-product-content .wp-video,
.ok-product-content .wp-block-image,
.ok-product-content .wp-block-video,
.ok-product-content .wp-block-embed {
  max-width: 100%;
}

.ok-product-content figure img,
.ok-product-content picture img,
.ok-product-content .wp-caption img,
.ok-product-content .wp-block-image img,
.ok-product-content .wp-block-video video {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.ok-product-content .wp-video,
.ok-product-content .wp-video-shortcode,
.ok-product-content .wp-block-video video {
  width: 100% !important;
  height: auto !important;
}

.ok-product-content .wp-block-embed__wrapper,
.ok-product-content .wp-has-aspect-ratio .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.ok-product-content .wp-embed-aspect-21-9 .wp-block-embed__wrapper {
  aspect-ratio: 21 / 9;
}

.ok-product-content .wp-embed-aspect-18-9 .wp-block-embed__wrapper {
  aspect-ratio: 18 / 9;
}

.ok-product-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper {
  aspect-ratio: 16 / 9;
}

.ok-product-content .wp-embed-aspect-4-3 .wp-block-embed__wrapper {
  aspect-ratio: 4 / 3;
}

.ok-product-content .wp-embed-aspect-1-1 .wp-block-embed__wrapper {
  aspect-ratio: 1 / 1;
}

.ok-product-content .wp-embed-aspect-9-16 .wp-block-embed__wrapper {
  aspect-ratio: 9 / 16;
}

.ok-product-content .wp-block-embed__wrapper iframe,
.ok-product-content .wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ok-product-tags {
  display: grid;
  align-content: start;
  gap: 18px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--ok-border-soft);
  border-radius: 8px;
  background: #fff;
}

.ok-product-tags div div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ok-product-tags a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--ok-border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--ok-blue);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.ok-product-tags a:hover {
  border-color: var(--ok-border-blue);
  background: var(--ok-blue-soft);
}

.ok-product-related {
  width: 100%;
  margin: clamp(20px, 2.8vw, 34px) auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.ok-product-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.ok-product-section-head > div:first-child {
  min-width: 0;
}

.ok-product-section-head h2 {
  margin: 0;
  color: var(--ok-ink);
  font-size: 34px;
  line-height: 1.08;
  font-weight: 900;
}

.ok-product-related-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ok-related-arrow,
.ok-product-section-head a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--ok-border-blue);
  border-radius: 999px;
  background: #fff;
  color: var(--ok-blue);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.ok-related-arrow {
  width: 40px;
  padding: 0;
  cursor: pointer;
}

.ok-related-arrow:hover,
.ok-product-section-head a:hover {
  background: var(--ok-blue-soft);
}

.ok-related-slider {
  width: 100%;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 18px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--ok-border-blue) transparent;
}

.ok-related-slider::-webkit-scrollbar {
  height: 8px;
}

.ok-related-slider::-webkit-scrollbar-track {
  background: transparent;
}

.ok-related-slider::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--ok-border-blue);
}

.ok-related-slider .feed-item {
  flex: 0 0 min(420px, calc((100% - 36px) / 3));
  scroll-snap-align: start;
}

.ok-share-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 31, 31, .92);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

.ok-share-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.ok-credit-modal-open {
  overflow: hidden;
}

.ok-credit-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  place-items: center;
  padding: 20px;
}

.ok-credit-modal.show {
  display: grid;
}

.ok-credit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(10px);
}

.ok-credit-modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .28);
  text-align: center;
}

.ok-credit-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ok-border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--ok-ink-muted);
  cursor: pointer;
}

.ok-credit-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--ok-blue-soft);
  color: var(--ok-blue);
  font-size: 22px;
}

.ok-credit-modal-card h2 {
  margin: 0 0 8px;
  color: var(--ok-ink);
  font-size: 26px;
  font-weight: 900;
}

.ok-credit-modal-card p {
  margin: 0;
  color: var(--ok-ink-muted);
  line-height: 1.6;
}

.ok-credit-modal-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.ok-credit-modal-stats div {
  padding: 13px;
  border: 1px solid var(--ok-border-soft);
  border-radius: 16px;
  background: var(--ok-surface-soft);
}

.ok-credit-modal-stats span,
.ok-credit-modal-stats strong {
  display: block;
}

.ok-credit-modal-stats span {
  color: var(--ok-ink-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ok-credit-modal-stats strong {
  margin-top: 5px;
  color: var(--ok-ink);
  font-size: 22px;
  font-weight: 900;
}

.ok-credit-modal-buy {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b57d0, #7c4dff);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .ok-product-hero {
    grid-template-columns: 1fr;
  }

  .ok-product-panel {
    position: static;
  }

}

@media (max-width: 760px) {
  .ok-product-shell {
    width: min(100% - 20px, 1520px);
  }

  .ok-product-preview-card,
  .ok-product-panel,
  .ok-product-details,
  .ok-product-related {
    border-radius: 5px;
  }

  .ok-product-preview-box {
    min-height: clamp(220px, 58vw, 360px);
    border-radius: 5px;
  }

  .ok-product-section-head h2 {
    font-size: 28px;
  }

  .ok-product-details {
    padding: 20px;
  }

  .ok-product-section-head {
    align-items: start;
    flex-direction: column;
  }

  .ok-product-related-actions {
    width: 100%;
  }

  .ok-product-section-head a {
    flex: 1 1 auto;
  }

  .ok-related-slider .feed-item {
    flex-basis: min(360px, calc((100% - 18px) / 2));
  }
}

@media (max-width: 520px) {
  .ok-product-page {
    padding-top: 14px;
  }

  .ok-product-preview-card {
    padding: 8px;
  }

  .ok-product-preview-box {
    min-height: clamp(200px, 68vw, 320px);
  }

  .ok-product-panel {
    padding: 18px;
  }

  .ok-product-related-actions {
    display: grid;
    grid-template-columns: 40px 40px minmax(0, 1fr);
  }

  .ok-related-slider {
    gap: 14px;
    padding-bottom: 14px;
  }

  .ok-related-slider .feed-item {
    flex-basis: 86%;
  }
}

/* Clean single asset preview */
.ok-product-preview-card {
  padding: clamp(8px, 1.2vw, 16px);
  overflow: visible;
  border: 1px solid rgba(218, 220, 224, .72);
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.ok-product-preview-box {
  min-height: var(--ok-product-preview-min-height);
  overflow: hidden;
  border: 1px solid rgba(218, 220, 224, .76);
  border-radius: 5px;
  background: var(--ok-surface-soft);
}

.ok-product-preview-box.is-png {
  background:
    linear-gradient(45deg, rgba(226, 232, 240, .95) 25%, transparent 25% 75%, rgba(226, 232, 240, .95) 75%),
    linear-gradient(45deg, rgba(226, 232, 240, .95) 25%, transparent 25% 75%, rgba(226, 232, 240, .95) 75%),
    #fff;
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.ok-product-preview-box.is-image {
  min-height: var(--ok-product-preview-min-height);
}

.ok-product-preview-box.is-video {
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #000;
}

.ok-product-preview-box img,
.ok-product-preview-box picture,
.ok-product-preview-box picture img,
.ok-product-preview-box video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, var(--ok-product-preview-max-height));
  margin: 0;
  border-radius: 6px;
}

.ok-product-preview-box img,
.ok-product-preview-box picture img {
  object-fit: contain;
  object-position: center;
}

.ok-product-preview-box video {
  object-fit: contain;
  object-position: center;
  background: #000;
}

.ok-product-preview-box.is-image img,
.ok-product-preview-box.is-image picture,
.ok-product-preview-box.is-image picture img {
  height: auto;
  max-height: min(78vh, var(--ok-product-preview-max-height));
}

.ok-product-preview-box.is-video video {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 760px) {
  .ok-product-page {
    padding-top: 0;
  }

  .ok-product-shell {
    width: calc(100% - 20px);
  }

  .ok-product-hero {
    gap: 16px;
  }

  .ok-product-preview-card,
  .ok-product-preview-box {
    border-radius: 5px;
  }

  .ok-product-preview-box.is-image {
    min-height: var(--ok-product-preview-min-height);
  }

  .ok-product-preview-box.is-image img,
  .ok-product-preview-box.is-image picture img {
    max-height: min(72vh, var(--ok-product-preview-mobile-max-height));
  }

  .ok-product-panel,
  .ok-product-details,
  .ok-product-related {
    width: 100%;
    margin-inline: 0;
  }
}

@media (max-width: 520px) {
  .ok-product-preview-card {
    padding: 0;
  }

  .ok-product-preview-box {
    min-height: 0;
  }

  .ok-product-preview-box.is-video {
    width: 100%;
  }

  .ok-product-panel {
    padding: 14px;
  }
}
