/* ===== BUY PRODUCT CATEGORY PAGE ===== */

/* Remove default site-main padding (handled by .content-width) */
body.page-template-buy-product-category .site-main {
  padding: 0 !important;
  max-width: none !important;
}

/* ===== PAGE LAYOUT ===== */
.bpc-page-wrapper {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ===== MAIN CONTENT ===== */
.bpc-main {
  flex: 1;
  min-width: 0;
}

/* ===== INTRO SECTION ===== */
.bpc-intro {
  margin-bottom: 2.5rem;
}

.bpc-intro h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-bottom: 1rem;
}

.bpc-intro-text {
  color: var(--gb-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bpc-intro-text p:last-child {
  margin-bottom: 0;
}

/* ===== PRODUCT GRIDS ===== */
.bpc-product-grid {
  margin-bottom: 2.5rem;
}

.bpc-product-grid h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gb-navy);
}

/* WooCommerce product grid overrides within bpc template */
.bpc-grid-products ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  clear: both;
}

.bpc-grid-products ul.products::before,
.bpc-grid-products ul.products::after {
  display: none !important;
  content: none !important;
}

.bpc-grid-products ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  background: var(--gb-white);
  border: 1px solid var(--gb-border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bpc-grid-products ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.bpc-grid-products ul.products li.product a.woocommerce-LoopProduct-link {
  display: block;
  text-decoration: none;
}

.bpc-grid-products ul.products li.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  background: #f9f9f9;
}

.bpc-grid-products ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gb-navy);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.bpc-grid-products ul.products li.product .price {
  font-size: 1rem;
  font-weight: 700;
}

/* Price amount: gold */
.bpc-grid-products ul.products li.product .price .woocommerce-Price-amount {
  color: var(--gb-gold);
}

/* "from" prefix: small, dark, normal weight */
.bpc-grid-products ul.products li.product .gbpm-from-price-prefix {
  color: var(--gb-text);
  font-size: 0.85rem;
  font-weight: 400;
}

.bpc-grid-products ul.products li.product .price del {
  color: #999;
  font-weight: 400;
  font-size: 0.875rem;
}

.bpc-grid-products ul.products li.product .price ins {
  text-decoration: none;
  color: var(--gb-gold);
}

/* Hide add to cart buttons */
.bpc-grid-products ul.products li.product .button,
.bpc-grid-products ul.products li.product .add_to_cart_button,
.bpc-grid-products ul.products li.product .added_to_cart {
  display: none !important;
}

.bpc-grid-body {
  margin-top: 1.5rem;
  color: var(--gb-text);
  line-height: 1.7;
}

.bpc-grid-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.bpc-grid-body h2:first-child {
  margin-top: 1rem;
}

.bpc-grid-body .bpc-range-intro {
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}

.bpc-grid-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: center;
  justify-content: center;
}

.bpc-grid-image {
  flex: 0 1 260px;
  max-width: 260px;
}

.bpc-grid-image img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

.bpc-grid-image-caption {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gb-text);
  font-style: italic;
  margin: 0.5rem 0 0;
}

/* ===== EDUCATION SECTION ===== */
.bpc-education {
  margin-bottom: 2.5rem;
}

.bpc-education > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-bottom: 1rem;
}

.bpc-edu-text {
  color: var(--gb-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bpc-edu-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.bpc-edu-col {
  background: var(--gb-light-bg, #f8f9fa);
  border-radius: 8px;
  padding: 1.5rem;
}

.bpc-edu-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-bottom: 0.75rem;
}

.bpc-edu-col p {
  color: var(--gb-text);
  line-height: 1.6;
}

/* Image-backed education columns (parallax-style) */
.bpc-edu-col-imaged {
  position: relative;
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--gb-white);
  display: flex;
  align-items: flex-end;
}

.bpc-edu-col-imaged::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 42, 75, 0.55) 0%, rgba(28, 42, 75, 0.95) 100%);
  z-index: 1;
}

.bpc-edu-col-imaged .bpc-edu-col-inner {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
  width: 100%;
}

.bpc-edu-col-imaged h3 {
  color: var(--gb-white);
  font-size: 1.25rem;
}

.bpc-edu-col-imaged p {
  color: rgba(255, 255, 255, 0.92);
}

/* Disable fixed attachment on mobile for performance/iOS compatibility */
@media (max-width: 992px) {
  .bpc-edu-col-imaged {
    background-attachment: scroll;
    min-height: 240px;
  }
}

/* ===== BENEFIT CARDS ===== */
.bpc-cards {
  margin-bottom: 2.5rem;
}

.bpc-cards > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-bottom: 1.5rem;
}

.bpc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.bpc-card {
  background: var(--gb-white);
  border: 1px solid var(--gb-border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.bpc-card-icon {
  margin-bottom: 1rem;
}

.bpc-card-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.bpc-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-bottom: 0.5rem;
}

.bpc-card p {
  font-size: 0.9rem;
  color: var(--gb-text);
  line-height: 1.5;
  margin: 0;
}

/* ===== OPTIONS / DELIVERY ===== */
.bpc-options {
  margin-bottom: 2.5rem;
}

.bpc-options > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-bottom: 1.5rem;
}

.bpc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.bpc-option {
  background: var(--gb-light-bg, #f8f9fa);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.bpc-option-icon {
  margin-bottom: 1rem;
}

.bpc-option-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Hero-image option cards */
.bpc-option-imaged {
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.bpc-option-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}

.bpc-option-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bpc-option-imaged:hover .bpc-option-image img {
  transform: scale(1.04);
}

.bpc-option-imaged .bpc-option-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bpc-option h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-bottom: 0.75rem;
}

.bpc-option p {
  font-size: 0.9rem;
  color: var(--gb-text);
  line-height: 1.6;
}

.bpc-option-cta {
  margin-top: auto;
  padding-top: 0.75rem;
  display: inline-block;
  color: var(--gb-gold);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.bpc-option-cta:hover {
  text-decoration: underline;
}

.bpc-option-cta::after {
  content: ' →';
}

/* ===== BOTTOM CTA ===== */
.bpc-cta {
  margin-bottom: 2rem;
}

.bpc-cta-inner {
  background: var(--gb-navy-light);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  color: var(--gb-white);
}

.bpc-cta-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gb-white);
  margin-bottom: 0.75rem;
}

.bpc-cta-inner p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .bpc-grid-products ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .bpc-page-wrapper {
    flex-direction: column;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .bpc-page-wrapper {
    padding: 1rem;
  }

  .bpc-intro h1 {
    font-size: 1.5rem;
  }

  .bpc-grid-products ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .bpc-edu-columns {
    grid-template-columns: 1fr;
  }

  .bpc-cards-grid {
    grid-template-columns: 1fr;
  }

  .bpc-options-grid {
    grid-template-columns: 1fr;
  }

  .bpc-cta-inner {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .bpc-grid-products ul.products {
    grid-template-columns: 1fr;
  }
}
