/* ==========================================================================
   Brand Hub theme
   ========================================================================== */

:root {
	--bh-ink: #0f1d17;
	--bh-ink-2: #44544c;
	--bh-ink-3: #75837c;
	--bh-bg: #f5f7f4;
	--bh-card: #ffffff;
	--bh-line: #e3e8e4;
	--bh-accent: #0a7f52;
	--bh-accent-dark: #075c3b;
	--bh-accent-soft: #e3f4ec;
	--bh-lime: #c8f169;
	--bh-sale: #e8463a;
	--bh-indica: #6b4fd8;
	--bh-sativa: #e07a12;
	--bh-hybrid: #0a7f52;
	--bh-radius: 16px;
	--bh-radius-sm: 10px;
	--bh-shadow: 0 1px 2px rgba(15, 29, 23, .06), 0 4px 16px rgba(15, 29, 23, .06);
	--bh-shadow-lg: 0 12px 40px rgba(15, 29, 23, .18);
	--bh-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bh-wrap: 1280px;
	--bh-header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.bh-no-scroll { overflow: hidden; }
body {
	margin: 0;
	font-family: var(--bh-font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--bh-ink);
	background: var(--bh-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bh-accent); text-decoration: none; }
a:hover { color: var(--bh-accent-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--bh-lime); outline-offset: 2px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.bh-skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; }

.bh-wrap { max-width: var(--bh-wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .bh-wrap { padding: 0 24px; } }

.bh-section { padding-top: 40px; padding-bottom: 8px; }
.bh-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.bh-section__head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0; }
.bh-page-title { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 8px 0 20px; }

/* ---------------- Buttons, chips, tags ---------------- */
.bh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 9px 14px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--bh-accent); color: #fff !important; font-weight: 700; font-size: .9rem;
	line-height: 1; white-space: nowrap; transition: background .15s, transform .1s;
}
.bh-btn:hover { background: var(--bh-accent-dark); }
.bh-btn:active { transform: scale(.97); }
.bh-btn--ghost { background: transparent; color: var(--bh-ink) !important; box-shadow: inset 0 0 0 1.5px var(--bh-line); }
.bh-btn--ghost:hover { background: var(--bh-bg); }
.bh-btn--lg { padding: 14px 22px; font-size: 1rem; }
.bh-btn.loading { opacity: .6; pointer-events: none; }
.bh-btn.added::after { content: ""; }
.added_to_cart { display: none !important; } /* toast replaces WooCommerce's inline "View cart" */

.bh-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
	border-radius: 999px; border: 1.5px solid var(--bh-line); background: #fff;
	color: var(--bh-ink); font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap;
	transition: border-color .15s, background .15s, color .15s;
}
.bh-chip span { font-size: .78rem; color: var(--bh-ink-3); font-weight: 600; }
.bh-chip:hover { border-color: var(--bh-ink); color: var(--bh-ink); }
.bh-chip.is-active { background: var(--bh-ink); border-color: var(--bh-ink); color: #fff; }
.bh-chip.is-active span { color: var(--bh-lime); }

.bh-tag {
	display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em; background: var(--bh-bg); color: var(--bh-ink-2);
}
.bh-strain { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; color: var(--bh-ink-2); }
.bh-strain::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bh-hybrid); }
.bh-strain--indica::before { background: var(--bh-indica); }
.bh-strain--sativa::before { background: var(--bh-sativa); }

.bh-link { background: none; border: 0; padding: 0; color: var(--bh-accent); font-weight: 700; cursor: pointer; }

