

/* Shared UI contracts loaded before page and section owners. */

/* Public button contract. Woo aliases stay intact for plugin behavior. */
.bh-button,
.bh-button:visited,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button,
.woocommerce #respond input#submit {
	--bh-button-gap: 8px;
	--bh-button-min-height: 46px;
	--bh-button-padding: 0 28px;
	--bh-button-radius: var(--bh-radius-control);
	--bh-button-font-size: 0.9rem;
	--bh-button-font-weight: 900;
	--bh-button-letter-spacing: 0;
	--bh-button-transition:
		transform var(--bh-transition-fast),
		box-shadow var(--bh-transition-medium),
		border-color var(--bh-transition-fast),
		background-color var(--bh-transition-fast),
		color var(--bh-transition-fast);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--bh-button-gap);
	box-sizing: border-box;
	min-height: var(--bh-button-min-height);
	padding: var(--bh-button-padding);
	border-radius: var(--bh-button-radius);
	font-size: var(--bh-button-font-size);
	font-weight: var(--bh-button-font-weight);
	letter-spacing: var(--bh-button-letter-spacing);
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: var(--bh-button-transition);
	-webkit-tap-highlight-color: transparent;
}

/* A static highlight replaces the former travelling shimmer/glow. */
.bh-button::before,
.woocommerce a.button::before,
.woocommerce button.button::before,
.woocommerce a.button.alt::before,
.woocommerce button.button.alt::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 48%);
	opacity: 0;
	transition: opacity var(--bh-transition-fast);
	pointer-events: none;
	z-index: -1;
}

.bh-button:hover::before,
.bh-button:focus-visible::before,
.woocommerce a.button:hover::before,
.woocommerce button.button:hover::before,
.woocommerce a.button.alt:hover::before,
.woocommerce button.button.alt:hover::before {
	opacity: 0.8;
}

.bh-button > *,
.woocommerce a.button > *,
.woocommerce button.button > * {
	position: relative;
	z-index: 2;
}

/* Primary: warm BeerHabits action. */
.bh-button-primary,
.bh-button:not(.bh-button-secondary),
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit {
	background: linear-gradient(135deg, var(--bh-amber), #d98c20);
	color: var(--bh-ink);
	border: 1px solid rgba(255, 222, 145, 0.72);
	box-shadow:
		0 8px 20px rgba(0, 0, 0, 0.26),
		inset 0 1px 0 rgba(255, 255, 255, 0.28);
	font-weight: 800;
}

.bh-button-primary:hover,
.bh-button-primary:focus-visible,
.bh-button:not(.bh-button-secondary):hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: linear-gradient(135deg, #ffd46e, var(--bh-amber) 54%, #c9821c);
	border-color: #ffe09a;
	box-shadow:
		0 10px 24px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.38);
	transform: translateY(-1px);
	color: var(--bh-ink);
}

