/* Scope the approved layout and override legacy miniature styles. */
#wrapper .vibe-list-card.vibe-list-card .cs-product-card-pricing { display:flex !important; flex-direction:column !important; gap:10px !important; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-code-offer { margin:0 !important; }
#wrapper .vibe-list-card.vibe-list-card .product-description.cs-product-card { display:flex !important; flex-direction:column !important; gap:10px !important; }
#wrapper .vibe-list-card.vibe-list-card .product-name { margin:0 !important; min-height:36px !important; height:auto !important; line-height:1.3 !important; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-reference { width:100%; min-width:0; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-reference .related-product { display:grid !important; grid-template-columns:42px minmax(0,1fr) !important; grid-template-areas:none !important; gap:8px !important; align-items:center !important; justify-items:stretch !important; min-height:85px !important; height:auto !important; padding:10px 8px !important; margin:0 !important; border:1px solid #e6e6e6 !important; border-radius:4px !important; background:#f5f5f5 !important; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-reference .related-product-left,
#wrapper .vibe-list-card.vibe-list-card .vibe-card-reference .related-product-left .thumbnail,
#wrapper .vibe-list-card.vibe-list-card .vibe-card-reference .related-product-left .product-thumbnail-related { width:42px !important; min-width:42px !important; max-width:42px !important; height:48px !important; min-height:48px !important; max-height:48px !important; padding:0 !important; margin:0 !important; grid-area:auto !important; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-reference .related-product-left img { width:42px !important; max-width:42px !important; min-width:0 !important; height:48px !important; max-height:48px !important; min-height:0 !important; object-fit:contain !important; background:#fff; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-reference .related-product-right { display:flex !important; flex-direction:column !important; align-items:flex-start !important; gap:3px !important; width:100% !important; min-width:0 !important; height:auto !important; grid-area:auto !important; text-align:left !important; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-reference .related-product-title { order:2; margin:0 !important; font-size:11px !important; line-height:1.4 !important; font-weight:500 !important; text-transform:none !important; overflow-wrap:break-word; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-reference .related-product-title a { font-size:inherit !important; line-height:inherit !important; color:#303030 !important; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-reference .related-product-label { order:1; margin:0 !important; font-size:11px !important; line-height:1.4 !important; color:#626262 !important; text-transform:none !important; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-reference .related-product-price { display:none !important; }
#wrapper .vibe-list-card.vibe-list-card .cs-product-card-pricing { margin:0 !important; padding:0 !important; border:0 !important; }
#wrapper .vibe-list-card.vibe-list-card .cs-product-card-pricing-row { display:flex !important; flex-wrap:wrap !important; gap:4px !important; margin:0 0 10px !important; }
#wrapper .vibe-list-card.vibe-list-card .cs-product-card-controls { margin-top:10px !important; }
#wrapper .vibe-list-card.vibe-list-card .cs-product-card-actions { grid-template-columns:minmax(0,1fr) !important; gap:0 !important; }
#wrapper .vibe-list-card.vibe-list-card .cs-product-card-qty[hidden] { display:none !important; }
#wrapper .vibe-list-card.vibe-list-card .cs-product-card-add-to-cart { width:100% !important; min-height:42px !important; border-radius:4px !important; }
#wrapper .vibe-list-card.vibe-list-card .cs-product-card-capacity-option { border-radius:4px !important; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-code-offer { display:flex; align-items:center; gap:8px; min-height:80px; padding:10px 8px; background:linear-gradient(115deg,#fff,#fbecd9); color:#78462d; border:1px solid #eddfcd; border-radius:8px; box-shadow:0 3px 10px rgb(91 57 25 / 8%); font-size:11px; line-height:1.5; margin:0 0 10px; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-code-offer[hidden] { display:none; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-code-offer > i { width:20px; flex:none; font-size:20px; color:#a75b32; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-code-offer > div { min-width:0; }
#wrapper .vibe-list-card.vibe-list-card .vibe-code-price { display:block; font-size:17px; line-height:1.3; font-weight:600; white-space:nowrap; }
#wrapper .vibe-list-card.vibe-list-card.vibe-code-offer-ready .fdb-mq-strip,
#wrapper .vibe-list-card.vibe-list-card.vibe-code-offer-ready .cs-product-card-promo-bar { display:none !important; }
#wrapper .vibe-list-card.vibe-list-card .cs-product-card-delivery-bar { display:flex !important; align-items:center !important; justify-content:flex-start !important; gap:8px !important; padding:10px 8px !important; min-height:54px !important; background:#f1f6f3 !important; border:0 !important; border-radius:4px !important; margin-top:10px !important; color:#354d3e !important; font-size:11px !important; line-height:1.5 !important; text-align:left !important; }
#wrapper .vibe-list-card.vibe-list-card .cs-product-card-delivery-bar::before { content:'\f0d1'; font-family:'Font Awesome 6 Free'; font-weight:900; font-size:16px; color:#486653; }
#wrapper .vibe-list-card.vibe-list-card .cs-product-card-pricing-row { margin:0 !important; }
#wrapper .vibe-list-card.vibe-list-card .cs-product-card-controls { margin-top:0 !important; }
#wrapper .vibe-list-card.vibe-list-card .vibe-card-reference .related-product { min-height:116px !important; }

/* Compact home cards without changing category listings. */
#index #wrapper .vibe-list-card .thumbnail-top {
  height:220px !important; min-height:0 !important; aspect-ratio:auto !important;
  margin:0 !important; padding:6px !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
}
#index #wrapper .vibe-list-card .thumbnail-top .product-thumbnail {
  width:100% !important; height:208px !important; min-height:0 !important;
  max-height:208px !important; aspect-ratio:auto !important; margin:0 !important;
}
#index #wrapper .vibe-list-card .thumbnail-top .product-thumbnail img {
  width:100% !important; height:208px !important; max-height:208px !important;
  object-fit:contain !important; position:static !important; transform:none !important;
}
#index #wrapper .vibe-list-card .vibe-card-reviews { margin:4px 0 6px !important; }
#index #wrapper .vibe-list-card .product-description.cs-product-card,
#index #wrapper .vibe-list-card .cs-product-card-pricing { gap:6px !important; }
#index #wrapper .vibe-list-card .product-name { min-height:28px !important; }
#index #wrapper .vibe-list-card .vibe-card-reference .related-product {
  min-height:72px !important; padding:8px 12px !important;
  grid-template-columns:42px minmax(0,190px) !important; justify-content:center !important;
}
#index #wrapper .vibe-list-card .vibe-card-reference .related-product-right {
  align-items:center !important; text-align:center !important;
}
#index #wrapper .vibe-list-card .vibe-card-code-offer {
  min-height:58px !important; padding:7px 12px !important;
  justify-content:center !important; text-align:center !important;
}
#index #wrapper .vibe-list-card .cs-product-card-delivery-bar {
  min-height:40px !important; padding:7px 10px !important; margin-top:4px !important;
  justify-content:center !important; text-align:center !important;
}
#index #wrapper .vibe-list-card .cs-product-card-form { gap:8px !important; }
#index #wrapper .vibe-list-card .cs-product-card-add-to-cart { min-height:42px !important; }
@media(max-width:767px) {
  #index #wrapper .vibe-list-card .thumbnail-top { height:190px !important; }
  #index #wrapper .vibe-list-card .thumbnail-top .product-thumbnail,
  #index #wrapper .vibe-list-card .thumbnail-top .product-thumbnail img { height:178px !important; max-height:178px !important; }
  #index #wrapper .vibe-list-card .vibe-card-reference .related-product { min-height:90px !important; padding:7px 8px !important; }
}
