/* Scoped to catalog only — do not restyle the WordPress/Neve chrome. */
.mpb-catalog-wrap,
.mpb-gate {
  --ink: #1b1714;
  --muted: #6b6258;
  --paper: #f6f1e8;
  --paper-2: #fffdf8;
  --line: #e4d8c6;
  --gold: #c9a04a;
  --gold-2: #e8c56a;
  --deep: #2a2118;
  --shadow: 0 22px 50px rgba(42, 33, 24, 0.08);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  box-sizing: border-box;
  color: var(--ink);
  font-family: var(--sans);
}
.mpb-catalog-wrap *,
.mpb-catalog-wrap *::before,
.mpb-catalog-wrap *::after,
.mpb-gate *,
.mpb-gate *::before,
.mpb-gate *::after {
  box-sizing: border-box;
}
.mpb-catalog-wrap img,
.mpb-gate img {
  max-width: 100%;
  height: auto;
  display: block;
}
.mpb-catalog-wrap a {
  color: inherit;
}

body.mpb-catalog-page .nv-page-title-wrap,
body.mpb-catalog-page .entry-title {
  display: none !important;
}

/* Desktop header: restore readable spacing (catalog CSS used to compress nav). */
@media (min-width: 961px) {
  body.mpb-catalog-page .header--row .nav-ul {
    gap: 0.55rem !important;
  }
  body.mpb-catalog-page .header--row .nav-ul > li > a {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    letter-spacing: 0.06em !important;
  }
  body.mpb-catalog-page .header--row .header-button {
    margin-left: 0.75rem !important;
  }
}

.mpb-catalog-wrap .btn,
.mpb-gate .btn,
.mpb-call-modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-2, #e8c56a), var(--gold, #c9a04a));
  color: var(--deep, #2a2118) !important;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.mpb-catalog-wrap .btn:hover,
.mpb-gate .btn:hover,
.mpb-call-modal .btn:hover {
  filter: brightness(0.98);
}

.mpb-catalog-wrap .hero { padding: 28px 0 12px; }
.mpb-catalog-wrap .eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7a32;
  font-size: 0.74rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.mpb-catalog-wrap h2,
.mpb-catalog-wrap h3,
.mpb-catalog-wrap h4 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.mpb-catalog-wrap .lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
  line-height: 1.6;
}
.mpb-catalog-wrap .about { padding: 8px 0 12px; }
.mpb-catalog-wrap .about h3 { font-size: 1.7rem; margin-bottom: 14px; }
.mpb-catalog-wrap .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}
.mpb-catalog-wrap .about-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}

.mpb-catalog-wrap .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
}
.mpb-catalog-wrap .chip {
  border: 1px solid var(--line) !important;
  background: #fffdf8 !important;
  color: #1b1714 !important;
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
}
.mpb-catalog-wrap .chip:hover {
  border-color: #c9a04a !important;
  color: #1b1714 !important;
}
.mpb-catalog-wrap .chip.is-on {
  background: #2a2118 !important;
  color: #fff8ee !important;
  border-color: #2a2118 !important;
}

.mpb-catalog-wrap .group { padding: 28px 0 8px; }
.mpb-catalog-wrap .group h3 { font-size: 1.85rem; margin-bottom: 18px; }
.mpb-catalog-wrap .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mpb-catalog-wrap .card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}
.mpb-catalog-wrap .card-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #f3eee6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mpb-catalog-wrap .card-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.mpb-catalog-wrap .card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.mpb-catalog-wrap .card-body h4 {
  font-size: 1.35rem;
  line-height: 1.2;
}
.mpb-catalog-wrap .card-body h4 a { text-decoration: none; }
.mpb-catalog-wrap .card-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.mpb-catalog-wrap .card-meta {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.mpb-catalog-wrap .price,
.mpb-catalog-wrap .prices strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--ink);
}
.mpb-catalog-wrap .prices { display: flex; flex-direction: column; gap: 2px; }
.mpb-catalog-wrap .prices strong { font-size: 1.1rem; }
.mpb-catalog-wrap .more {
  color: #9a7a32;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
}
.mpb-catalog-wrap .exclude { font-size: 0.8rem; color: var(--muted); margin: 0.35rem 0 0; }
.mpb-warranty { color: var(--muted); font-size: 0.92rem; }
.mpb-cat-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.2rem 0 0.6rem;
  color: var(--ink);
}

.mpb-catalog-wrap.mpb-product .product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin: 1rem 0 2rem;
  align-items: start;
}
.mpb-catalog-wrap .product-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mpb-catalog-wrap .product-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.mpb-catalog-wrap .product-copy .lede { margin: 0.6rem 0 1rem; }
.mpb-catalog-wrap .price.big,
.mpb-catalog-wrap .prices.big strong {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ink);
}
.mpb-catalog-wrap .prices.big {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.8rem 0;
}
.mpb-catalog-wrap .feature-list { padding-left: 1.1rem; line-height: 1.55; }
.mpb-catalog-wrap .feature-list li { margin: 0.4rem 0; }
.mpb-catalog-wrap .product-section { margin: 0 0 1.6rem; }
.mpb-catalog-wrap .product-section h3 { font-size: 1.55rem; margin-bottom: 0.7rem; }
.mpb-catalog-wrap .product-section p { color: var(--muted); line-height: 1.65; }