/* Secondary: restrained dark surface with a warm edge. */
a.bh-button.bh-button-secondary,
a.bh-button-secondary,
button.bh-button-secondary,
.bh-button-secondary {
	background: rgba(5, 17, 29, 0.72);
	color: #f7d784;
	border: 1px solid rgba(243, 179, 61, 0.58);
	box-shadow:
		0 8px 20px rgba(0, 0, 0, 0.24),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

a.bh-button.bh-button-secondary:hover,
a.bh-button-secondary:hover,
.bh-button-secondary:focus-visible,
.bh-button-secondary:hover {
	background: rgba(14, 35, 49, 0.9);
	border-color: rgba(255, 217, 122, 0.9);
	box-shadow:
		0 10px 24px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	transform: translateY(-1px);
	color: #ffe5a3;
}

/* Secondary action over the shared hero media. */
.bh-site-hero .bh-button-secondary {
	background: rgba(3, 14, 24, 0.78);
	border-color: rgba(243, 179, 61, 0.62);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.bh-site-hero .bh-button-secondary:hover {
	background: rgba(10, 31, 45, 0.94);
	border-color: rgba(255, 218, 124, 0.92);
}

/* Keyboard, pressed, disabled and icon states. */
.bh-button:focus-visible {
	outline: 2px solid var(--bh-amber);
	outline-offset: 3px;
}

.bh-button-primary:active,
.bh-button:not(.bh-button-secondary):active,
a.bh-button.bh-button-secondary:active,
a.bh-button-secondary:active,
button.bh-button-secondary:active,
.bh-button-secondary:active {
	transform: translateY(1px);
}

.bh-button:disabled,
.bh-button[disabled],
.bh-button[aria-disabled="true"],
.bh-button.disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.bh-button__label,
.bh-button__icon {
	position: relative;
	z-index: 1;
}

.bh-button__icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform var(--bh-transition-fast);
}

.bh-button:hover .bh-button__icon,
.bh-button:focus-visible .bh-button__icon {
	transform: translateX(3px);
}

@media (max-width: 640px) {
	.bh-button,
	.bh-button:visited,
	.woocommerce a.button,
	.woocommerce button.button,
	.woocommerce input.button {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bh-button,
	.bh-button::before,
	.bh-button__icon {
		transition-duration: 0.01ms;
	}

	.bh-button-primary:hover,
	.bh-button-primary:focus-visible,
	.bh-button-primary:active,
	.bh-button:not(.bh-button-secondary):hover,
	.bh-button:not(.bh-button-secondary):focus-visible,
	.bh-button:not(.bh-button-secondary):active,
	a.bh-button.bh-button-secondary:hover,
	a.bh-button.bh-button-secondary:focus-visible,
	a.bh-button.bh-button-secondary:active,
	button.bh-button-secondary:hover,
	button.bh-button-secondary:focus-visible,
	button.bh-button-secondary:active,
	.bh-button:hover .bh-button__icon,
	.bh-button:focus-visible .bh-button__icon {
		transform: none;
	}
}

.bh-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--bh-icon-md);
	height: var(--bh-icon-md);
	line-height: 1;
	flex: 0 0 auto;
	color: currentColor;
}

.bh-icon svg,
.bh-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}




.bh-card {
	position: relative;
	background: var(--bh-grad-glass, linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%));
	border: 1px solid var(--bh-line, rgba(255,255,255,0.08));
	border-radius: var(--bh-radius-lg, 26px);
	padding: 28px 24px;
	overflow: hidden;
	transition:
		transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
		box-shadow 0.28s ease,
		border-color 0.28s ease;
}

.bh-card:hover {
	transform: translateY(-4px);
	border-color: var(--bh-line-strong, rgba(255,255,255,0.15));
	box-shadow: 0 18px 48px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Subtle shimmer on hover via ::before */
.bh-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% -20%, rgba(15, 139, 203, 0.08) 0%, transparent 60%);
	opacity: 0;
	transition: opacity 0.32s ease;
	pointer-events: none;
}

.bh-card:hover::before {
	opacity: 1;
}








.bh-panel {
	position: relative;
	overflow: hidden;
	padding: 30px;
	border: 1px solid rgba(23, 101, 138, 0.12);
	border-radius: var(--bh-radius-lg);
	background:
		radial-gradient(circle at top right, rgba(92, 197, 255, 0.14), transparent 34%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44));
	box-shadow: var(--bh-shadow-soft);
}

.bh-panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 28px;
	width: 124px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--bh-accent), rgba(255, 255, 255, 0));
}

.bh-product-card {
	display: grid;
	grid-template-rows: auto 1fr;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(23, 101, 138, 0.12);
	border-radius: 26px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44));
	box-shadow: var(--bh-shadow-soft);
}

.bh-product-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	min-height: 0;
	padding: 0;
	overflow: hidden;
	background:
		radial-gradient(circle at top, rgba(130, 205, 231, 0.3), transparent 52%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(233, 230, 223, 0.6));
}

.bh-product-media img {
	width: 100%;
	height: auto;
	max-height: 190px;
	object-fit: contain;
}

.bh-product-media img.bh-product-photo {
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
}

.bh-product-media::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 46%;
	background: linear-gradient(180deg, rgba(246, 239, 229, 0), rgba(246, 239, 229, 0.34));
	pointer-events: none;
}

