/* Product page — oknaminsk24 */
:root {
  --pd-ink: #152029;
  --pd-muted: #5d6b78;
  --pd-steel: #1f3a52;
  --pd-green: #19b27f;
  --pd-green-deep: #149a74;
  --pd-accent: #e07a1f;
  --pd-font: "Manrope", system-ui, sans-serif;
  --pd-max: 1380px;
}

* { box-sizing: border-box; }

body.product-page {
  margin: 0;
  font-family: var(--pd-font);
  color: var(--pd-ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(25, 178, 127, 0.12), transparent 55%),
    radial-gradient(700px 360px at 100% 5%, rgba(224, 122, 31, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f3ec 0%, #eef2f6 52%, #f5f1ea 100%);
  min-height: 100vh;
}

.pd-wrap {
  width: min(var(--pd-max), calc(100% - 2rem));
  margin: 0 auto;
}

.pd-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.2rem 0 0.85rem;
  font-size: 0.86rem;
  color: var(--pd-muted);
}

.pd-crumbs a {
  color: var(--pd-muted);
  text-decoration: none;
}

.pd-crumbs a:hover { color: var(--pd-green-deep); }

.pd-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.15s;
}

.pd-btn:hover { transform: translateY(-1px); }

.pd-btn--green {
  background: linear-gradient(90deg, #31a375, #19b27f);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(25, 178, 127, 0.28);
}

.pd-btn--orange {
  background: linear-gradient(90deg, #ef9340, #e07a1f);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(224, 122, 31, 0.28);
}

.pd-btn--ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--pd-ink) !important;
  border: 1px solid rgba(25, 178, 127, 0.35);
}

.pd-hero {
  display: grid;
  gap: 1.35rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .pd-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.75rem;
    align-items: start;
  }
}

.pd-gallery {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 58, 82, 0.08);
  box-shadow: 0 14px 36px rgba(21, 32, 41, 0.07);
}

.pd-gallery__main {
  display: grid;
  place-items: center;
  aspect-ratio: 1.15;
  padding: 1rem;
  background: linear-gradient(180deg, #eef3f6, #f8fafb);
}

.pd-gallery__main img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pd-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(31, 58, 82, 0.06);
  overflow-x: auto;
}

.pd-gallery__thumbs button {
  appearance: none;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 58, 82, 0.1);
  background: #f4f7f9;
  cursor: pointer;
}

.pd-gallery__thumbs button.is-active {
  border-color: var(--pd-green);
  box-shadow: 0 0 0 2px rgba(25, 178, 127, 0.25);
}

.pd-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-summary {
  padding: 0.25rem 0;
}

.pd-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(25, 178, 127, 0.12);
  color: var(--pd-green-deep);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.pd-summary h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--pd-steel);
}

.pd-bullets {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.pd-bullets li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--pd-ink);
}

.pd-bullets li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  border-radius: 50%;
  background:
    linear-gradient(#19b27f, #19b27f) center / 8px 2px no-repeat,
    linear-gradient(#19b27f, #19b27f) center / 2px 8px no-repeat,
    rgba(25, 178, 127, 0.15);
  flex-shrink: 0;
  transform: rotate(45deg);
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pd-phone {
  margin: 0;
  font-size: 0.95rem;
  color: var(--pd-muted);
}

.pd-phone a {
  color: var(--pd-green-deep);
  font-weight: 750;
  text-decoration: none;
}

.pd-panel {
  margin: 0 0 1.5rem;
  padding: 1.35rem 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(31, 58, 82, 0.08);
  box-shadow: 0 10px 28px rgba(21, 32, 41, 0.05);
}

.pd-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--pd-steel);
}

.pd-panel h3 {
  margin: 1.25rem 0 0.55rem;
  font-size: 1.08rem;
  color: var(--pd-steel);
}

.pd-panel h4 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--pd-steel);
}

.pd-panel p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
  color: var(--pd-muted);
}

.pd-panel ul,
.pd-panel ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--pd-muted);
  line-height: 1.55;
}

.pd-panel li { margin-bottom: 0.35rem; }

.pd-panel strong { color: var(--pd-ink); }

.pd-panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.1rem;
  font-size: 0.92rem;
  overflow: hidden;
  border-radius: 12px;
}

.pd-panel th,
.pd-panel td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(31, 58, 82, 0.08);
  vertical-align: top;
}

.pd-panel th {
  background: rgba(31, 58, 82, 0.06);
  color: var(--pd-steel);
  font-weight: 750;
}

.pd-panel tr:last-child td { border-bottom: 0; }

.pd-related-head {
  margin: 0.5rem 0 0.9rem;
}

.pd-related-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--pd-steel);
  letter-spacing: -0.02em;
}

.pd-related {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 560px) {
  .pd-related { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .pd-related { grid-template-columns: repeat(4, 1fr); }
}

.pd-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 58, 82, 0.08);
  box-shadow: 0 10px 28px rgba(21, 32, 41, 0.06);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.pd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(21, 32, 41, 0.1);
}

.pd-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0.35rem;
  background: linear-gradient(180deg, #eef3f6, #f7fafb);
}

.pd-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-card__body {
  padding: 0.85rem 0.95rem 1rem;
}

.pd-card__cat {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pd-green-deep);
}

.pd-card__body strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--pd-steel);
}

.pd-card__more {
  display: inline-flex;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--pd-accent);
}

.pd-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1.35rem 1.4rem;
  border-radius: 20px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(25, 178, 127, 0.22), transparent 55%),
    linear-gradient(120deg, #1a3348, #163d4f);
  color: #fff;
}

.pd-cta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.pd-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .pd-panel { padding: 1.1rem 0.95rem; }
  .pd-panel table { display: block; overflow-x: auto; }
}
