/* ==========================================================================
   HME chrome: announcement bar, header, navigation, footer, shared UI bits
   ========================================================================== */
:root {
	--hme-gold-text: #86642A;          /* gold tuned for AA contrast on cream */
	--hme-ease: cubic-bezier(.2,.7,.2,1);
}

/* Focus styles (global UI) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Shared eyebrow (small letter-spaced gold caps) */
.hme-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--hme-gold-text);
	margin: 0 0 .9rem;
	line-height: 1.4;
}
.hme-eyebrow--lined {
	display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.hme-eyebrow--lined::before,
.hme-eyebrow--lined::after {
	content: ""; width: 3rem; height: 1px; background: var(--wp--preset--color--gold);
}

/* ---------- Announcement bar ---------- */
.hme-topbar {
	background: var(--wp--preset--color--olive-900);
	color: var(--wp--preset--color--cream);
	font-size: 0.8125rem;
	font-style: italic;
	letter-spacing: .02em;
}
.hme-topbar__inner { padding-block: .55rem; gap: 1rem; }
.hme-topbar p { margin: 0; line-height: 1.4; }
.hme-topbar__msg { display: flex; align-items: center; gap: .55rem; }
.hme-topbar__msg::before {
	content: ""; width: 22px; height: 11px; flex: none;
	background: url(../img/olive-branch-gold.svg) center/contain no-repeat;
}
.hme-topbar .hme-dot { color: var(--wp--preset--color--gold-light); }
.hme-topbar__ship a {
	color: var(--wp--preset--color--cream);
	text-decoration: none;
	display: inline-flex; align-items: center; gap: .5rem;
}
.hme-topbar__ship a::before {
	content: ""; width: 18px; height: 18px; flex: none;
	background: var(--wp--preset--color--gold-light);
	-webkit-mask: url(../img/ui-truck.svg) center/contain no-repeat;
	mask: url(../img/ui-truck.svg) center/contain no-repeat;
}
.hme-topbar__ship a:hover { color: var(--wp--preset--color--gold-light); }

/* ---------- Header ---------- */
.hme-site-header { position: relative; z-index: 50; }
.hme-header {
	background: var(--wp--preset--color--paper);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.hme-header__row { padding-block: .85rem; gap: 1.5rem; min-height: 84px; }

/* Logo */
.hme-logo {
	display: inline-flex; flex-direction: column; align-items: center;
	text-decoration: none; color: var(--wp--preset--color--olive-900);
	line-height: 1; flex: none;
}
.hme-logo:hover { color: var(--wp--preset--color--olive-700); }
.hme-logo__mark { width: 40px; height: 20px; display: block; margin-bottom: 2px; }
.hme-logo__name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	font-size: 1.65rem;
	letter-spacing: .005em;
	white-space: nowrap;
}
.hme-logo__year {
	display: flex; align-items: center; gap: .6rem;
	margin-top: .45rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: .6875rem; font-weight: 600;
	letter-spacing: .32em; padding-left: .32em;
	color: var(--hme-gold-text);
}
.hme-logo__year::before,
.hme-logo__year::after { content: ""; width: 1.6rem; height: 1px; background: var(--wp--preset--color--gold); }

/* Navigation (desktop) */
.hme-header .hme-nav { flex: 1 1 auto; font-size: 1rem; }
.hme-header .hme-nav .wp-block-navigation__container { gap: 2.4rem; }
.hme-header .hme-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	padding-block: .35rem;
	position: relative;
}
.hme-header .hme-nav > .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: var(--wp--preset--color--gold);
	transform: scaleX(0); transform-origin: left; transition: transform .25s var(--hme-ease);
}
.hme-header .hme-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after,
.hme-header .hme-nav .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content::after,
.hme-header .hme-nav .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.hme-header .hme-nav .current-menu-item > .wp-block-navigation-item__content,
.hme-header .hme-nav .current-menu-ancestor > .wp-block-navigation-item__content { color: var(--wp--preset--color--olive-900); }
.hme-header .hme-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--olive-700); }
.hme-header .hme-nav .wp-block-navigation__submenu-icon { margin-left: .3rem; width: .7em; height: .7em; }

/* Dropdown */
.hme-header .hme-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--paper) !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 6px;
	box-shadow: 0 12px 32px rgba(46,58,27,.12);
	padding: .5rem 0 !important;
	min-width: 220px !important;
	top: calc(100% + .4rem) !important;
}
.hme-header .hme-nav .wp-block-navigation__submenu-container::before {
	content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; /* hover bridge */
}
.hme-header .hme-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .55rem 1.2rem !important;
	font-size: .9375rem;
	display: block; width: 100%;
}
.hme-header .hme-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--olive-900);
}

