/* Battery-PH — ink, paper and one terminal red. Mobile first. */

:root {
	--ink: var(--wp--preset--color--ink, #000);
	--paper: var(--wp--preset--color--paper, #fff);
	--red: var(--wp--preset--color--red, #d7141a);
	--red-dark: var(--wp--preset--color--red-dark, #a50f14);
	--graphite: var(--wp--preset--color--graphite, #4a4a4a);
	--rule: var(--wp--preset--color--rule, #e3e3e3);
	--mist: var(--wp--preset--color--mist, #f5f5f5);
	--wide: 1200px;
	--gutter: 1rem;
	--radius: 6px;
	--header-h: 64px;
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 1rem); }
html.bph-locked { overflow: hidden; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bph-skip { position: absolute; left: -999px; top: 0; z-index: 200; padding: .75rem 1rem; background: var(--paper); color: var(--ink); }
.bph-skip:focus { left: 1rem; top: .5rem; }
.bph-icon { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }
.bph-main { min-height: 50vh; padding-bottom: var(--wp--preset--spacing--50); }
.bph-main > * { max-width: var(--wide); margin-left: auto; margin-right: auto; box-sizing: border-box; }
.bph-site-header, .bph-site-footer { margin: 0 !important; }

/* ---------- Buttons ---------- */
.wp-element-button,
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .7rem 1.4rem; border: 2px solid var(--red); border-radius: 4px;
	background: var(--red); color: var(--paper); font: 700 1rem/1.1 var(--wp--preset--font-family--archivo);
	text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.wp-element-button:hover,
.woocommerce .button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--paper); }
.wp-element-button.is-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.wp-element-button.is-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.wp-element-button:disabled, .woocommerce button.button:disabled { opacity: .55; cursor: progress; }

/* ---------- Header ---------- */
.bph-header { position: sticky; top: 0; z-index: 60; background: var(--ink); color: var(--paper); }
.admin-bar .bph-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bph-header { top: 0; } }
.bph-header__bar {
	max-width: var(--wide); margin: 0 auto; padding: .6rem var(--gutter);
	display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo . actions" "search search search";
	align-items: center; gap: .6rem 1rem;
}
.bph-logo { grid-area: logo; display: inline-flex; align-items: center; gap: .55rem; color: var(--paper); text-decoration: none; }
.bph-logo:hover { color: var(--paper); }
.bph-logo__mark { width: 40px; height: 22px; color: var(--paper); }
.bph-logo__text { font-weight: 800; font-size: 1.3rem; font-stretch: 118%; letter-spacing: -.01em; }
.bph-header__actions { grid-area: actions; display: flex; align-items: center; gap: .25rem; }
.bph-iconbtn {
	position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
	border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer;
}
.bph-iconbtn:hover { background: rgb(255 255 255 / .12); color: inherit; }
.bph-cartbtn__count {
	position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box;
	border-radius: 10px; background: var(--red); color: var(--paper); font-size: .72rem; font-weight: 800; line-height: 19px; text-align: center;
	font-variant-numeric: tabular-nums;
}

/* Search */
.bph-search { grid-area: search; position: relative; display: flex; align-items: center; }
.bph-search > .bph-icon { position: absolute; left: .75rem; color: var(--graphite); pointer-events: none; }
.bph-search input[type=search] {
	width: 100%; height: 44px; padding: 0 1rem 0 2.6rem; box-sizing: border-box;
	border: 2px solid var(--paper); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit;
}
.bph-search input[type=search]:focus { outline: none; border-color: var(--red); }
.bph-search__results {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70; max-height: 70vh; overflow: auto;
	background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: .4rem;
}
.bph-search__item {
	display: grid; grid-template-columns: 44px 1fr auto; gap: .75rem; align-items: center;
	padding: .45rem; border-radius: 4px; color: var(--ink); text-decoration: none;
}
.bph-search__item:hover, .bph-search__item:focus-visible { background: var(--mist); }
.bph-search__item img { width: 44px; height: 44px; object-fit: contain; background: var(--paper); }
.bph-search__name { font-size: .92rem; line-height: 1.25; }
.bph-search__price { font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bph-search__status { margin: .4rem .5rem; color: var(--graphite); font-size: .9rem; }
.bph-search__status:empty { display: none; }
.bph-search__all { width: 100%; margin-top: .25rem; padding: .6rem; border: 0; border-top: 1px solid var(--rule); background: none; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }

/* Nav */
.bph-nav { display: none; }
.bph-nav.is-open {
	display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 65; overflow: auto;
	background: var(--paper); color: var(--ink); padding: 1rem var(--gutter) 3rem;
}
.bph-nav__list { list-style: none; margin: 0; padding: 0; }
.bph-nav__item > a, .bph-dd > summary {
	display: flex; align-items: center; justify-content: space-between; gap: .25rem;
	padding: .9rem .25rem; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none;
}
.bph-dd > summary::-webkit-details-marker { display: none; }
.bph-dd[open] > summary .bph-icon { transform: rotate(180deg); }
.bph-dd__panel { padding: .5rem 0 1rem; }
.bph-mega__col { margin-bottom: .75rem; }
.bph-mega__head { font-weight: 800; color: inherit; text-decoration: none; }
.bph-mega ul, .bph-brandmenu ul { list-style: none; margin: .3rem 0 0; padding: 0; }
.bph-mega li a, .bph-brandmenu a { display: block; padding: .3rem 0; color: var(--graphite); text-decoration: none; }
.bph-mega li a:hover, .bph-brandmenu a:hover, .bph-mega__head:hover { color: var(--red-dark); }
.bph-mega__all { display: inline-block; margin-top: .5rem; font-weight: 700; color: inherit; }
.bph-brandmenu ul { columns: 2; }

@media (min-width: 960px) {
	:root { --header-h: 72px; }
	.bph-header__bar { grid-template-columns: auto auto minmax(220px, 1fr) auto; grid-template-areas: "logo nav search actions"; padding-block: .8rem; }
	.bph-menubtn, .bph-nav__item--mobile { display: none; }
	.bph-nav, .bph-nav.is-open { display: block; position: static; padding: 0; background: none; color: inherit; overflow: visible; grid-area: nav; }
	.bph-nav__list { display: flex; gap: .25rem; }
	.bph-nav__item { position: relative; }
	.bph-nav__item > a, .bph-dd > summary { padding: .55rem .7rem; border: 0; border-radius: 4px; font-size: 1rem; }
	.bph-nav__item > a:hover, .bph-dd > summary:hover, .bph-dd[open] > summary { background: rgb(255 255 255 / .12); color: var(--paper); }
	.bph-dd__panel {
		position: absolute; top: calc(100% + 10px); left: 0; z-index: 70; padding: 1.25rem 1.5rem;
		background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 0 18px 40px rgb(0 0 0 / .18);
	}
	.bph-mega { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 1rem 2rem; width: min(760px, 80vw); }
	.bph-mega__all { grid-column: 1 / -1; }
	.bph-brandmenu { width: 360px; }
}

/* ---------- Cart drawer + toast ---------- */
.bph-scrim { position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / .45); }
.bph-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(420px, 100vw); box-sizing: border-box;
	display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-left: 2px solid var(--ink);
	animation: bph-slide-in .22s ease-out;
}
.bph-drawer.is-busy { cursor: progress; }
@keyframes bph-slide-in { from { transform: translateX(100%); } }
.bph-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-bottom: 2px solid var(--ink); }
.bph-drawer__head h2 { margin: 0; font-size: 1.25rem; }
.bph-drawer__close:hover { background: var(--mist); }
.bph-drawer__note, .bph-drawer__empty { padding: 1.25rem 1rem; }
.bph-drawer__items { flex: 1; overflow: auto; list-style: none; margin: 0; padding: 0 1rem; }
.bph-line { display: grid; grid-template-columns: 64px 1fr; gap: .25rem .9rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.bph-line__img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); grid-row: span 2; }
.bph-line__name { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.25; }
.bph-line__price { display: block; margin: .2rem 0 .5rem; color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.bph-line__remove { grid-column: 2; justify-self: start; padding: 0; border: 0; background: none; color: var(--graphite); text-decoration: underline; font: inherit; font-size: .85rem; cursor: pointer; }
.bph-qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 4px; }
.bph-qty button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.bph-qty button:hover { background: var(--mist); }
.bph-qty__n { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.bph-drawer__foot { padding: 1rem; border-top: 2px solid var(--ink); display: grid; gap: .5rem; }
.bph-drawer__total { display: flex; justify-content: space-between; margin: 0; font-size: 1.1rem; }
.bph-drawer__total strong { font-variant-numeric: tabular-nums; }
.bph-drawer__hint { margin: 0; color: var(--graphite); font-size: .85rem; }
.bph-drawer__submit { width: 100%; }
.bph-drawer__cart { justify-self: center; color: var(--ink); }
.bph-toast {
	position: fixed; left: 50%; bottom: 1.25rem; z-index: 100; transform: translate(-50%, 140%);
	padding: .75rem 1.1rem; border-radius: 4px; background: var(--ink); color: var(--paper); font-weight: 700;
	transition: transform .2s ease-out; pointer-events: none;
}
.bph-toast.is-visible { transform: translate(-50%, 0); }
.bph-toast:empty { display: none; }

/* ---------- Hero: the charging battery ---------- */
.bph-hero {
	display: grid; gap: 2rem; align-items: center; overflow-x: clip;
	padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(1.5rem, 4vw, 3rem);
}
.bph-hero__title {
	margin: 0; max-width: 15ch; font-size: var(--wp--preset--font-size--display); font-weight: 850; font-stretch: 125%;
	line-height: .98; letter-spacing: -.025em;
}
.bph-hero__lead { max-width: 46ch; margin: 1.1rem 0 1.5rem; font-size: 1.15rem; color: var(--graphite); }
.bph-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.bph-hero__stage { display: grid; justify-items: center; gap: .5rem; padding-right: clamp(1.5rem, 6vw, 2.5rem); min-width: 0; }
.bph-batt {
	position: relative; display: flex; align-items: center; width: min(100%, 520px); aspect-ratio: 2.35 / 1;
	touch-action: pan-y; cursor: ew-resize; user-select: none; border-radius: 22px;
}
.bph-batt__body {
	position: relative; flex: 1; height: 100%; box-sizing: border-box; overflow: hidden;
	border: clamp(5px, 1.2vw, 8px) solid var(--ink); border-radius: 22px; background: var(--paper); padding: clamp(6px, 1.2vw, 10px);
}
.bph-batt__fill {
	position: absolute; top: clamp(6px, 1.2vw, 10px); bottom: clamp(6px, 1.2vw, 10px); left: clamp(6px, 1.2vw, 10px);
	max-width: calc(100% - 2 * clamp(6px, 1.2vw, 10px)); width: 100%; border-radius: 10px; background: var(--red);
	transition: width .12s steps(1, end);
}
.bph-batt__cells {
	position: absolute; inset: clamp(6px, 1.2vw, 10px); display: grid; grid-template-columns: repeat(10, 1fr); pointer-events: none;
}
.bph-batt__cells i { border-right: clamp(4px, .9vw, 7px) solid var(--paper); }
.bph-batt__cells i:last-child { border-right: 0; }
.bph-batt__minus {
	position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); z-index: 1;
	color: var(--paper); font-weight: 900; font-size: clamp(1.5rem, 4vw, 2.4rem); mix-blend-mode: difference; pointer-events: none;
}
.bph-batt__cap {
	flex: none; width: clamp(18px, 4vw, 28px); height: 38%; margin-left: -2px; border-radius: 0 8px 8px 0; background: var(--red);
	display: grid; place-items: center; color: var(--paper); font-weight: 900; font-size: clamp(.9rem, 2vw, 1.2rem);
}
.bph-batt__spark {
	position: absolute; right: calc(clamp(18px, 4vw, 28px) * -1.7); top: 50%; width: clamp(28px, 5vw, 40px); height: clamp(28px, 5vw, 40px);
	transform: translateY(-50%) scale(.6); color: var(--red); opacity: 0;
}
.bph-batt__spark .bph-icon { width: 100%; height: 100%; fill: var(--red); }
.bph-batt.is-full .bph-batt__spark { animation: bph-spark 1.2s ease-out 1; opacity: 1; }
.bph-batt.is-full .bph-batt__cap { animation: bph-glow 1.2s ease-out 1; }
@keyframes bph-spark { 0% { opacity: 0; transform: translateY(-50%) scale(.4) rotate(-12deg); } 30% { opacity: 1; transform: translateY(-50%) scale(1.15) rotate(0); } 100% { opacity: 1; transform: translateY(-50%) scale(1); } }
@keyframes bph-glow { 30% { box-shadow: 0 0 0 10px rgb(215 20 26 / .25); } 100% { box-shadow: 0 0 0 0 rgb(215 20 26 / 0); } }
.bph-batt:focus-visible { outline-offset: 6px; }
.bph-batt__readout { display: flex; align-items: baseline; gap: .75rem; margin: .5rem 0 0; }
.bph-batt__pct { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 850; font-stretch: 125%; font-variant-numeric: tabular-nums; min-width: 4.2ch; text-align: right; }
.bph-batt__label { font-weight: 700; color: var(--graphite); }
.bph-batt__hint { margin: 0; font-size: .85rem; color: var(--graphite); }
@media (min-width: 900px) {
	.bph-hero { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
	
}

/* ---------- Size chips (battery labels) ---------- */
.bph-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: 1rem var(--gutter) 2rem; }
.bph-sizes__title { margin: 0; font-size: 1.1rem; }
.bph-sizes__list { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.bph-chip {
	position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; margin-right: 6px;
	border: 2px solid var(--ink); border-radius: 5px; color: var(--ink); text-decoration: none; font-weight: 800; font-variant-numeric: tabular-nums;
}
.bph-chip::after { content: ""; position: absolute; right: -7px; top: 50%; width: 5px; height: 14px; transform: translateY(-50%); border-radius: 0 2px 2px 0; background: var(--ink); }
.bph-chip:hover { background: var(--ink); color: var(--paper); }
.bph-chip:hover::after { background: var(--red); }

/* ---------- Sections ---------- */
.bph-section { padding: var(--wp--preset--spacing--40) var(--gutter) 0; }
.bph-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.bph-section__head h2 { margin: 0; font-size: var(--wp--preset--font-size--x-large); font-stretch: 112%; }
.bph-section__head a { font-weight: 700; color: var(--ink); }

.bph-types__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .bph-types__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .bph-types__grid { grid-template-columns: repeat(6, 1fr); } }
.bph-type { display: grid; gap: .2rem; color: var(--ink); text-decoration: none; }
.bph-type__img { display: grid; place-items: center; aspect-ratio: 1; padding: .75rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.bph-type__img img { width: 100%; height: 100%; object-fit: contain; }
.bph-type__name { margin-top: .4rem; font-weight: 800; line-height: 1.2; }
.bph-type__count { color: var(--graphite); font-size: .85rem; }
.bph-type:hover .bph-type__img { border-color: var(--red); }

.bph-brands__list { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.bph-brand { display: grid; place-items: center; height: 64px; min-width: 120px; padding: .4rem 1rem; box-sizing: border-box; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 800; }
.bph-brand img { max-height: 46px; width: auto; object-fit: contain; }
.bph-brand:hover { border-color: var(--ink); }

.bph-repack { margin-top: var(--wp--preset--spacing--50); background: var(--ink); color: var(--paper); max-width: none !important; }
.bph-repack__inner { max-width: var(--wide); margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--gutter); display: grid; gap: 1.5rem; align-items: end; }
.bph-repack h2 { margin: 0 0 .75rem; font-size: var(--wp--preset--font-size--x-large); font-stretch: 118%; max-width: 20ch; }
.bph-repack p { max-width: 55ch; margin: 0 0 1rem; color: #d6d6d6; }
.bph-repack__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.bph-repack__list li::before { content: "+"; display: inline-block; width: 1.2em; color: var(--red); font-weight: 900; }
.bph-repack__actions { display: grid; gap: .75rem; justify-items: start; }
.bph-repack__mail { color: var(--paper); }
.bph-repack__mail:hover { color: #ffb3b5; }
@media (min-width: 900px) { .bph-repack__inner { grid-template-columns: 1.6fr 1fr; } .bph-repack__actions { justify-items: end; } }

/* ---------- Product cards ---------- */
.bph-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .9rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .bph-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; } }
@media (min-width: 1100px) { .bph-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bph-card { display: flex; flex-direction: column; }
.bph-card__link { display: flex; flex-direction: column; flex: 1; color: var(--ink); text-decoration: none; }
.bph-card__frame {
	position: relative; display: grid; place-items: center; aspect-ratio: 1; margin-top: 7px; padding: .75rem; min-height: 0; overflow: clip; overflow-clip-margin: 8px;
	border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper);
}
.bph-card__frame::before { content: ""; position: absolute; top: -8px; left: 50%; width: 22%; height: 6px; transform: translateX(-50%); border-radius: 3px 3px 0 0; background: var(--ink); transition: background-color .15s; }
.bph-card__img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.bph-card__brand { margin-top: .6rem; font-size: .8rem; font-weight: 700; color: var(--graphite); }
.bph-card__name { margin-top: .15rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bph-card__link:hover .bph-card__frame::before { background: var(--red); }
.bph-card__link:hover .bph-card__name { text-decoration: underline; }
.bph-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
.bph-card__price { font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.bph-card__add {
	display: inline-flex; align-items: center; gap: .25rem; height: 36px; padding: 0 .7rem 0 .5rem;
	border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); color: var(--ink); font: 700 .85rem/1 inherit; cursor: pointer;
}
.bph-card__add .bph-icon { width: 18px; height: 18px; }
.bph-card__add:hover { background: var(--ink); color: var(--paper); }
.bph-card__add:disabled { opacity: .5; cursor: progress; }

/* ---------- Shop ---------- */
.bph-crumbs { padding: 1rem var(--gutter) 0; font-size: .85rem; color: var(--graphite); }
.bph-crumbs a { color: var(--graphite); }
.bph-crumbs__sep { margin: 0 .45rem; color: var(--rule); }
.bph-shop { padding: 0 var(--gutter); }
.bph-shop__head { padding: 1rem 0 1.5rem; }
.bph-shop__title { margin: 0; font-size: var(--wp--preset--font-size--x-large); font-stretch: 115%; }
.bph-shop__desc { margin: .4rem 0 0; color: var(--graphite); max-width: 60ch; }
.bph-shop__layout { display: grid; gap: 2rem; }
[data-wp-router-region][aria-busy="true"] .bph-grid { opacity: .45; transition: opacity .2s; }
.bph-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.bph-toolbar__count { margin: 0 auto 0 0; color: var(--graphite); }
.bph-toolbar__filters { display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .9rem; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); font: 700 .95rem/1 inherit; cursor: pointer; }
.bph-toolbar__sort { display: flex; align-items: center; gap: .5rem; }
.bph-toolbar__sort label { color: var(--graphite); font-size: .9rem; }
.bph-toolbar__sort select, .bph-filters select { height: 40px; padding: 0 .6rem; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); font: inherit; }
.bph-filters { display: none; }
.bph-filters.is-open { display: block; padding: 1rem; border: 2px solid var(--ink); border-radius: var(--radius); }
.bph-filters__group + .bph-filters__group { margin-top: 1.5rem; }
.bph-filters h2 { margin: 0 0 .5rem; font-size: 1rem; }
.bph-filters ul { list-style: none; margin: 0; padding: 0; }
.bph-filters ul ul { margin: .2rem 0 .4rem .9rem; padding-left: .6rem; border-left: 2px solid var(--rule); }
.bph-filters a { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; color: var(--ink); text-decoration: none; }
.bph-filters a:hover { color: var(--red-dark); }
.bph-filters a.is-current { font-weight: 800; color: var(--red); }
.bph-filters__n { color: var(--graphite); font-size: .85rem; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
	.bph-shop__layout { grid-template-columns: 230px 1fr; }
	.bph-filters, .bph-filters.is-open { display: block; padding: 0; border: 0; position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; max-height: calc(100vh - var(--header-h) - 2rem); overflow: auto; }
	.bph-toolbar__filters { display: none; }
}
.bph-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.bph-pages .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .6rem; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 4px; color: var(--ink); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.bph-pages .page-numbers.current { background: var(--ink); color: var(--paper); }
.bph-pages .page-numbers.dots { border-color: transparent; }
.bph-pages a.page-numbers:hover { border-color: var(--red); color: var(--red-dark); }
.bph-empty { padding: 2rem 0; }

/* ---------- Product page ---------- */
.bph-product__top { display: grid; gap: 2rem; padding: 1rem var(--gutter) 0; }
@media (min-width: 900px) { .bph-product__top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: start; } }

