.bjhp-section,
.bjhp-section * {
  box-sizing: border-box;
}

.bjhp-section {
  --bjhp-gold: #e4b57c;
  --bjhp-navy: #103242;
  --bjhp-teal: #0f3a4c;
  --bjhp-text: #2d3748;
  --bjhp-muted: #66727b;
  --bjhp-white: #fff;
  width: 100%;
  padding: 0;
  background: transparent;
  font-family: "Jost", system-ui, sans-serif;
}

.bjhp-inner {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

/* Nagłówek i stopka są opcjonalne. Domyślny shortcode ich nie generuje. */
.bjhp-heading {
  margin: 0 0 48px;
  color: var(--bjhp-navy) !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 4vw, 53px);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
}

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

.bjhp-card {
  display: flex;
  min-width: 0;
  margin: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--bjhp-white);
  border: 1px solid rgba(16, 50, 66, 0.1);
}

.bjhp-card__media {
  display: block;
  height: 270px;
  overflow: hidden;
  background: #eef2f4;
  text-decoration: none;
}

.bjhp-card__image,
.bjhp-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bjhp-card:hover .bjhp-card__image,
.bjhp-card:hover .bjhp-card__media img {
  transform: scale(1.025);
}

.bjhp-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f6f1ea, #e7d3be);
}

.bjhp-card__body {
  display: flex;
  min-height: 310px;
  padding: 30px;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
}

.bjhp-card__badge {
  margin-bottom: 11px;
  color: #b27d3c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bjhp-card__title {
  margin: 0 0 14px;
  color: var(--bjhp-navy) !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 400;
  line-height: 1.16;
}

.bjhp-card__title a {
  color: inherit !important;
  text-decoration: none !important;
}

.bjhp-card__excerpt {
  margin: 0 0 18px;
  color: var(--bjhp-text);
  font-size: 15px;
  line-height: 1.6;
}

.bjhp-card__price {
  margin: auto 0 22px;
  color: var(--bjhp-navy);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.bjhp-card__price del {
  margin-right: 7px;
  color: var(--bjhp-muted);
  font-weight: 400;
  opacity: 0.8;
}

.bjhp-card__price ins {
  text-decoration: none;
}

.bjhp-card__action {
  margin-top: auto;
}

.bjhp-button {
  display: inline-flex;
  min-height: 42px;
  padding: 11px 27px;
  border: 1px solid var(--bjhp-navy);
  border-radius: 0;
  align-items: center;
  justify-content: center;
  background: var(--bjhp-navy);
  box-shadow: none !important;
  color: var(--bjhp-white) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bjhp-button:hover,
.bjhp-button:focus-visible {
  border-color: var(--bjhp-teal);
  background: var(--bjhp-teal);
  color: var(--bjhp-white) !important;
}

.bjhp-button:focus-visible {
  outline: 2px solid var(--bjhp-gold);
  outline-offset: 3px;
}

.bjhp-footer {
  margin-top: 46px;
  text-align: center;
}

.bjhp-footer h3 {
  margin: 0 0 18px;
  color: var(--bjhp-navy) !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.18;
}

.bjhp-button--outline {
  border-color: var(--bjhp-navy);
  background: transparent;
  color: var(--bjhp-navy) !important;
}

.bjhp-button--outline:hover,
.bjhp-button--outline:focus-visible {
  border-color: var(--bjhp-navy);
  background: var(--bjhp-navy);
  color: var(--bjhp-white) !important;
}

.bjhp-admin-note {
  padding: 18px;
  border: 1px dashed rgba(16, 50, 66, 0.35);
  background: #fff;
  color: #103242;
  text-align: center;
}

@media (max-width: 900px) {
  .bjhp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bjhp-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, 540px);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .bjhp-heading {
    margin-bottom: 32px;
    font-size: 38px;
  }

  .bjhp-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bjhp-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

  .bjhp-card__media {
    height: 245px;
  }

  .bjhp-card__body {
    min-height: 0;
    padding: 26px 24px;
  }
}
