/**
 * 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: #f4f1e9;
	--hhm-store-panel: #fffdf8;
	--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);
}

/* The commerce shell remains the same dark identity on every template. */
body.hhm-site:not(.hhm-front-page) .hhm-commerce-utility {
	border-color: #2d3137;
	background: #0d0f12;
	color: #aeb1b5;
}
body.hhm-site:not(.hhm-front-page) .hhm-commerce-utility a { color: #c6c8ca; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-utility a:hover { color: #e5cc8c; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-header {
	border-color: #30343b;
	background: #0f1114;
	color: #f2f0ea;
}
body.hhm-site:not(.hhm-front-page) .hhm-commerce-icon,
body.hhm-site:not(.hhm-front-page) .hhm-commerce-actions__item { color: #f2f0ea; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-icon:hover,
body.hhm-site:not(.hhm-front-page) .hhm-commerce-actions__item:hover { background: #1d2025; color: #e8d59f; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-actions__item small { color: #94979d; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-cart__count { border-color: #0f1114; background: #cda957; color: #17140d; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search__field { border-color: #383c44; background: #191c21; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search__field:focus-within { border-color: #8f6d2e; box-shadow: 0 0 0 3px rgba(205, 169, 87, .11); }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search__field > svg { color: #92969c; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search__field input[type="search"] { color: #f2f0ea !important; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search__field input::placeholder { color: #8f939a; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search__submit { background: #cda957 !important; color: #17140e !important; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-nav { border-color: #30343b; background: #121418; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-nav__catalog { border-right-color: #403824; background: #1c1b18 !important; color: #e8d59f !important; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-nav__links a,
body.hhm-site:not(.hhm-front-page) .hhm-commerce-nav__links button { background: transparent !important; color: #d0cfca !important; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-nav__links a:hover,
body.hhm-site:not(.hhm-front-page) .hhm-commerce-nav__links button:hover,
body.hhm-site:not(.hhm-front-page) .hhm-commerce-nav__trade { color: #e8d59f !important; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search__results {
	border-color: #30343b;
	background: #171a1f;
	color: #f2f0ea;
	box-shadow: 0 22px 60px rgba(0, 0, 0, .45);
}
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search-result { border-color: #30343a; background: #171a1f; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search-result:hover,
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search-result[aria-selected="true"] { background: #23272d; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search-result__name { color: #f2f0ea; }
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search__status,
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search-result__meta,
body.hhm-site:not(.hhm-front-page) .hhm-commerce-search-result__category { color: #a8aaad; }

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(185, 145, 67, .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;
}

.hhm-brand-mark {
	display: inline-grid;
	place-items: center;
	box-sizing: border-box;
	max-width: 100%;
	border: 1px solid transparent;
	border-radius: 7px;
	overflow: hidden;
}

.hhm-brand-mark--surface-light {
	border-color: #ded9cf;
	background: #f8f6f0;
	color: #282b2e;
}

.hhm-brand-mark--surface-dark {
	border-color: #3a3e43;
	background: #22262a;
	color: #f5f1e8;
}

.hhm-brand-mark img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	object-fit: contain !important;
	object-position: center center;
	filter: none !important;
	transform: none !important;
}

.hhm-brand-mark.is-low-resolution img {
	width: auto;
	max-width: 78%;
	height: auto;
	max-height: 72%;
}

.hhm-brand-mark__fallback {
	overflow: hidden;
	max-width: 100%;
	font-size: .72rem;
	font-weight: 780;
	letter-spacing: .01em;
	line-height: 1.15;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hhm-brand-mark--card { width: 104px; height: 34px; padding: 6px 9px; }
.hhm-brand-mark--directory { width: 164px; height: 74px; padding: 12px 18px; }
.hhm-brand-mark--menu { width: 92px; height: 34px; padding: 5px 8px; }
.hhm-brand-mark--search { width: 88px; height: 30px; padding: 5px 8px; }
.hhm-brand-mark--product { width: 154px; height: 58px; padding: 9px 14px; }

.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;
	}
}
