/* Hiblow homepage sections, enquiry drawer and brand popup. */

/* ---------- Base (keeps Hello / Elementor defaults from leaking in) ---------- */
.hb-home *, .hb-overlay * { box-sizing: border-box; }
body .hb-home a, body .hb-overlay a { color: #0B6FDB; }
body .hb-home a:hover, body .hb-overlay a:hover { color: #163B7D; }
body .hb-home h1, body .hb-home h2, body .hb-home h3, body .hb-home h4,
body .hb-overlay h2 { font-family: 'Figtree', system-ui, sans-serif; }
.hb-home button, .hb-overlay button { white-space: normal; text-transform: none; letter-spacing: normal; line-height: 1.2; }
.hb-home input::placeholder, .hb-home textarea::placeholder, .hb-overlay input::placeholder, .hb-overlay textarea::placeholder { color: #7A8591; }
.hb-home :focus-visible, .hb-overlay :focus-visible { outline: 2px solid #0B6FDB; outline-offset: 2px; }
.hb-home input[type=text]:focus, .hb-home input[type=search]:focus, .hb-home textarea:focus,
.hb-overlay input[type=text]:focus, .hb-overlay textarea:focus { border-color: #0B6FDB !important; outline: none; }
.hb-home section[id] { scroll-margin-top: 140px; }
.hb-home details > summary { list-style-position: inside; }
.hb-home p:empty { display: none; }

/* ---------- Interaction states (from the prototype) ---------- */
.hb-home .tile .ph, .hb-home .tile img { transition: transform .35s ease; }
.hb-home .tile:hover .ph { transform: scale(1.02); }
.hb-home .btn, .hb-overlay .btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.hb-home .btn-solid:hover, .hb-home .btn-solid:focus-visible,
.hb-overlay .btn-solid:hover, .hb-overlay .btn-solid:focus-visible { background: #102D62 !important; border-color: #102D62 !important; color: #FFFFFF !important; }
.hb-home .btn-line:hover, .hb-home .btn-line:focus-visible { background: #F1F5FA !important; color: #163B7D !important; }
.hb-overlay a.btn:hover { background: #EBF4FF !important; color: #102D62 !important; }
.hb-home .hb-social-round:hover { background: #F1F5FA; }

/* Series tabs */
.hb-home .hb-tab, .hb-home .hb-tab:hover, .hb-home .hb-tab:focus { background: transparent !important; color: #55606C !important; font-weight: 600 !important; box-shadow: none; }
.hb-home .hb-tab:hover { color: #163B7D !important; }
.hb-home .hb-tab[aria-pressed="true"] { color: #163B7D !important; font-weight: 800 !important; box-shadow: inset 0 -3px 0 #3F7D3A; }

/* Chips (pump picker, states) */
.hb-home .hb-chip, .hb-home .hb-chip:focus { background: #FFFFFF !important; color: #163B7D !important; font-weight: 600 !important; border: 1.5px solid #C7D0DA !important; }
.hb-home .hb-chip:hover { background: #F1F5FA !important; }
.hb-home .hb-chip[aria-pressed="true"] { background: #163B7D !important; color: #FFFFFF !important; font-weight: 800 !important; border-color: #163B7D !important; }

/* Application tabs, finder modes and "What's it for?" buttons */
.hb-home .hb-chip[aria-selected="true"] { background: #163B7D !important; color: #FFFFFF !important; font-weight: 800 !important; border-color: #163B7D !important; }
.hb-home .hb-chip.hb-mode, .hb-home .hb-chip.hb-mode[aria-selected="true"] { font-weight: 700 !important; }
.hb-home .hb-appbtn, .hb-home .hb-appbtn:focus { background: #FFFFFF !important; color: #3A4552 !important; border: 2px solid #D5DCE3 !important; }
.hb-home .hb-appbtn:hover { border-color: #163B7D !important; color: #163B7D !important; }
.hb-home .hb-appbtn[aria-pressed="true"] { color: #163B7D !important; border-color: #163B7D !important; }
.hb-home .hb-appbtn .hb-tick { display: none; }
.hb-home .hb-appbtn[aria-pressed="true"] .hb-tick { display: block; }

/* Finder rows: name | price | button */
.hb-home .hb-frow { display: grid; grid-template-columns: minmax(0, 1fr) 96px 168px; align-items: center; gap: 8px 16px; padding: 12px 0; }
.hb-home .hb-frow.is-two { grid-template-columns: minmax(0, 1fr) 168px; }
.hb-home .hb-frow-price { text-align: right; }
@media (max-width: 600px) {
	.hb-home .hb-frow { grid-template-columns: minmax(0, 1fr) auto; }
	.hb-home .hb-frow > button { grid-column: 1 / -1; }
	.hb-home .hb-frow.is-two { grid-template-columns: 1fr; }
}
.hb-home .hb-page-content > :first-child { margin-top: 0; }

/* Shop */
.hb-home .cat-btn, .hb-home .cat-btn:focus { background: #FFFFFF !important; color: #1C2733 !important; font-weight: 600 !important; border: 1.5px solid transparent !important; }
.hb-home .cat-btn:hover { background: #F1F5FA !important; }
.hb-home .cat-btn[aria-pressed="true"] { background: #EBF4FF !important; color: #163B7D !important; font-weight: 800 !important; border-color: #0B6FDB !important; }
.hb-home [data-hb-product]:not([hidden]) { display: flex; }
@media (max-width: 760px) {
	.hb-home .hb-shop-fits { flex-direction: row !important; flex-wrap: wrap; }
	.hb-home .hb-shop-fits p { width: 100%; }
	.hb-home .hb-shop-fits .cat-btn { min-height: 40px !important; border-color: #C7D0DA !important; }
	.hb-home .hb-shop-fits .cat-btn[aria-pressed="true"] { border-color: #0B6FDB !important; }
}
@media (max-width: 520px) {
	.hb-home .hb-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 12px !important; }
	.hb-home .hb-shop-grid h3 { font-size: 15px !important; }
	.hb-home .hb-shop-grid button { font-size: 14px !important; padding: 0 6px; }
}
.hb-home button.is-added.btn-solid { background: #102D62 !important; }

/* Panels shown/hidden by script */
.hb-home [data-hb-spares]:not([hidden]) { display: flex; }
.hb-home [data-hb-dealer]:not([hidden]) { display: flex; }
.hb-home .hb-dealer-more:not([hidden]) { display: flex; }
.hb-home .hb-dealer-more:hover { border-color: #163B7D !important; background: #F7FAFE !important; }
.hb-home [data-hb-flowpanel]:not([hidden]), .hb-home [data-hb-apppanel]:not([hidden]), .hb-home [data-hb-apptabpanel]:not([hidden]), .hb-home [data-hb-modepanel]:not([hidden]) { display: flex; }
.hb-home [hidden] { display: none !important; }
.hb-home .hb-photo-extra { display: flex; }
html.hb-js .hb-home .hb-photo-extra:not(.is-open) { display: none; }
html:not(.hb-js) [data-hb-needs-js] { display: none !important; }

/* Compare table */
.hb-compare-row { display: grid; border-bottom: 1px solid #E8ECF0; }
.hb-compare-row.is-head { border-bottom-color: #C7D0DA; }
.hb-compare-row > div { padding: 12px; font-weight: 600; color: #1C2733; }
.hb-compare-row > div:first-child { padding-left: 0; font-weight: 400; color: #55606C; }
.hb-compare-row.is-head > div { font-size: 18px; font-weight: 800; color: #163B7D; }

/* "In your enquiry" state on add buttons */
.hb-home button.is-added.btn-line { background: #EBF4FF !important; }

/* ---------- Brand marquee ---------- */
.hb-home .brand-item { border-radius: 12px; transition: background .35s ease; }
.hb-home .brand-logo { filter: saturate(.5); opacity: .78; transition: filter .35s ease, opacity .35s ease, transform .35s ease; }
.hb-home .brand-logo.dim { filter: saturate(.5) brightness(.88); }
.hb-home .brand-item:hover, .hb-home .brand-item:focus-visible { background: radial-gradient(ellipse at 50% 42%, rgba(79,163,232,.18), rgba(79,163,232,0) 70%) !important; }
.hb-home .brand-item:hover .brand-logo, .hb-home .brand-item:focus-visible .brand-logo { filter: saturate(1.15) drop-shadow(0 0 10px rgba(79,163,232,.55)) drop-shadow(0 0 2px rgba(255,255,255,.9)); opacity: 1; transform: scale(1.07); }
.hb-home .marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.35) 14%, #000 42%, #000 58%, rgba(0,0,0,.35) 86%, transparent); mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.35) 14%, #000 42%, #000 58%, rgba(0,0,0,.35) 86%, transparent); }
.hb-home .marquee-track { display: flex; width: max-content; animation: hb-marquee 40s linear infinite; }
.hb-home .marquee:hover .marquee-track, .hb-home .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes hb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Overlays ---------- */
.hb-overlay:not([hidden]) { display: flex; }
.hb-overlay[hidden] { display: none !important; }
.hb-overlay [hidden] { display: none !important; }
body.hb-locked { overflow: hidden; }
.hb-overlay .hb-qty { width: 44px; height: 44px; padding: 0; border-radius: 6px; border: 1.5px solid #C7D0DA !important; background: #FFFFFF !important; color: #163B7D !important; font: inherit; font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hb-overlay .hb-qty:hover { background: #F1F5FA !important; }
.hb-overlay [data-hb-drawer-close]:hover, .hb-overlay [data-hb-brand-close]:hover,
.hb-overlay [data-hb-drawer-close]:focus, .hb-overlay [data-hb-brand-close]:focus { background: #F1F5FA !important; color: #163B7D !important; }
.hb-overlay .btn-solid[disabled] { opacity: .55; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
	.hb-home .brand-logo, .hb-home .brand-item:hover .brand-logo { transition: none; transform: none; }
	.hb-home .tile .ph, .hb-home .btn, .hb-overlay .btn { transition: none; }
	.hb-home .tile:hover .ph { transform: none; }
	.hb-home .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.hb-home .marquee-track { animation: none; }
}

/* Enquiry drawer: optional delivery address */
.hb-overlay details.hb-addr > summary { list-style: none; }
.hb-overlay details.hb-addr > summary::-webkit-details-marker { display: none; }
.hb-overlay .hb-addr-plus { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: #EBF4FF; font-size: 17px; line-height: 1; transition: transform .2s ease; }
.hb-overlay details.hb-addr[open] .hb-addr-plus { transform: rotate(45deg); }

/* Pump cards on phones: photo left, details right */
@media (max-width: 600px) {
  .hb-home .hb-pumpcard { display: grid !important; grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start; }
  .hb-home .hb-pumpcard > div:first-child { grid-row: 1 / span 5; }
  .hb-home .hb-pumpcard > :not(div:first-child) { grid-column: 2; }
  .hb-home .hb-pumpcard h3 { font-size: 17px !important; }
  .hb-home .hb-pumpcard > button { grid-column: 1 / -1 !important; margin-top: 8px !important; }
  .hb-home .hb-compare-tick { display: none !important; }
  .hb-home .hb-pumpcard .hb-pumptag { position: static !important; display: block; margin: 0; padding: 3px 4px !important; border-radius: 0 !important; font-size: 11px !important; text-align: center; }
}