.bph-gallery { min-width: 0; }
.bph-gallery__stage { position: relative; overflow: hidden; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.bph-gallery__track { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.bph-gallery__slide { flex: 0 0 100%; height: 100%; }
.bph-gallery__open { display: grid; place-items: center; width: 100%; height: 100%; padding: 1rem; box-sizing: border-box; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.bph-gallery__open img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease-out; }
@media (hover: hover) and (pointer: fine) { .bph-gallery__open:hover img { transform: scale(1.9); } }
.bph-gallery__arrow {
	position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; transform: translateY(-50%);
	border: 0; border-radius: 50%; background: rgb(0 0 0 / .78); color: var(--paper); cursor: pointer;
}
.bph-gallery__arrow:hover { background: var(--red); }
.bph-gallery__arrow.is-prev { left: .6rem; }
.bph-gallery__arrow.is-next { right: .6rem; }
.bph-gallery__counter { position: absolute; right: .6rem; bottom: .6rem; z-index: 2; margin: 0; padding: .2rem .55rem; border-radius: 3px; background: rgb(0 0 0 / .78); color: var(--paper); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bph-gallery__zoomhint { position: absolute; left: .6rem; bottom: .6rem; color: var(--graphite); opacity: .7; pointer-events: none; }
.bph-gallery__thumbs { display: flex; gap: .5rem; margin: .75rem 0 0; padding: 0 0 .25rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; }
.bph-gallery__thumb { display: grid; place-items: center; width: 72px; height: 72px; padding: 4px; box-sizing: border-box; border: 2px solid var(--rule); border-radius: 4px; background: var(--paper); cursor: pointer; scroll-snap-align: start; }
.bph-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.bph-gallery__thumb:hover { border-color: var(--graphite); }
.bph-gallery__thumb.is-active { border-color: var(--red); }
.bph-gallery.is-single .bph-gallery__zoomhint { display: block; }
.bph-lightbox { position: fixed; inset: 0; z-index: 120; background: #000; color: var(--paper); }
.bph-lightbox__scroller { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; touch-action: pan-x pan-y pinch-zoom; }
.bph-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; background: var(--paper); }
.bph-lightbox__close { position: absolute; top: .75rem; right: .75rem; z-index: 3; background: rgb(255 255 255 / .12); color: var(--paper); }
.bph-lightbox .bph-gallery__arrow { background: rgb(255 255 255 / .16); }
.bph-lightbox .bph-gallery__counter { bottom: 1rem; right: 50%; transform: translateX(50%); }

.bph-summary__brand { display: inline-block; font-weight: 700; color: var(--graphite); text-decoration: none; }
.bph-summary__brand:hover { color: var(--red-dark); text-decoration: underline; }
.bph-summary__title { margin: .25rem 0 .5rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-stretch: 112%; line-height: 1.08; }
.bph-summary__price { margin: 0 0 1.25rem; font-size: clamp(1.7rem, 3.5vw, 2.2rem); font-weight: 850; color: var(--red); font-variant-numeric: tabular-nums; }
.bph-summary__specs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.bph-summary__specs li { display: grid; padding: .45rem .75rem; border: 2px solid var(--ink); border-radius: 4px; line-height: 1.2; }
.bph-summary__specs span { font-size: .75rem; color: var(--graphite); }
.bph-summary__specs strong { font-variant-numeric: tabular-nums; }
.bph-summary__buy { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; margin-bottom: 1.5rem; }
.bph-qty--lg { height: 48px; }
.bph-qty--lg button { width: 44px; height: 44px; }
.bph-qty--lg input { width: 3.5ch; height: 100%; border: 0; text-align: center; font: 700 1rem inherit; font-variant-numeric: tabular-nums; -moz-appearance: textfield; background: transparent; }
.bph-qty--lg input::-webkit-inner-spin-button, .bph-qty--lg input::-webkit-outer-spin-button { -webkit-appearance: none; }
.bph-summary__add { flex: 1 1 180px; }
.bph-summary__notes { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .35rem; color: var(--graphite); }
.bph-summary__notes li::before { content: "+"; display: inline-block; width: 1.2em; color: var(--red); font-weight: 900; }
.bph-summary__sku { color: var(--graphite); font-size: .85rem; }
.bph-summary__sku span { font-variant-numeric: tabular-nums; }
.bph-buybar { display: none; }
@media (max-width: 899px) {
	.bph-buybar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
		padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 2px solid var(--ink);
	}
	.bph-buybar__price { font-weight: 850; font-size: 1.2rem; color: var(--red); font-variant-numeric: tabular-nums; }
	.bph-product { padding-bottom: 6rem; }
}
.bph-details { padding: var(--wp--preset--spacing--40) var(--gutter) 0; }
.bph-details h2 { font-size: var(--wp--preset--font-size--x-large); margin: 0 0 1rem; }
.bph-details__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .bph-details__grid { grid-template-columns: 1.4fr 1fr; } }
.bph-details__text { max-width: 70ch; }
.bph-details__text ul.specs { display: none; }
.bph-details__specs { display: grid; grid-template-columns: max-content 1fr; margin: 0; border-top: 2px solid var(--ink); }
.bph-details__specs dt, .bph-details__specs dd { margin: 0; padding: .6rem .5rem; border-bottom: 1px solid var(--rule); }
.bph-details__specs dt { color: var(--graphite); padding-right: 1.5rem; }
.bph-details__specs dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.bph-picks { padding-bottom: 0; }

/* ---------- Pages (incl. WooCommerce cart / confirm / account) ---------- */
.bph-page { padding-left: var(--gutter); padding-right: var(--gutter); }
.bph-page.is-narrow > * { max-width: 760px; }
.bph-page .bph-crumbs { padding-left: 0; padding-right: 0; }
.bph-page__title { margin: 1rem auto 1.5rem; font-size: var(--wp--preset--font-size--x-large); font-stretch: 115%; }
.bph-page__content > * + * { margin-top: 1rem; }
.bph-page__content h2 { margin-top: 2rem; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.select2-container--default .select2-selection--single {
	min-height: 46px; padding: .55rem .75rem; box-sizing: border-box; border: 2px solid #8a8a8a; border-radius: 4px; background: var(--paper); font: inherit; color: var(--ink);
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 28px; padding-left: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(215 20 26 / .35); }
.woocommerce form .form-row label { font-weight: 600; }
.woocommerce form .form-row .required { color: var(--red); text-decoration: none; }
.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-notice {
	border: 2px solid var(--ink) !important; border-left-width: 8px !important; border-radius: 4px; background: var(--paper) !important; color: var(--ink) !important;
}
.woocommerce-error { border-color: var(--red) !important; }
.woocommerce-info::before, .woocommerce-message::before { color: var(--ink) !important; }
.woocommerce table.shop_table { border: 2px solid var(--ink); border-radius: var(--radius); border-collapse: separate; }
.woocommerce table.shop_table th { font-weight: 700; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top-color: var(--rule); }
.woocommerce table.cart img { width: 72px; height: 72px; object-fit: contain; }
.woocommerce .cart-collaterals .cart_totals h2, .woocommerce-checkout h3 { font-size: 1.3rem; }
.woocommerce a.remove { color: var(--red) !important; }
.woocommerce a.remove:hover { background: var(--red); color: var(--paper) !important; }
.woocommerce-checkout #payment { background: var(--mist); border-radius: var(--radius); }
.woocommerce-checkout #payment div.payment_box { background: var(--paper); border: 1px solid var(--rule); color: var(--ink); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--paper); }
.woocommerce #payment #place_order { width: 100%; min-height: 54px; font-size: 1.1rem; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 2px solid var(--ink); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: .7rem .25rem; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--red); font-weight: 800; }
.woocommerce-orders-table .woocommerce-button { min-height: 38px; padding: .4rem .8rem; margin: .15rem; }
.woocommerce-orders-table .woocommerce-button.bph-message { background: var(--paper); color: var(--ink); border-color: var(--ink); }
mark.order-status, mark.order-number, mark.order-date { background: none; font-weight: 700; }

/* ---------- Footer ---------- */
.bph-footer { background: var(--ink); color: #d6d6d6; margin-top: var(--wp--preset--spacing--50); }
.bph-footer a { color: var(--paper); }
.bph-footer a:hover { color: #ffb3b5; }
.bph-footer__grid { max-width: var(--wide); margin: 0 auto; padding: 3rem var(--gutter) 2rem; display: grid; gap: 2rem; }
@media (min-width: 700px) { .bph-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bph-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
.bph-footer h2 { margin: 0 0 .75rem; color: var(--paper); font-size: 1rem; }
.bph-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.bph-footer ul a { text-decoration: none; }
.bph-footer ul a:hover { text-decoration: underline; }
.bph-footer__logo { margin: 0 0 .5rem; color: var(--paper); font-weight: 850; font-size: 1.5rem; font-stretch: 118%; }
.bph-footer__brand p:last-child { max-width: 40ch; }
.bph-footer__line { display: flex; gap: .6rem; margin: 0 0 .6rem; }
.bph-footer__line .bph-icon { color: var(--red); margin-top: .15rem; }
.bph-footer__base { max-width: var(--wide); margin: 0 auto; padding: 1.25rem var(--gutter) 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; border-top: 1px solid #333; font-size: .9rem; }
.bph-footer__base p { margin: 0; }
.bph-footer__also a { margin-left: .75rem; }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.bph-gallery__open:hover img { transform: none; }
}

/* ---------- Carousel info slides ---------- */
.bph-gallery__slide.is-info { display: grid; }
.bph-info {
	display: flex; flex-direction: column; justify-content: center; gap: .75rem; height: 100%; box-sizing: border-box;
	padding: clamp(1.25rem, 5vw, 2.5rem); background: var(--paper); text-align: left;
}
.bph-info__kicker { margin: 0; font-weight: 800; font-size: .9rem; color: var(--red); }
.bph-info__title { margin: 0; font-size: clamp(1.1rem, 3.2vw, 1.5rem); font-weight: 800; font-stretch: 110%; line-height: 1.15; }
.bph-info__specs, .bph-info__rates { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: .25rem 0 0; border-top: 2px solid var(--ink); }
.bph-info__specs dt, .bph-info__specs dd, .bph-info__rates dt, .bph-info__rates dd { margin: 0; padding: .45rem .25rem; border-bottom: 1px solid var(--rule); font-size: clamp(.85rem, 2.4vw, 1rem); }
.bph-info__specs dt, .bph-info__rates dt { color: var(--graphite); padding-right: 1.25rem; }
.bph-info__specs dd, .bph-info__rates dd { font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bph-info__rates dd { color: var(--red); font-size: clamp(1rem, 3vw, 1.25rem); }
.bph-info--brand { align-items: center; text-align: center; }
.bph-info__logo { max-width: 70%; max-height: 40%; object-fit: contain; }
.bph-info__brandname { margin: 0; font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 850; font-stretch: 125%; }
.bph-info__text { margin: 0; max-width: 34ch; color: var(--graphite); }
.bph-info--pay { background: var(--ink); color: var(--paper); }
.bph-info__steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: .7rem; }
.bph-info__steps li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; align-items: center; gap: .6rem; font-weight: 700; font-size: clamp(.95rem, 2.8vw, 1.15rem); }
.bph-info__steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--red); color: var(--paper); font-weight: 850; }
.bph-gallery__thumb.is-info { display: grid; place-items: center; align-content: center; gap: 2px; padding: 4px; font-size: .62rem; font-weight: 800; line-height: 1.1; color: var(--ink); text-align: center; }
.bph-gallery__thumb.is-info .bph-icon { width: 20px; height: 20px; color: var(--red); }
.bph-gallery__thumb.is-info span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Product options (variations) ---------- */
.bph-options { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.bph-options legend { padding: 0; margin-bottom: .5rem; color: var(--graphite); }
.bph-options legend strong { color: var(--ink); }
.bph-options__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.bph-option {
	display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .3rem .8rem .3rem .35rem;
	border: 2px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); font: 600 .95rem/1.2 inherit; cursor: pointer;
}
.bph-option:not(:has(img)) { padding-left: .8rem; }
.bph-option__img { width: 34px; height: 34px; object-fit: contain; }
.bph-option:hover { border-color: var(--graphite); }
.bph-option.is-active { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
@media (max-width: 699px) {
	.bph-gallery__stage > .bph-gallery__arrow { display: none; }
}
.bph-gallery__thumbs { scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }

/* Plugin buttons/forms outside WooCommerce wrappers (Track order, messages, order received) */
.bph-thread .button, .bph-track .button, .bph-received .button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.2rem;
	border: 2px solid var(--red); border-radius: 4px; background: var(--red); color: var(--paper);
	font: 700 1rem/1.1 var(--wp--preset--font-family--archivo); text-decoration: none; cursor: pointer;
}
.bph-thread .button:hover, .bph-track .button:hover, .bph-received .button:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--paper); }
textarea, input, select, button { font-family: inherit; }
.bph-thread textarea, .bph-track input { padding: .6rem .75rem; border: 2px solid #8a8a8a; border-radius: 4px; font-size: 1rem; box-sizing: border-box; }
.bph-thread textarea:focus, .bph-track input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(215 20 26 / .35); }
address { font-style: normal; }

