/* Black Rock Stock & Quote — works on its own; the Black Rock theme sets the same variables. */
:root {
	--bre-accent: #ECB100;
	--bre-ink: #0A1626;
	--bre-ink-2: #13233A;
	--bre-line-dark: #5A5D64;
	--bre-text: #24262B;
	--bre-muted: #4A4D54;
	--bre-paper: #FFFFFF;
	--bre-sand: #ECEAE3;
	--bre-border: #DEDCD5;
	--bre-radius: 6px;
	--bre-display: 'Raleway', 'Segoe UI', sans-serif;
}

.bre-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.bre-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 2px solid transparent; border-radius: 4px; font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer; text-decoration: none; transition: filter .15s, background-color .15s; }
.bre-btn:focus-visible { outline: 3px solid var(--bre-accent); outline-offset: 2px; }
.bre-btn--block { width: 100%; }
.bre-btn--lg { min-height: 54px; font-size: 18px; }
.bre-btn--accent { background: var(--bre-accent); color: #111214; }
.bre-btn--accent:hover { filter: brightness(1.06); color: #111214; }
.bre-btn--dark { background: var(--bre-ink); color: #fff; }
.bre-btn--dark:hover { background: #000; color: #fff; }
.bre-btn--outline { background: #fff; color: var(--bre-ink); border-color: var(--bre-ink); }
.bre-btn--ghost { background: transparent; color: #fff; border-color: var(--bre-line-dark); }
.bre-btn[disabled] { opacity: .7; cursor: progress; }

/* Forms */
.bre-form { display: flex; flex-direction: column; gap: 16px; background: var(--bre-paper); color: var(--bre-text); border-radius: var(--bre-radius); padding: 32px; box-sizing: border-box; }
.bre-form--dark { background: var(--bre-ink); color: #fff; }
.bre-form--cart { padding: 0; background: transparent; }
.bre-form__head { display: flex; flex-direction: column; gap: 4px; }
.bre-form__title { margin: 0; font-family: var(--bre-display); font-weight: 800; font-size: 28px; line-height: 1.15; color: inherit; }
.bre-form__intro { margin: 0; font-size: 15px; color: #565961; }
.bre-form--dark .bre-form__intro, .bre-form--dark .bre-form__foot { color: #C9CBD0; }
.bre-form__foot { margin: 0; font-size: 14px; color: #565961; text-align: center; }
.bre-form__foot a { font-weight: 700; color: inherit; }
.bre-form--dark .bre-form__foot a { color: #fff; }
.bre-row { display: flex; flex-wrap: wrap; gap: 12px; }
.bre-row > .bre-field { flex: 1 1 160px; }
.bre-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bre-field label, .bre-urgency legend { font-weight: 600; font-size: 14px; }
.bre-field input[type="text"], .bre-field input[type="tel"], .bre-field input[type="email"], .bre-field input[type="search"], .bre-field select, .bre-field textarea {
	width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border: 1px solid #A9ACB3; border-radius: 4px; background: #fff; color: var(--bre-text); font: inherit; font-size: 16px; line-height: 1.4;
}
.bre-field textarea { min-height: 88px; resize: vertical; }
.bre-field input[type="file"] { font: inherit; font-size: 14px; }
.bre-form--dark .bre-field input, .bre-form--dark .bre-field select, .bre-form--dark .bre-field textarea { background: var(--bre-ink-2); border-color: var(--bre-line-dark); color: #fff; }
.bre-field input:focus, .bre-field select:focus, .bre-field textarea:focus { outline: 3px solid var(--bre-accent); outline-offset: 0; border-color: var(--bre-ink); }
.bre-urgency { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bre-urgency legend { padding: 0; margin-bottom: 6px; }
.bre-urgency__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.bre-urgency__opts label { position: relative; display: inline-flex; }
.bre-urgency__opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bre-urgency__opts span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 2px solid #C9CBD0; border-radius: 4px; font-size: 14px; font-weight: 600; }
.bre-urgency__opts input:checked + span { background: var(--bre-ink); border-color: var(--bre-ink); color: #fff; }
.bre-form--dark .bre-urgency__opts input:checked + span { background: var(--bre-accent); border-color: var(--bre-accent); color: #111214; }
.bre-urgency__opts input:focus-visible + span { outline: 3px solid var(--bre-accent); outline-offset: 2px; }
.bre-check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.bre-check input { width: 20px; height: 20px; accent-color: var(--bre-accent); }
.bre-status:empty { display: none; }
.bre-status p { margin: 0; padding: 12px 14px; border-radius: 4px; font-weight: 600; }
.bre-status__ok { background: #E5F3E8; color: #14532D; }
.bre-status__err { background: #FDE8E7; color: #8A1C14; }

/* Catalogue */
.bre-cat { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.bre-cat__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.bre-cat__tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.bre-cat__search { flex: 1 1 280px; }
.bre-cat__cond { flex: 0 1 220px; }
.bre-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bre-chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--bre-ink); background: #fff; color: var(--bre-ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.bre-chip[aria-pressed="true"] { background: var(--bre-ink); color: #fff; }
.bre-chip__n { font-size: 13px; opacity: .7; margin-left: 2px; }
.bre-chip:focus-visible { outline: 3px solid var(--bre-accent); outline-offset: 2px; }
.bre-cat__count { margin: 0; font-size: 15px; color: var(--bre-muted); }
.bre-grid, .bre-jobs, .bre-teaser { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bre-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.bre-card, .bre-job { background: #fff; border: 1px solid var(--bre-border); border-radius: var(--bre-radius); overflow: hidden; display: flex; flex-direction: column; }
.bre-card[hidden] { display: none; }
.bre-card__img, .bre-job__img { position: relative; display: block; aspect-ratio: 4 / 3; background: #E4E1D9; text-decoration: none; }
.bre-card__img img, .bre-job__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bre-ph { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: #6B6E75; font-size: 14px; font-weight: 600; }
.bre-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 4px; font-size: 13px; font-weight: 700; background: var(--bre-ink); color: #fff; }
.bre-badge--rebuilt { background: var(--bre-accent); color: #111214; }
.bre-badge--core { background: #fff; color: var(--bre-ink); border: 1px solid var(--bre-ink); }
.bre-badge--new { background: #1D4ED8; color: #fff; }
.bre-badge--used { background: #fff; color: var(--bre-ink); }
.bre-card__body, .bre-job__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bre-card__type { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8A6700; }
.bre-card__title, .bre-job__title { margin: 0; font-family: var(--bre-display); font-weight: 800; font-size: 19px; line-height: 1.25; color: var(--bre-ink); }
.bre-card__title a, .bre-job__title a { color: inherit; text-decoration: none; }
.bre-card__title a:hover, .bre-job__title a:hover { text-decoration: underline; }
.bre-card__meta { font-size: 14px; color: #565961; }
.bre-avail { font-size: 15px; font-weight: 600; color: #8A4B00; }
.bre-avail::before { content: "●"; margin-right: 6px; }
.bre-avail--in_stock { color: #1E6B34; }
.bre-card__foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.bre-card__price { font-weight: 700; color: var(--bre-ink); }
.bre-add .bre-add__on { display: none; }
.bre-add.is-added { background: #fff; color: var(--bre-ink); border-color: var(--bre-ink); }
.bre-add.is-added .bre-add__off { display: none; }
.bre-add.is-added .bre-add__on { display: inline-flex; align-items: center; gap: 6px; }
.bre-empty { background: #fff; border: 1px dashed #A9ACB3; border-radius: var(--bre-radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.bre-empty[hidden] { display: none; }
.bre-empty strong { font-size: 20px; color: var(--bre-ink); }
.bre-empty p { margin: 0; color: var(--bre-muted); }

/* Cart */
.bre-cart { flex: 1 1 340px; max-width: 460px; min-width: 0; box-sizing: border-box; background: var(--bre-ink); color: #fff; border-radius: var(--bre-radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 24px; }
.bre-cart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bre-cart__title { margin: 0; font-family: var(--bre-display); font-weight: 800; font-size: 26px; line-height: 1.15; color: #fff; }
.bre-cart__count { color: #C9CBD0; font-size: 15px; white-space: nowrap; }
.bre-cart [data-bre-cart-body] { display: flex; flex-direction: column; gap: 16px; }
.bre-cart [data-bre-cart-body][hidden] { display: none; }
.bre-cart__empty { margin: 0; padding: 16px; border: 1px dashed var(--bre-line-dark); border-radius: var(--bre-radius); color: #C9CBD0; }
.bre-cart__empty[hidden] { display: none; }
.bre-cart__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bre-cart__lines:empty { display: none; }
.bre-line { background: var(--bre-ink-2); border-radius: var(--bre-radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bre-line__top { display: flex; justify-content: space-between; gap: 12px; }
.bre-line__top > div { display: flex; flex-direction: column; }
.bre-line__top span { font-size: 14px; color: #C9CBD0; }
.bre-icon-btn { width: 44px; height: 44px; flex: none; border: 0; background: transparent; color: #C9CBD0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; }
.bre-icon-btn:hover { color: #fff; background: #2B2D32; }
.bre-qty { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #C9CBD0; }
.bre-qty button { width: 44px; height: 40px; border: 1px solid var(--bre-line-dark); border-radius: 4px; background: transparent; color: #fff; font: inherit; font-size: 20px; cursor: pointer; }
.bre-qty output { min-width: 32px; text-align: center; font-weight: 700; color: #fff; }
.bre-cart__done { background: var(--bre-ink-2); border-radius: var(--bre-radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.bre-cart__done[hidden] { display: none; }
.bre-cart__done strong { font-size: 20px; color: var(--bre-accent); }
.bre-cart__done p { margin: 0; color: #E6E7EA; }
.bre-form--cart .bre-field label, .bre-form--cart .bre-check { color: #fff; }

/* Jobs + teaser */
.bre-jobs { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.bre-job { border: 0; }
.bre-job__body p { margin: 0; color: var(--bre-muted); }
.bre-job__turn { font-weight: 700; color: var(--bre-ink); font-size: 15px; }
.bre-teaser { gap: 8px; }
.bre-teaser a { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--bre-border); border-radius: var(--bre-radius); background: #fff; color: var(--bre-ink); text-decoration: none; }
.bre-teaser a:hover { border-color: var(--bre-ink); }
.bre-teaser__title { font-weight: 700; }
.bre-teaser__meta { font-size: 14px; color: #1E6B34; font-weight: 600; }

@media (max-width: 600px) {
	.bre-form { padding: 22px; }
	.bre-cart { max-width: none; padding: 22px; }
}
.bre-card__ref { margin-top: -4px; font-size: 13px; letter-spacing: .02em; color: #6B6E75; white-space: nowrap; }