.bh-product-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.bh-product-kicker {
	margin-bottom: 10px;
	color: var(--bh-accent-deep);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bh-product-title {
	margin: 0 0 12px;
	text-wrap: balance;
}

.bh-product-copy {
	margin: 0;
	color: var(--bh-text-soft);
	line-height: 1.7;
}



.bh-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	background: rgba(15, 139, 203, 0.10);
	border: 1px solid rgba(15, 139, 203, 0.22);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bh-accent-strong);
}


/* Shared action and primary-button contracts. */
.bh-hero-actions,
.bh-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 640px) {
	.bh-hero-actions,
	.bh-cta-actions {
		display: grid;
		grid-template-columns: 1fr;
	}
}

/* Shared form-control contract. Header search remains owned by header.css. */
body input:not([type="checkbox"]):not([type="radio"]):not(:where(.bh-header-search__input, .bh-mobile-search-form__input)),
body textarea,
body select,
body .wc-block-components-text-input input,
body .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	border-color: rgba(92, 197, 255, 0.18);
	background: rgba(8, 29, 46, 0.74);
	color: var(--bh-text-strong);
	box-shadow: none;
}

body:not(.wp-admin) input[type="text"],
body:not(.wp-admin) input[type="email"],
body:not(.wp-admin) input[type="url"],
body:not(.wp-admin) input[type="password"],
body:not(.wp-admin) input[type="search"]:not(.bh-header-search__input):not(.bh-mobile-search-form__input),
body:not(.wp-admin) input[type="number"],
body:not(.wp-admin) input[type="tel"],
body:not(.wp-admin) input[type="date"],
body:not(.wp-admin) input[type="time"],
body:not(.wp-admin) textarea,
body:not(.wp-admin) select {
	border-color: var(--bh-surface-border);
	background-color: var(--bh-surface-control);
	color: var(--bh-text-strong, #fff);
	box-shadow: none;
}

body:not(.wp-admin) input:focus:not(:where(.bh-header-search__input, .bh-mobile-search-form__input)),
body:not(.wp-admin) textarea:focus,
body:not(.wp-admin) select:focus,
body:not(.wp-admin) .woocommerce form .form-row input.input-text:focus,
body:not(.wp-admin) .woocommerce form .form-row textarea:focus,
body:not(.wp-admin) .woocommerce form .form-row select:focus {
	border-color: rgba(92, 197, 255, 0.58);
	background-color: var(--bh-surface-control-hover);
	color: #fff;
	box-shadow: 0 0 0 3px rgba(26, 160, 224, 0.14);
}

body:not(.wp-admin) input:not(:where(.bh-header-search__input, .bh-mobile-search-form__input))::placeholder,
body:not(.wp-admin) textarea::placeholder {
	color: rgba(255, 255, 255, 0.46);
}

body:not(.wp-admin) select option {
	background: #0b2234;
	color: #fff;
}

body:not(.wp-admin) input:-webkit-autofill,
body:not(.wp-admin) input:-webkit-autofill:hover,
body:not(.wp-admin) input:-webkit-autofill:focus {
	-webkit-text-fill-color: #fff !important;
	box-shadow: 0 0 0 1000px #0b2234 inset !important;
	caret-color: #fff;
}

/* Shared panel and current product-card contract. */
.bh-panel,
.bh-card{
	border-radius: var(--bh-radius-card);
}

body .bh-panel,
body .bh-card,
body .bh-legal-card,
body .bh-legal-toc,
body .wp-block-group{
	border-color: rgba(92, 197, 255, 0.14) !important;
	background: linear-gradient(180deg, rgba(18, 50, 72, 0.84), rgba(8, 28, 44, 0.92)) !important;
	color: var(--bh-text-soft) !important;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.bh-product-card,
.woocommerce ul.products li.product.bh-product-card {
	border: 1px solid rgba(92, 197, 255, 0.12);
	border-radius: var(--bh-radius-card);
	background: linear-gradient(180deg, rgba(18, 50, 72, 0.94), rgba(9, 28, 44, 0.98));
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
	color: rgba(255, 255, 255, 0.76);
}

.bh-product-card__body {
	padding: 14px 6px 4px;
}

body .bh-product-card__cat {
	font-size: 0.7rem;
	letter-spacing: 0;
	color: var(--bh-accent-strong);
	opacity: 0.86;
}

body .bh-product-card__title,
body .bh-product-card__title a,
body .bh-product-title,
body .bh-product-title a,
body .woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--bh-font-display);
	font-size: var(--bh-type-card-title);
	font-weight: var(--bh-weight-display);
	font-style: normal;
	line-height: var(--bh-leading-card-title);
	letter-spacing: 0;
	color: #fff;
	text-transform: none;
}

