/*
 * Compact layout layer.
 * Keeps the visual language, but removes oversized type, fixed card heights
 * and sections that cannot fit comfortably on a regular laptop screen.
 */

:root {
  --bp-compact-section: clamp(38px, 4vw, 56px);
}

html { font-size: 15px; }

body {
  font-size: 15px;
  line-height: 1.5;
}

.bp-container,
.bp-burz .bp-container {
  width: min(1240px, calc(100% - 40px));
}

.bp-section,
.bp-burz-sec,
.bp-story-section,
.bp-person-section {
  padding-top: var(--bp-compact-section);
  padding-bottom: var(--bp-compact-section);
}

.bp-title,
.bp-section__head h2 {
  font-size: clamp(29px, 2.65vw, 40px);
  line-height: 1.1;
}

.bp-lead { font-size: clamp(15px, 1.2vw, 17px); }

.bp-button,
.btn { min-height: 44px; }

/* Catalog: content defines height; no 750 px placeholders. */
.woocommerce ul.products li.product.bp-product-card,
.bp-product-card,
.bp-home-products .bp-product-card,
body.post-type-archive-product .bp-shop-main ul.products li.product.bp-product-card,
body.tax-product_cat .bp-shop-main ul.products li.product.bp-product-card,
body.post-type-archive-product .woocommerce ul.products li.product.bp-product-card,
body.tax-product_cat .woocommerce ul.products li.product.bp-product-card {
  height: 100%;
  min-height: 0 !important;
  overflow: hidden !important;
}

.bp-product-card__image,
.bp-home-products .bp-product-card__image {
  height: 210px;
  min-height: 210px;
}

.bp-home-products .bp-product-card__image img {
  height: 100% !important;
}

.bp-product-card__body,
.bp-home-products .bp-product-card__body,
body.post-type-archive-product .bp-product-card__body,
body.tax-product_cat .bp-product-card__body {
  min-height: 0;
  padding: 8px 13px 13px;
}

.bp-product-card .woocommerce-loop-product__title,
.bp-home-products .bp-product-card .woocommerce-loop-product__title {
  height: 46px;
  min-height: 46px;
  margin-bottom: 5px !important;
}

.bp-product-card .woocommerce-loop-product__title a,
.bp-home-products .bp-product-card .woocommerce-loop-product__title a {
  font-size: 17px;
  line-height: 1.28;
}

.bp-product-card__body p,
.bp-home-products .bp-product-card__body p {
  height: 38px;
  min-height: 38px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.42;
}

