/* Single post/product page specific styles */
.single-post .page-head h1,
.single-pzt_product .page-head h1 {
  max-width: none;
}

.single-post .page-head .container {
  max-width: 940px;
}

.single-post article.card {
  --single-content-pad: clamp(22px, 4vw, 42px);
  max-width: 940px;
  margin: 0 auto;
  padding: var(--single-content-pad);
  border-radius: 16px;
  background: #ffffff;
  color: #24384d;
}

.single-post article.card > :first-child {
  margin-top: 0;
}

.single-post article.card > :last-child {
  margin-bottom: 0;
}

.single-post article.card h2,
.single-post article.card h3,
.single-post article.card h4 {
  color: #17324a;
  line-height: 1.28;
}

.single-post article.card h2 {
  margin: 2.2em 0 0.72em;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.single-post article.card h3 {
  margin: 1.9em 0 0.66em;
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
}

.single-post article.card h4 {
  margin: 1.6em 0 0.58em;
  font-size: 1.08rem;
}

.single-post article.card .single-post-media + h2,
.single-post article.card .single-post-media + h3,
.single-post article.card .single-post-media + p {
  margin-top: 0;
}

.single-post article.card p {
  margin: 0 0 1.08em;
  color: #344a5f;
  font-size: 1.03rem;
  line-height: 1.78;
}

.single-post article.card a:not(.btn):not(.lang-switch-btn):not(.lang-option) {
  color: #0b6f8a;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.single-post article.card a:not(.btn):not(.lang-switch-btn):not(.lang-option):hover,
.single-post article.card a:not(.btn):not(.lang-switch-btn):not(.lang-option):focus {
  color: #0e7f9e;
}

.single-post article.card ul,
.single-post article.card ol {
  margin: 0 0 1.18em 1.35em;
  padding: 0;
  color: #344a5f;
  line-height: 1.74;
}

.single-post article.card li {
  margin: 0.42em 0;
}

.single-post article.card li::marker {
  color: #0e7f9e;
  font-weight: 700;
}

.single-post article.card blockquote {
  margin: 1.6em 0;
  padding: 0.18em 0 0.18em 1.1em;
  border-left: 4px solid #0e7f9e;
  color: #2d465e;
  background: rgba(14, 127, 158, 0.06);
}

.single-post article.card blockquote p:last-child {
  margin-bottom: 0;
}

.single-post article.card code {
  border-radius: 5px;
  background: #edf4f7;
  color: #17324a;
  padding: 0.1em 0.34em;
  font-size: 0.92em;
}

.single-post article.card pre {
  margin: 1.5em 0;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  background: #102131;
  color: #eef7fb;
}

.single-post article.card pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.single-post article.card .wp-block-image,
.single-post article.card figure:not(.single-post-media) {
  margin: 1.5em 0;
}

.single-post article.card .wp-block-image a:not(.btn):not(.lang-switch-btn):not(.lang-option),
.single-post article.card figure a:not(.btn):not(.lang-switch-btn):not(.lang-option) {
  text-decoration: none;
}

.single-post article.card figcaption {
  margin-top: 0.65em;
  color: #60758d;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.single-post article.card .wp-block-table {
  margin: 1.5em 0;
  overflow-x: auto;
}

.single-post article.card table {
  width: 100%;
  border-collapse: collapse;
  color: #344a5f;
  font-size: 0.96rem;
}

.single-post article.card .wp-block-table table {
  margin: 0;
}

.single-post article.card th,
.single-post article.card td {
  padding: 12px 14px;
  border: 1px solid rgba(29, 57, 89, 0.14);
  text-align: left;
  vertical-align: top;
}

.single-post article.card th {
  background: #edf4f7;
  color: #17324a;
  font-weight: 700;
}

.single-post article.card hr {
  height: 1px;
  margin: 2em 0;
  border: 0;
  background: rgba(29, 57, 89, 0.14);
}

.single-product-media {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
}

.single-product-image {
  display: block;
  width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
}

.single-post-media {
  margin: 0 0 32px;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #e7f0f7;
  box-shadow: 0 18px 36px rgba(18, 47, 78, 0.16);
  aspect-ratio: 16 / 9;
}

.single-post article.card .single-post-media {
  margin: calc(-1 * var(--single-content-pad)) calc(-1 * var(--single-content-pad)) 32px;
  border-radius: 16px 16px 0 0;
}

.single-post-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

.single-post-media img {
  width: 100%;
}

.breadcrumb-trail {
  margin-bottom: 14px;
}

.breadcrumb-trail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb-trail li {
  display: inline-flex;
  align-items: center;
  color: #5f758d;
  font-size: 0.9rem;
}

.breadcrumb-trail li + li::before {
  content: "/";
  margin-right: 8px;
  color: #8ea2b8;
}

.breadcrumb-trail a {
  color: #3f607f;
}

.breadcrumb-trail a:hover {
  color: #0e7f9e;
}

.single-product-container {
  width: min(1040px, 92vw);
}

.single-product-section {
  padding-top: 24px;
  padding-bottom: 60px;
}

.single-product-layout.card {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(20px, 3.6vw, 36px);
  border-radius: 12px;
  background: #ffffff;
  color: #24384d;
  box-shadow: 0 12px 28px rgba(16, 42, 73, 0.08);
}

.single-product-header {
  margin-bottom: 22px;
}

.single-product-header .breadcrumb-trail {
  margin-bottom: 12px;
}

.single-product-header .breadcrumb-trail li {
  font-size: 0.84rem;
}

.single-product-title {
  margin: 0;
  max-width: 900px;
  color: #17324a;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.14;
}

.single-product-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  color: #60758d;
  font-size: 0.92rem;
}

.single-product-meta > * + *::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 14px;
  border-radius: 50%;
  background: #a7b6c6;
  vertical-align: middle;
}

