/**
 * Catalogue list/grid view, mobile quick filters and mobile sort (Tiago, round 2; openspec:
 * tiago-r2-catalogue). Markup and state from js/catalog-view.js (body.gf-bb-wide-list,
 * body.gf-bb-mobile-list, .gf-bb-quick-filters, .gf-bb-quick-panel). Loaded on the
 * catalogue pages only, before css/card-compact.css.
 */


.gf-bb-catalog-view-toggle,
.gf-bb-catalog-view-toggle[hidden] { display: none !important; }

@media (max-width: 719px) {
  body.gf-bb-catalog-ready .gf-bb-category-controls:has(.gf-bb-catalog-view-toggle) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-catalog-view-toggle:not([hidden]) {
    display: inline-flex !important;
    align-items: center;justify-content: center;gap: 5px;
    min-width: 0;width: 100%;height: 44px;min-height: 44px;
    margin: 0;padding: 0 4px;border: 0;border-left: 1px solid #e0e6eb;border-radius: 0;
    background: transparent;color: #111820;font: inherit;letter-spacing: 0;text-transform: none;
  }
  .gf-bb-catalog-view-toggle svg { width: 18px;height: 18px;flex: 0 0 18px; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-catalog-view-toggle[aria-pressed="true"] {
    color: #028543;background: #edf8f2;
  }
  .gf-bb-catalog-view-toggle:focus-visible { outline: 3px solid #028543;outline-offset: -3px; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-category-mobile-count { font-size: 12px; }

  body.gf-bb-mobile-list .facetwp-template > .products {
    display: grid;grid-template-columns: minmax(0,1fr);row-gap: 10px;
  }
  body.gf-bb-mobile-list .facetwp-template > .products > .gf-bb-card-v2 {
    width: 100% !important;max-width: 100% !important;flex-basis: 100% !important;
    min-width: 0;margin: 0;padding: 0 !important;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 > .col-inner {
    background: #fff;border: 0;border-radius: 12px;overflow: hidden;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 > .col-inner > .product-small.box {
    display: grid;grid-template-columns: clamp(76px,24vw,120px) minmax(0,1fr) clamp(96px,28vw,140px);
    grid-template-rows: auto auto auto;gap: 6px 8px;
    width: 100%;height: auto !important;min-height: 0;padding: 8px;border-radius: 12px;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .box-text,
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-purchase-zone { display: contents !important; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .box-image {
    grid-column: 1;grid-row: 1 / 3;align-self: center;width: 100%;max-width: 100%;margin: 0;position: static;overflow: visible;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .image-tools.top.right:has(.wishlist-button) {
    top: 4px;right: 4px;bottom: auto;left: auto;width: 24px;height: 24px;padding: 0;transform: none;z-index: 3;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .wishlist-button { width:24px;height:24px;min-width:24px;min-height:24px;padding:0; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .wishlist-button svg { width:16px;height:16px; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .box-image .image-fade_in_back > a { aspect-ratio: 1; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .box-image .image-fade_in_back > a > img { height: 100%;object-fit: contain; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .title-wrapper {
    grid-column: 2;grid-row: 1 / 3;align-self: start;min-width: 0;gap: 4px;text-align: left;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .product-small.box .product-title {
    height: auto !important;min-height: 0;max-height: none;margin: 0;
    font: 700 11px/14px Lato,Arial,sans-serif;text-align: left;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .product-title a {
    display: block;overflow: visible;white-space: normal;overflow-wrap: anywhere;-webkit-line-clamp: unset;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-grade-row { min-height: 0;line-height: 16px;text-align: left; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-grade-row .bb-card__badge { padding: 2px 8px;font-size: 10px;line-height: 14px; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .product-small.box .bb-card__specs {
    display: grid;grid-template-columns: minmax(0,1fr);gap: 4px;
    min-height: 0 !important;margin: 4px 0 0;padding: 0;text-align: left;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .product-small.box .bb-card__spec {
    display: flex;grid-column: auto;align-items: flex-start;justify-content: flex-start;gap: 4px;
    min-width: 0;text-align: left;font: 400 9px/12px Lato,Arial,sans-serif;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .bb-card__spec svg { width: 11px;height: 11px;flex: 0 0 11px;margin-top: 1px; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .bb-card__spec-value {
    max-width: none;min-width: 0;font: inherit;overflow-wrap: anywhere;white-space: normal;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-spec-label { display: none; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-purchase-details {
    display: flex;flex-direction: column;align-self: start;gap: 4px;
    grid-column: 3;grid-row: 1;min-width: 0;padding: 0 0 0 6px;border-left: 1px solid #f0f2f4;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .product-small.box .price-wrapper {
    display: flex;flex-direction: column;align-items: flex-start;justify-content: flex-start;
    width: 100%;height: auto !important;min-height: 0;gap: 2px;text-align: left;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .product-small.box .price-wrapper .price {
    display: flex;flex-direction: column;align-items: flex-start;gap: 0;
    font: 700 clamp(18px,5.1vw,22px)/1.15 Lato,Arial,sans-serif !important;letter-spacing: -.4px;white-space: nowrap;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .price del { order: 0;font: 400 10px/13px Lato,Arial,sans-serif; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .price ins { order: 1;background: transparent;font: inherit; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .price .amount { font-size: inherit;line-height: inherit; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .product-small.box .gf-bb-purchase-details .gf-bb-installments {
    display: grid;grid-template-columns: 11px minmax(0,1fr);gap: 3px;
    width: 100%;align-items: start;justify-content: start;justify-items: start;text-align: left;
    margin: 2px 0 0;font: 400 9px/12px Lato,Arial,sans-serif;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-installments > svg { width: 11px;height: 11px; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-installments > span {
    min-width: 0;width: 100%;max-width: none;text-align: left;white-space: normal;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-installments-value--wide { display: none; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-installments-value--narrow { display: inline; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-installments-tail { display: flex;flex-wrap: wrap;align-items: center;gap: 2px;white-space: normal; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .product-small.box .bb-card__availability {
    justify-content: flex-start;gap: 3px;margin: 0;text-align: left;font: 700 9px/12px Lato,Arial,sans-serif;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .bb-card__availability > svg { width: 11px;height: 11px;flex: 0 0 11px; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .add-to-cart-button { grid-column: 3;grid-row: 2;align-self: end;min-width: 0;margin: 0; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .product-small.box .add-to-cart-button .button {
    display: flex;align-items: center;justify-content: center;gap: 4px;width: 100%;min-height: 44px;
    margin: 0;padding: 4px;border-radius: 7px;background: #1e2327 !important;color: #fff;
    font: 700 10px/13px Lato,Arial,sans-serif;letter-spacing: 0;white-space: normal;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .add-to-cart-button .button::before {
    content: '';display: block;flex: 0 0 14px;width: 14px;height: 14px;margin: 0;
    background: url('/wp-content/themes/buyback/img/icons/cart-white.svg') center/contain no-repeat;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-selling-points {
    display: grid;grid-column: 1 / -1;grid-row: 3;grid-template-columns: repeat(3,minmax(0,1fr));gap: 4px;
    width: 100%;min-height: 0;margin: 0;padding: 7px 0 0;border-top: 1px solid #edf0f2;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-selling-points > li {
    display: flex;flex-direction: row;flex-wrap: wrap;align-items: center;justify-content: center;
    min-width: 0;gap: 1px 3px;margin: 0;padding: 0 2px;
  }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-selling-points > li[data-point="sustainability"] { display: none; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-selling-points > li + li { border-left: 1px solid #edf0f2; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-selling-points > li + li::before { display: none; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-selling-points > li > svg { flex: 0 0 12px;width: 12px;height: 12px;margin: 0; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-selling-points strong,
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-selling-points li > span { width: auto;font: 400 9px/12px Lato,Arial,sans-serif;text-align: center; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-card-secondary-actions { grid-column: 1 / -1;grid-row: 4; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 > .col-inner > .badge-container { top: 8px;left: 8px;right: auto;gap: 3px;flex-direction: column; }
  body.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .badge-container .badge-inner {
    min-width: 0;padding: 2px 8px;font: 700 9px/12px Lato,Arial,sans-serif;
    -webkit-mask-image: none !important;mask-image: none !important;
  }
}

/* Tablet/desktop: keep the served page and sidebar widths; change only the cards' presentation. */
@media (min-width:720px) {
  body.gf-bb-catalog-ready .gf-bb-category-listing-toolbar { justify-content:space-between;gap:16px; }
  body.gf-bb-catalog-ready .gf-bb-category-listing-toolbar .gf-bb-catalog-views:not([hidden]) {
    display:flex;flex:0 0 80px;align-items:center;margin-left:auto;width:80px;height:40px;padding:2px;
    border:1px solid #e0e6eb;border-radius:9px;background:#f1f4f6;
  }
  body.gf-bb-catalog-ready .gf-bb-category-listing-toolbar .gf-bb-catalog-views button:not([hidden]) {
    display:inline-flex!important;align-items:center;justify-content:center;flex:1;width:38px;min-width:0;height:34px;min-height:34px;
    padding:0;margin:0;border:0;border-radius:6px;background:transparent;color:#53606d;box-shadow:none;
  }
  body.gf-bb-catalog-ready .gf-bb-category-listing-toolbar .gf-bb-catalog-views button[aria-pressed="true"] { color:#fff;background:#028543; }
  .gf-bb-category-listing-toolbar .gf-bb-catalog-views svg { width:18px;height:18px; }
  .gf-bb-category-listing-toolbar .gf-bb-catalog-views button>span { display:none; }
  .gf-bb-category-listing-toolbar .gf-bb-catalog-views button:focus-visible { outline:2px solid #028543;outline-offset:2px; }

  body.gf-bb-wide-list .facetwp-template>.products {
    display:grid;grid-template-columns:minmax(0,1fr);row-gap:16px;
    margin-left:15px!important;margin-right:15px!important;
  }
  body.gf-bb-wide-list .facetwp-template>.products>.gf-bb-card-v2 {
    width:100%!important;max-width:100%!important;flex-basis:100%!important;min-width:0;margin:0;padding:0!important;
    --gf-bb-list-image:clamp(96px,12vw,176px);
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2>.col-inner { width:100%;height:auto!important;overflow:hidden; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2>.col-inner>.product-small.box {
    position:relative;display:grid;grid-template-columns:var(--gf-bb-list-image) minmax(0,1fr) clamp(140px,18vw,232px);
    align-items:center;gap:12px clamp(10px,1.2vw,20px);width:100%;height:auto!important;min-height:176px;padding:12px;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .box-text,
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-purchase-zone { display:contents!important; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .box-image {
    grid-column:1;grid-row:1;align-self:center;position:static;width:100%;max-width:100%;margin:0;padding:0;overflow:visible;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .box-image .image-fade_in_back>a { aspect-ratio:4/3; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .box-image .image-fade_in_back>a>img { width:100%;height:100%;object-fit:contain; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .image-tools.top.right:has(.wishlist-button) {
    top:10px;right:10px;bottom:auto;left:auto;width:30px;height:30px;padding:0;transform:none;z-index:3;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .wishlist-button { width:30px;height:30px;min-width:30px;min-height:30px;padding:0; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .wishlist-button svg { width:17px;height:17px; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .title-wrapper {
    grid-column:2;grid-row:1;display:flex;flex-direction:column;align-self:center;min-width:0;gap:10px;text-align:left;
    container:gf-bb-list-info / inline-size;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .product-small.box .product-title {
    display:block;height:auto!important;min-height:0;max-height:none;margin:0;overflow:visible;-webkit-line-clamp:unset;
    font:700 18px/24px Lato,Arial,sans-serif;text-align:left;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .product-title a {
    display:block;height:auto;max-height:none;overflow:visible;white-space:normal;overflow-wrap:anywhere;-webkit-line-clamp:unset;font:inherit;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-grade-row {
    order:2;align-self:flex-start;min-height:0;margin:0;line-height:20px;text-align:left;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-grade-row .bb-card__badge { padding:2px 8px;font:700 11px/16px Lato,Arial,sans-serif; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .product-small.box .bb-card__specs {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px 12px;
    min-height:0!important;margin:0;padding:0;text-align:left;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .product-small.box .bb-card__spec {
    display:grid;grid-column:auto;grid-template-columns:16px minmax(0,1fr);align-items:start;justify-content:start;
    min-width:0;gap:2px 6px;margin:0;text-align:left;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .bb-card__spec svg { grid-column:1;grid-row:1/3;width:16px;height:16px;margin-top:1px; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .bb-card__spec-value {
    grid-column:2;grid-row:1;min-width:0;max-width:100%;font:700 12px/17px Lato,Arial,sans-serif;white-space:normal;overflow-wrap:anywhere;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-spec-label {
    display:block;grid-column:2;grid-row:2;min-width:0;font:400 10px/14px Lato,Arial,sans-serif;overflow-wrap:anywhere;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-purchase-details {
    grid-column:3;grid-row:1;display:flex;flex-direction:column;align-self:stretch;justify-content:center;gap:8px;
    min-width:0;width:100%;padding:0 0 0 12px;border-left:1px solid #edf0f2;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .product-small.box .price-wrapper {
    display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
    width:100%;height:auto!important;min-height:0;gap:3px;padding:0 28px 0 0;text-align:left;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .product-small.box .price-wrapper .price {
    display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font:700 26px/30px Lato,Arial,sans-serif;letter-spacing:-.35px;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .price .amount { font-size:inherit;line-height:inherit; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .price ins { order:0;font:inherit; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .price del { order:1;font:400 12px/16px Lato,Arial,sans-serif; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-price-prefix { font:400 12px/16px Lato,Arial,sans-serif; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .product-small.box .gf-bb-installments {
    display:grid;grid-template-columns:14px minmax(0,1fr);align-items:start;justify-content:start;gap:4px;
    width:100%;margin:0;font:400 12px/17px Lato,Arial,sans-serif;text-align:left;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-installments>svg { width:14px;height:14px;margin-top:1px; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-installments>span { min-width:0;white-space:normal; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .product-small.box .bb-card__availability {
    align-self:flex-start;justify-content:flex-start;gap:5px;margin:0;font:700 12px/16px Lato,Arial,sans-serif;text-align:left;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .bb-card__availability>svg { display:none; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-card-delivery { display:flex;align-self:flex-start;justify-content:flex-start;align-items:center;gap:6px;min-width:0;text-align:left; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-card-delivery>svg { width:18px;height:18px;flex:0 0 18px; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-card-delivery-copy { display:flex;flex-direction:column;gap:1px;min-width:0; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-card-delivery-copy strong { font:700 12px/16px Lato,Arial,sans-serif;white-space:normal; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-card-delivery-copy>span { font:400 11px/15px Lato,Arial,sans-serif;white-space:normal; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2>.col-inner>.badge-container {
    top:12px;left:12px;right:auto;max-width:var(--gf-bb-list-image);gap:4px;flex-direction:row;flex-wrap:wrap;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .badge-container .badge-inner {
    min-width:0;padding:3px 8px;font:700 10px/14px Lato,Arial,sans-serif;white-space:nowrap;-webkit-mask-image:none!important;mask-image:none!important;
  }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-card-secondary-actions { grid-column:2/-1;grid-row:2; }

  @container gf-bb-list-info (min-width:420px) {
    body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .product-small.box .bb-card__specs { grid-template-columns:repeat(4,minmax(0,1fr)); }
  }
}

/* Enlarge the rendered content inside the existing layout boxes, preserving
   the original height of every card, including products with longer text. */
@media (min-width:720px) {
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .box-image .image-fade_in_back { overflow:visible; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .box-image .image-fade_in_back>a { overflow:visible;clip-path:inset(-10px -8px); }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .box-image .image-fade_in_back>a>img { transform:scale(1.5); }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .product-title a { width:fit-content;max-width:100%;transform:scale(var(--gf-bb-title-scale,1.111111));transform-origin:left center;transition-property:color,background-color; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .bb-card__spec-value { justify-self:start;width:fit-content;max-width:100%;transform:scale(1.166667);transform-origin:left center; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .gf-bb-spec-label { justify-self:start;width:fit-content;max-width:100%;transform:scale(1.2);transform-origin:left center; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .bb-card__spec svg { transform:scale(1.25);transform-origin:left center; }
}
@media (min-width:1400px) {
  body.gf-bb-wide-list .facetwp-template .gf-bb-card-v2 .product-title a { transform:scale(var(--gf-bb-title-scale,1.25)); }
}

/* Catalogue identity in the existing list cards. Mobile and grid retain their native DOM. */
@media (min-width:720px) {
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details>.col-inner>.product-small.box { min-height:var(--gf-bb-list-card-height,176px); }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .title-wrapper { gap:var(--gf-bb-details-gap,4px); }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .gf-bb-card-title-row { width:100%;max-width:none;min-width:0;margin:0;line-height:var(--gf-bb-details-title-line,24px); }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .product-small.box .product-title { display:inline;font-size:var(--gf-bb-details-title-size,20px);line-height:var(--gf-bb-details-title-line,24px); }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .product-title a { display:inline;width:auto;max-width:none;transform:none; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .gf-bb-grade-row { display:inline-flex;vertical-align:middle;margin:0 0 0 8px;line-height:20px; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .gf-bb-card-full-name { display:none;margin:0; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .gf-bb-card-reference { order:2;min-width:0;margin:6px 0 0;color:#53606d;font:400 11px/16px Lato,Arial,sans-serif;overflow-wrap:anywhere; }
}
@media (min-width:720px) and (max-width:1199px) {
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .title-wrapper { gap:var(--gf-bb-details-gap,2px); }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .gf-bb-card-title-row,
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .product-small.box .product-title { line-height:var(--gf-bb-details-title-line,22px); }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .gf-bb-card-reference { line-height:15px; }
}
@media (min-width:1200px) {
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .gf-bb-grade-row .bb-card__badge { transform:translateY(-5px); }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .gf-bb-card-title-row { margin-bottom:clamp(0px,calc(1vw - 12px),4px); }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .gf-bb-card-full-name { display:block;margin-bottom:clamp(6px,calc(1vw - 6px),10px);color:#53606d;font:400 11px/var(--gf-bb-details-name-line,14px) Lato,Arial,sans-serif;overflow-wrap:anywhere; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .gf-bb-card-reference { margin-top:clamp(6px,calc(1vw - 6px),10px); }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .product-small.box .bb-card__specs { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (min-width:720px) and (max-width:767px) {
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .gf-bb-grade-row { vertical-align:top; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .gf-bb-card-reference { line-height:14px; }
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .product-small.box .bb-card__specs { row-gap:5px; }
}
@media (min-width:1400px) {
  body.gf-bb-wide-list .facetwp-template .gf-bb-list-has-details .product-small.box .product-title { font-size:var(--gf-bb-details-title-size,22px); }
}

/* Category-only review: compact cards without direct purchase or selling points. */
body.gf-bb-catalog-ready .facetwp-template .gf-bb-card-v2 .add-to-cart-button,
body.gf-bb-catalog-ready .facetwp-template .gf-bb-card-v2 .gf-bb-selling-points {
  display: none !important;
}
body.gf-bb-catalog-ready .facetwp-template > .products > .gf-bb-card-v2 {
  display: flex;
}
body.gf-bb-catalog-ready .facetwp-template .gf-bb-card-v2 > .col-inner {
  display: flex;flex-direction: column;width: 100%;height: auto !important;
}
body.gf-bb-catalog-ready .facetwp-template .gf-bb-card-v2 > .col-inner > .product-small.box {
  flex: 1;height: auto !important;
}
body.gf-bb-catalog-ready .facetwp-template .gf-bb-card-v2 .product-small.box .box-text {
  flex: 1;padding-bottom: 0;
}
body.gf-bb-catalog-ready .facetwp-template .gf-bb-card-v2 .product-small.box .gf-bb-purchase-zone {
  grid-template-rows: auto;gap: 0;
}
body.gf-bb-catalog-ready .facetwp-template .gf-bb-card-v2 .gf-bb-card-secondary-actions {
  margin-top: 8px;
}
@media (max-width: 719px) {
  body.gf-bb-catalog-ready.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 > .col-inner > .product-small.box {
    grid-template-rows: auto;
  }
  body.gf-bb-catalog-ready.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .box-image,
  body.gf-bb-catalog-ready.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .title-wrapper {
    grid-row: 1;
  }
  body.gf-bb-catalog-ready.gf-bb-mobile-list .facetwp-template .gf-bb-card-v2 .gf-bb-card-secondary-actions {
    grid-row: 2;margin-top: 0;
  }
}

.gf-bb-mobile-sort-toggle,.gf-bb-quick-filters,.gf-bb-quick-panel,.gf-bb-catalog-views { display:none; }
@media (max-width:719px) {
  body.gf-bb-catalog-ready .gf-bb-category-controls:has(.gf-bb-quick-filters) {
    grid-template-columns:minmax(52px,.8fr) minmax(64px,1fr) minmax(66px,1fr) 80px;
    grid-template-rows:40px 36px;gap:6px;width:100%;height:auto;min-height:94px;padding:8px;margin-inline:0;
    border:0;border-radius:0;background:#fff;box-shadow:0 2px 12px #1e23270a;
  }
  body.gf-bb-catalog-ready .gf-bb-category-controls.gf-bb-category-controls-pinned:has(.gf-bb-quick-filters) { left:0;right:0;margin-inline:0;border-radius:0; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-category-mobile-count { grid-area:1/1;margin:0;min-width:0;padding:0 0 0 8px;text-align:left;font-size:12px;line-height:1.2;color:#68788b;white-space:normal; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .category-filtering { grid-area:1/2;border:0;height:40px; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .filter-button { height:40px;padding:0 6px;gap:6px;border-radius:9px;border:1px solid #e0e6eb;background:transparent;color:#18212b;box-shadow:none;font-size:13px; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .filter-button i { order:0; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-mobile-active-badge:not([hidden]) { background:#fff;color:#006d38; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .woocommerce-ordering { grid-area:1/3;height:40px;border:1px solid #e0e6eb;border-radius:9px; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .woocommerce-ordering::before { font-size:13px; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-catalog-views:not([hidden]) { grid-area:1/4;display:flex;width:80px;height:40px;padding:2px;background:#f1f4f6;border:1px solid #e0e6eb;border-radius:9px; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-catalog-views button:not([hidden]) {
    display:inline-flex!important;align-items:center;justify-content:center;flex:1;min-width:0;width:38px;min-height:34px;height:34px;
    padding:0;margin:0;border:0;border-radius:6px;background:transparent;color:#53606d;box-shadow:none;
  }
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-catalog-views button[aria-pressed="true"] { color:#fff;background:#028543; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .woocommerce-ordering.gf-bb-has-internal-sort { border:0; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-has-internal-sort::before,
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-has-internal-sort::after,
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-has-internal-sort .gf-bb-category-mobile-order-label,
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-has-internal-sort .facetwp-facet-ordenar { display:none!important; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-mobile-sort-toggle:not([hidden]) { display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-width:0;height:40px;min-height:40px;padding:0 6px;margin:0;border:1px solid #e0e6eb;border-radius:9px;background:transparent;color:#18212b;box-shadow:none;font:600 13px/1.35 Lato,Arial,sans-serif;letter-spacing:.05em;text-transform:none;white-space:nowrap; }
  .gf-bb-mobile-sort-toggle svg { width:16px;height:16px;flex:none; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-mobile-sort-toggle[aria-expanded="true"] { border-color:#028543; }
  .gf-bb-mobile-sort-toggle:focus-visible { outline:2px solid #028543;outline-offset:-2px; }
  .gf-bb-quick-panel .gf-bb-quick-panel__clear[hidden] { display:none; }
  .gf-bb-quick-option[role="menuitemradio"]::before { border-radius:50%; }
  .gf-bb-catalog-views svg { width:18px;height:18px;flex:none; }
  .gf-bb-catalog-view-toggle > span { display:none; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-quick-filters:not([hidden]) { grid-area:2/1/3/-1;display:flex;align-items:center;gap:8px;min-width:0;width:100%;height:36px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none; }
  .gf-bb-quick-filter[hidden] { display:none!important; }
  body.gf-bb-catalog-ready .gf-bb-category-controls:has(.gf-bb-quick-filters[hidden]) { grid-template-rows:40px;min-height:56px;row-gap:0; }
  body.gf-bb-catalog-ready .gf-bb-category-controls .filter-button:is(:hover,:focus,:active) { background:transparent;box-shadow:none; }
  .gf-bb-quick-filters::-webkit-scrollbar { display:none; }
  .gf-bb-quick-filters { touch-action:pan-x pan-y;cursor:grab; }
  .gf-bb-quick-filters.gf-bb-is-dragging,.gf-bb-quick-filters.gf-bb-is-dragging button { cursor:grabbing;user-select:none; }
  body.gf-bb-catalog-ready .gf-bb-quick-filter { display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:34px;height:34px;padding:0 10px;margin:0;border:1px solid #e4e9ee;border-radius:999px!important;background:#fff;box-shadow:0 2px 4px #1e232706;color:#18212b;font:600 12px/1 Lato,Arial,sans-serif;letter-spacing:0;text-transform:none;white-space:nowrap; }
  .gf-bb-quick-filter svg { width:15px;height:15px;flex:none; }
  .gf-bb-quick-filter svg:last-child { width:12px;height:12px; }
  .gf-bb-quick-filter__count:empty { display:none; }
  .gf-bb-quick-filter__count { min-width:16px;padding:2px 3px;border-radius:9px;background:#028543;color:white;font-size:10px; }
  body.gf-bb-catalog-ready .gf-bb-quick-filter:is(.is-selected,[aria-expanded="true"]) { border-color:#028543;background:#edf8f2;color:#006d38; }
  .gf-bb-quick-panel:not([hidden]) { display:flex;flex-direction:column;position:fixed;z-index:1100;overflow:hidden;box-sizing:border-box;padding:0;border:1px solid #dce5e1;border-radius:12px;background:#fff;color:#18212b;box-shadow:0 8px 28px #142c252e;font:400 14px/1.4 Lato,Arial,sans-serif; }
  .gf-bb-quick-panel__head { display:flex;align-items:center;justify-content:space-between;flex:none;gap:8px;padding:8px 10px 6px 14px;border-bottom:1px solid #e7ece9; }
  .gf-bb-quick-panel h2 { margin:0;font:700 15px/1.3 Lato,Arial,sans-serif;color:inherit; }
  .gf-bb-quick-panel button { margin:0;letter-spacing:0;text-transform:none;font-family:inherit; }
  .gf-bb-quick-panel__close { min-width:36px;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:8px;background:#f3f6f4;color:inherit;font-size:24px;line-height:1; }
  .gf-bb-quick-panel__options { min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px; }
  .gf-bb-quick-panel .gf-bb-quick-option { display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:9px 10px;border:0;border-radius:6px;text-align:left;background:#fff;color:inherit;font-size:14px;font-weight:400;line-height:1.3; }
  .gf-bb-quick-option::before { content:'';width:16px;height:16px;flex:none;border:1px solid #85928b;border-radius:4px; }
  .gf-bb-quick-panel .gf-bb-quick-option[aria-checked="true"] { background:#edf8f2;color:#006d38; }
  .gf-bb-quick-option[aria-checked="true"]::before { content:'✓';background:#028543;border-color:#028543;color:white;font-size:12px;font-weight:700;text-align:center;line-height:14px; }
  .gf-bb-quick-option__count { margin-left:auto;color:#68788b;font-size:12px; }
  .gf-bb-quick-panel__foot { display:flex;align-items:center;gap:10px;flex:none;padding:6px 10px;border-top:1px solid #e7ece9; }
  .gf-bb-quick-panel__clear { min-height:36px;padding:0 9px;border:0;border-radius:6px;background:#edf8f2;color:#006d38;font-size:12px; }
  .gf-bb-quick-panel__status { min-width:0;font-size:11px;line-height:1.3;color:#627269; }
  .gf-bb-quick-panel button:disabled { cursor:wait;opacity:.5; }
  .gf-bb-quick-panel button:focus-visible,.gf-bb-quick-filter:focus-visible,.gf-bb-catalog-views button:focus-visible { outline:2px solid #028543;outline-offset:-2px; }
  @media(max-width:359px) {
    body.gf-bb-catalog-ready .gf-bb-category-controls:has(.gf-bb-quick-filters) { grid-template-columns:minmax(52px,.8fr) minmax(64px,1fr) minmax(66px,1fr) 72px;column-gap:4px; }
    body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-catalog-views:not([hidden]) { width:72px; }
    body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-category-mobile-count { font-size:11px; }
    body.gf-bb-catalog-ready .gf-bb-category-controls .filter-button { gap:4px;font-size:12px;padding-inline:3px; }
    body.gf-bb-catalog-ready .gf-bb-category-controls .woocommerce-ordering::before,
    body.gf-bb-catalog-ready .gf-bb-category-controls .gf-bb-mobile-sort-toggle:not([hidden]) { font-size:12px; }
  }
}
