/* Bulkomi V11 Phase 06 — Public Buyer UX integration
   Extends the existing Bulkomi visual language; no independent design system. */

/* --------------------------------------------------------------------------
   HOME HERO — keep existing promo/video band, only fit the V11 message/actions.
   -------------------------------------------------------------------------- */
.buyer-hero-copy{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;max-width:780px;min-width:0;padding:26px 0 28px}
.buyer-hero-kicker{font-size:11px;font-weight:950;letter-spacing:.1em;color:#fff;text-transform:uppercase;opacity:.92}
.buyer-hero-title{display:block;max-width:760px;font-size:clamp(29px,4vw,52px)!important;line-height:1.02!important;letter-spacing:-.045em!important;color:#fff!important;text-shadow:0 2px 16px rgba(0,0,0,.16);white-space:normal!important}
.buyer-hero-desc{max-width:670px;margin:1px 0 4px;color:rgba(255,255,255,.94);font-size:15px;line-height:1.5;font-weight:720}
.buyer-hero-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:4px}
.buyer-hero-actions .btn{min-height:42px;border-radius:12px;padding:0 16px;font-size:12px;font-weight:900;text-decoration:none}
.buyer-hero-primary{background:#fff!important;border:1px solid #fff!important;color:#d84f00!important;box-shadow:0 8px 22px rgba(38,22,8,.14)}
.buyer-hero-secondary{background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.56)!important;color:#fff!important;backdrop-filter:blur(5px)}

/* Explicit anti-regression: promo hero and filter/search controls must scroll normally. */
.site-header.market-header.promo-header-v2424{position:relative!important;top:auto!important;inset:auto!important}
.site-header.market-header.promo-header-v2424 .promo-band-v2424{position:relative!important;top:auto!important;inset:auto!important}
.site-header.market-header.promo-header-v2424 .v2424-mainbar{position:relative!important;top:auto!important;inset:auto!important}
#openFilterPanel,.header-filter-btn,.market-header-search,.v2424-searchbar{position:relative!important;top:auto!important;inset:auto!important}

/* --------------------------------------------------------------------------
   REAL-DATA DISCOVERY SECTIONS
   -------------------------------------------------------------------------- */
.buyer-discovery{padding-top:20px;padding-bottom:4px}
.buyer-discovery-state{margin:0 0 18px;padding:13px 15px;border:1px solid #e6eaf0;border-radius:14px;background:#fff;color:#667085;font-size:12px;font-weight:800}
.buyer-discovery-state.is-error{border-color:#fecaca;background:#fff7f7;color:#b42318}
.buyer-data-section{padding:17px 0 8px;border-top:1px solid #eef1f5}
.buyer-data-section:first-of-type{border-top:0}
.buyer-data-section .section-head{margin-bottom:11px}
.buyer-data-section .section-head h2{font-size:23px;margin-bottom:4px}
.buyer-data-section .section-head p{font-size:12.5px}
.buyer-section-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}

/* --------------------------------------------------------------------------
   PRODUCT CARD — preserve existing reference card proportions and replace the
   legacy target-offer block with backend Campaign/Demand decision states.
   -------------------------------------------------------------------------- */
.buyer-product-card{position:relative;overflow:hidden;background:#fff}
.buyer-product-card .buyer-card-decision{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:2px!important;min-height:72px;padding-top:8px!important;border-top:1px dashed #e5e7eb}
.buyer-product-card .buyer-card-decision small{font-size:9.5px!important;color:#667085!important;font-weight:850!important;text-transform:none!important;letter-spacing:0!important}
.buyer-product-card .buyer-card-decision b{max-width:100%;font-size:14px!important;line-height:1.2!important;color:#d84f00!important;text-align:left!important;white-space:normal!important}
.buyer-product-card .buyer-card-decision em{display:block;min-height:27px;margin-top:2px;color:#7a8495;font-size:9.5px;font-style:normal;font-weight:720;line-height:1.35}
.buyer-state-demand .buyer-card-decision b{color:#172033!important}
.buyer-state-error .buyer-card-decision b{color:#b42318!important}
.buyer-card-actions{margin-top:auto;padding:0 10px 10px}
.buyer-card-actions .btn{display:flex;width:100%;height:34px;align-items:center;justify-content:center;border-radius:10px;font-size:10.5px;font-weight:900;box-shadow:none}

/* home-cards-reference.css intentionally scopes its reference styling to #cards;
   mirror the same visual hierarchy for the real-data discovery rows. */
.buyer-section-grid .product-card-reference{display:flex;min-width:0;flex-direction:column;border:1px solid #e8ebef;border-radius:15px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.055);overflow:hidden;transition:transform .16s ease,box-shadow .16s ease}
.buyer-section-grid .product-card-reference:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,23,42,.10)}
.buyer-section-grid .reference-card-link{display:flex;min-width:0;flex:1 1 auto;flex-direction:column;color:inherit;text-decoration:none}
.buyer-section-grid .card-gallery{position:relative;flex:0 0 190px;height:190px;min-height:190px;overflow:hidden;background:#fff;border-bottom:1px solid #f0f2f5}
.buyer-section-grid .card-gallery-slide{position:absolute;inset:0;display:block}
.buyer-section-grid .card-gallery-slide.is-hidden{display:none}
.buyer-section-grid .product-img{display:grid;width:100%;height:100%;place-items:center;padding:12px;background:#fff}
.buyer-section-grid .product-img img{width:100%;height:100%;object-fit:contain}
.buyer-section-grid .favorite-chip{position:absolute;z-index:5;top:9px;right:9px;display:grid;width:32px;height:32px;place-items:center;border:1px solid #e4e7ec;border-radius:50%;background:rgba(255,255,255,.96);color:#667085;font-size:17px;cursor:pointer}
.buyer-section-grid .favorite-chip.active{color:#e64d08;border-color:#ffc59e}
.buyer-section-grid .reference-card-body{display:flex;min-width:0;flex-direction:column;gap:6px;padding:10px}
.buyer-section-grid .reference-card-brand{overflow:hidden;color:#8a94a4;font-size:9px;font-weight:900;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase;letter-spacing:.04em}
.buyer-section-grid .reference-card-title{display:-webkit-box;min-height:34px;margin:0;overflow:hidden;color:#172033;font-size:13px;font-weight:900;line-height:1.28;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.buyer-section-grid .reference-card-price-group{display:flex;flex-direction:column;gap:2px}
.buyer-section-grid .reference-card-market{padding-top:5px;border-top:1px solid #f0f2f5}
.buyer-section-grid .reference-card-market small{color:#8a94a4;font-size:9px;font-weight:780}
.buyer-section-grid .reference-card-market b{color:#475467;font-size:10px;line-height:1.25}
.buyer-section-grid .reference-card-stats{min-height:36px;margin:0 10px;padding:7px 0;border-top:1px solid #f0f2f5}
.buyer-section-grid .card-engagement-ticker{font-size:9.5px}
.buyer-section-grid .card-gallery-nav,.buyer-section-grid .card-gallery-count,.buyer-section-grid .card-gallery-dots{display:none!important}

/* --------------------------------------------------------------------------
   PRODUCT DETAIL — desktop Gallery | Product Info | Decision Panel.
   -------------------------------------------------------------------------- */
.product-detail-page .product-hero{grid-template-columns:minmax(0,1.16fr) minmax(290px,.78fr) minmax(330px,.82fr);gap:24px;align-items:start}
.product-info-panel{min-width:0;padding:5px 0 0}
.product-decision-panel{min-width:0;border:1px solid #e5e9ef;border-radius:16px;background:#fff;box-shadow:0 8px 26px rgba(16,24,40,.06);overflow:hidden}
.buyer-decision-heading{padding:16px 16px 10px;border-bottom:1px solid #f0f2f5;background:linear-gradient(180deg,#fff,#fffaf6)}
.buyer-decision-heading>span{display:block;margin-bottom:4px;color:#e85a0a;font-size:9px;font-weight:950;letter-spacing:.08em}
.buyer-decision-heading h2{margin:0;color:#172033;font-size:20px;line-height:1.18;letter-spacing:-.025em}
.buyer-decision-heading p{margin:6px 0 0;color:#667085;font-size:11.5px;line-height:1.45}
.buyer-product-pricing{margin-top:17px}
.buyer-price-summary{display:flex;flex-direction:column;gap:3px;margin-top:10px;padding:13px;border:1px solid #ffd5b7;border-radius:13px;background:#fff9f5}
.buyer-price-summary>span{color:#8f4b26;font-size:9.5px;font-weight:850}
.buyer-price-summary>b{color:#dd5205;font-size:22px;line-height:1.15;letter-spacing:-.025em}
.buyer-price-summary>small{color:#7a8495;font-size:9.5px;line-height:1.38}
.demand-pool-summary{display:flex;flex-direction:column;gap:4px;margin-top:13px;padding:12px;border:1px solid #e7ebf0;border-radius:12px;background:#fafbfc}
.demand-pool-summary strong{color:#667085;font-size:9px;text-transform:uppercase;letter-spacing:.04em}
.demand-pool-summary b{color:#172033;font-size:12px}
.demand-pool-summary small{color:#7a8495;font-size:9.5px;line-height:1.4}
.product-decision-panel .campaign-participation-panel{margin:0;border:0;border-radius:0;overflow:visible}
.product-decision-panel .campaign-participation-state{padding:15px 16px}
.product-decision-panel .campaign-participation-list{gap:10px;padding:12px 12px 0}
.product-decision-panel .campaign-card{padding:13px;border-radius:13px}
.product-decision-panel .campaign-card-primary{border-color:#ffc69f;box-shadow:0 7px 20px rgba(232,90,10,.06)}
.campaign-primary-label{display:block;margin-bottom:3px;color:#e65b0a;font-size:8px;font-weight:950;letter-spacing:.07em}
.product-decision-panel .campaign-card-top>div{min-width:0}
.product-decision-panel .campaign-card-top strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-decision-panel .campaign-price-line{margin-top:11px}
.product-decision-panel .campaign-public-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:11px}
.product-decision-panel .campaign-public-facts span{min-width:0;padding:8px 6px;border:1px solid #edf0f3;border-radius:9px;background:#fafbfc;text-align:center}
.product-decision-panel .campaign-public-facts small{display:block;color:#8a94a4;font-size:7.5px;line-height:1.15}
.product-decision-panel .campaign-public-facts b{display:block;margin-top:3px;overflow:hidden;color:#344054;font-size:9px;line-height:1.2;text-overflow:ellipsis}
.product-decision-panel .campaign-next{margin:10px 0 0;color:#596579;font-size:10px;line-height:1.42}
.product-decision-panel .campaign-join-row{margin-top:11px}
.product-decision-panel .campaign-join-row .btn{min-height:40px}
.alternative-campaigns{margin:10px 2px 0;border-top:1px solid #eef1f4}
.alternative-campaigns>summary{padding:13px 8px;color:#4e5a6c;font-size:10.5px;font-weight:900;cursor:pointer;list-style-position:inside}
.alternative-campaign-list{display:grid;gap:9px;padding:0 0 3px}
.better-offer-demand{margin:12px;padding:13px;border:1px solid #e4e8ee;border-radius:13px;background:#fafbfc}
.better-offer-demand h3{margin:0 0 5px;color:#344054;font-size:13px}
.better-offer-demand p{margin:0 0 10px;color:#667085;font-size:10px;line-height:1.45}
.better-offer-demand .product-primary-cta{display:flex;width:100%;min-height:38px;align-items:center;justify-content:center}
.better-offer-demand .product-action-note{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;color:#8a94a4;font-size:8.5px;line-height:1.35}
.better-offer-demand .product-action-note b{color:#596579}

/* qualification is a backend boundary, not buyer-facing social proof; public card
   intentionally does not expose qualified count unless later UX requires it. */
.product-decision-panel .campaign-qualification-note{display:none}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media(max-width:1180px){
  .product-detail-page .product-hero{grid-template-columns:minmax(0,1.05fr) minmax(280px,.85fr);gap:24px}
  .product-detail-page .product-decision-panel{grid-column:1/-1;display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);align-items:start}
  .product-detail-page .buyer-decision-heading{height:100%;border-right:1px solid #f0f2f5;border-bottom:0}
  .product-detail-page #campaignParticipationPanel{min-width:0}
  .product-detail-page .better-offer-demand{grid-column:2}
  .buyer-section-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:820px){
  .buyer-hero-copy{padding:22px 0 23px}
  .buyer-hero-title{font-size:clamp(27px,8vw,39px)!important}
  .buyer-hero-desc{font-size:13px}
  .buyer-hero-desc br{display:none}
  .buyer-hero-actions{width:100%}
  .buyer-hero-actions .btn{flex:1 1 190px}
  .buyer-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-detail-page .product-hero{display:grid;grid-template-columns:1fr;gap:18px}
  .product-detail-page .product-gallery,.product-detail-page .product-info-panel,.product-detail-page .product-decision-panel{grid-column:auto}
  .product-detail-page .product-decision-panel{display:block}
  .product-detail-page .buyer-decision-heading{border-right:0;border-bottom:1px solid #f0f2f5}
  .product-detail-page .better-offer-demand{grid-column:auto}
}
@media(max-width:560px){
  .buyer-hero-copy{gap:7px;padding:18px 0 20px}
  .buyer-hero-kicker{font-size:9px}
  .buyer-hero-title{display:block!important;max-width:100%!important;font-size:28px!important;white-space:normal!important;overflow:visible!important;-webkit-line-clamp:unset!important;overflow-wrap:anywhere}
  .buyer-hero-desc{max-width:100%;font-size:11.5px;line-height:1.45}
  .buyer-hero-actions{gap:7px}
  .buyer-hero-actions .btn{flex:1 1 100%;min-height:40px;white-space:normal!important;text-align:center;line-height:1.2}
  .buyer-discovery{padding-top:12px}
  .buyer-data-section{padding-top:13px}
  .buyer-data-section .section-head h2{font-size:20px}
  .buyer-data-section .section-head p{font-size:11px}
  .buyer-section-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .buyer-section-grid .card-gallery{flex-basis:146px;height:146px;min-height:146px}
  .buyer-section-grid .reference-card-body{padding:8px}
  .buyer-section-grid .reference-card-title{font-size:11px;min-height:29px}
  .buyer-section-grid .reference-card-market b{font-size:8.5px}
  .buyer-product-card .buyer-card-decision{min-height:66px}
  .buyer-product-card .buyer-card-decision small{font-size:8px!important}
  .buyer-product-card .buyer-card-decision b{font-size:11px!important}
  .buyer-product-card .buyer-card-decision em{min-height:25px;font-size:8px}
  .buyer-card-actions{padding:0 8px 8px}
  .buyer-card-actions .btn{height:31px;font-size:9px}
  .product-detail-page .product-decision-panel{border-radius:13px}
  .product-decision-panel .campaign-public-facts{grid-template-columns:1fr 1fr}
  .product-decision-panel .campaign-public-facts span:last-child{grid-column:1/-1}
}
