/**
 * Shared Horeca Hut storefront system.
 * Page-group styles are split into conditional files in later phases.
 */

:root {
	--hhm-store-ink: #171a1d;
	--hhm-store-ink-soft: #5d6368;
	--hhm-store-paper: #f4f3ee;
	--hhm-store-panel: #fdfdfa;
	--hhm-store-dark: #181b1f;
	--hhm-store-dark-soft: #24282d;
	--hhm-store-gold: #b99143;
	--hhm-store-gold-soft: #d7bc7b;
	--hhm-store-line: #d9d3c8;
	--hhm-store-line-dark: #3c4045;
	--hhm-store-success: #15735f;
	--hhm-store-warning: #94661d;
	--hhm-store-danger: #a44747;
	--hhm-store-focus: #bd8f35;
	--hhm-store-radius-sm: 8px;
	--hhm-store-radius: 14px;
	--hhm-store-radius-lg: 22px;
	--hhm-store-shadow: 0 18px 55px rgba(20, 23, 26, .09);
}

body.hhm-site {
	background: var(--hhm-store-paper);
	color: var(--hhm-store-ink);
}


body.hhm-site :where(button, input, select, textarea, a):focus-visible {
	outline: 3px solid color-mix(in srgb, var(--hhm-store-focus) 70%, white);
	outline-offset: 3px;
}

body.hhm-site :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea) {
	min-height: 48px;
	border: 1px solid var(--hhm-store-line);
	border-radius: var(--hhm-store-radius-sm);
	background: #fff;
	color: var(--hhm-store-ink);
	box-shadow: none;
}

body.hhm-site :where(input, select, textarea):focus {
	border-color: var(--hhm-store-gold);
	box-shadow: 0 0 0 3px rgba(212, 175, 55, .15);
}

body.hhm-site :where(.button, button.button, input.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button) {
	min-height: 44px;
	border: 1px solid var(--hhm-store-ink);
	border-radius: var(--hhm-store-radius-sm);
	background: var(--hhm-store-ink);
	color: #fff;
	font-weight: 760;
	transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

body.hhm-site :where(.button, button.button, input.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button):hover {
	border-color: var(--hhm-store-gold);
	background: var(--hhm-store-gold);
	color: #171a1d;
	transform: translateY(-1px);
}

body.hhm-site :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice) {
	margin: 20px auto;
	padding: 16px 18px 16px 54px;
	border: 1px solid var(--hhm-store-line);
	border-radius: var(--hhm-store-radius);
	background: var(--hhm-store-panel);
	color: var(--hhm-store-ink);
	box-shadow: 0 8px 24px rgba(20, 23, 26, .06);
}

body.hhm-site .woocommerce-message { border-left: 4px solid var(--hhm-store-success); }
body.hhm-site .woocommerce-info { border-left: 4px solid var(--hhm-store-gold); }
body.hhm-site .woocommerce-error { border-left: 4px solid var(--hhm-store-danger); }

.hhm-brand-mark-link {
	display: inline-flex;
	max-width: 100%;
	color: inherit;
	text-decoration: none;
}

/* Height-driven chip: the logo keeps its own aspect ratio (never cropped,
   never squeezed) and the chip hugs it. Widths come only from max-width caps. */
.hhm-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	max-width: 100%;
	border: 1px solid transparent;
	border-radius: 7px;
}

.hhm-brand-mark--surface-light {
	border-color: #ded9cf;
	background: #f8f6f0;
	color: #282b2e;
}

.hhm-brand-mark--surface-dark {
	border-color: #3a3e43;
	background: #181b21;
	color: #f5f4f0;
}

.hhm-brand-mark img {
	display: block;
	width: auto;
	height: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	object-fit: contain !important;
	object-position: center center;
	filter: none !important;
	transform: none !important;
}

.hhm-brand-mark__fallback {
	overflow: hidden;
	max-width: 100%;
	font-size: .72rem;
	font-weight: 780;
	letter-spacing: .04em;
	line-height: 1.15;
	text-transform: uppercase;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hhm-brand-mark--card { height: 34px; max-width: 128px; padding: 5px 10px; }
.hhm-brand-mark--directory { height: 74px; max-width: 186px; padding: 11px 18px; }
.hhm-brand-mark--menu { height: 34px; max-width: 118px; padding: 5px 10px; }
.hhm-brand-mark--search { height: 30px; max-width: 108px; padding: 4px 9px; }
.hhm-brand-mark--product { height: 58px; max-width: 178px; padding: 8px 14px; }

/* Text fallbacks don't need a fixed height frame, just chip proportions. */
.hhm-brand-mark.has-text { height: auto; min-height: 0; padding-top: 6px; padding-bottom: 6px; }

.hhm-commerce-mega__brand-grid .hhm-brand-mark,
.hhm-brands-menu__grid .hhm-brand-mark {
	width: 100%;
	max-width: 106px;
	height: 42px;
}

.hhm-commerce-mega__brand-grid .hhm-brand-mark img,
.hhm-brands-menu__grid .hhm-brand-mark img,
.hhm-brand-featured .hhm-brand-mark img {
	width: 100%;
	height: 100%;
	object-fit: contain !important;
	filter: none !important;
}

.hhm-brand-featured .hhm-brand-mark {
	width: min(100%, 164px);
	height: 74px;
}

.hhm-product-whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 42px;
	min-height: 42px;
	padding: 9px 11px;
	border: 1px solid #bdb6a9;
	border-radius: 8px;
	background: transparent;
	color: #35393d;
	font-size: .72rem;
	font-weight: 760;
	line-height: 1;
	text-decoration: none;
}

.hhm-product-whatsapp svg { width: 17px; height: 17px; color: var(--hhm-store-gold); }
.hhm-product-whatsapp:hover { border-color: var(--hhm-store-gold); background: #f3ead6; color: #272a2d; }

.hhm-variable-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 2px;
}

.hhm-variable-preview__label {
	flex: 1 0 100%;
	color: var(--hhm-store-ink-soft);
	font-size: .66rem;
	font-weight: 700;
}

.hhm-variable-preview button {
	min-width: 38px;
	min-height: 32px;
	padding: 6px 9px;
	border: 1px solid #c9c3b7;
	border-radius: 999px;
	background: #fff;
	color: var(--hhm-store-ink);
	font-size: .66rem;
	font-weight: 760;
	line-height: 1;
}

.hhm-variable-preview button:hover,
.hhm-variable-preview button.is-selected {
	border-color: var(--hhm-store-ink);
	background: var(--hhm-store-ink);
	color: #fff;
}

@media (max-width: 767px) {
	.hhm-brand-mark--directory { width: 136px; height: 62px; }
	.hhm-product-whatsapp { min-height: 44px; }
	.hhm-variable-preview button { min-height: 38px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	body.hhm-site *,
	body.hhm-site *::before,
	body.hhm-site *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