/* Call-request modal */
.mpb-call-modal[hidden] { display: none !important; }
.mpb-call-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.mpb-call-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 23, 20, 0.55);
  backdrop-filter: blur(4px);
}
.mpb-call-modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fffdf8;
  border: 1px solid #e4d8c6;
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(27, 23, 20, 0.28);
  padding: 1.35rem 1.35rem 1.2rem;
  color: #1b1714;
  font-family: "Manrope", system-ui, sans-serif;
}
.mpb-call-modal__panel h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
}
.mpb-call-modal__panel .lede {
  color: #6b6258;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}
.mpb-call-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #6b6258;
}
.mpb-call-modal form {
  display: grid;
  gap: 0.75rem;
}
.mpb-call-modal label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 650;
}
.mpb-call-modal input,
.mpb-call-modal textarea,
.mpb-call-modal select {
  border: 1px solid #e4d8c6;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: #1b1714;
}
.mpb-call-modal textarea { min-height: 72px; resize: vertical; }
.mpb-call-modal .mpb-call-product {
  background: #f6f1e8;
  border: 1px solid #e4d8c6;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #2a2118;
}
.mpb-call-modal .mpb-call-error {
  color: #a33;
  font-weight: 650;
  margin: 0;
  font-size: 0.88rem;
}
.mpb-call-modal .mpb-call-ok {
  color: #2f6b3a;
  font-weight: 650;
  margin: 0;
  font-size: 0.92rem;
}
.mpb-call-modal .mpb-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mpb-staff-preview {
  max-width: 1180px;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  border: 1px dashed #c9a04a;
  border-radius: 12px;
  background: #fff8e8;
  color: #5a4518;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Software cards: retail DVD / Windows box, not a flat photo. */
.mpb-catalog-wrap .card-media--box,
.mpb-catalog-wrap .product-media--box {
  perspective: 900px;
  background:
    radial-gradient(ellipse at 50% 82%, rgba(201, 160, 74, 0.22), transparent 46%),
    linear-gradient(180deg, #3a322a 0%, #16130f 72%);
  overflow: hidden;
}
.mpb-catalog-wrap .card-media--box {
  padding: 22px 8px 30px;
}
.mpb-catalog-wrap .product-media--box {
  padding: 28px 16px 36px;
}
.mpb-catalog-wrap .dvd-box {
  width: 72%;
  height: 92%;
  max-width: 280px;
  display: flex;
  transform: rotateY(-22deg) rotateX(6deg);
  transform-style: preserve-3d;
  filter: drop-shadow(16px 22px 10px rgba(0, 0, 0, 0.55));
}
.mpb-catalog-wrap .product-media--box .dvd-box {
  width: 58%;
  height: 88%;
  max-width: 340px;
}
.mpb-catalog-wrap .dvd-box__spine {
  flex: 0 0 22px;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #0c0a08 0%, #5a4a32 42%, #1c1814 100%);
  color: #f3e2b8;
  border-radius: 3px 0 0 3px;
  box-shadow: inset -3px 0 6px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.mpb-catalog-wrap .dvd-box__spine span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.mpb-catalog-wrap .dvd-box__front {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #111;
  border-radius: 0 4px 4px 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 8px 0 12px rgba(0, 0, 0, 0.18);
}
.mpb-catalog-wrap .dvd-box__front img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.mpb-catalog-wrap .dvd-box__glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.05) 18%, transparent 36%);
  pointer-events: none;
}
.mpb-catalog-wrap .card--box .card-body {
  background: #fffdf8;
}

.mpb-contact-box {
  margin: 2.5rem 0 1rem;
  padding: 1.4rem 1.35rem 1.35rem;
  border: 1px solid #e4d8c6;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f6f1e8 100%);
  box-shadow: 0 16px 36px rgba(42, 33, 24, 0.07);
  color: #1b1714;
  font-family: "Manrope", system-ui, sans-serif;
}
.mpb-contact-box__eyebrow {
  margin: 0 0 0.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9a7a32;
}
.mpb-contact-box__title {
  margin: 0 0 0.45rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
  color: #1b1714;
}
.mpb-contact-box__text {
  margin: 0 0 1.1rem;
  color: #6b6258;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 56ch;
}
.mpb-contact-box__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.mpb-contact-box__btn {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
  text-align: left;
  text-decoration: none !important;
  border: 1px solid #e4d8c6;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: #fff;
  color: #1b1714 !important;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.mpb-contact-box__btn:hover {
  border-color: #c9a04a;
  transform: translateY(-1px);
}
.mpb-contact-box__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a7a32;
}
.mpb-contact-box__btn strong {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1b1714;
}
.mpb-contact-box__btn--phone {
  border-color: #d8c7a4;
}
.mpb-contact-box__btn--mail {
  border-color: #d8c7a4;
}
.mpb-contact-box__btn--wa {
  background: #f3fbf5;
  border-color: #b7dfc2;
}
.mpb-contact-box__btn--wa .mpb-contact-box__label { color: #2f6b3a; }
.mpb-contact-box__btn--callback {
  background: linear-gradient(180deg, #e8c56a, #c9a04a);
  border-color: #c9a04a;
}
.mpb-contact-box__btn--callback .mpb-contact-box__label { color: #5a4518; }
.mpb-contact-box__btn--callback strong { color: #2a2118; }

@media (max-width: 700px) {
  .mpb-contact-box__actions { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .mpb-catalog-wrap .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mpb-catalog-wrap .about-grid { grid-template-columns: 1fr; }
  .mpb-catalog-wrap.mpb-product .product-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mpb-catalog-wrap .grid { grid-template-columns: minmax(0, 1fr); }
  .mpb-catalog-wrap .hero { padding-top: 12px; }
}
