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

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

/* ===== SIDEBAR ===== */
.bpc-sidebar {
  width: 280px;
  flex-shrink: 0;
}

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

.bpc-sidebar .royal-mint-logo {
  max-width: 120px;
  margin-bottom: 1rem;
}

.bpc-sidebar .badge-label {
  font-size: 0.9rem;
  color: var(--gb-text);
  margin: 0;
  line-height: 1.4;
}

.bpc-sidebar .sidebar-link-box {
  margin-top: 1.5rem;
}

.bpc-sidebar .sidebar-link-box a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gb-white);
  border: 1px solid var(--gb-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--gb-navy);
  font-weight: 600;
  transition: all 0.2s;
}

.bpc-sidebar .sidebar-link-box a:hover {
  border-color: var(--gb-gold);
  color: var(--gb-gold);
}

.bpc-sidebar .sidebar-link-box svg {
  flex-shrink: 0;
  color: var(--gb-gold);
}

.bpc-sidebar .sidebar-promo {
  background: var(--gb-navy);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  color: var(--gb-white);
}

.bpc-sidebar .sidebar-promo h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gb-white);
}

.bpc-sidebar .sidebar-promo p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.bpc-sidebar .sidebar-promo .btn-gold {
  display: inline-block;
  background: var(--gb-gold);
  color: var(--gb-navy);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.bpc-sidebar .sidebar-promo .btn-gold:hover {
  background: var(--gb-white);
}

/* ===== 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;
}

/* ===== 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;
}

/* ===== 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;
}

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

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

.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;
}

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

.bpc-cta-inner {
  background: var(--gb-navy);
  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: 1024px) {
  .bpc-page-wrapper {
    flex-direction: column;
    padding: 1.5rem;
  }

  .bpc-sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .bpc-sidebar > * {
    flex: 1;
    min-width: 200px;
    margin-top: 0 !important;
  }
}

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

  .bpc-sidebar {
    flex-direction: column;
  }

  .bpc-sidebar > * {
    min-width: 100%;
  }

  .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;
  }
}