body .bh-product-card__desc {
	min-height: 42px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.64);
}

body .bh-product-card__price,
body .bh-product-card__price .amount {
	color: #fff;
	font-size: 0.96rem;
}

.bh-product-card__actions {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	padding: 4px;
	gap: 4px;
	border-radius: 14px;
	background: rgba(7, 24, 39, 0.62);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.bh-product-card__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	min-width: 42px;
	min-height: 42px;
	padding: 0;
	border: 0;
	border-radius: 11px;
	color: var(--bh-white);
	text-decoration: none;
	transition: transform var(--bh-transition-fast), background-color var(--bh-transition-fast), color var(--bh-transition-fast), box-shadow var(--bh-transition-fast);
}

.bh-product-card__action--cart {
	background: linear-gradient(135deg, var(--bh-amber), #d98c20);
	color: var(--bh-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bh-product-card__action--view {
	background: rgba(26, 160, 224, 0.13);
	color: var(--bh-accent-light);
}

.bh-product-card__action:hover,
.bh-product-card__action:focus-visible {
	transform: translateY(-2px);
}

.bh-product-card__action--cart:hover,
.bh-product-card__action--cart:focus-visible {
	background: linear-gradient(135deg, #ffc04d, var(--bh-amber));
	color: var(--bh-ink);
	box-shadow: 0 8px 20px rgba(240, 165, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.bh-product-card__action--view:hover,
.bh-product-card__action--view:focus-visible {
	background: rgba(26, 160, 224, 0.22);
	color: var(--bh-white);
}

.bh-product-card__action-icon {
	display: block;
	width: 19px;
	height: 19px;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bh-product-card__actions > .added_to_cart {
	display: none;
}

body .bh-product-card .bh-button,
body .bh-product-card .button,
body .bh-bestseller-card__btn {
	min-height: 36px;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 0.74rem;
	line-height: 1;
	white-space: normal;
}

.bh-badge,
.bh-product-media{
	border-color: var(--bh-surface-border);
	background-color: var(--bh-surface-panel-soft);
}

/* WooCommerce notices — shared default. Needed on Product/Cart/Checkout/
   Account; only cart.css has a page-specific override (higher specificity,
   wins there intentionally). Moved from shop.css, which had no business
   owning something that renders on non-shop pages too. */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	border-color: var(--bh-surface-border);
	background-color: var(--bh-surface-panel-soft);
	color: var(--bh-text, rgba(255, 255, 255, 0.82));
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	color: var(--bh-accent-strong, var(--bh-accent-strong));
}

/* WooCommerce pagination — shared between the shop archive loop and
   single-product review pagination. Moved from shop.css. */
.woocommerce-pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}
.woocommerce-pagination ul {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 600;
	border-color: var(--bh-surface-border);
	background-color: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: all 0.18s;
}
.woocommerce-pagination ul li span.current {
	background: var(--bh-accent, var(--bh-accent-deep));
	border-color: var(--bh-accent, var(--bh-accent-deep));
	color: var(--bh-white);
}
.woocommerce-pagination ul li a:hover {
	border-color: var(--bh-accent, var(--bh-accent));
	color: var(--bh-accent, var(--bh-accent));
	background: rgba(26, 160, 224, 0.08);
}









@media (max-width: 768px) {

}

@media (prefers-reduced-motion: reduce) {

}