/* ---------- Visit the store: mini map ---------- */
.bph-visit {
	display: grid; gap: 1.5rem; margin-top: var(--wp--preset--spacing--50); padding: 0 var(--gutter);
}
@media (min-width: 900px) { .bph-visit { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center; } }
.bph-visit__info h2 { margin: 0 0 .75rem; font-size: var(--wp--preset--font-size--x-large); font-stretch: 112%; }
.bph-visit__addr { font-size: 1.15rem; font-weight: 700; line-height: 1.35; max-width: 32ch; }
.bph-visit__near { margin: .5rem 0 1.25rem; color: var(--graphite); }
.bph-visit__status {
	display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .85rem .5rem .6rem;
	border: 2px solid var(--ink); border-radius: 4px; font-weight: 800;
}
.bph-visit__status.is-open { border-color: var(--red); }
.bph-minibatt { position: relative; display: inline-block; width: 34px; height: 16px; box-sizing: border-box; border: 2.5px solid var(--ink); border-radius: 3px; }
.bph-minibatt::after { content: ""; position: absolute; right: -6px; top: 3px; width: 3px; height: 6px; border-radius: 0 1px 1px 0; background: var(--ink); }
.bph-minibatt__fill { position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; max-width: calc(100% - 3px); background: var(--red); border-radius: 1px; transition: width .4s; }
.bph-visit__hours { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.25rem; margin: 1rem 0 1.5rem; }
.bph-visit__hours dt { color: var(--graphite); }
.bph-visit__hours dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.bph-visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.bph-visit__copy { padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; font: 600 1rem inherit; cursor: pointer; }
.bph-visit__call { margin: 1rem 0 0; color: var(--graphite); }

