/* Archive cards */
.woocommerce ul.products li.product { background: var(--bb-surface); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); padding: 10px; display: flex; flex-direction: column; }
.woocommerce ul.products li.product img { background: #eef0f6; border-radius: 10px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { direction: ltr; text-align: right; font-size: 14px; }
.bb-card-meta { margin: 4px 0; }
.woocommerce ul.products li.product .price { font-weight: 800; color: var(--bb-text); }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .bb-quote-add .bb-btn { width: 100%; margin-top: auto; border-radius: 999px; }
.woocommerce ul.products li.product .bb-quote-add { margin-top: auto; }

/* Single product */
.bb-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.bb-chip { background: var(--bb-primary-soft); color: var(--bb-primary); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.bb-origin { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; font-size: 12px; color: var(--bb-muted, #5b6b82); white-space: nowrap; }
.bb-flag { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(20, 30, 50, .15); }
.bb-card-meta .bb-origin { margin-inline-start: 6px; font-size: 11px; }
.bb-chip--origin { background: var(--bb-bg); border: 1px solid var(--bb-border); }
.bb-chip--origin .bb-origin { color: var(--bb-text, #1c2533); font-size: 12px; }
.bb-chip--ok { background: var(--bb-ok-soft); color: var(--bb-ok); }
.single-product .product_title { direction: ltr; text-align: right; }
.bb-subtitle { color: var(--bb-muted); margin: -4px 0 8px; }
.single-product .summary .price { font-size: 22px; font-weight: 800; color: var(--bb-text); }
.single-product .summary form.cart { display: flex; gap: 8px; align-items: center; }
.single-product .summary form.cart .single_add_to_cart_button { flex: 1; border-radius: 999px; }
.bb-specs { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bb-surface); border-radius: var(--bb-radius); }
.bb-specs tr:last-child th, .bb-specs tr:last-child td { border-bottom: 0; }
.bb-specs th, .bb-specs td { padding: 8px 12px; border-bottom: 1px solid #eef1f5; text-align: start; }
.bb-specs th { color: var(--bb-muted); font-weight: 500; width: 40%; }
.bb-apps { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; }
.bb-apps a { display: inline-block; background: var(--bb-primary-soft); color: var(--bb-primary); border-radius: 999px; padding: 4px 12px; text-decoration: none; }
.bb-equivalents { margin: 32px 0; }
.bb-equivalents h2 { font-size: 18px; }
.bb-equivalents__dims { color: var(--bb-muted); font-size: 14px; font-weight: 400; }

/* Mobile filter sheet (Blocksy styles #sidebar too, hence the specificity and !important) */
.bb-filters-toggle { display: none; }
@media (max-width: 767px) {
  .bb-filters-toggle { display: inline-flex; margin-bottom: 12px; }
  body.bb-has-filters aside#sidebar {
    position: fixed !important; inset-inline: 0; top: auto !important; bottom: 0; z-index: 100;
    height: auto !important; max-height: 80vh; overflow: auto; margin: 0 !important; width: auto !important;
    background: var(--bb-surface); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(20, 30, 50, .2);
    padding: 16px 16px 80px; transform: translateY(110%) !important; visibility: hidden;
  }
  /* Animate only after first paint (bb-sheet-ready), so the sheet does not slide out on page load. */
  body.bb-sheet-ready aside#sidebar { transition: transform .25s ease, visibility 0s linear .25s; }
  body.bb-filters-open aside#sidebar { transform: translateY(0) !important; visibility: visible; }
  body.bb-sheet-ready.bb-filters-open aside#sidebar { transition: transform .25s ease; }
  body.bb-filters-open::before { content: ""; position: fixed; inset: 0; background: rgba(28, 37, 51, .45); z-index: 99; }
  .bb-filters-close { position: sticky; top: 0; float: left; z-index: 1; }
}
.bb-specs .bb-origin { color: inherit; font-size: inherit; }
.bb-chip--brand .bb-card-brand { background: none; padding: 0; font-size: inherit; }
.bb-chip--brand .bb-brand-logo { height: 18px; }