/* Tools (search, account, cart) */
.hme-header__tools {
	gap: .35rem !important; flex: none;
	padding-left: 1.5rem;
	border-left: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--olive-900);
}
.hme-header__tools > * { margin: 0 !important; }
.hme-header__tools .wp-block-search__button,
.hme-header__tools .wc-block-customer-account a,
.hme-header__tools .wc-block-mini-cart__button {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; padding: 0 !important;
	background: transparent !important;
	color: var(--wp--preset--color--olive-900) !important;
	border: 0 !important; border-radius: 50%;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .2s;
}
.hme-header__tools .wp-block-search__button:hover,
.hme-header__tools .wc-block-customer-account a:hover,
.hme-header__tools .wc-block-mini-cart__button:hover { background: var(--wp--preset--color--cream) !important; }
.hme-header__tools svg { width: 24px; height: 24px; }
.hme-header__tools .wp-block-search__button svg { fill: currentColor; width: 26px; height: 26px; }
.hme-header__tools .wc-block-mini-cart__icon { width: 26px; height: 26px; }
.hme-header__tools .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--gold) !important;
	color: #fff !important;
	border: 0 !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: .65rem; font-weight: 600;
	min-width: 18px; height: 18px;
}
.hme-header__tools .wc-block-mini-cart__amount { display: none; }

/* Button-only search expands into a field */
.hme-search { position: relative; }
.hme-search .wp-block-search__inside-wrapper { border: 0 !important; padding: 0 !important; background: transparent; }
.hme-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
	position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: min(320px, 70vw) !important;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(46,58,27,.12);
	padding: 0 0 0 1rem !important;
	z-index: 5;
}
.hme-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	border: 0; background: transparent; font-family: var(--wp--preset--font-family--body);
	font-size: .95rem; color: var(--wp--preset--color--ink); min-width: 0;
}
.hme-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input:focus { outline: none; }

/* ---------- Mobile header ---------- */
@media (max-width: 899px) {
	.hme-topbar__msg { display: none; }
	.hme-topbar__inner { justify-content: center !important; }
	.hme-header__row { min-height: 68px; padding-block: .6rem; gap: .5rem; }
	.hme-header .hme-logo__name { font-size: 1.3rem; }
	.hme-header .hme-logo__mark { width: 32px; height: 16px; }
	.hme-header .hme-logo__year { margin-top: .3rem; font-size: .625rem; }
	.hme-header .hme-logo__year::before, .hme-header .hme-logo__year::after { width: 1.1rem; }
	.hme-header .hme-nav { order: 3; flex: none; }
	.hme-header__tools { order: 2; margin-left: auto !important; padding-left: 0; border-left: 0; gap: 0 !important; }
	.hme-header__tools .wp-block-search__button,
	.hme-header__tools .wc-block-customer-account a,
	.hme-header__tools .wc-block-mini-cart__button { width: 38px; height: 38px; }
	.hme-header .wp-block-navigation__responsive-container-open {
		width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
		color: var(--wp--preset--color--olive-900); border-radius: 50%;
	}
	.hme-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
}
@media (max-width: 380px) {
	.hme-header .hme-logo__name { font-size: 1.12rem; }
	.hme-header__tools .wp-block-search__button,
	.hme-header__tools .wc-block-customer-account a,
	.hme-header__tools .wc-block-mini-cart__button { width: 34px; height: 34px; }
}