/* ---------------- Header ---------------- */
.bh-header { background: #fff; border-bottom: 1px solid var(--bh-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .bh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bh-header { top: 0; position: relative; } }
.bh-header__row { display: flex; align-items: center; gap: 16px; height: var(--bh-header-h); }
.bh-header__menu { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.bh-logo { display: inline-flex; align-items: center; gap: 10px; color: #1d4a2f; flex-shrink: 0; line-height: 1; }
.bh-logo:hover { color: #1d4a2f; }
.bh-logo__icon { width: 40px; height: 40px; flex-shrink: 0; display: block; }
.bh-logo__text { display: inline-flex; align-items: center; font-weight: 800; font-style: italic; font-size: 1.2rem; }
.bh-logo__word { display: block; height: 24px; width: auto; }
.bh-logo--light .bh-logo__text { color: #f6f0dd; }
.bh-logo__badge { display: block; width: 150px; height: auto; margin: 0 auto 16px; }
@media (max-width: 600px) { .bh-logo__icon { width: 34px; height: 34px; } .bh-logo__word { height: 19px; } }
.bh-logo__mark {
	width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
	background: radial-gradient(circle at 30% 30%, var(--bh-lime) 0 28%, transparent 29%), var(--bh-accent);
}
.bh-logo__mark--lg { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px; display: block; }

.bh-search { position: relative; flex: 1; max-width: 560px; display: flex; align-items: center; }
.bh-search > svg { position: absolute; left: 14px; color: var(--bh-ink-3); pointer-events: none; }
.bh-search input[type="search"] {
	width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px;
	border: 1.5px solid var(--bh-line); background: var(--bh-bg); outline: none;
}
.bh-search input[type="search"]:focus { border-color: var(--bh-accent); background: #fff; }

.bh-cart-link { position: relative; margin-left: auto; display: inline-flex; padding: 10px; border-radius: 999px; color: var(--bh-ink); background: var(--bh-bg); }
.bh-cart-link:hover { color: var(--bh-ink); background: var(--bh-line); }
.bh-cart-count {
	position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 999px; background: var(--bh-accent); color: #fff; font-size: .72rem; font-weight: 800;
	display: grid; place-items: center; border: 2px solid #fff;
}
.bh-cart-count[data-count="0"] { background: var(--bh-ink-3); }
.bh-cart-link.is-bump { animation: bh-bump .45s ease; }
@keyframes bh-bump { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }

.bh-nav { border-top: 1px solid var(--bh-line); }
.bh-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.bh-nav__list::-webkit-scrollbar { display: none; }
.bh-nav__list > li { position: relative; }
.bh-nav__list a { display: block; padding: 11px 12px; color: var(--bh-ink-2); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.bh-nav__list a:hover { color: var(--bh-ink); }
.bh-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 220px;
	background: #fff; border-radius: var(--bh-radius-sm); box-shadow: var(--bh-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 60;
	max-height: 70vh; overflow: auto;
}
.bh-nav li:hover > .sub-menu, .bh-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bh-nav .sub-menu a { padding: 8px 12px; border-radius: 8px; }
.bh-nav .sub-menu a:hover { background: var(--bh-bg); }
@media (min-width: 900px) { .bh-nav__list { overflow: visible; } }

@media (max-width: 899px) {
	.bh-header__menu { display: inline-flex; }
	.bh-header__row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
	.bh-search { order: 5; flex-basis: 100%; max-width: none; }
	.bh-nav { display: none; }
	.bh-menu-open .bh-nav { display: block; }
	.bh-nav__list { flex-direction: column; padding: 8px 0; }
	.bh-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 12px; max-height: none; }
}

/* ---------------- Homepage ---------------- */
.bh-hero {
	background:
		radial-gradient(900px 300px at 85% -10%, rgba(200, 241, 105, .35), transparent 60%),
		linear-gradient(180deg, #0d2a1e, #0f1d17);
	color: #fff; padding: 56px 0 44px;
}
.bh-hero__title { font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 800; max-width: 760px; letter-spacing: -.03em; }
.bh-hero__sub { color: rgba(255, 255, 255, .75); font-size: 1.08rem; max-width: 620px; margin: 0 0 24px; }
.bh-search--hero { max-width: 640px; }
.bh-search--hero input[type="search"] { height: 56px; background: #fff; border-color: transparent; padding-right: 120px; color: var(--bh-ink); }
.bh-search--hero .bh-btn { position: absolute; right: 6px; height: 44px; padding: 0 20px; }
.bh-hero__cats { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bh-hero__cats .bh-chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.bh-hero__cats .bh-chip:hover { background: #fff; color: var(--bh-ink); }

.bh-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.bh-brand-tile {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
	padding: 20px 14px; background: #fff; border-radius: var(--bh-radius); box-shadow: var(--bh-shadow);
	color: var(--bh-ink); transition: transform .15s, box-shadow .15s;
}
.bh-brand-tile:hover { transform: translateY(-3px); box-shadow: var(--bh-shadow-lg); color: var(--bh-ink); }
.bh-brand-tile__logo, .bh-brand-hero__logo {
	width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--bh-accent-soft);
	display: grid; place-items: center; margin-bottom: 8px; font-weight: 800; font-size: 1.8rem; color: var(--bh-accent);
}
.bh-brand-tile__logo img, .bh-brand-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.bh-brand-tile__name { font-weight: 800; }
.bh-brand-tile__count { font-size: .82rem; color: var(--bh-ink-3); }

/* ---------------- Brand hub ---------------- */
.bh-brand-hero { background: #fff; border-bottom: 1px solid var(--bh-line); padding: 28px 0; }
.bh-brand-hero__row { display: flex; gap: 24px; align-items: center; }
.bh-brand-hero__logo { width: 112px; height: 112px; flex-shrink: 0; margin: 0; font-size: 2.6rem; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--bh-line); }
.bh-brand-hero__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; margin: 4px 0 6px; letter-spacing: -.025em; }
.bh-brand-hero__intro { margin: 0 0 12px; color: var(--bh-ink-2); max-width: 760px; }
.bh-brand-hero__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--bh-ink-2); }
.bh-brand-hero__stats strong { color: var(--bh-ink); }
@media (max-width: 640px) {
	.bh-brand-hero__row { flex-direction: column; align-items: flex-start; gap: 14px; }
	.bh-brand-hero__logo { width: 80px; height: 80px; font-size: 2rem; }
}

.bh-crumbs { font-size: .85rem; color: var(--bh-ink-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bh-crumbs a { color: var(--bh-ink-2); }
.bh-crumbs a:hover { color: var(--bh-accent); }
.bh-crumbs__sep { color: var(--bh-line); }

.bh-filters { position: sticky; top: calc(var(--bh-header-h) + 45px); z-index: 40; background: rgba(245, 247, 244, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .2s; }
.admin-bar .bh-filters { top: calc(var(--bh-header-h) + 45px + 32px); }
.bh-filters.is-stuck { box-shadow: 0 6px 18px rgba(15, 29, 23, .08); }
@media (max-width: 899px) { .bh-filters, .admin-bar .bh-filters { top: 0; } .bh-header { position: relative; } }
.bh-filters__row { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.bh-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; }
.bh-chips::-webkit-scrollbar { display: none; }
.bh-filters__tools { display: flex; gap: 8px; flex-shrink: 0; }
.bh-select select, .bh-filter-search input {
	height: 40px; border-radius: 999px; border: 1.5px solid var(--bh-line); background: #fff; outline: none;
}
.bh-select select { padding: 0 34px 0 14px; appearance: none; -webkit-appearance: none; font-weight: 600; font-size: .9rem; cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2344544c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.bh-filter-search { position: relative; display: flex; align-items: center; }
.bh-filter-search svg { position: absolute; left: 12px; color: var(--bh-ink-3); pointer-events: none; }
.bh-filter-search input { width: 180px; padding: 0 14px 0 36px; font-size: .9rem; }
.bh-select select:focus, .bh-filter-search input:focus { border-color: var(--bh-accent); }
@media (max-width: 899px) {
	.bh-filters__row { flex-direction: column; align-items: stretch; gap: 10px; }
	.bh-filters__tools { display: grid; grid-template-columns: 1fr 1fr; }
	.bh-filter-search { grid-column: 1 / -1; order: -1; }
	.bh-filter-search input { width: 100%; }
	.bh-select select { width: 100%; }
}

.bh-listing { padding-top: 8px; padding-bottom: 32px; }
.bh-listing__count { color: var(--bh-ink-3); font-size: .88rem; font-weight: 600; margin: 6px 0 14px; }
.bh-empty { text-align: center; padding: 48px 16px; color: var(--bh-ink-2); background: #fff; border-radius: var(--bh-radius); }

/* ---------------- Product grid + card ---------------- */
.bh-grid, ul.products.bh-grid, .woocommerce ul.products {
	display: grid !important; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none; margin: 0; padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
@media (min-width: 700px) { .bh-grid, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .bh-grid, .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.bh-grid__item { list-style: none; display: flex; }
.bh-grid__item .bh-card { width: 100%; }

.bh-card {
	position: relative; display: flex; flex-direction: column; background: var(--bh-card);
	border-radius: var(--bh-radius); box-shadow: var(--bh-shadow); overflow: hidden;
	transition: transform .18s, box-shadow .18s;
}
.bh-card:hover { transform: translateY(-3px); box-shadow: var(--bh-shadow-lg); }
.bh-card__media { position: relative; display: block; aspect-ratio: 1; background: var(--bh-bg); overflow: hidden; }
.bh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bh-card:hover .bh-card__media img { transform: scale(1.04); }

.bh-card__peek {
	position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; color: #fff; font-size: .84rem; line-height: 1.45;
	background: linear-gradient(180deg, transparent, rgba(15, 29, 23, .88) 45%);
	transform: translateY(100%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 10px;
}
.bh-card__peek-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bh-card__peek-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--bh-lime); }
@media (hover: hover) { .bh-card:hover .bh-card__peek, .bh-card__media:focus-visible .bh-card__peek { transform: none; } }

.bh-flag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; z-index: 2; }
.bh-flag--sale { background: var(--bh-sale); color: #fff; }
.bh-flag--oos { background: var(--bh-ink); color: #fff; left: auto; right: 10px; }

.bh-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.bh-card__tags { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.bh-card__title { font-size: .98rem; font-weight: 700; margin: 2px 0 0; line-height: 1.3; }
.bh-card__title a { color: var(--bh-ink); }
.bh-card__title a:hover { color: var(--bh-accent); }
.bh-card__meta { margin: 0; font-size: .8rem; color: var(--bh-ink-3); }
.bh-card__match { margin: 0; font-size: .78rem; font-weight: 700; color: var(--bh-accent); background: var(--bh-accent-soft); align-self: flex-start; padding: 2px 9px; border-radius: 999px; }
.bh-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.bh-card__price { font-weight: 800; font-size: 1rem; color: var(--bh-ink); }
.bh-card__price del { color: var(--bh-ink-3); font-weight: 500; font-size: .85em; margin-right: 4px; }
.bh-card__price ins { text-decoration: none; color: var(--bh-sale); }
.bh-card__price .woocommerce-Price-amount + .woocommerce-Price-amount { font-weight: 600; }
@media (max-width: 480px) {
	.bh-card__body { padding: 10px 10px 12px; }
	.bh-card__foot { flex-direction: column; align-items: stretch; }
	.bh-card__foot .bh-btn { width: 100%; }
	.bh-card__title { font-size: .9rem; }
}

/* ---------------- About (collapsible description) ---------------- */
.bh-about { background: #fff; border-radius: var(--bh-radius); box-shadow: var(--bh-shadow); margin: 8px 0 48px; }
.bh-about summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
	gap: 16px; padding: 20px 24px; font-weight: 800; font-size: 1.15rem;
}
.bh-about summary::-webkit-details-marker { display: none; }
.bh-about summary svg { flex-shrink: 0; transition: transform .2s; padding: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--bh-bg); }
.bh-about[open] summary svg { transform: rotate(180deg); }
.bh-about__body { padding: 0 24px 24px; border-top: 1px solid var(--bh-line); padding-top: 18px; }

.bh-prose { color: var(--bh-ink-2); max-width: 820px; }
.bh-prose h2 { font-size: 1.35rem; color: var(--bh-ink); margin-top: 1.4em; }
.bh-prose h3 { font-size: 1.1rem; color: var(--bh-ink); margin-top: 1.2em; }
.bh-prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.bh-prose th, .bh-prose td { border: 1px solid var(--bh-line); padding: 8px 12px; text-align: left; }
.bh-prose th { background: var(--bh-bg); color: var(--bh-ink); }

/* ---------------- Quick view drawer ---------------- */
.bh-drawer { position: fixed; inset: 0; z-index: 100; }
.bh-drawer__scrim { position: absolute; inset: 0; background: rgba(15, 29, 23, .5); opacity: 0; transition: opacity .25s; }
.bh-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff;
	box-shadow: var(--bh-shadow-lg); transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
	overflow-y: auto; overscroll-behavior: contain;
}
.bh-drawer.is-open .bh-drawer__scrim { opacity: 1; }
.bh-drawer.is-open .bh-drawer__panel { transform: none; }
.bh-drawer__close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--bh-shadow); display: grid; place-items: center; cursor: pointer; }
@media (max-width: 640px) {
	.bh-drawer__panel { top: auto; height: 92vh; width: 100%; border-radius: 20px 20px 0 0; transform: translateY(100%); }
}

.bh-qv__media { background: var(--bh-bg); aspect-ratio: 4 / 3; overflow: hidden; }
.bh-qv__media img { width: 100%; height: 100%; object-fit: contain; }
.bh-qv__info { padding: 20px 24px 32px; display: flex; flex-direction: column; gap: 10px; }
.bh-qv__brand { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bh-accent); }
.bh-qv__title { font-size: 1.5rem; font-weight: 800; margin: 0; }
.bh-qv__price { font-size: 1.3rem; font-weight: 800; }
.bh-qv__desc { color: var(--bh-ink-2); font-size: .95rem; }
.bh-qv__desc p { margin: 0 0 .6em; }
.bh-qv__more { font-weight: 700; margin-top: 4px; }
.bh-qv-loading { display: grid; place-items: center; height: 60vh; }
.bh-qv-loading span { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--bh-line); border-top-color: var(--bh-accent); animation: bh-spin .7s linear infinite; }
@keyframes bh-spin { to { transform: rotate(360deg); } }
.bh-qv-error { padding: 80px 24px; text-align: center; }

.bh-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0; }
.bh-specs div { background: var(--bh-bg); border-radius: var(--bh-radius-sm); padding: 10px 12px; }
.bh-specs dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bh-ink-3); font-weight: 700; }
.bh-specs dd { margin: 2px 0 0; font-weight: 700; font-size: .92rem; }

/* WooCommerce add-to-cart form (drawer + single product) */
.bh-qv__cart form.cart, .single-product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 0; }
.bh-qv__cart .variations_form, .single-product .variations_form { display: block; }
table.variations { width: 100%; border: 0; margin: 0 0 8px; }
table.variations th, table.variations td { display: block; padding: 0; border: 0; text-align: left; background: none; }
table.variations th label { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--bh-ink-2); }
table.variations td { margin: 6px 0 12px; }
table.variations select { width: 100%; height: 46px; border-radius: var(--bh-radius-sm); border: 1.5px solid var(--bh-line); padding: 0 12px; background: #fff; font-weight: 600; }
.reset_variations { font-size: .85rem; display: inline-block; margin-top: 6px; }
.woocommerce-variation-price { font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.woocommerce-variation-add-to-cart, .single-product form.cart:not(.variations_form) { display: flex; gap: 10px; align-items: center; }
.quantity .qty { width: 72px; height: 48px; border-radius: 999px; border: 1.5px solid var(--bh-line); text-align: center; font-weight: 700; }
.single_add_to_cart_button, .woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button {
	flex: 1; height: 48px; border-radius: 999px !important; border: 0; padding: 0 24px !important;
	background: var(--bh-accent) !important; color: #fff !important; font-weight: 800 !important; cursor: pointer; font-size: 1rem;
}
.single_add_to_cart_button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--bh-accent-dark) !important; }
.single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }
.stock { font-weight: 700; font-size: .9rem; }
.stock.in-stock { color: var(--bh-accent); }

/* ---------------- Toast ---------------- */
.bh-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0;
	background: var(--bh-ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600;
	box-shadow: var(--bh-shadow-lg); display: flex; align-items: center; gap: 10px; transition: .25s; white-space: nowrap;
}
.bh-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.bh-toast.is-error { background: var(--bh-sale); }
.bh-toast a { color: var(--bh-lime); font-weight: 800; }
.bh-toast__ok { width: 18px; height: 18px; border-radius: 50%; background: var(--bh-lime); position: relative; }
.bh-toast__ok::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid var(--bh-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------------- Single product ---------------- */
.bh-woo { padding-top: 20px; padding-bottom: 48px; }
.bh-woo > .bh-crumbs { margin-bottom: 18px; }
.single-product div.product { display: grid; grid-template-columns: 1fr; gap: 28px; position: relative; }
@media (min-width: 900px) { .single-product div.product { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.single-product div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; background: #fff; border-radius: var(--bh-radius); overflow: hidden; box-shadow: var(--bh-shadow); }
.single-product div.product .summary { width: 100% !important; float: none !important; margin: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.single-product .product_title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.single-product .summary .price { font-size: 1.5rem; font-weight: 800; color: var(--bh-ink) !important; margin: 0; }
.single-product .woocommerce-product-details__short-description { color: var(--bh-ink-2); }
.single-product .product_meta { font-size: .88rem; color: var(--bh-ink-3); display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--bh-line); padding-top: 14px; margin-top: 8px; }
.single-product .woocommerce-tabs, .single-product .bh-more, .single-product .up-sells { grid-column: 1 / -1; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 6px; padding: 0 !important; margin: 0 0 16px !important; border-bottom: 1px solid var(--bh-line); overflow-x: auto; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 16px !important; font-weight: 700; color: var(--bh-ink-3) !important; border-bottom: 3px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { color: var(--bh-ink) !important; border-bottom-color: var(--bh-accent); }
.woocommerce-tabs .panel { background: #fff; border-radius: var(--bh-radius); padding: 24px !important; box-shadow: var(--bh-shadow); color: var(--bh-ink-2); }
.woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce-tabs table.shop_attributes { border: 0; width: 100%; }
.woocommerce-tabs table.shop_attributes th, .woocommerce-tabs table.shop_attributes td { padding: 10px 12px; border-bottom: 1px solid var(--bh-line); font-style: normal; }
.woocommerce-tabs table.shop_attributes td p { margin: 0; padding: 0; }
.bh-more { margin-top: 16px; }
.bh-more__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.bh-more__head h2 { margin: 0; font-size: 1.4rem; }
.woocommerce span.onsale { background: var(--bh-sale); border-radius: 999px; min-height: 0; min-width: 0; padding: 4px 12px; line-height: 1.4; font-weight: 800; top: 12px; left: 12px; z-index: 3; }

/* Shop / category archives */
.woocommerce-products-header__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.woocommerce-result-count { color: var(--bh-ink-3); font-size: .9rem; }
.woocommerce-ordering select { height: 40px; border-radius: 999px; border: 1.5px solid var(--bh-line); padding: 0 14px; background: #fff; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: flex; gap: 6px; justify-content: center; margin-top: 24px !important; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: 999px; min-width: 40px; padding: 10px !important; background: #fff; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: var(--bh-radius-sm); border-top-color: var(--bh-accent) !important; background: #fff; }

/* Cart & checkout pages get a white card */
.woocommerce-cart .bh-page-content, .woocommerce-checkout .bh-page-content, .woocommerce-account .bh-page-content { max-width: none; background: #fff; padding: 24px; border-radius: var(--bh-radius); box-shadow: var(--bh-shadow); }

/* ---------------- Footer ---------------- */
.bh-footer { background: var(--bh-ink); color: rgba(255, 255, 255, .7); margin-top: 48px; padding: 48px 0 0; font-size: .92rem; }
.bh-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bh-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.bh-footer__note { max-width: 420px; margin-top: 14px; }
.bh-footer__h { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.bh-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bh-footer__list a { color: rgba(255, 255, 255, .78); }
.bh-footer__list a:hover { color: var(--bh-lime); }
.bh-footer__base { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 18px; padding-bottom: 24px; font-size: .82rem; }

/* ---------------- Age gate ---------------- */
.bh-age { position: fixed; inset: 0; z-index: 200; background: rgba(15, 29, 23, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; }
.bh-age__box { background: #fff; border-radius: 22px; padding: 36px 28px; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--bh-shadow-lg); }
.bh-age__box h2 { font-size: 1.6rem; font-weight: 800; }
.bh-age__box p { color: var(--bh-ink-2); margin: 0 0 22px; }
.bh-age__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Blog */
.bh-posts { display: grid; gap: 16px; }
.bh-post { background: #fff; padding: 20px 24px; border-radius: var(--bh-radius); box-shadow: var(--bh-shadow); }
.bh-article { max-width: 860px; }
.bh-article__meta { color: var(--bh-ink-3); margin-top: -12px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