.bph-map {
	position: relative; overflow: hidden; height: clamp(300px, 52vw, 460px); border: 2px solid var(--ink); border-radius: var(--radius);
	background: #e9e9e9; cursor: grab; touch-action: pan-y; user-select: none; isolation: isolate;
}
.bph-map.is-dragging { cursor: grabbing; }
.bph-map__tiles { position: absolute; inset: 0; filter: grayscale(1) contrast(1.12) brightness(1.04); }
.bph-map__tile { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.bph-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(circle at 50% 50%, transparent 55%, rgb(0 0 0 / .14) 100%); }
.bph-map__pin { position: absolute; z-index: 2; width: 0; height: 0; pointer-events: none; }
.bph-map__mark { position: absolute; left: -22px; top: -58px; width: 44px; height: 58px; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .35)); }
.bph-map__pulse { position: absolute; left: -18px; top: -9px; width: 36px; height: 18px; border-radius: 50%; border: 3px solid var(--red); opacity: 0; animation: bph-pulse 2s ease-out infinite; }
@keyframes bph-pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.bph-map__cell { animation: bph-cell 2.4s steps(1, end) infinite; }
.bph-map__cell.is-c2 { animation-delay: .3s; }
.bph-map__cell.is-c3 { animation-delay: .6s; }
@keyframes bph-cell { 0%, 15% { opacity: 0; } 16%, 100% { opacity: 1; } }
.bph-map__label {
	position: absolute; left: 26px; top: -50px; padding: .3rem .6rem; border-radius: 3px; white-space: nowrap;
	background: var(--ink); color: var(--paper); font-weight: 800; font-size: .9rem; font-stretch: 112%;
}
.bph-map__controls { position: absolute; right: .6rem; top: .6rem; z-index: 3; display: grid; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; background: var(--paper); }
.bph-map__controls button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; }
.bph-map__controls button + button { border-top: 1px solid var(--rule); }
.bph-map__controls button:hover { background: var(--ink); color: var(--paper); }
.bph-map__credit { position: absolute; right: 0; bottom: 0; z-index: 3; margin: 0; padding: .15rem .45rem; background: rgb(255 255 255 / .85); font-size: .7rem; }
.bph-map__credit a { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .bph-map__pulse, .bph-map__cell { animation: none; } .bph-map__cell { opacity: 1; } }
.bph-visit__hours dd { white-space: nowrap; }
@media (max-width: 699px) {
	.bph-map__label { left: 0; top: 8px; transform: translateX(-50%); }
}

