@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/opensans/mem8YaGs126MiZpBA-UFVZ0b.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/opensans/mem5YaGs126MiZpBA-UN7rgOUuhp.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bricolagegrotesque/bricolage-grotesque-v9-latin-700.woff2") format("woff2");
}

:root {
  --pm-navy: #102b3c;
  --pm-navy-active: #071824;
  --pm-teal: #16b6a5;
  --pm-teal-soft: #dff8f3;
  --pm-gold: #ffc857;
  --pm-ink: #0c193a;
  --pm-muted: #667394;
  --pm-line: #d8dadf;
  --pm-bg: #f5f6fc;
  --pm-card: #ffffff;
  --pm-danger: #c70a13;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--pm-bg);
  color: var(--pm-ink);
  font-family: "Open Sans", Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--pm-bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.pm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: var(--pm-navy);
  box-shadow: 0 1px 0 rgba(12, 25, 58, 0.18);
}

.pm-header__main {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

.pm-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #fff;
  font-family: "Bricolage Grotesque", "Open Sans", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.pm-logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 50%, var(--pm-gold) 50%),
    linear-gradient(45deg, var(--pm-teal) 50%, transparent 50%),
    #fff;
}

.pm-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 140px;
  height: 44px;
  padding: 0 18px 0 44px;
  border-radius: 22px;
  color: var(--pm-muted);
  background: #fff;
}

.pm-search svg {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--pm-ink);
}

.pm-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pm-icon-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  transition: background 0.2s ease;
}

.pm-icon-link:hover,
.pm-icon-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: 0;
}

.pm-icon-link svg {
  width: 24px;
  height: 24px;
}

.pm-nav {
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
  color: var(--pm-ink);
}

.pm-nav__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1240px, calc(100% - 32px));
  min-height: 48px;
  margin: 0 auto;
  white-space: nowrap;
}

.pm-nav a {
  font-size: 14px;
  font-weight: 700;
}

.pm-nav a:hover,
.pm-nav a:focus-visible {
  color: var(--pm-teal);
  outline: 0;
}

.pm-page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.pm-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--pm-muted);
  font-size: 13px;
}

.pm-breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pm-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 28px;
  align-items: start;
}

.pm-gallery,
.pm-buybox,
.pm-section,
.pm-related-card {
  border: 1px solid var(--pm-line);
  border-radius: 8px;
  background: var(--pm-card);
  box-shadow: 0 8px 18px rgba(12, 25, 58, 0.04);
}

.pm-gallery {
  position: relative;
  padding: 24px;
}

.pm-rank {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--pm-ink);
  background: var(--pm-gold);
  font-size: 13px;
  font-weight: 700;
}

.pm-gallery__image {
  display: grid;
  place-items: center;
  min-height: 520px;
}

.pm-gallery__image img {
  width: min(540px, 100%);
  max-height: 520px;
  object-fit: contain;
}

.pm-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  overflow-x: auto;
}

.pm-thumb {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 6px;
  border: 1px solid var(--pm-line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.pm-thumb[aria-pressed="true"] {
  border-color: var(--pm-teal);
  box-shadow: inset 0 0 0 1px var(--pm-teal);
}

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

.pm-buybox {
  padding: 24px;
}

.pm-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--pm-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.pm-brand > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pm-brand img {
  max-width: 142px;
  max-height: 24px;
  object-fit: contain;
}

.pm-seller {
  margin: -8px 0 14px;
  color: var(--pm-muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
}

.pm-title {
  margin: 0 0 14px;
  font-family: "Bricolage Grotesque", "Open Sans", Arial, sans-serif;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

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

.pm-rating-count {
  color: var(--pm-muted);
  font-size: 13px;
}

.pm-rating-count::before {
  content: " ";
}

.pm-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--pm-teal);
  font-size: 18px;
  line-height: 1;
}

.pm-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 6px;
}

.pm-price {
  color: var(--pm-danger);
  font-family: "Bricolage Grotesque", "Open Sans", Arial, sans-serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
}

.pm-old-price {
  color: var(--pm-muted);
  text-decoration: line-through;
}

.pm-tax {
  margin: 0 0 20px;
  color: var(--pm-muted);
  font-size: 13px;
}

.pm-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pm-color-chip {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--pm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pm-ink);
  font-weight: 700;
  cursor: pointer;
}

