/* Product pages (/moccamaster-...), generated by scripts/build_product_pages.py */

.pp-page {
  --pp-ink: var(--theme-palette-color-4, #2C1E18);
  --pp-text: var(--theme-palette-color-3, #6A615D);
  --pp-accent: var(--theme-palette-color-1, #CB602C);
  --pp-accent-dark: var(--theme-palette-color-2, #B24510);
  --pp-line: #e0dcd3;
  --pp-line-soft: #efebe3;
  --pp-good: #2f7d4f;
  --pp-radius: 14px;
}

.pp {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 96px;
  color: var(--pp-text);
}

.pp h1,
.pp h2,
.pp h3 {
  font-family: Outfit, sans-serif;
  color: var(--pp-ink);
  letter-spacing: -0.01em;
}

.pp a {
  color: var(--pp-accent-dark);
}

/* Breadcrumbs */
.pp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 28px 0 0;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pp-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}

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

.pp .pp-crumbs a:hover {
  color: var(--pp-accent);
}

/* Hero */
.pp-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  padding: 28px 0 40px;
}

.pp-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 36px;
  background: #fff;
  border-radius: 20px;
}

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

.pp-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(203, 96, 44, 0.12);
  color: var(--pp-accent-dark);
  font-size: 13px;
  font-weight: 600;
}

.pp-hero h1 {
  margin: 16px 0;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.08;
}

.pp-lede {
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--pp-ink);
}

.pp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.pp .pp-cta,
.pp-mbar .pp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 10px;
  background: var(--pp-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.pp .pp-cta:hover,
.pp .pp-cta:focus-visible,
.pp-mbar .pp-cta:hover,
.pp-mbar .pp-cta:focus-visible {
  background: var(--pp-accent-dark);
  color: #fff;
}

.pp-cta svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.pp .pp-textlink {
  font-weight: 600;
  text-decoration: none;
}

/* Stat tiles */
.pp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-stat {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
}

.pp-stat__value {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--pp-ink);
}

.pp-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
}

/* Two-column body */
.pp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
  margin-top: 64px;
}

.pp-section {
  margin: 0 0 64px;
  scroll-margin-top: 110px;
}

.pp-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pp-accent-dark);
}

.pp-section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
}

.pp-section > p {
  margin: 0 0 14px;
  font-size: 17px;
}

/* Good for / think twice */
.pp-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.pp-fit__card {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
}

.pp-fit__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pp-fit__label svg {
  width: 18px;
  height: 18px;
}

.pp-fit__card--good .pp-fit__label {
  color: var(--pp-good);
}

.pp-fit__card--warn .pp-fit__label {
  color: var(--pp-accent-dark);
}

.pp-fit__card .pp-fit__title {
  margin: 10px 0 6px;
  font-family: Outfit, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pp-ink);
}

.pp-fit__card p {
  margin: 0;
  font-size: 15px;
}

/* Pros and cons */
.pp-pc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.pp-pc h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.pp-pc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-pc li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 32px;
  font-size: 16px;
}

.pp-pc li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.pp-pc__pros li::before {
  content: "+";
  background: rgba(47, 125, 79, 0.12);
  color: var(--pp-good);
}

.pp-pc__cons li::before {
  content: "\2212";
  background: rgba(203, 96, 44, 0.14);
  color: var(--pp-accent-dark);
}

/* Brewing guide */
.pp-steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.pp-steps li {
  position: relative;
  min-height: 36px;
  margin: 0 0 20px;
  padding-left: 54px;
  font-size: 16px;
  counter-increment: step;
}

.pp-steps li::before {
  content: counter(step);
  position: absolute;
  top: -3px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pp-ink);
  color: #fff;
  font-family: Outfit, sans-serif;
  font-weight: 600;
}

/* Spec sheet */
.pp-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.pp-specs__group {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
}

.pp-specs__group h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.pp dl {
  margin: 0;
}