.single-product-meta a {
  color: #0e6f8a;
  font-weight: 700;
}

.single-product-media-strip {
  margin: 24px 0 0;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 2px 2px 16px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
}

.single-product-media-card {
  flex: 0 0 min(520px, 78vw);
  height: clamp(280px, 32vw, 360px);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(29, 57, 89, 0.13);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 42, 73, 0.06);
  scroll-snap-align: start;
}

.single-product-media-strip > .single-product-media-card:only-child {
  margin-left: auto;
  margin-right: auto;
}

.single-product-media-card img,
.single-product-strip-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.single-product-content {
  margin-top: 28px;
  color: #344a5f;
  font-size: 1rem;
  line-height: 1.74;
}

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

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

.single-product-content p {
  margin: 0 0 1em;
  color: #3f566f;
  line-height: 1.74;
}

.single-product-content h2,
.single-product-content h3,
.single-product-content h4 {
  color: #17324a;
  line-height: 1.28;
}

.single-product-content h2 {
  margin: 1.7em 0 0.7em;
  font-size: clamp(1.28rem, 2vw, 1.58rem);
}

.single-product-content h3 {
  margin: 1.45em 0 0.62em;
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
}

.single-product-content h4 {
  margin: 1.25em 0 0.55em;
  font-size: 1.04rem;
}

.single-product-content ul,
.single-product-content ol {
  margin: 0 0 1.15em 1.25em;
  padding: 0;
  color: #3f566f;
}

.single-product-content li {
  margin: 0.35em 0;
}

.single-product-content .wp-block-table {
  margin: 1.4em 0;
  overflow-x: auto;
}

.single-product-content table {
  width: 100%;
  border-collapse: collapse;
  color: #36516d;
  font-size: 0.95rem;
}

.single-product-content th,
.single-product-content td {
  padding: 10px 12px;
  border: 1px solid rgba(29, 57, 89, 0.13);
  text-align: left;
  vertical-align: top;
}

.single-product-content th {
  background: #edf4f7;
  color: #17324a;
  font-weight: 700;
}

.single-product-content a:not(.btn):not(.lang-switch-btn):not(.lang-option) {
  color: #0b6f8a;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.single-product-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(29, 57, 89, 0.13);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.single-product-actions .btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.single-product-actions .btn-primary {
  min-width: 150px;
  background: #0e7f9e;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(14, 127, 158, 0.24);
}

.single-product-actions .btn-secondary {
  border: 1px solid rgba(29, 57, 89, 0.18);
  background: #ffffff;
  color: #17324a;
  box-shadow: 0 8px 18px rgba(16, 42, 73, 0.06);
}

.single-product-actions .btn-secondary:hover {
  border-color: rgba(14, 127, 158, 0.42);
  background: #f4fbfd;
  color: #0e7f9e;
}

.single-product-actions .btn-tertiary {
  border-color: transparent;
  background: transparent;
  color: #526981;
  box-shadow: none;
}

.single-product-actions .btn-tertiary:hover {
  background: rgba(29, 57, 89, 0.06);
  color: #17324a;
}

@media (max-width: 800px) {
  .single-post article.card {
    --single-content-pad: clamp(18px, 5vw, 26px);
    border-radius: 14px;
  }

  .single-post article.card h2 {
    font-size: 1.35rem;
  }

  .single-post article.card h3 {
    font-size: 1.16rem;
  }

  .single-post article.card p,
  .single-post article.card ul,
  .single-post article.card ol {
    font-size: 1rem;
    line-height: 1.72;
  }

  .single-post article.card table {
    display: block;
    overflow-x: auto;
  }

  .single-product-section {
    padding-top: 18px;
    padding-bottom: 44px;
  }

  .single-product-layout.card {
    padding: clamp(18px, 5vw, 26px);
    border-radius: 10px;
  }

  .single-product-title {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .single-product-media-strip {
    gap: 12px;
    margin-top: 20px;
  }

  .single-product-media-card {
    flex-basis: 85vw;
    height: 260px;
    padding: 14px;
  }
}

@media (max-width: 560px) {
  .single-product-container {
    width: min(100% - 24px, 1040px);
  }

  .single-product-meta {
    gap: 6px 10px;
  }

  .single-product-meta > * + *::before {
    margin-right: 10px;
  }

  .single-product-media-card {
    flex-basis: 85vw;
    height: 230px;
  }

  .single-product-actions .btn {
    width: 100%;
  }
}
