/* Desktop purchase panel shared by every static PDP. */
.pdp-kicker,
.pdp-countdown,
.pdp-savings-note,
.pdp-payment-marks,
.pdp-ugc-preview,
.pdp-confidence-panel {
  display: none;
}

.pdp-countdown[hidden] {
  display: none;
}

.pdp-ugc-preview video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--ink);
}

/* Local WordPress integration notes are not customer-facing content. */
.buybox > .pay-row {
  display: none;
}

.pdp-review-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.pdp-review-stars {
  color: #f2b705;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1;
}

.pdp-review-summary strong {
  font-weight: 800;
}

.pdp-review-demo {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(242, 183, 5, .16);
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.pdp-selected-total {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.purchase-options > .field-label,
.purchase-options .pack .flag {
  display: none;
}

.purchase-options .pack-name::before {
  content: "Buy ";
}

.pdp-pack-save {
  position: absolute;
  top: -10px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #198754;
  color: var(--white);
  font-size: 10px;
  font-weight: 1000;
}

.purchase-options .pack:has(.pdp-pack-flag) .pdp-pack-save {
  right: 106px;
}

.pdp-pack-flag {
  position: absolute;
  top: -10px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #d94b0b;
  color: var(--white);
  font-size: 10px;
  font-weight: 1000;
}

.pdp-related {
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
}

.pdp-related-heading {
  display: block;
}

.pdp-related-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: .95;
}

.pdp-related-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.pdp-related-card {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 5px 5px 0 rgba(39, 32, 37, .14);
}

.pdp-related-card a,
.pdp-related-art,
.pdp-related-info {
  display: block;
}

.pdp-related-card a {
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pdp-related-art {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--card-bg);
}

.pdp-related-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .2s ease;
}

.pdp-related-card:hover .pdp-related-art img {
  transform: translateY(-7px) rotate(-2deg);
}

.pdp-related-card:focus-within {
  outline: 3px solid var(--hot);
  outline-offset: 4px;
}

.pdp-related-info {
  padding: 16px;
}

.pdp-related-info b,
.pdp-related-info span,
.pdp-related-info em {
  display: block;
}

.pdp-related-info b {
  min-height: 2.3em;
  font-size: 19px;
  line-height: 1.15;
}

.pdp-related-info span {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 1000;
}

.pdp-related-info em {
  margin-top: 12px;
  font-size: 12px;
  font-style: normal;
  font-weight: 1000;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .pdp-related-heading h2 {
    font-size: 42px;
  }

  .pdp-related-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(235px, 78vw);
    overflow-x: auto;
    padding: 4px 8px 16px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .pdp-related-card {
    scroll-snap-align: start;
  }
}