.bp-product-card__price,
.bp-home-products .bp-product-card__price {
  min-height: 29px;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.bp-product-card__mode { min-height: 34px; }

/* The parent used to be 40 px while a child was at least 42 px. */
.bp-product-card__packs,
.bp-home-products .bp-product-card__packs {
  height: auto !important;
  min-height: 50px;
  margin-bottom: 8px;
  overflow: hidden;
}

.bp-product-card__packs button,
.bp-home-products .bp-product-card__packs button {
  display: flex;
  min-width: 0;
  min-height: 50px !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px 2px !important;
  font-size: 12.5px;
  line-height: 1.05;
  white-space: normal !important;
}

.bp-product-card__packs button > .bp-product-card__pack-volume,
.bp-product-card__packs button > .bp-product-card__pack-weight,
.bp-home-products .bp-product-card__packs button > .bp-product-card__pack-volume,
.bp-home-products .bp-product-card__packs button > .bp-product-card__pack-weight {
  display: block;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0 !important;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit;
  line-height: 1.05;
}

.bp-product-card__packs button > .bp-product-card__pack-weight,
.bp-home-products .bp-product-card__packs button > .bp-product-card__pack-weight {
  font-size: 10.5px;
  font-weight: 700;
}

.bp-product-card__buyrow,
.bp-home-products .bp-product-card__buyrow {
  grid-template-columns: 73px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.bp-product-card__qty,
.bp-home-products .bp-product-card__qty,
.bp-product-card__button,
.bp-home-products .bp-product-card__button,
.bp-product-card__quick,
.bp-home-products .bp-product-card__quick {
  min-height: 44px;
}

.bp-product-card__quick,
.bp-home-products .bp-product-card__quick {
  font-size: 14px;
}

.bp-product-card__note { min-height: 0; }

/* Product page buy box. */
.bp-single-packs button { min-height: 48px; }
.bp-single-packs button span { white-space: normal; }
.bp-single-packs button span small {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  line-height: 1.05;
}

/* Home page: compact rhythm and media that fit the first viewport. */
.bp-herofg__inner {
  min-height: 0;
  padding-top: 30px;
  padding-bottom: 34px;
}

.bp-herofg h1 { font-size: clamp(34px, 3.55vw, 48px); }

.bp-home-catalog,
.bp-home-participants,
.bp-guide,
.bp-coop-showcase,
.bp-guarantee,
.bp-promo,
.bp-faq,
.bp-home-blog,
.bp-home-discount-section {
  min-height: 0;
  padding-top: var(--bp-compact-section);
  padding-bottom: var(--bp-compact-section);
}

.bp-home-participants__grid > a { padding: 21px; }
.bp-home-participants__grid h3 { font-size: clamp(22px, 1.8vw, 27px); }
.bp-guide__card { min-height: 132px; padding: 20px; }
.bp-bort__inner { gap: 30px; }
.bp-bort__copy h2 { font-size: clamp(29px, 2.7vw, 40px); }
.bp-bort__media img { height: 310px; }

.bp-guarantee__grid { gap: 14px; }
.bp-guarantee__card,
.bp-guarantee__card:nth-child(n+4) {
  min-height: 0;
  padding: 20px;
}
.bp-guarantee__card-top { margin-bottom: 13px; }
.bp-guarantee__card strong { font-size: 18px; }
.bp-guarantee__card p { font-size: 14px; line-height: 1.48; }

.bp-coop-showcase__shell { gap: 28px; }
.bp-coop-showcase__head .bp-title { font-size: clamp(30px, 2.75vw, 42px); }
.bp-coop-showcase__head .bp-lead { font-size: clamp(15px, 1.2vw, 17px); }
.bp-coop-showcase__grid { gap: 28px; }
.bp-coop-showcase__copy .bp-coop-fact {
  min-height: 60px;
  padding: 11px 14px;
}
.bp-coop-showcase__copy .bp-coop-showcase__map img { height: 150px; }
.bp-coop-showcase__copy .bp-coop-showcase__actions { margin-top: 0; }
.bp-coop-gallery { height: clamp(390px, 33vw, 490px); }
.bp-coop-gallery__item .bp-slider-lightbox-trigger {
  position: relative;
  padding: 0;
}
.bp-coop-gallery__item .bp-slider-lightbox-trigger img {
  position: absolute;
  top: 12px;
  right: auto;
  bottom: auto;
  left: 12px;
  width: calc(100% - 24px) !important;
  height: calc(100% - 58px) !important;
  max-width: none;
  max-height: none;
  object-fit: contain !important;
  object-position: center !important;
}

/* Desktop: both columns of the cooperative block share one top and bottom line. */
@media (min-width: 981px) {
  .bp-coop-showcase__grid { align-items: stretch; }
  .bp-coop-gallery {
    height: 400px;
    min-height: 0;
    overflow: hidden;
  }
}

.bp-documents-legacy { padding: 50px 0 58px; }
.bp-documents-legacy__grid { column-gap: 44px; row-gap: 54px; }
.bp-documents-legacy__card h3 {
  min-height: 58px;
  margin-bottom: 15px;
  font-size: 23px;
}
.bp-documents-legacy__preview {
  height: 350px;
  margin-bottom: 20px;
}
.bp-documents-legacy__preview img { max-height: 350px; }
.bp-documents-legacy__button {
  min-height: 58px;
  padding: 12px 20px;
  font-size: 14px;
}

.bp-home-video {
  margin-top: 44px;
  padding: 48px 0 52px;
}
.bp-video--figma { gap: 20px; }
.bp-video--figma .bp-video__copy h2 { font-size: clamp(29px, 2.7vw, 40px); }
.bp-video--figma .bp-video__copy p { font-size: clamp(15px, 1.15vw, 17px); }
.bp-video__wrap { height: clamp(280px, 26vw, 340px); }
.bp-video--figma > .bp-button { margin-top: 12px; }

.bp-home-review-gallery { min-height: 0; }
.bp-review-gallery { height: 610px; }
.bp-review-gallery__stage { height: 410px; }

.bp-home-fulfillment {
  margin-top: 52px;
  padding: 50px 0 56px;
}
.bp-fulfillment-head h2 { font-size: clamp(30px, 2.8vw, 42px); }
.bp-fulfillment-head p { font-size: 16px; }
.bp-fulfillment-mode { padding: 13px 15px; }
.bp-home-fulfillment .bp-contact-map--figma .bp-contact-map__canvas,
.bp-home-fulfillment .bp-contact-map--figma .bp-contact-map__card {
  height: 470px;
  min-height: 470px;
}

.bp-family--figma { padding: 54px 0 60px; }
.bp-promo__card { padding: 23px; }
.bp-faq__item summary { padding-top: 18px; padding-bottom: 18px; }

/* About, participant, information and service pages. */
.bp-burz h1 { font-size: clamp(32px, 3.1vw, 44px); line-height: 1.05; }
.bp-burz h2 { font-size: clamp(27px, 2.4vw, 36px); }
.bp-burz h3 { font-size: 18px; }
.bp-burz p,
.bp-burz li { font-size: 15px; }
.bp-burz-hero { padding: 24px 0 38px; }
.bp-burz-hero__inner { gap: 34px; }
.bp-burz-hero__media { max-width: 410px; justify-self: end; }
.bp-burz-hero__frame img { max-height: 360px; }

.bp-story-hero { padding: 24px 0 44px; }
.bp-story-hero__inner { gap: 40px; }
.bp-story-hero h1,
.bp-story-page--beekeeper .bp-story-hero h1,
.bp-story-page--beekeepers .bp-story-hero h1,
.bp-person-page .bp-profile-hero h1 {
  font-size: clamp(34px, 3.15vw, 46px);
  line-height: 1.04;
}
.bp-story-hero .lead { font-size: clamp(15px, 1.2vw, 17px); }
.bp-story-hero__bullets li { font-size: 14px; }
.bp-story-hero__media { max-width: 460px; justify-self: end; }
.bp-story-hero__media img { max-height: 360px; }
.bp-story-head h2,
.bp-story-split__copy h2,
.bp-story-taste h2,
.bp-beekeepers-coop-trust__copy h2 {
  font-size: clamp(27px, 2.25vw, 35px);
}

.bp-profile-hero { padding-top: 32px; padding-bottom: 44px; }
.bp-person-section { padding-top: 42px; padding-bottom: 42px; }
.bp-person-page h2 { font-size: clamp(27px, 2.35vw, 36px); }
.bp-person-page h3 { font-size: 19px; }
.bp-person-page p,
.bp-person-page li { font-size: 15.5px; line-height: 1.58; }
.bp-person-visual { max-width: 430px; justify-self: end; }
.bp-person-visual img { max-height: 390px; }
.bp-person-trust { padding: 19px; }

@media (max-width: 980px) {
  .bp-container,
  .bp-burz .bp-container { width: min(100% - 32px, 1240px); }

  .bp-product-card__image,
  .bp-home-products .bp-product-card__image {
    height: 190px;
    min-height: 190px;
  }

  .bp-coop-gallery { height: 430px; }
  .bp-documents-legacy__preview { height: 320px; }
  .bp-documents-legacy__preview img { max-height: 320px; }

  .bp-story-hero__inner,
  .bp-burz-hero__inner,
  .bp-person-page .bp-profile-hero__inner {
    grid-template-columns: 1fr;
  }

  .bp-story-hero__media,
  .bp-burz-hero__media,
  .bp-person-visual {
    justify-self: start;
  }

  .bp-home-fulfillment .bp-contact-map--figma .bp-contact-map__canvas {
    height: 390px;
    min-height: 390px;
  }

  .bp-home-fulfillment .bp-contact-map--figma .bp-contact-map__card {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  :root { --bp-compact-section: 36px; }

  .bp-container,
  .bp-burz .bp-container { width: calc(100% - 28px); }

  .bp-title,
  .bp-section__head h2,
  .home .bp-title,
  .bp-coop-showcase__head .bp-title {
    font-size: clamp(27px, 8.2vw, 34px);
  }

  .bp-herofg__inner { padding-top: 24px; padding-bottom: 27px; }
  .bp-herofg h1 { font-size: clamp(31px, 9vw, 39px); }

  .bp-product-card__image,
  .bp-home-products .bp-product-card__image {
    height: 220px;
    min-height: 220px;
  }

  .bp-home-participants__grid,
  .bp-documents-legacy__grid { grid-template-columns: 1fr; }

  .bp-coop-gallery { height: clamp(330px, 98vw, 410px); }
  .bp-coop-gallery__item .bp-slider-lightbox-trigger img {
    top: 8px;
    left: 8px;
    width: calc(100% - 16px) !important;
    height: calc(100% - 48px) !important;
  }
  .bp-documents-legacy { padding: 38px 0 44px; }
  .bp-documents-legacy__grid { row-gap: 44px; }
  .bp-documents-legacy__card h3 { min-height: 0; font-size: 20px; }
  .bp-documents-legacy__preview { height: 280px; }
  .bp-documents-legacy__preview img { max-height: 280px; }
  .bp-documents-legacy__button { min-height: 54px; font-size: 13px; }

  .bp-home-video { margin-top: 36px; padding: 40px 0 44px; }
  .bp-video__wrap { height: 300px; }
  .bp-review-gallery { height: 520px; }
  .bp-review-gallery__stage { height: 340px; }

  .bp-home-fulfillment { margin-top: 36px; padding: 40px 0 44px; }
  .bp-home-fulfillment .bp-contact-map--figma .bp-contact-map__canvas {
    height: 310px;
    min-height: 310px;
  }

  .bp-story-hero,
  .bp-profile-hero { padding-top: 18px; padding-bottom: 34px; }
  .bp-story-hero h1,
  .bp-story-page--beekeeper .bp-story-hero h1,
  .bp-story-page--beekeepers .bp-story-hero h1,
  .bp-person-page .bp-profile-hero h1,
  .bp-burz h1 {
    font-size: clamp(30px, 8.9vw, 38px);
  }
  .bp-story-hero__media img,
  .bp-person-visual img { max-height: 330px; }
}
