/* B&D Core components. Colours and type come from the theme (theme.json presets). */
.bd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bd-draft { background: #fff3c4; border-left: 4px solid #e0b300; padding: .5rem .75rem; font-style: italic; }

.bd-button { display: inline-block; padding: .7rem 1.1rem; border: 2px solid var(--wp--preset--color--contrast, #141414); background: transparent; color: var(--wp--preset--color--contrast, #141414); font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; }
.bd-button--primary { background: var(--wp--preset--color--action, #1f5bd8); border-color: var(--wp--preset--color--action, #1f5bd8); color: #fff; }
.bd-button--ghost { border-color: transparent; text-decoration: underline; }
.bd-button:focus-visible { outline: 3px solid var(--wp--preset--color--brand, #ffe135); outline-offset: 2px; }
.bd-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.bd-crumbs { font-size: .9rem; margin-bottom: 1rem; }
.bd-crumbs a { color: inherit; }
.bd-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0; }

.bd-tiles, .bd-cards, .bd-models, .bd-list { list-style: none; padding: 0; margin: 0; }
.bd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; margin: 1rem 0; }
.bd-tile a { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem; background: var(--wp--preset--color--contrast, #141414); color: #fff; text-decoration: none; min-height: 6rem; }
.bd-tile__img { width: 100%; height: auto; margin-bottom: .5rem; }
.bd-tile__name { font-weight: 700; font-size: 1.2rem; }
.bd-tile__count { font-size: .85rem; opacity: .85; }
.bd-tile--other a { background: var(--wp--preset--color--canvas, #f4f1ea); color: var(--wp--preset--color--contrast, #141414); border: 2px dashed currentColor; }

.bd-models { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.bd-models a { font-weight: 600; }
.bd-make__group { margin: 1.5rem 0; }
.bd-answer { font-size: 1.35rem; font-weight: 700; margin: .5rem 0; }
.bd-answer-tag { font-size: .8rem; padding: .1rem .4rem; background: var(--wp--preset--color--canvas, #f4f1ea); }

.bd-panel { border: 2px solid var(--wp--preset--color--contrast, #141414); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.bd-panel h2 { margin-top: 0; font-size: 1.2rem; }

.bd-setcard { border-top: 4px solid var(--wp--preset--color--brand, #ffe135); background: var(--wp--preset--color--surface, #fff); padding: 1rem 1.25rem; margin: 1rem 0; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.bd-setcard__name { font-weight: 700; font-size: 1.25rem; margin: 0 0 .25rem; }
.bd-price__amount { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bd-price__meta, .bd-stock__updated, .bd-setcard__call { font-size: .9rem; }
.bd-price--off, .bd-stock--off { font-weight: 600; }

.bd-set__top { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .bd-set__top { grid-template-columns: 1fr 1fr; align-items: start; } }
.bd-set__media img { width: 100%; height: auto; margin-bottom: .5rem; }
.bd-specs { border-collapse: collapse; width: 100%; max-width: 40rem; font-variant-numeric: tabular-nums; }
.bd-specs th, .bd-specs td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid #ddd; vertical-align: top; }
.bd-crop { display: inline-block; padding: .15rem .5rem; border: 1px solid currentColor; font-size: .85rem; margin: 0 .25rem .25rem 0; }

.bd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.bd-card a { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; border: 1px solid #ccc; text-decoration: none; color: inherit; height: 100%; }
.bd-card img { width: 100%; height: auto; }
.bd-card__name { font-weight: 700; font-size: 1.15rem; }
.bd-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.bd-filter a[aria-current] { font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--wp--preset--color--brand, #ffe135); }

.bd-finder__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.bd-finder__row input { flex: 1 1 14rem; padding: .6rem; font-size: 1rem; }
.bd-finder__pick { display: grid; gap: .4rem; max-width: 28rem; margin: 1.25rem 0; }
.bd-finder__pick select { padding: .55rem; font-size: 1rem; }
.bd-finder__hint, .bd-field__help { display: block; font-size: .875rem; opacity: .85; }

.bd-form { display: grid; gap: 1rem; max-width: 40rem; }
.bd-field label, .bd-field legend { display: block; font-weight: 600; margin-bottom: .25rem; }
.bd-field input[type=text], .bd-field input[type=email], .bd-field input[type=tel], .bd-field input[type=number], .bd-field input[type=date], .bd-field select, .bd-field textarea { width: 100%; padding: .55rem; font-size: 1rem; border: 1px solid #888; box-sizing: border-box; }
.bd-field fieldset { border: 0; padding: 0; margin: 0; }
.bd-choice { display: block; font-weight: 400 !important; margin: .2rem 0; }
.bd-req { color: #b00020; }
.bd-form__errors { border-left: 4px solid #b00020; padding: .5rem 1rem; background: #fdecee; }
.bd-form--sent { border-left: 4px solid #1b7f3b; padding: .75rem 1rem; background: #eaf6ee; }

.bd-freight-table { border-collapse: collapse; width: 100%; max-width: 44rem; font-variant-numeric: tabular-nums; }
.bd-freight-table th, .bd-freight-table td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid #ddd; }
.bd-freight-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0 .5rem; }
.bd-freight-form input, .bd-freight-form select { padding: .45rem; }

.bd-context { background: var(--wp--preset--color--canvas, #e9e5db); padding: .6rem .9rem; margin: 0 0 1rem; }
.bd-check { margin: 1.5rem 0; }
.bd-check__same ul { list-style: none; padding: 0; }
.bd-set__caption { font-size: .85em; }
.bd-finder__browse { margin: .25rem 0 0; }