.pp-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--pp-line-soft);
  font-size: 15px;
}

.pp-row:first-child {
  border-top: 0;
}

.pp-row dt {
  flex: none;
  max-width: 45%;
}

.pp-row dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
  color: var(--pp-ink);
}

/* Comparison */
.pp-compare-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
}

.pp-compare {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border-collapse: collapse;
  font-size: 15px;
}

.pp-compare th,
.pp-compare td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  border: 0;
  border-bottom: 1px solid var(--pp-line-soft);
}

.pp-compare thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pp-text);
}

.pp-compare tbody tr:last-child > * {
  border-bottom: 0;
}

.pp-compare tr.is-current {
  background: rgba(203, 96, 44, 0.08);
}

.pp .pp-compare__model {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--pp-ink);
  text-decoration: none;
}

.pp a.pp-compare__model:hover {
  color: var(--pp-accent);
}

.pp-compare__model img {
  width: 40px;
  height: 48px;
  object-fit: contain;
}

.pp-compare__here {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--pp-accent-dark);
}

/* FAQ */
.pp-faq details {
  margin: 0 0 12px;
  padding: 0 22px;
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
}

.pp-faq summary {
  position: relative;
  padding: 18px 32px 18px 0;
  list-style: none;
  cursor: pointer;
  font-family: Outfit, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--pp-ink);
}

.pp-faq summary::-webkit-details-marker {
  display: none;
}

.pp-faq summary::after {
  content: "+";
  position: absolute;
  top: 13px;
  right: 0;
  font-size: 26px;
  font-weight: 400;
  color: var(--pp-accent);
}

.pp-faq details[open] summary::after {
  content: "\2212";
}

.pp-faq details p {
  margin: 0 0 18px;
  font-size: 16px;
}

/* Sticky buy card */
.pp-aside {
  position: sticky;
  top: 110px;
}

.pp-buy {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: 18px;
  box-shadow: 0 16px 32px -20px rgba(44, 30, 24, 0.35);
}

.pp-buy__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pp-buy__head img {
  width: 64px;
  height: 76px;
  object-fit: contain;
}

.pp-buy__name {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--pp-ink);
}

.pp-buy__finish {
  margin: 2px 0 0;
  font-size: 14px;
}

.pp-buy dl {
  margin-bottom: 20px;
}

.pp-buy .pp-row {
  font-size: 14px;
}

.pp-buy .pp-cta {
  width: 100%;
}

.pp-sources {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--pp-line);
  font-size: 14px;
}

/* Footer headings use this WP color utility; the home page defines it inline */
.pp-page .has-palette-color-5-color {
  color: var(--theme-palette-color-5, #F2EFE7) !important;
}

/* Mobile buy bar */
.pp-mbar {
  display: none;
}

@media (max-width: 999px) {
  .pp-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pp-hero__media {
    max-height: 380px;
    aspect-ratio: auto;
    padding: 24px;
  }

  .pp-hero__media img {
    max-height: 330px;
  }

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

  .pp-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 48px;
  }

  .pp-aside {
    display: none;
  }

  .pp-mbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--pp-line);
    box-shadow: 0 -8px 24px -16px rgba(44, 30, 24, 0.4);
  }

  .pp-mbar__name {
    font-family: Outfit, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--pp-ink);
  }

  .pp-mbar .pp-cta {
    flex: none;
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
    white-space: nowrap;
  }

  body.pp-page {
    padding-bottom: 72px;
  }
}

@media (max-width: 689px) {
  .pp {
    padding: 0 18px 64px;
  }

  .pp-lede {
    font-size: 17px;
  }

  .pp-stat {
    padding: 16px;
  }

  .pp-stat__value {
    font-size: 24px;
  }

  .pp-fit,
  .pp-pc,
  .pp-specs {
    grid-template-columns: 1fr;
  }

  .pp-section {
    margin-bottom: 48px;
  }
}