@media (min-width: 981px) {
  .pdp {
    grid-template-columns: minmax(0, 1.08fr) minmax(480px, .92fr);
    align-items: start;
    max-width: 1600px;
    margin-inline: auto;
    gap: clamp(28px, 3vw, 48px);
    padding-top: 28px;
  }

  .buybox {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 620px;
  }

  .pdp-review-summary {
    order: 1;
    margin-bottom: 2px;
  }

  .pdp-kicker {
    order: 2;
    display: block;
    margin: 0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .buybox > h1 {
    order: 3;
    font-size: clamp(36px, 3.2vw, 52px);
    line-height: .96;
    text-transform: uppercase;
  }

  .buybox > .price-line {
    order: 6;
  }

  .buybox > .price-line .now {
    font-size: 30px;
  }

  .buybox > div:has(> .swatches) {
    order: 7;
  }

  .pdp-countdown {
    order: 8;
    display: grid;
    gap: 4px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 154, 111, .55);
    border-radius: 14px;
    background: rgba(255, 234, 219, .72);
    text-align: center;
  }

  .pdp-countdown span {
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .pdp-countdown.is-demo span::after {
    content: " · DEMO";
    color: var(--muted);
    font-size: 9px;
  }

  .pdp-countdown strong {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
  }

  .buybox > .purchase-options {
    order: 9;
  }

  .purchase-options .packs {
    gap: 10px;
  }

  .purchase-options .pack {
    min-height: 88px;
    padding: 14px 18px 14px 56px;
    border-width: 1.5px;
    border-radius: 16px;
    box-shadow: none;
  }

  .purchase-options .pack::before,
  .purchase-options .pack::after {
    content: "";
    position: absolute;
    border-radius: 50%;
  }

  .purchase-options .pack::before {
    top: 50%;
    left: 18px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--ink);
    background: var(--white);
    transform: translateY(-50%);
  }

  .purchase-options .pack::after {
    top: 50%;
    left: 24px;
    width: 12px;
    height: 12px;
    background: transparent;
    transform: translateY(-50%);
  }

  .purchase-options .pack.is-active {
    background: var(--peach);
    box-shadow: none;
  }

  .purchase-options .pack.is-active::after {
    background: var(--ink);
  }

  .purchase-options .pack:focus-visible {
    outline: 3px solid var(--hot);
    outline-offset: 3px;
  }

  .purchase-options .pack-name {
    display: inline;
    font-size: 19px;
  }

  .pdp-savings-note {
    order: 10;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--hot);
    border-radius: 14px;
    background: rgba(255, 214, 233, .35);
    font-size: 13px;
  }

  .pdp-savings-note > span {
    color: var(--hot);
    font-size: 20px;
  }

  .buybox > .button {
    order: 11;
    min-height: 58px;
    margin-top: 2px;
    background: var(--ink);
    box-shadow: 4px 4px 0 var(--hot);
  }

  .buybox > .ship-hint {
    display: none;
  }

  .buybox > .stock-note {
    display: none;
  }

  .pdp-payment-marks {
    order: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
  }

  .pdp-payment-marks .payment-icon {
    display: block;
    width: 42px;
    height: 27px;
    object-fit: contain;
  }

  .pdp-ugc-preview {
    order: 13;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
  }

  .pdp-ugc-preview article {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(39, 32, 37, .08);
  }

  .pdp-ugc-placeholder {
    display: grid;
    min-height: 150px;
    place-items: center;
    background:
      radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9), transparent 22%),
      linear-gradient(145deg, var(--pink), var(--lilac));
    color: rgba(39, 32, 37, .55);
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .pdp-ugc-preview article > strong,
  .pdp-ugc-preview article > span {
    display: block;
    padding-inline: 14px;
  }

  .pdp-ugc-preview article > strong {
    padding-top: 12px;
    font-size: 14px;
  }

  .pdp-ugc-preview article > span {
    padding-top: 4px;
    padding-bottom: 14px;
    color: var(--muted);
    font-size: 11px;
  }

  .pdp-confidence-panel {
    order: 14;
    display: grid;
    gap: 18px;
    margin-top: 10px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .68);
  }

  .pdp-confidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .pdp-confidence-grid article {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
  }

  .pdp-confidence-grid b {
    font-size: 16px;
    line-height: 1.15;
  }

  .pdp-confidence-grid article::before {
    content: "";
    width: 32px;
    height: 32px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .pdp-confidence-grid article[data-icon="package"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95c2b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5 12 3l8 4.5v9L12 21l-8-4.5zM4 7.5l8 4.5 8-4.5M12 12v9M8 5.3l8 4.5'/%3E%3C/svg%3E");
  }

  .pdp-confidence-grid article[data-icon="award"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95c2b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='m9 13-1 8 4-2 4 2-1-8M9 8l2 2 4-4'/%3E%3C/svg%3E");
  }

  .pdp-confidence-grid article[data-icon="chat"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95c2b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4zM8 10h.01M12 10h.01M16 10h.01'/%3E%3C/svg%3E");
  }

  .pdp-review-placeholder {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(39, 32, 37, .12);
  }

  .pdp-review-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--pink), var(--lilac));
    color: var(--ink);
    font-size: 12px;
    font-weight: 1000;
  }

  .pdp-review-placeholder p {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.4;
  }

  .pdp-review-placeholder div > span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
  }

  .buybox > .assurances {
    display: none;
  }
}