.pm-color-chip[aria-pressed="true"] {
  border-color: var(--pm-teal);
  box-shadow: inset 0 0 0 1px var(--pm-teal);
}

.pm-benefits {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.pm-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #f5f8f9;
  color: var(--pm-ink);
  font-size: 14px;
}

.pm-benefits svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--pm-teal);
}

.pm-quantity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 18px;
}

.pm-quantity label {
  color: var(--pm-muted);
  font-size: 13px;
  font-weight: 700;
}

.pm-stepper {
  display: inline-grid;
  grid-template-columns: 40px 48px 40px;
  width: max-content;
  overflow: hidden;
  border: 1px solid var(--pm-line);
  border-radius: 6px;
}

.pm-stepper button,
.pm-stepper output {
  display: grid;
  place-items: center;
  height: 40px;
  background: #fff;
}

.pm-stepper button {
  border: 0;
  color: var(--pm-ink);
  cursor: pointer;
}

.pm-stepper button:hover {
  background: var(--pm-teal-soft);
}

.pm-stepper output {
  border-right: 1px solid var(--pm-line);
  border-left: 1px solid var(--pm-line);
  font-weight: 700;
}

.pm-add {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--pm-navy-active);
  border-radius: 6px;
  color: #fff;
  background: var(--pm-navy);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pm-add:hover,
.pm-add:focus-visible {
  background: var(--pm-navy-active);
  outline: 0;
}

.pm-add:active {
  transform: translateY(1px);
}

.pm-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.pm-secondary-actions a,
.pm-secondary-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--pm-line);
  border-radius: 6px;
  color: var(--pm-ink);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.pm-secondary-actions a:hover,
.pm-secondary-actions button:hover {
  border-color: var(--pm-ink);
}

.pm-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

.pm-section {
  padding: 22px;
}

.pm-section + .pm-section {
  margin-top: 16px;
}

.pm-section h2,
.pm-section h3 {
  margin: 0 0 12px;
  font-family: "Bricolage Grotesque", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.pm-section h2 {
  font-size: 24px;
  line-height: 1.25;
}

.pm-section h3 {
  font-size: 20px;
  line-height: 1.3;
}

.pm-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.pm-fact {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--pm-line);
  border-radius: 6px;
  background: #fff;
}

.pm-fact dt {
  margin: 0 0 3px;
  color: var(--pm-muted);
  font-size: 12px;
}

.pm-fact dd {
  margin: 0;
  font-weight: 700;
}

.pm-copy {
  margin: 0;
  color: var(--pm-ink);
  line-height: 1.6;
}

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

.pm-related-card {
  display: grid;
  grid-template-rows: 148px auto;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pm-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(12, 25, 58, 0.1);
}

.pm-related-card__image {
  display: grid;
  place-items: center;
  padding: 12px;
  background: #fff;
}

.pm-related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pm-related-card__body {
  padding: 12px;
  border-top: 1px solid var(--pm-line);
}

.pm-related-card__title {
  display: -webkit-box;
  min-height: 40px;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pm-related-card__price {
  color: var(--pm-danger);
  font-weight: 700;
}

.pm-footer {
  margin-top: 36px;
  padding: 22px 0;
  color: var(--pm-muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1023px) {
  .pm-header__main {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .pm-search {
    order: 3;
    flex-basis: 100%;
  }

  .pm-product,
  .pm-content {
    grid-template-columns: 1fr;
  }

  .pm-gallery__image {
    min-height: 360px;
  }

  .pm-gallery__image img {
    max-height: 360px;
  }

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

@media (max-width: 640px) {
  .pm-header__main,
  .pm-nav__inner,
  .pm-page {
    width: min(100% - 24px, 1240px);
  }

  .pm-logo {
    font-size: 17px;
  }

  .pm-logo__mark {
    width: 24px;
    height: 24px;
  }

  .pm-gallery,
  .pm-buybox,
  .pm-section {
    padding: 16px;
  }

  .pm-title {
    font-size: 24px;
  }

  .pm-price {
    font-size: 34px;
  }

  .pm-facts,
  .pm-related,
  .pm-secondary-actions {
    grid-template-columns: 1fr;
  }
}