/* Overlay menu */
.hme-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--paper) !important;
	color: var(--wp--preset--color--olive-900) !important;
	padding: 1.5rem 1.75rem 2.5rem !important;
}
.hme-header .wp-block-navigation__responsive-container.is-menu-open::after {
	content: ""; position: absolute; right: -40px; bottom: 30px; width: 300px; height: 190px; opacity: .22;
	background: url(../img/branch-large.svg) center/contain no-repeat; transform: rotate(-8deg); pointer-events: none;
}
.hme-header .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem !important; align-items: flex-start !important;
}
.hme-header .is-menu-open .wp-block-navigation__container {
	gap: 0 !important; width: 100%; align-items: stretch !important;
}
.hme-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	border-bottom: 1px solid var(--wp--preset--color--line); width: 100%;
	align-items: flex-start !important;
}
.hme-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.6rem; padding: .85rem 0 !important; color: var(--wp--preset--color--olive-900);
}
.hme-header .is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--hme-gold-text) !important; }
.hme-header .is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important; box-shadow: none !important; background: transparent !important;
	padding: 0 0 1rem .1rem !important; min-width: 0 !important;
	display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1.25rem; width: 100% !important; align-self: stretch; box-sizing: border-box;
}
.hme-header .is-menu-open .wp-block-navigation__submenu-container::before { display: none; }
.hme-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .3rem 0 !important; font-size: 1rem; color: var(--wp--preset--color--muted); background: none !important;
}
.hme-header .wp-block-navigation__responsive-container-close { top: 1.4rem !important; right: 1.4rem !important; color: var(--wp--preset--color--olive-900); }
.hme-header .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.hme-footer {
	background: var(--wp--preset--color--paper);
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink);
	font-size: .9375rem;
	padding-top: 4rem;
	position: relative;
	overflow: hidden;
}
.hme-footer__cols { gap: 0 !important; margin-bottom: 3rem !important; }
.hme-footer__cols > .wp-block-column { padding: 0 1.75rem; }
.hme-footer__cols > .wp-block-column + .wp-block-column { border-left: 1px solid var(--wp--preset--color--line); }
.hme-footer__cols > .wp-block-column:first-child { padding-left: 0; }
.hme-footer__cols > .wp-block-column:last-child { padding-right: 0; }
.hme-footer__brand { text-align: center; }
.hme-footer .hme-logo--footer .hme-logo__name { font-size: 1.5rem; }
.hme-footer__about {
	margin: 1.25rem auto 0; max-width: 18rem;
	font-size: .9rem; font-style: italic; color: var(--wp--preset--color--muted); line-height: 1.6;
}
.hme-footer__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.15rem !important; font-weight: 500;
	color: var(--wp--preset--color--olive-900);
	margin: 0 0 1.1rem !important;
}
.hme-footer__links { list-style: none; padding: 0; margin: 0; }
.hme-footer__links li { margin: 0 0 .55rem; line-height: 1.45; }
.hme-footer__links a {
	color: var(--wp--preset--color--muted); text-decoration: none;
	transition: color .2s;
}
.hme-footer__links a:hover { color: var(--wp--preset--color--olive-900); text-decoration: underline; text-decoration-color: var(--wp--preset--color--gold); text-underline-offset: 3px; }
.hme-ci { display: flex; gap: .65rem; align-items: flex-start; color: var(--wp--preset--color--muted); }
.hme-ci::before {
	content: ""; width: 18px; height: 18px; flex: none; margin-top: .15rem;
	background: var(--wp--preset--color--olive-700);
	-webkit-mask: var(--hme-ci) center/contain no-repeat; mask: var(--hme-ci) center/contain no-repeat;
}
.hme-ci--phone { --hme-ci: url(../img/ui-phone.svg); }
.hme-ci--mail  { --hme-ci: url(../img/ui-mail.svg); }
.hme-ci--pin   { --hme-ci: url(../img/ui-pin.svg); }
.hme-ci a { overflow-wrap: anywhere; }
.hme-ci--mail a { font-size: .875rem; }
.hme-ci--phone a { color: var(--wp--preset--color--olive-900); font-weight: 500; }
.hme-footer__bottom {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-block: 1.25rem 4.75rem; /* keeps the floating iyzico widget clear of the text */
	font-size: .8125rem; color: var(--wp--preset--color--muted);
}
.hme-footer__bottom p { margin: 0; }
.hme-footer__pay { display: inline-flex; align-items: center; gap: .5rem; }
.hme-footer__pay::before {
	content: ""; width: 18px; height: 18px;
	background: var(--wp--preset--color--olive-700);
	-webkit-mask: url(../img/ui-card.svg) center/contain no-repeat; mask: url(../img/ui-card.svg) center/contain no-repeat;
}

@media (max-width: 1023px) {
	.hme-footer__cols { flex-wrap: wrap !important; row-gap: 2.5rem !important; }
	.hme-footer .hme-footer__cols.wp-block-columns > .wp-block-column { flex: 1 1 30% !important; padding: 0 1.25rem; }
	.hme-footer .hme-footer__cols.wp-block-columns > .hme-footer__brand { flex-basis: 100% !important; padding: 0 0 2rem; border-bottom: 1px solid var(--wp--preset--color--line); }
	.hme-footer__cols > .wp-block-column:nth-child(2) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
	.hme-footer { padding-top: 3rem; }
	.hme-footer .hme-footer__cols.wp-block-columns > .wp-block-column { flex: 1 1 40% !important; border-left: 0 !important; padding: 0 !important; }
	.hme-footer .hme-footer__cols.wp-block-columns > .hme-footer__brand,
	.hme-footer .hme-footer__cols.wp-block-columns > .hme-footer__contact { flex-basis: 100% !important; }
	.hme-footer .hme-footer__cols.wp-block-columns > .hme-footer__brand { padding-bottom: 2rem !important; }
	.hme-footer__cols { column-gap: 1.5rem !important; }
	.hme-footer__bottom { flex-direction: column; align-items: flex-start !important; gap: .4rem !important; padding-bottom: 5rem; /* room for floating iyzico widget */ }
}

/* ---- Checkout header (orchestrator) ---- */
.hme-checkout-header { background: var(--wp--preset--color--paper); border-bottom: 1px solid var(--wp--preset--color--line); padding: 1rem var(--wp--style--root--padding-right, 1.25rem); }
.hme-checkout-header__inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hme-checkout-header__secure { margin: 0; display: inline-flex; align-items: center; gap: .45rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--olive-700); }
.hme-checkout-header__back { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); text-decoration: none; }
.hme-checkout-header__back:hover { color: var(--wp--preset--color--olive-900); }
.hme-checkout-title { max-width: 1240px; margin: 0 auto 1rem !important; font-size: var(--wp--preset--font-size--x-large); }
@media (max-width: 600px) { .hme-checkout-header__secure { display: none; } }
.hme-checkout-header__back { white-space: nowrap; }
@media (max-width: 600px) { .hme-checkout-header .hme-logo__name { font-size: 1.25rem; } }