@media (max-width: 980px) {
  .buybox {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(100%, 680px);
    min-width: 0;
    margin-inline: auto;
  }

  .pdp-review-summary {
    order: 1;
  }

  .pdp-kicker {
    order: 2;
    display: block;
    margin: 0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .buybox > h1 {
    order: 3;
    max-width: 100%;
    font-size: clamp(38px, 7vw, 48px);
    line-height: .96;
    overflow-wrap: anywhere;
    text-transform: uppercase;
  }

  .buybox > .price-line {
    order: 6;
  }

  .buybox > div:has(> .swatches) {
    order: 7;
  }

  .pdp-countdown {
    order: 8;
    display: grid;
    gap: 4px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 154, 111, .55);
    border-radius: 14px;
    background: rgba(255, 234, 219, .72);
    text-align: center;
  }

  .pdp-countdown span {
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .pdp-countdown.is-demo span::after {
    content: " · DEMO";
    color: var(--muted);
    font-size: 9px;
  }

  .pdp-countdown strong {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
  }

  .buybox > .purchase-options {
    order: 9;
  }

  .purchase-options .packs {
    gap: 10px;
  }

  .purchase-options .pack {
    min-height: 88px;
    padding: 14px 16px 14px 54px;
    border-width: 1.5px;
    border-radius: 16px;
    box-shadow: none;
  }

  .purchase-options .pack::before,
  .purchase-options .pack::after {
    content: "";
    position: absolute;
    border-radius: 50%;
  }

  .purchase-options .pack::before {
    top: 50%;
    left: 16px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--ink);
    background: var(--white);
    transform: translateY(-50%);
  }

  .purchase-options .pack::after {
    top: 50%;
    left: 22px;
    width: 12px;
    height: 12px;
    background: transparent;
    transform: translateY(-50%);
  }

  .purchase-options .pack.is-active {
    background: var(--peach);
    box-shadow: none;
  }

  .purchase-options .pack.is-active::after {
    background: var(--ink);
  }

  .purchase-options .pack:focus-visible {
    outline: 3px solid var(--hot);
    outline-offset: 3px;
  }

  .purchase-options .pack-name {
    display: inline;
    font-size: 18px;
  }

  .pdp-savings-note {
    order: 10;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--hot);
    border-radius: 14px;
    background: rgba(255, 214, 233, .35);
    font-size: 13px;
  }

  .pdp-savings-note > span {
    color: var(--hot);
    font-size: 20px;
  }

  .buybox > .button {
    order: 11;
    min-height: 58px;
    margin-top: 2px;
    background: var(--ink);
    box-shadow: 4px 4px 0 var(--hot);
  }

  .buybox > .ship-hint,
  .buybox > .stock-note,
  .buybox > .assurances {
    display: none;
  }

  .pdp-payment-marks {
    order: 12;
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .pdp-payment-marks .payment-icon {
    display: block;
    width: 42px;
    height: 27px;
    object-fit: contain;
  }

  .pdp-ugc-preview {
    order: 13;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    margin-top: 8px;
  }

  .pdp-ugc-preview article {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(39, 32, 37, .08);
  }

  .pdp-ugc-placeholder {
    display: grid;
    min-height: 150px;
    place-items: center;
    background:
      radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9), transparent 22%),
      linear-gradient(145deg, var(--pink), var(--lilac));
    color: rgba(39, 32, 37, .55);
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .pdp-ugc-preview article > strong,
  .pdp-ugc-preview article > span {
    display: block;
    padding-inline: 14px;
  }

  .pdp-ugc-preview article > strong {
    padding-top: 12px;
    font-size: 14px;
  }

  .pdp-ugc-preview article > span {
    padding-top: 4px;
    padding-bottom: 14px;
    color: var(--muted);
    font-size: 11px;
  }

  .pdp-confidence-panel {
    order: 14;
    display: grid;
    gap: 18px;
    margin-top: 10px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .68);
  }

  .pdp-confidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .pdp-confidence-grid article {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
  }

  .pdp-confidence-grid b {
    font-size: 16px;
    line-height: 1.15;
  }

  .pdp-confidence-grid article::before {
    content: "";
    width: 32px;
    height: 32px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .pdp-confidence-grid article[data-icon="package"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95c2b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5 12 3l8 4.5v9L12 21l-8-4.5zM4 7.5l8 4.5 8-4.5M12 12v9M8 5.3l8 4.5'/%3E%3C/svg%3E");
  }

  .pdp-confidence-grid article[data-icon="award"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95c2b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='m9 13-1 8 4-2 4 2-1-8M9 8l2 2 4-4'/%3E%3C/svg%3E");
  }

  .pdp-confidence-grid article[data-icon="chat"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e95c2b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4zM8 10h.01M12 10h.01M16 10h.01'/%3E%3C/svg%3E");
  }

  .pdp-review-placeholder {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(39, 32, 37, .12);
  }

  .pdp-review-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--pink), var(--lilac));
    color: var(--ink);
    font-size: 12px;
    font-weight: 1000;
  }

  .pdp-review-placeholder p {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.4;
  }

  .pdp-review-placeholder div > span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
  }
}