/* Buttons and fields size including padding/border (fixes oversized, overflowing Submit order). */
.wp-element-button, .button, button, input, select, textarea, .bph-card__add { box-sizing: border-box; }
.wp-element-button,
.woocommerce .button, .woocommerce a.button, .woocommerce button.button, .woocommerce a.button.alt, .woocommerce button.button.alt { min-height: 48px; line-height: 1.2; }
.woocommerce .wc-proceed-to-checkout { padding: 1rem 0 0; }
.woocommerce .wc-proceed-to-checkout a.checkout-button.bph-submit-order { display: flex; width: 100%; margin: 0; padding: .8rem 1.4rem; font-size: 1.1rem; }
.bph-drawer__submit { width: 100%; }
.bph-drawer__foot { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
.bph-hero__logo { display: block; width: auto; height: clamp(40px, 6vw, 60px); margin: 0 0 1rem; object-fit: contain; }
.bph-hero__title { max-width: 11ch; }
.bph-hero__title { max-width: none; }
.bph-hero__brand { display: block; max-width: 11ch; }
.bph-hero__company {
	display: block; margin-top: .45em; font-size: .42em; font-weight: 800; font-stretch: 112%; letter-spacing: 0; line-height: 1.1;
	color: var(--graphite);
}
.bph-batt__minus { mix-blend-mode: normal; color: var(--paper); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.bph-hero__title .bph-hero__logo { display: block; height: auto; width: clamp(200px, 30vw, 340px); max-width: 100%; margin: 0 0 .1em; }
.bph-hero__title .bph-hero__logo { width: 207px; max-width: 60vw; image-rendering: auto; }

/* ---------- Marketplace logos ---------- */
.bph-market { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.bph-market__link { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.bph-market__logo { display: grid; place-items: center; flex: none; background: var(--paper); border-radius: 8px; overflow: hidden; }
.bph-market__logo img { object-fit: contain; }
.bph-market--sm .bph-market__logo { width: 36px; height: 36px; padding: 4px; box-sizing: border-box; }
.bph-market--sm .bph-market__logo img { width: 28px; height: 28px; }
.bph-market--sm .bph-market__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bph-market--sm .bph-market__link:hover .bph-market__logo { box-shadow: 0 0 0 2px var(--red); }
.bph-market--lg { gap: 1rem; margin: 1rem 0 1.5rem; }
.bph-market--lg li { flex: 1 1 220px; }
.bph-market--lg .bph-market__link { padding: .8rem 1rem; border: 2px solid var(--ink); border-radius: var(--radius); }
.bph-market--lg .bph-market__link:hover { border-color: var(--red); }
.bph-market--lg .bph-market__logo { width: 56px; height: 56px; padding: 4px; box-sizing: border-box; border: 1px solid var(--rule); }
.bph-market--lg .bph-market__logo img { width: 46px; height: 46px; }
.bph-market--lg .bph-market__text { display: grid; line-height: 1.25; }
.bph-market--lg .bph-market__text span { color: var(--graphite); font-size: .9rem; }
.bph-footer__also { display: flex; align-items: center; gap: .75rem; margin: 0; }
.bph-hero__also { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; color: var(--graphite); font-size: .9rem; font-weight: 600; }
.bph-hero__also .bph-market__logo { border: 1px solid var(--rule); }
.bph-summary__ask { margin: 0 0 .5rem; }
.bph-summary__ask a { color: var(--ink); font-weight: 600; }