.pdp-confidence-panel { background: transparent; }

@media (max-width: 620px) {
  .buybox {
    gap: 10px;
  }

  .pdp-review-summary {
    gap: 6px;
    font-size: 11px;
  }

  .pdp-review-stars {
    font-size: 17px;
  }

  .buybox > h1 {
    font-size: 36px;
  }

  .purchase-options .pack {
    min-height: 80px;
    gap: 8px;
    padding: 12px 12px 12px 48px;
  }

  .purchase-options .pack::before {
    left: 14px;
  }

  .purchase-options .pack::after {
    left: 20px;
  }

  .purchase-options .pack-name {
    font-size: 16px;
  }

  .pdp-pack-save {
    min-height: 22px;
    padding: 2px 6px;
    font-size: 9px;
  }

  .purchase-options .pack:has(.pdp-pack-flag) .pdp-pack-save {
    right: 92px;
  }

  .pdp-pack-flag {
    top: -9px;
    right: 10px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .pdp-payment-marks {
    flex-wrap: wrap;
  }

  .pdp-ugc-preview {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 78vw);
    overflow-x: auto;
    padding: 4px 4px 12px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .pdp-ugc-preview article {
    scroll-snap-align: start;
  }

  .pdp-confidence-panel {
    gap: 14px;
    padding: 14px;
  }

  .pdp-confidence-grid {
    gap: 6px;
  }

  .pdp-confidence-grid b {
    font-size: 12px;
  }

  .pdp-confidence-grid article::before {
    width: 28px;
    height: 28px;
  }

  .pdp-review-placeholder {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .pdp-review-avatar {
    width: 38px;
    height: 38px;
  }

  .pdp-review-placeholder p {
    font-size: 12px;
  }
}

.pdp-review-section .section-header h2 {
  max-width: none;
  margin-bottom: 0;
}

.pdp-review-section .review-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  margin-inline: auto;
}

.pdp-review-card-placeholder {
  min-height: 180px;
  align-content: center;
  text-align: center;
}

.pdp-review-card-slot {
  width: fit-content;
  margin-inline: auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--pink);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pdp-review-card-placeholder .who {
  justify-content: center;
}

@media (max-width: 620px) {
  .pdp-review-section .review-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 80vw);
    overflow-x: auto;
    padding: 4px 6px 14px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .pdp-review-card-placeholder {
    scroll-snap-align: start;
  }
}
