/*
Theme Name: THE BH BOOK
Theme URI: https://thebhbook.com
Author: Poeta Pista doo
Description: Photo-first editorial block theme for "Bosna i Hercegovina iz drugačije perspektive" by Predrag Vučković. WooCommerce ready, Bosnian + English.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: bhbook
*/

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
/* Footer always reaches the bottom on short pages (cart, 404). */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1 0 auto; }
/* Full-bleed home sections sit flush against each other. */
.wp-block-post-content > .alignfull { margin-block: 0 !important; }
::selection { background: var(--wp--preset--color--amber); color: var(--wp--preset--color--ink); }
img { display: block; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

.bh-label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
}
.bh-num { font-family: var(--wp--preset--font-family--heading); letter-spacing: 0.06em; }
.bh-lede { font-size: var(--wp--preset--font-size--l); line-height: 1.4; font-weight: 300; }
.has-amber-color em, em.bh-amber { color: var(--wp--preset--color--amber); }
.bh-muted { color: #bdb8ae; }
.bh-price { font-size: var(--wp--preset--font-size--xl); margin-bottom: .4rem; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: currentColor; border: 1px solid currentColor; padding: calc(1.05em - 1px) calc(1.9em - 1px) calc(1em - 1px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--white); }
.bh-author-photo img { width: 100%; height: min(88vh, 900px); object-fit: cover; object-position: 50% 30%; }

/* ---------- header ---------- */
.bh-header { position: sticky; top: 0; z-index: 50; transition: background .35s, color .35s, box-shadow .35s; }
.bh-header__inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); padding-block: 1.1rem; }
.bh-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; margin-right: auto; }
.bh-brand svg { width: 46px; height: auto; flex: none; }
.bh-brand__text { display: grid; line-height: 1.05; }
.bh-brand__title { font-family: var(--wp--preset--font-family--display); font-size: 1.02rem; letter-spacing: .12em; }
.bh-brand__sub { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: .52rem; letter-spacing: .26em; color: var(--wp--preset--color--amber); }
.bh-nav { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.bh-nav a, .bh-lang a { color: inherit; text-decoration: none; }
.bh-nav a:hover, .bh-lang a:hover { color: var(--wp--preset--color--amber); }
.bh-lang { display: flex; gap: .6rem; opacity: .75; }
.bh-lang .is-current { opacity: 1; color: var(--wp--preset--color--amber); }
.bh-header .wc-block-mini-cart__button { color: inherit; padding: .3rem; }
.bh-header .wc-block-mini-cart__badge { background: var(--wp--preset--color--amber); color: var(--wp--preset--color--ink); }
.bh-header .bh-buy { padding: .85em 1.3em; background: var(--wp--preset--color--amber); color: var(--wp--preset--color--ink); text-decoration: none; }
.bh-header .bh-buy:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }
.bh-menu-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: .4rem; }

.bh-header--solid { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); border-bottom: 1px solid var(--wp--preset--color--sand); }
.bh-header--overlay { position: fixed; inset-inline: 0; color: var(--wp--preset--color--white); background: linear-gradient(rgba(0,0,0,.45), transparent); }
.bh-header--overlay.is-scrolled { background: rgba(14,18,16,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.admin-bar .bh-header--overlay { top: var(--wp-admin--admin-bar--height, 32px); }

@media (max-width: 960px) {
	.bh-nav { display: none; }
	.bh-menu-toggle { display: block; }
	.bh-brand__sub { display: none; }
	.bh-header.is-open .bh-nav {
		display: flex; flex-direction: column; position: absolute; inset: 100% 0 auto 0;
		background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white);
		padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem; gap: 1.2rem; font-size: .85rem;
	}
	.bh-header .bh-buy { display: none; }
}

.wp-block-cover.alignfull { padding: clamp(5.5rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 6vh, 4rem); }
[id] { scroll-margin-top: 76px; }

/* ---------- hero ---------- */
.bh-hero { min-height: 100svh; }
.bh-hero .wp-block-cover__inner-container { width: 100%; }
/* Brand display font (no č/ć/ž/đ/š) is used only for the logo lettering. */
.bh-hero__title { font-size: var(--wp--preset--font-size--huge) !important; line-height: 1.02 !important; letter-spacing: 0 !important; }
.bh-hero__line { display: block; }
.bh-hero__accent { color: var(--wp--preset--color--amber); }
.bh-scroll { display: inline-flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; }
.bh-scroll::before { content: ""; width: 1px; height: 46px; background: currentColor; animation: bh-drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes bh-drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- locations ---------- */
.bh-location { position: relative; }
.bh-location__index { font-family: var(--wp--preset--font-family--heading); font-size: clamp(5rem, 14vw, 13rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.6); margin-bottom: 0; }
.bh-location .wp-block-cover__image-background { transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.bh-location:hover .wp-block-cover__image-background { transform: scale(1.03); }

/* ---------- ambassadors ---------- */
.bh-amb a { display: block; height: 100%; color: inherit; text-decoration: none; }
.bh-amb__ig { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; color: var(--wp--preset--color--amber); }
.bh-amb:hover .bh-amb__ig, .bh-amb a:focus-visible .bh-amb__ig { opacity: 1; transform: none; }
@media (hover: none) { .bh-amb__ig { opacity: 1; transform: none; } }
.bh-ambs { display: grid; grid-template-columns: repeat(var(--bh-amb-cols, 4), 1fr); gap: clamp(.75rem, 1.5vw, 1.25rem); margin-top: var(--wp--preset--spacing--50); }
.bh-amb { margin: 0; position: relative; overflow: hidden; background: var(--wp--preset--color--ink); }
.bh-amb img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.bh-amb:hover img { transform: scale(1.04); }
.bh-amb--lead { grid-column: span 2; grid-row: span 2; }
.bh-amb--lead img { aspect-ratio: auto; object-position: 50% 80%; }
.bh-amb figcaption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem; color: var(--wp--preset--color--white); background: linear-gradient(transparent, rgba(14,18,16,.85)); display: grid; gap: .3rem; }
.bh-amb__name { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1.05rem; }
.bh-amb--lead .bh-amb__name { font-size: var(--wp--preset--font-size--l); }
.bh-amb__quote { font-size: .85rem; line-height: 1.45; opacity: .85; }
/* One row: on smaller screens the row scrolls sideways instead of wrapping. */
@media (max-width: 900px) {
	.bh-ambs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin; scrollbar-color: var(--wp--preset--color--amber) transparent; }
	.bh-amb { scroll-snap-align: start; }
}

/* ---------- specs ---------- */
.bh-specs { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid currentColor; }
.bh-specs > div { padding: 1.4rem 0; border-bottom: 1px solid rgba(127,127,127,.35); }
.bh-specs > div:nth-child(odd) { padding-right: 1rem; }
.bh-specs strong { display: block; font-family: var(--wp--preset--font-family--heading); font-weight: 400; font-size: var(--wp--preset--font-size--xl); letter-spacing: 0; font-weight: 500; line-height: 1; margin-bottom: .45rem; }

/* ---------- hero slider ---------- */
.bh-hero__tpl { display: none; }
.bh-hero__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--wp--preset--color--ink); }
.bh-hero__stage img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.bh-hero__stage img.is-on { opacity: 1; z-index: 1; }
.bh-hero__stage img.is-out { opacity: 0; z-index: 0; transition-delay: .3s; }
.bh-hero__ui { position: absolute; z-index: 3; right: clamp(1.25rem, 4vw, 3rem); bottom: clamp(1.5rem, 5vh, 3rem); display: grid; justify-items: end; gap: .7rem; color: var(--wp--preset--color--white); }
.bh-hero__meta { display: flex; align-items: baseline; gap: .9rem; min-height: 1.2em; }
.bh-hero__count { font-family: var(--wp--preset--font-family--heading); font-size: .85rem; letter-spacing: .08em; opacity: .85; }
.bh-hero__count b { font-weight: 700; color: var(--wp--preset--color--amber); }
.bh-hero__caption { transition: opacity .5s ease, transform .5s ease; }
.bh-hero__caption.is-swap { opacity: 0; transform: translateY(6px); }
.bh-hero__bars { display: flex; align-items: center; gap: .4rem; }
.bh-hero__bar { position: relative; width: clamp(28px, 4vw, 46px); height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.bh-hero__bar::before, .bh-hero__bar::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(255,255,255,.35); }
.bh-hero__bar::after { background: var(--wp--preset--color--amber); transform: scaleX(0); transform-origin: left; }
.bh-hero__bar.is-done::after { transform: scaleX(1); }
.bh-hero__bar.is-on::after { animation: bh-bar var(--bh-slide, 6.5s) linear forwards; }
.bh-hero__bar:focus-visible { outline: 2px solid var(--wp--preset--color--amber); outline-offset: 2px; }
.bh-hero__pause { width: 30px; height: 30px; margin-left: .4rem; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: none; color: inherit; cursor: pointer; transition: border-color .3s, background .3s; }
.bh-hero__pause:hover { border-color: var(--wp--preset--color--amber); }
.bh-hero__pause svg { width: 10px; height: 10px; fill: currentColor; }
.bh-hero__pause .bh-play, .bh-hero.is-stopped .bh-hero__pause .bh-pause { display: none; }
.bh-hero.is-stopped .bh-hero__pause .bh-play { display: block; }
.bh-hero.is-paused .bh-hero__bar.is-on::after, .bh-hero.is-stopped .bh-hero__bar.is-on::after,
.bh-hero.is-paused .bh-hero__stage img, .bh-hero.is-stopped .bh-hero__stage img { animation-play-state: paused; }
@keyframes bh-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 781px) {
	.bh-hero__ui { left: clamp(1.25rem, 4vw, 3rem); right: auto; bottom: 1.25rem; justify-items: start; }
	.bh-hero .wp-block-cover__inner-container { padding-bottom: 4.5rem; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	/* Hero: slow Ken Burns drift on the visible photo, alternating direction. */
	.bh-hero__stage img.is-on, .bh-hero__stage img.is-out { animation: bh-kb 9s cubic-bezier(.25,.6,.3,1) forwards; }
	.bh-hero__stage img:nth-child(even).is-on, .bh-hero__stage img:nth-child(even).is-out { animation-name: bh-kb2; }
	@keyframes bh-kb { from { transform: scale(1.14) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
	@keyframes bh-kb2 { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }

	/* Hero: text drifts up on load. The label and title stay visible from the first frame (they are the page's
	   largest paint, so fading them in would make the page count as loaded only when the animation ends). */
	.js .bh-hero__content .bh-label,
	.js .bh-hero__line { animation: bh-lift 1.2s cubic-bezier(.2,.75,.2,1) both; }
	.js .bh-hero__content .wp-block-button,
	.js .bh-hero__ui { animation: bh-rise 1.2s cubic-bezier(.2,.75,.2,1) both; }
	@keyframes bh-lift { from { transform: translateY(.45em); } to { transform: none; } }
	.js .bh-hero__content .bh-label { animation-delay: .15s; }
	.js .bh-hero__line:first-child { animation-delay: .3s; }
	.js .bh-hero__line + .bh-hero__line { animation-delay: .45s; }
	.js .bh-hero__content .wp-block-button { animation-delay: .7s; }
	.js .bh-hero__content .wp-block-button + .wp-block-button { animation-delay: .82s; }
	.js .bh-hero__ui { animation-name: bh-fade; animation-delay: 1s; }
	@keyframes bh-rise { from { opacity: 0; transform: translateY(.9em); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(-50% -50% -50% -50%); } }
	@keyframes bh-fade { from { opacity: 0; } to { opacity: 1; } }

	/* Reveal on scroll (site.js adds .is-in); siblings get --i for a staggered entrance. */
	.js .bh-reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 110ms); }
	.js .bh-reveal.is-in { opacity: 1; transform: none; }
	/* Photos open from a slightly inset frame while the picture settles. */
	.js .bh-reveal--img { opacity: 1; transform: none; clip-path: inset(6% 4% 6% 4%); transition: clip-path 1.4s cubic-bezier(.2,.7,.2,1); }
	.js .bh-reveal--img img { transform: scale(1.12); transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
	.js .bh-reveal--img.is-in { clip-path: inset(0 0 0 0); }
	.js .bh-reveal--img.is-in img { transform: none; }
	.bh-reveal--img { overflow: hidden; }

	/* Buttons: lift + light sweep. */
	.wp-block-button__link, .bh-header .bh-buy { position: relative; overflow: hidden; transition: background .3s, color .3s, border-color .3s, transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
	.wp-block-button__link:hover, .bh-header .bh-buy:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
	.wp-block-button:not(.is-style-outline) > .wp-block-button__link::after, .bh-header .bh-buy::after {
		content: ""; position: absolute; inset: 0; pointer-events: none;
		background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
		transform: translateX(-120%); transition: transform .8s ease;
	}
	.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover::after, .bh-header .bh-buy:hover::after { transform: translateX(120%); }

	/* Header slides away while scrolling down, back on scroll up. */
	.bh-header { transition: background .35s, color .35s, box-shadow .35s, transform .45s cubic-bezier(.2,.7,.2,1); }
	.bh-header.is-hidden:not(.is-open) { transform: translateY(-100%); }

	/* Scroll-linked parallax where the browser supports it natively (Chrome, Edge, Safari 26+). */
	@supports (animation-timeline: view()) {
		.bh-hero__content { animation: bh-hero-out linear both; animation-timeline: scroll(root); animation-range: 0 90svh; }
		@keyframes bh-hero-out { to { opacity: 0; transform: translateY(-14vh); } }

		.bh-location .wp-block-cover__image-background,
		.bh-cta .wp-block-cover__image-background { animation: bh-parallax linear both; animation-timeline: view(); transition: none; }
		.bh-location:hover .wp-block-cover__image-background { transform: none; }
		@keyframes bh-parallax { from { transform: translateY(-9%) scale(1.2); } to { transform: translateY(9%) scale(1.2); } }

		.bh-location__index { animation: bh-drift linear both; animation-timeline: view(); }
		@keyframes bh-drift { from { transform: translateY(18vh); } to { transform: translateY(-18vh); } }

		.bh-author-photo { overflow: hidden; }
		.bh-author-photo img { animation: bh-author linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
		@keyframes bh-author { from { transform: scale(1.18) translateY(-4%); } to { transform: scale(1.04) translateY(4%); } }
	}
}

/* ---------- footer ---------- */
.bh-footer a { color: inherit; text-decoration: none; }
.bh-footer a:hover { color: var(--wp--preset--color--amber); }
.bh-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.bh-footer__row { max-width: 1440px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.bh-footer__band { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }
.bh-footer__band .bh-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; padding-block: 1.6rem; }
.bh-footer__band .bh-logos--support img { height: 46px; opacity: 1; }
.bh-footer__band .bh-logos--pay { gap: .9rem; }
.bh-footer__band .bh-logos--pay img { height: 30px; }
.bh-footer__band .is-visa { background: #1A1F71; padding: 7px 10px; line-height: 0; }
.bh-footer__band .is-visa img { height: 16px; }
.bh-footer__band a:hover { opacity: .75; color: inherit; }
.bh-footer__legal .bh-footer__row { padding-block: 1.4rem 1.8rem; display: grid; gap: .6rem; }
.bh-footer__legal p { margin: 0; color: var(--wp--preset--color--white); }
.bh-footer__rights { font-size: .8rem; line-height: 1.5; color: #bdb8ae !important; max-width: 900px; }
.bh-social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transition: border-color .2s, color .2s; }
.bh-social a:hover { border-color: var(--wp--preset--color--amber); }
@media (max-width: 700px) { .bh-footer__band .bh-footer__row { justify-content: center; } .bh-logos { justify-content: center; } }
.bh-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.bh-logos img { height: 26px; width: auto; }
.bh-logos--support img { height: 44px; opacity: .92; }
.bh-social { display: flex; gap: 1rem; }

/* ---------- pages ---------- */
.bh-page-head { border-bottom: 1px solid var(--wp--preset--color--sand); }
.entry-content > h2, .entry-content > h3 { margin-top: 2.2em; }
.entry-content h2 { font-size: var(--wp--preset--font-size--l); }
.entry-content h3, .entry-content h4 { font-size: var(--wp--preset--font-size--m); }

/* ---------- WooCommerce ---------- */
.bh-product .wc-block-components-product-price, .bh-product .price { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--xl); letter-spacing: .04em; color: var(--wp--preset--color--amber); }
.woocommerce div.product form.cart .variations { margin-bottom: 1.2rem; border: 0; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; line-height: 1.4; }
.woocommerce div.product form.cart .variations label { font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase; }
.woocommerce div.product form.cart .variations select {
	width: 100%; margin-top: .5rem; padding: .9rem 1rem; font: inherit; font-family: var(--wp--preset--font-family--sans);
	background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 0; appearance: auto;
}
.woocommerce div.product form.cart .reset_variations { font-family: var(--wp--preset--font-family--sans); font-size: .75rem; }
.woocommerce .quantity .qty { padding: .9rem .4rem; border: 1px solid currentColor; background: transparent; color: inherit; font-family: var(--wp--preset--font-family--sans); width: 4.5em; }
.woocommerce div.product form.cart { display: block; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart, .woocommerce div.product form.cart:not(.variations_form) { display: flex; gap: .8rem; align-items: stretch; }
.woocommerce div.product form.cart .button, .wc-block-components-button:not(.is-link), .wp-element-button.wc-block-cart__submit-button {
	background: var(--wp--preset--color--amber) !important; color: var(--wp--preset--color--ink) !important; border-radius: 0 !important; border: 0;
	font-family: var(--wp--preset--font-family--sans) !important; letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase; font-size: .78rem !important; font-weight: 400 !important; padding: 1.1em 2em !important; flex: 1;
}
.woocommerce div.product form.cart .button:hover { background: var(--wp--preset--color--white) !important; }
.wc-block-components-product-image-gallery, .woocommerce-product-gallery { background: transparent; }
.bh-product .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.bh-product .woocommerce-product-gallery__wrapper img { width: 100%; height: auto; }
.bh-product .woocommerce-product-gallery__image > a { display: block; background: var(--wp--preset--color--white); }
.bh-product .woocommerce-product-gallery__image img { aspect-ratio: 16 / 9; max-height: 78vh; object-fit: contain; padding: 4%; box-sizing: border-box; }
.bh-product .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(7, 1fr); gap: .6rem; max-width: 760px; margin-inline: auto !important; margin-top: .5rem !important; }
.bh-product .flex-control-thumbs li { width: auto !important; margin: 0 !important; }
.bh-product .flex-control-thumbs img { aspect-ratio: 1; object-fit: cover; background: var(--wp--preset--color--white); opacity: .55; transition: opacity .2s; }
.bh-product .flex-control-thumbs img.flex-active, .bh-product .flex-control-thumbs img:hover { opacity: 1; }
.bh-product .woocommerce-product-gallery__trigger { top: 1rem !important; right: 1rem !important; }
.bh-product h1.wp-block-post-title { font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1.12; }
.woocommerce div.product form.cart .variations select { max-width: 100%; }
.woocommerce div.product form.cart .reset_variations { display: none !important; }
.woocommerce-variation-price { display: none; }
.woocommerce-tabs, .wc-block-components-notice-banner { font-family: var(--wp--preset--font-family--sans); }
.wc-block-cart, .wc-block-checkout, .woocommerce-account .woocommerce { font-family: var(--wp--preset--font-family--sans); }
.wc-block-components-title, .wc-block-components-checkout-step__title { font-family: var(--wp--preset--font-family--heading) !important; font-weight: 500 !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input, .wc-blocks-components-select__select, .wc-block-components-textarea { border-radius: 0 !important; }
em.bh-amber { font-style: normal; }
.bh-hero__title { font-weight: 500; }

/* ---------- product page: buy column, trust block, details, reviews, quote ---------- */
.bh-product h1.wp-block-post-title { font-size: clamp(1.9rem, 3vw, 3rem); }
.bh-product .wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: 1.05rem; }
.bh-product__buy { background: var(--wp--preset--color--white); padding: clamp(1.25rem, 2.5vw, 2rem); }
.bh-product__buy .woocommerce div.product form.cart, .bh-product__buy form.cart { margin-bottom: 0; }
.bh-trust__list { list-style: none; margin: 0; padding: 0; }
.bh-trust__list li { display: grid; grid-template-columns: 36px 1fr; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--wp--preset--color--sand); }
.bh-trust__list li:first-child { padding-top: .4rem; }
.bh-trust__list svg { color: var(--wp--preset--color--ink); margin-top: 2px; }
.bh-trust__list a { display: block; font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1.05rem; text-decoration: none; color: var(--wp--preset--color--ink); }
.bh-trust__list a:hover { color: var(--wp--preset--color--amber); }
.bh-trust__list span { display: block; color: var(--wp--preset--color--muted); font-size: .92rem; line-height: 1.45; margin-top: .15rem; }
.bh-trust__pay { margin: 1.4rem 0 0; padding: .9rem 1rem 1rem; border: 1px solid var(--wp--preset--color--sand); border-radius: 6px; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; }
.bh-trust__pay legend { padding: 0 .7rem; margin: 0 auto; font-family: var(--wp--preset--font-family--heading); font-size: .95rem; }
.bh-trust__pay span { display: inline-grid; place-items: center; height: 38px; padding: 0 6px; background: var(--wp--preset--color--white); }
.bh-trust__pay img { height: 26px; width: auto; }
.bh-trust__pay .is-visa { background: #1A1F71; padding: 0 10px; }
.bh-trust__pay .is-visa img { height: 14px; }
.bh-product__about .entry-content h2 { font-size: var(--wp--preset--font-size--xl); margin-top: 0; }
.bh-product__about .entry-content h3 { font-size: var(--wp--preset--font-size--l); }
.bh-details h2, .bh-reviews h2 { font-size: var(--wp--preset--font-size--xl); margin: .3rem 0 1.5rem; }
.bh-details { margin-top: var(--wp--preset--spacing--60); }
.bh-details__table { margin: 0; border-top: 1px solid var(--wp--preset--color--ink); }
.bh-details__table > div { display: grid; grid-template-columns: minmax(140px, 35%) 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--wp--preset--color--sand); }
.bh-details__table dt { font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase; color: var(--wp--preset--color--muted); padding-top: .2rem; }
.bh-details__table dd { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 500; }
.bh-reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; border-bottom: 1px solid var(--wp--preset--color--ink); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.bh-reviews__head h2 { margin-bottom: 0; }
.bh-reviews__empty { margin: 0; max-width: 420px; color: var(--wp--preset--color--muted); }
.bh-reviews__stars { display: flex; align-items: center; gap: .8rem; }
.bh-reviews .woocommerce-Reviews-title, .bh-reviews .woocommerce-noreviews { display: none; }
.bh-reviews #review_form_wrapper { background: var(--wp--preset--color--white); padding: clamp(1.25rem, 3vw, 2rem); }
.bh-reviews .comment-reply-title { font-family: var(--wp--preset--font-family--heading); font-size: 1.2rem; display: block; margin-bottom: .8rem; }
.bh-reviews textarea, .bh-reviews input[type=text], .bh-reviews input[type=email] { width: 100%; padding: .8rem; border: 1px solid var(--wp--preset--color--sand); font: inherit; background: var(--wp--preset--color--paper); }
.bh-reviews .form-submit input { background: var(--wp--preset--color--amber); border: 0; padding: 1em 2em; font-family: var(--wp--preset--font-family--sans); letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase; font-size: .78rem; cursor: pointer; }
.bh-reviews .commentlist { list-style: none; padding: 0; }
.bh-reviews .commentlist li { padding: 1.2rem 0; border-bottom: 1px solid var(--wp--preset--color--sand); }
.star-rating span::before, .stars a, .bh-reviews .stars a { color: var(--wp--preset--color--amber) !important; }
.bh-quote { display: grid; grid-template-columns: minmax(200px, 38%) 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin: 0; }
.bh-quote__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bh-quote blockquote { margin: .5rem 0 1.4rem; padding: 0; border: 0; }
.bh-quote blockquote p { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--l); line-height: 1.4; margin: 0; }
.bh-quote figcaption { color: #bdb8ae; font-size: .95rem; }
.bh-quote figcaption strong { color: var(--wp--preset--color--white); font-weight: 400; }
.bh-quote figcaption a { color: var(--wp--preset--color--amber); }
@media (max-width: 781px) { .bh-quote { grid-template-columns: 1fr; } .bh-quote__img { max-width: 320px; } }
.bh-product__gallery .wp-block-woocommerce-product-image-gallery { width: 100%; max-width: none; }
.bh-trust__pay .is-visa img, .bh-footer__band .is-visa img { height: 24px; }
.wp-site-blocks > .alignfull, .wp-site-blocks > .bh-product-bottom { margin-block-start: 0; }
.bh-reviews .woocommerce-verification-required { display: none; }

/* ---------- info pages ---------- */
.entry-content .bh-lede { font-size: var(--wp--preset--font-size--l); line-height: 1.45; color: var(--wp--preset--color--ink); }
.bh-zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 1rem; }
.bh-zone { display: grid; gap: .25rem; align-content: start; padding: 1.4rem; background: var(--wp--preset--color--white); text-decoration: none; color: inherit; border-top: 3px solid var(--wp--preset--color--amber); transition: transform .2s; }
.bh-zone:hover { transform: translateY(-2px); color: inherit; }
.bh-zone strong { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: var(--wp--preset--font-size--xl); line-height: 1.1; margin-top: .4rem; }
.bh-zone span:not(.bh-label) { color: var(--wp--preset--color--muted); font-size: .9rem; }
.bh-zone em { font-style: normal; font-size: .85rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--wp--preset--color--sand); }
.bh-table { width: 100%; border-collapse: collapse; background: var(--wp--preset--color--white); font-size: .98rem; }
.bh-table th { text-align: left; font-family: var(--wp--preset--font-family--sans); font-weight: 400; font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase; color: var(--wp--preset--color--white); background: var(--wp--preset--color--ink); padding: .9rem 1.1rem; }
.bh-table td { padding: .75rem 1.1rem; border-bottom: 1px solid var(--wp--preset--color--sand); }
.bh-table td:last-child, .bh-table th:last-child { text-align: right; font-family: var(--wp--preset--font-family--heading); font-weight: 500; }
.bh-table tbody tr:nth-child(even) td { background: #faf8f4; }
.bh-table tr.is-one td { background: #fff4e3 !important; }
.bh-pill { display: inline-block; margin-left: .5rem; padding: .15rem .55rem; border-radius: 99px; background: var(--wp--preset--color--amber); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.bh-paylogos { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0; }
.bh-paylogos span { display: inline-grid; place-items: center; height: 46px; padding: 0 10px; background: var(--wp--preset--color--white); }
.bh-paylogos img { height: 30px; width: auto; }
.bh-paylogos .is-visa { background: #1A1F71; }
.bh-paylogos .is-visa img { height: 26px; }
.bh-facts, .bh-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.bh-facts > div, .bh-contact > * { display: grid; gap: .35rem; align-content: start; padding: 1.3rem; background: var(--wp--preset--color--white); text-decoration: none; color: inherit; }
.bh-facts strong, .bh-contact strong { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1.05rem; }
.bh-facts span, .bh-contact span:not(.bh-label) { color: var(--wp--preset--color--muted); font-size: .92rem; line-height: 1.5; }
.bh-contact .bh-label { color: var(--wp--preset--color--amber); }
.bh-contact a:hover strong { color: var(--wp--preset--color--amber); }
.bh-steps { list-style: none; counter-reset: s; padding: 0; display: grid; gap: .8rem; }
.bh-steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; padding: 1.1rem; background: var(--wp--preset--color--white); }
.bh-steps li::before { content: counter(s); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--amber); font-family: var(--wp--preset--font-family--heading); }
.bh-steps strong { font-family: var(--wp--preset--font-family--heading); font-weight: 500; }
.bh-steps span { color: var(--wp--preset--color--muted); }
@media (max-width: 781px) { .bh-zones { grid-template-columns: 1fr; } }
/* The Visa file is the blue wordmark: keep its tile white like the others. */
.bh-footer__band .is-visa, .bh-trust__pay .is-visa, .bh-paylogos .is-visa { background: var(--wp--preset--color--white); padding: 0 8px; }
.bh-footer__band .is-visa img { height: 26px; }
.bh-trust__pay .is-visa img { height: 24px; }
.bh-paylogos .is-visa img { height: 30px; }
.bh-contact { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .bh-contact { grid-template-columns: 1fr; } }

/* Photo protection: no drag, no selection, no iOS long-press "Save image". */
img, .wp-block-cover, .woocommerce-product-gallery, .pswp img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* ---------- product buy box: price, language buttons, quantity stepper ---------- */
.bh-product__buy .wc-block-components-product-price, .bh-product__buy .price { font-size: clamp(2rem, 3.2vw, 2.8rem); margin: 0 0 .4rem; color: var(--wp--preset--color--ink); }
.bh-visually-hidden { position: absolute !important; width: 1px !important; min-width: 0 !important; max-width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.bh-swatches { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.bh-swatches button { min-width: 8.5rem; padding: .95rem 1.3rem; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--sand); font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1rem; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bh-swatches button:hover { border-color: var(--wp--preset--color--ink); }
.bh-swatches button.is-on { border-color: var(--wp--preset--color--ink); box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink); }
.bh-swatches button.is-on::before { content: "✓"; color: var(--wp--preset--color--amber); margin-right: .5rem; }
.woocommerce div.product form.cart .bh-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--wp--preset--color--ink); margin: 0; }
.bh-qty__btn { width: 3rem; border: 0; background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--wp--preset--color--ink); }
.bh-qty__btn:hover { background: var(--wp--preset--color--paper); }
.woocommerce .bh-qty .qty { width: 3.2em !important; border: 0 !important; padding: .7rem 0 !important; text-align: center; font-family: var(--wp--preset--font-family--heading) !important; font-weight: 500; font-size: 1.35rem !important; -moz-appearance: textfield; }
.bh-qty .qty::-webkit-inner-spin-button, .bh-qty .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Product info block: white band, title + description left, buy box right (sticky). */
.bh-product__info .bh-product__buy { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--sand); position: sticky; top: 96px; align-self: flex-start; }
.bh-product__info .bh-product__about { margin-top: var(--wp--preset--spacing--50); padding-top: var(--wp--preset--spacing--40); border-top: 1px solid var(--wp--preset--color--sand); }
.bh-product__info .bh-product__about h2 { font-size: var(--wp--preset--font-size--l); margin-top: 0; }
.bh-product__info .bh-product__about h3 { font-size: var(--wp--preset--font-size--m); margin-top: 2em; }
.bh-product__info .bh-trust__pay span { background: transparent; }
.bh-product__info .woocommerce-product-gallery__image > a { background: var(--wp--preset--color--white); }
@media (max-width: 781px) { .bh-product__info .bh-product__buy { position: static; } }
/* Phones: title + short text, then the buy box, then the long description. */
@media (max-width: 781px) {
	.bh-product__top > .wp-block-column:first-child { display: contents; }
	.bh-product__top > .wp-block-column:first-child > * { order: 1; }
	.bh-product__top > .bh-product__buy { order: 2; }
	.bh-product__top > .wp-block-column:first-child > .bh-product__about { order: 3; }
}

/* ---------- sticky buy bar ---------- */
.bh-sticky-buy { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: .65rem clamp(1rem, 3vw, 2rem) calc(.65rem + env(safe-area-inset-bottom)); background: rgba(14,18,16,.94); color: var(--wp--preset--color--white); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 rgba(255,255,255,.06), 0 -12px 30px -18px rgba(0,0,0,.6); transform: translateY(110%); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.bh-sticky-buy[hidden] { display: block; visibility: hidden; }
.bh-sticky-buy.is-on { transform: none; visibility: visible; }
.bh-sticky-buy__inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); }
.bh-sticky-buy__img { width: 52px; height: 52px; object-fit: cover; flex: none; }
.bh-sticky-buy__text { display: grid; gap: .15rem; min-width: 0; flex: 1; }
.bh-sticky-buy__title { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-sticky-buy__meta { font-size: .8rem; opacity: .7; }
.bh-sticky-buy__price { font-size: 1.15rem; color: var(--wp--preset--color--amber); white-space: nowrap; }
.bh-sticky-buy__btn { flex: none; padding: .9em 1.6em; background: var(--wp--preset--color--amber); color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase; text-decoration: none; transition: background .3s, transform .3s; }
.bh-sticky-buy__btn:hover { background: var(--wp--preset--color--white); transform: translateY(-2px); }
body.has-sticky-buy .bh-footer { padding-bottom: 76px; }
@media (max-width: 600px) {
	.bh-sticky-buy__img { width: 44px; height: 44px; }
	/* photo | title over price | button */
	.bh-sticky-buy__inner { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "img title btn" "img price btn"; column-gap: .75rem; row-gap: .1rem; }
	.bh-sticky-buy__img { grid-area: img; }
	.bh-sticky-buy__text { display: contents; }
	.bh-sticky-buy__meta { display: none; }
	.bh-sticky-buy__title { grid-area: title; font-size: .85rem; align-self: end; }
	.bh-sticky-buy__price { grid-area: price; font-size: .95rem; align-self: start; }
	.bh-sticky-buy__btn { grid-area: btn; }
	.bh-sticky-buy__btn { padding: .85em 1.1em; }
}
@media (prefers-reduced-motion: reduce) { .bh-sticky-buy { transition: none; } }

/* ---------- one-page shop on the home page (#kupi) ---------- */
.bh-shop__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.bh-shop__gallery { position: sticky; top: 96px; display: grid; gap: .75rem; }
.bh-shop__main { margin: 0; overflow: hidden; background: var(--wp--preset--color--paper); aspect-ratio: 4 / 3; }
.bh-shop__main img { width: 100%; height: 100%; object-fit: contain; /* whole photo, never cropped */ transition: opacity .35s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.bh-shop__main img.is-fading { opacity: 0; }
.bh-shop__main:hover img { transform: scale(1.02); }
.bh-shop__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; }
.bh-shop__thumb { padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; aspect-ratio: 1; overflow: hidden; }
.bh-shop__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bh-shop__thumb:hover, .bh-shop__thumb.is-on { opacity: 1; }
.bh-shop__thumb.is-on { border-color: var(--wp--preset--color--ink); }
.bh-shop__thumb:focus-visible { outline: 2px solid var(--wp--preset--color--amber); outline-offset: 2px; }
.bh-shop .bh-shop__buy { border: 1px solid var(--wp--preset--color--sand); display: grid; gap: .9rem; }
.bh-shop__buy > * { margin: 0; }
.bh-shop__title { font-size: var(--wp--preset--font-size--xl); line-height: 1.1; }
.bh-shop__rating { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-size: .9rem; }
.bh-shop__lede { color: #4d524f; line-height: 1.55; }
.bh-shop .woocommerce-notices-wrapper:empty { display: none; }
.bh-shop .woocommerce-notices-wrapper { margin-bottom: 1.5rem; }
.bh-about h2 { font-size: var(--wp--preset--font-size--xl); margin-top: 0; }
.bh-about h3 { font-size: var(--wp--preset--font-size--l); margin-top: 2em; }
.bh-about p { max-width: 62ch; }
.bh-about__side .bh-details { margin-top: var(--wp--preset--spacing--50); }
.bh-about__side .bh-details h2 { font-size: var(--wp--preset--font-size--l); }
@media (max-width: 900px) {
	.bh-shop__grid { grid-template-columns: 1fr; }
	.bh-shop__gallery { position: static; }
	.bh-shop__thumbs { grid-auto-columns: minmax(56px, 1fr); overflow-x: auto; }
}

/* ---------- checkout: distraction-free header + footer ---------- */
.bh-header--checkout { position: relative; }
.bh-header--checkout .bh-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; }
.bh-steps-bar { display: flex; align-items: center; gap: .4rem; list-style: none; margin: 0; padding: 0; font-family: var(--wp--preset--font-family--sans); font-size: .82rem; }
.bh-steps-bar li { display: flex; align-items: center; gap: .4rem; color: var(--wp--preset--color--muted); }
.bh-steps-bar li + li::before { content: ""; width: clamp(14px, 3vw, 40px); height: 1px; background: var(--wp--preset--color--sand); margin-right: .2rem; }
.bh-steps-bar li.is-done + li::before { background: var(--wp--preset--color--ink); }
.bh-steps-bar a { display: flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; }
.bh-steps-bar__n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; font-size: .75rem; flex: none; }
.bh-steps-bar__n svg { width: 12px; height: 12px; }
.bh-steps-bar li.is-done { color: var(--wp--preset--color--ink); }
.bh-steps-bar li.is-done .bh-steps-bar__n { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }
.bh-steps-bar li.is-current { color: var(--wp--preset--color--ink); font-weight: 600; }
.bh-steps-bar li.is-current .bh-steps-bar__n { background: var(--wp--preset--color--amber); border-color: var(--wp--preset--color--amber); color: var(--wp--preset--color--ink); }
.bh-secure { display: inline-flex; align-items: center; gap: .45rem; color: #2f7a4b; white-space: nowrap; }
@media (max-width: 900px) { .bh-steps-bar__l { display: none; } .bh-steps-bar li.is-current .bh-steps-bar__l { display: inline; } }
@media (max-width: 600px) {
	.bh-header--checkout .bh-header__inner { flex-wrap: wrap; row-gap: .8rem; }
	.bh-header--checkout .bh-brand__sub, .bh-secure { display: none; }
	.bh-steps-bar { order: 3; width: 100%; justify-content: space-between; }
	.bh-steps-bar li + li::before { flex: 1; }
	.bh-steps-bar li:not(:first-child) { flex: 1; }
}
.bh-footer--checkout { background: var(--wp--preset--color--white); border-top: 1px solid var(--wp--preset--color--sand); color: var(--wp--preset--color--ink); padding: 1.6rem clamp(1.25rem, 4vw, 3rem) !important; }
.bh-footer--checkout__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; font-size: .85rem; }
.bh-footer--checkout__inner p { margin: 0; }
.bh-footer--checkout__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.bh-footer--checkout a { color: inherit; }
.bh-footer--checkout__pay { display: flex; align-items: center; gap: .8rem; }
.bh-footer--checkout__pay img { height: 22px; width: auto; }

/* ---------- checkout form ---------- */
.bh-checkout__head { margin-bottom: var(--wp--preset--spacing--40); }
.bh-checkout__head h1 { margin: 0 0 .4rem; }
.bh-checkout__sub { margin: 0; color: #4d524f; max-width: 60ch; }
.bh-checkout .wc-block-checkout { --bh-card-pad: clamp(1.1rem, 2.4vw, 1.75rem); }
.bh-checkout .wc-block-components-checkout-step { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--sand); padding: var(--bh-card-pad) !important; margin: 0 0 1rem !important; }
.bh-checkout .wc-block-components-checkout-step::after { display: none !important; }
.bh-checkout .wc-block-components-checkout-step__heading { margin: 0 0 1rem !important; }
.bh-checkout .wc-block-components-checkout-step__title { font-size: 1.2rem !important; }
.bh-checkout .wc-block-components-checkout-step__container { padding-left: 0 !important; }
.bh-checkout .wc-block-components-text-input input, .bh-checkout .wc-block-components-combobox .components-combobox-control__input, .bh-checkout .wc-blocks-components-select__select, .bh-checkout .wc-block-components-textarea {
	background: var(--wp--preset--color--white) !important; border: 1px solid #cfc7b7 !important; min-height: 3.25rem; transition: border-color .2s, box-shadow .2s;
}
.bh-checkout .wc-block-components-text-input input:focus, .bh-checkout .wc-blocks-components-select__select:focus, .bh-checkout .wc-block-components-combobox .components-combobox-control__input:focus, .bh-checkout .wc-block-components-textarea:focus {
	border-color: var(--wp--preset--color--ink) !important; box-shadow: 0 0 0 3px rgba(249,156,30,.35) !important; outline: none !important;
}
.bh-checkout .wc-block-components-radio-control__option, .bh-checkout .wc-block-components-radio-control-accordion-option { border-radius: 0 !important; }
.bh-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted,
.bh-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--wp--preset--color--ink) !important; }
.bh-checkout .wc-block-components-radio-control__input:checked { border-color: var(--wp--preset--color--ink) !important; background: var(--wp--preset--color--ink) !important; }
.bh-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--wp--preset--color--ink) !important; border-color: var(--wp--preset--color--ink) !important; }
.bh-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--wp--preset--color--white) !important; }
.bh-checkout .wc-block-checkout__actions { padding: 0 !important; margin-top: 1.25rem; }
.bh-checkout .wc-block-checkout__actions_row { display: flex; flex-direction: column-reverse; align-items: stretch !important; gap: 1rem; }
.bh-checkout .wc-block-components-checkout-place-order-button { width: 100% !important; min-height: 3.75rem; font-size: 1rem !important; letter-spacing: .12em; text-transform: uppercase; background: var(--wp--preset--color--amber) !important; color: var(--wp--preset--color--ink) !important; border: 0 !important; transition: background .25s, transform .25s; }
.bh-checkout .wc-block-components-checkout-place-order-button:hover { background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--white) !important; transform: translateY(-1px); }
.bh-checkout .wc-block-components-checkout-return-to-cart-button { font-size: .85rem; color: var(--wp--preset--color--muted); align-self: center; }
.bh-checkout .wc-block-checkout__terms { font-size: .85rem; color: #4d524f; margin: 1rem 0 0 !important; }
/* Order summary: white card that stays in view. */
.bh-checkout .wc-block-checkout__sidebar { top: 1.5rem !important; }
.bh-checkout .wp-block-woocommerce-checkout-order-summary-block { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--sand) !important; border-radius: 0 !important; }
.bh-checkout .wc-block-components-checkout-order-summary__title { padding: 1rem 1.25rem !important; margin: 0 !important; border-bottom: 1px solid var(--wp--preset--color--sand); }
.bh-checkout .wc-block-components-order-summary-item__image { width: 64px !important; }
.bh-checkout .wc-block-components-order-summary-item__image img { width: 64px !important; max-width: none !important; height: 64px; object-fit: cover; }
.bh-checkout .wc-block-components-order-summary-item__quantity { background: var(--wp--preset--color--amber) !important; color: var(--wp--preset--color--ink) !important; border: 0 !important; box-shadow: none !important; font-weight: 700; }
.bh-checkout .wc-block-components-product-name { font-family: var(--wp--preset--font-family--heading); font-weight: 500; }
.bh-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; }
@media (max-width: 781px) { .bh-checkout .wc-block-components-checkout-step { padding: 1rem !important; } }

/* ---------- thank-you page ---------- */
.bh-thanks__hero { padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem) !important; text-align: center; margin-top: 0 !important; }
.bh-thanks__hero.is-plain { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--sand); margin-top: var(--wp--preset--spacing--50) !important; }
.bh-thanks__badge { width: 64px; height: 64px; margin: 0 auto 1.25rem; color: var(--wp--preset--color--amber); }
.bh-thanks__badge svg { width: 100%; height: 100%; }
.bh-thanks__title { font-size: var(--wp--preset--font-size--huge); line-height: 1.05; margin: .4rem 0 1rem; color: var(--wp--preset--color--white); }
.bh-thanks__lede { font-size: var(--wp--preset--font-size--m); line-height: 1.5; max-width: 40ch; margin: 0 auto; opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
	.bh-thanks__badge circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: bh-draw .9s .2s cubic-bezier(.6,0,.2,1) forwards; }
	.bh-thanks__badge path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: bh-draw .5s .9s ease-out forwards; }
	@keyframes bh-draw { to { stroke-dashoffset: 0; } }
	.bh-thanks__hero .bh-label, .bh-thanks__title, .bh-thanks__lede { animation: bh-rise 1s cubic-bezier(.2,.75,.2,1) both; }
	.bh-thanks__title { animation-delay: .15s; }
	.bh-thanks__lede { animation-delay: .3s; }
}
.bh-thanks__next { margin-top: var(--wp--preset--spacing--60) !important; }
.bh-thanks__next h2 { color: var(--wp--preset--color--amber); margin: 0 0 1.25rem; font-size: var(--wp--preset--font-size--xs); }
.bh-thanks__next ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.bh-thanks__next li { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--sand); padding: 1.4rem; display: grid; gap: .8rem; align-content: start; }
.bh-thanks__next li p { margin: .35rem 0 0; font-size: .92rem; line-height: 1.5; color: #4d524f; }
.bh-thanks__next li strong { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1.05rem; }
.bh-thanks__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--amber); font-family: var(--wp--preset--font-family--heading); font-weight: 700; }
.bh-thanks__share { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem; background: var(--wp--preset--color--sand); }
.bh-thanks__share p { margin: 0; max-width: 46ch; }
.bh-thanks__cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.bh-btn { display: inline-block; padding: .9em 1.5em; border: 1px solid var(--wp--preset--color--ink); color: var(--wp--preset--color--ink); text-decoration: none; font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase; transition: background .25s, color .25s; }
.bh-btn:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }
.bh-btn--fill { background: var(--wp--preset--color--amber); border-color: var(--wp--preset--color--amber); }
.bh-thanks__card { margin-top: var(--wp--preset--spacing--50) !important; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--sand); padding: clamp(1.25rem, 3vw, 2.25rem) !important; }
.bh-thanks__card h3 { font-size: var(--wp--preset--font-size--m); margin: 2rem 0 .8rem; }
.bh-thanks .wc-block-order-confirmation-summary { margin: 0 !important; }
.bh-thanks .wc-block-order-confirmation-summary-list { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 0; padding: 0 0 1.5rem; border-bottom: 1px solid var(--wp--preset--color--sand); }
.bh-thanks .wc-block-order-confirmation-summary-list-item { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.bh-thanks .wc-block-order-confirmation-summary-list-item__key { display: block; font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase; color: var(--wp--preset--color--muted); }
.bh-thanks .wc-block-order-confirmation-summary-list-item__value { display: block; font-family: var(--wp--preset--font-family--heading); font-weight: 500; margin-top: .3rem; word-break: break-word; }
.bh-thanks .wc-block-order-confirmation-totals table { width: 100%; border-collapse: collapse; }
.bh-thanks .wc-block-order-confirmation-totals th, .bh-thanks .wc-block-order-confirmation-totals td { padding: .75rem 0; border: 0; border-bottom: 1px solid var(--wp--preset--color--sand); text-align: left; }
.bh-thanks .wc-block-order-confirmation-totals td:last-child, .bh-thanks .wc-block-order-confirmation-totals th:last-child { text-align: right; }
.bh-thanks .wc-block-order-confirmation-totals tfoot tr:last-child * { font-family: var(--wp--preset--font-family--heading); font-size: 1.2rem; border-bottom: 0; }
.bh-thanks address { font-style: normal; line-height: 1.6; border: 0 !important; padding: 0 !important; }
@media (max-width: 781px) { .bh-thanks__next ol { grid-template-columns: 1fr; } }
.bh-thanks .wc-block-order-confirmation-totals table, .bh-thanks .wc-block-order-confirmation-totals th, .bh-thanks .wc-block-order-confirmation-totals td { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; }
.bh-thanks .wc-block-order-confirmation-totals thead th { font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase; color: var(--wp--preset--color--muted); font-weight: 400; }
.bh-thanks .wc-block-order-confirmation-totals a { color: inherit; text-decoration: none; }
.bh-thanks .wc-block-order-confirmation-address-wrapper .wc-block-order-confirmation-shipping-address, .bh-thanks .wc-block-order-confirmation-address-wrapper .wc-block-order-confirmation-billing-address { border: 1px solid var(--wp--preset--color--sand) !important; border-radius: 0 !important; }
.bh-thanks__next li p strong { font-family: inherit; font-size: inherit; font-weight: 600; }

/* Phones: slimmer quantity stepper so "Kupi knjigu" stays on one line. */
@media (max-width: 480px) {
	.bh-qty__btn { width: 2.4rem; }
	.woocommerce .bh-qty .qty { width: 2.4em !important; }
	.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1 1 auto; white-space: nowrap; padding-inline: 1rem; }
}

/* Amber text is too light to read on white/paper (2:1). Labels on light backgrounds use a darker amber (5:1);
   on dark sections and photos they keep the brand amber. */
:root { --bh-amber-text: #8A5205; } /* 4.8:1 on sand, 5.6:1 on paper */
.bh-label.has-amber-color { color: var(--bh-amber-text) !important; }
:is(.wp-block-cover, .has-ink-background-color, .has-ink-soft-background-color, .bh-header, .bh-footer, .bh-sticky-buy, .bh-thanks__hero) .bh-label.has-amber-color { color: var(--wp--preset--color--amber) !important; }

/* Corporate gifts (end of home page) */
.bh-corporate .bh-lede { color: var(--wp--preset--color--ink); }
.bh-corporate__note { color: #57534C; } /* muted is 4.1:1 on sand, below AA */
.bh-corporate__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.bh-corporate__mail { margin-top: .9rem; font-size: var(--wp--preset--font-size--xs); }
.bh-corporate__mail a { color: #57534C; }
.bh-corporate__panel { background: var(--wp--preset--color--paper); padding: clamp(1.25rem, 3vw, 2.25rem); }
.bh-corporate__qty { display: flex; align-items: baseline; gap: 1rem; margin: 0 0 1.5rem; }
.bh-corporate__qty strong { white-space: nowrap; flex: none; font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: .9; color: var(--wp--preset--color--ink); }
.bh-corporate__qty .bh-label { color: var(--bh-amber-text); }
.bh-corporate .bh-steps li { grid-template-columns: 40px 1fr; }
@media (max-width: 480px) { .bh-corporate__cta .bh-btn { flex: 1 1 100%; text-align: center; } }

/* Where to buy (home, before corporate gifts) */
.bh-where__online { margin-top: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--wp--preset--color--white); }
.bh-where__online p { margin: .6rem 0 1.4rem; }
.bh-where .bh-label:not(.has-amber-color) { color: var(--wp--preset--color--muted); }
.bh-where__stores ul { list-style: none; margin: .8rem 0 0; padding: 0; border-top: 1px solid var(--wp--preset--color--sand); }
.bh-where__stores li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--wp--preset--color--sand); }
.bh-where__stores li .bh-where__name { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: var(--wp--preset--font-size--l); }
.bh-where__stores li .bh-where__place { margin: .2rem 0 0; color: var(--wp--preset--color--muted); }
.bh-where__stores li a { flex: none; font-size: var(--wp--preset--font-size--xs); letter-spacing: var(--wp--custom--tracking--label); text-transform: uppercase; color: var(--bh-amber-text); text-decoration: none; }
.bh-where__stores li a:hover { text-decoration: underline; }
.bh-where__soon { margin-top: 1.2rem; font-style: italic; color: var(--wp--preset--color--muted); }
@media (max-width: 480px) { .bh-where__online .bh-btn { display: block; text-align: center; } }
.bh-corporate__photo { position: relative; margin: 0; }
.bh-corporate__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.bh-corporate__photo .bh-corporate__qty { margin: 0; padding: 1rem 1.25rem; background: var(--wp--preset--color--paper); }
.bh-corporate__photo .bh-corporate__qty strong { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.bh-corporate__steps { margin: var(--wp--preset--spacing--60) auto 0 !important; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 781px) { .bh-corporate__steps { grid-template-columns: 1fr; } }

/* Checkout on phones: WooCommerce repeats the order summary above "Naruči" and shows a collapsible one on top. */
@media (max-width: 781px) {
	.bh-checkout .checkout-order-summary-block-fill-wrapper { background: none !important; border: 0 !important; padding: 0 !important; margin-top: 1.5rem; }
	.bh-checkout .checkout-order-summary-block-fill-wrapper .wc-block-components-checkout-step__heading { margin: 0 0 .75rem !important; }
	.bh-checkout .checkout-order-summary-block-fill { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--sand) !important; border-radius: 0 !important; }
	.bh-checkout .wc-block-components-checkout-order-summary__content { padding: 0 1rem 1rem !important; border-top: 1px solid var(--wp--preset--color--sand); }
	.bh-checkout .wc-block-components-checkout-order-summary__title { padding: 1rem !important; }
	.bh-checkout .wc-block-components-order-summary-item { gap: .75rem; }
	.bh-checkout .wc-block-components-order-summary-item__description { padding-left: .5rem !important; }
}

/* Cart: same white cards as the checkout */
.wc-block-cart .wc-block-cart__main, .wc-block-cart .wc-block-cart__sidebar { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--sand); padding: clamp(1rem, 2.4vw, 1.75rem) !important; }
.wc-block-cart .wc-block-cart-items { margin: 0 !important; }
/* Phones: the line total sits outside the card; the unit price and the totals box below already show it. */
@media (max-width: 781px) { .wc-block-cart .wc-block-cart-item__total { display: none !important; } .wc-block-cart .wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 80px 1fr !important; } }
.wc-block-cart .wc-block-cart-items__header { display: none; }
.wc-block-cart .wc-block-cart__submit-button { background: var(--wp--preset--color--amber) !important; color: var(--wp--preset--color--ink) !important; border: 0 !important; border-radius: 0 !important; min-height: 3.5rem; text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 781px) { .wc-block-cart .wc-block-cart__sidebar { margin-top: 1rem; } }
.bh-where__phone { margin: 1rem 0 0; font-size: .92rem; color: var(--wp--preset--color--muted); }
.bh-where__phone a, .bh-footer--checkout__help a[href^="tel:"] { color: var(--wp--preset--color--ink); white-space: nowrap; }
.bh-contact strong a { color: inherit; text-decoration: none; }
.bh-contact strong a:hover { text-decoration: underline; }

/* Safety net: nothing may widen the page sideways (clip, unlike hidden, keeps sticky elements working). */
html, body { overflow-x: clip; }

/* Shipping page: method under each zone heading, note under the tables */
.bh-zone__method { margin: -.4rem 0 .9rem; color: var(--wp--preset--color--muted); font-size: .92rem; }
.bh-zone__note { margin-top: 1.5rem; color: var(--wp--preset--color--muted); }

/* ---------- footer credit (misija) ---------- */
.bh-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; }
.bh-credit { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; letter-spacing: .04em; color: #bdb8ae !important; }
.bh-credit svg { display: block; height: 18px; width: auto; color: var(--wp--preset--color--white); }
.bh-credit:hover { color: var(--wp--preset--color--white) !important; }
.bh-credit:hover svg { opacity: .8; }

/* ---------- cookie consent ---------- */
.bh-consent { box-sizing: border-box; position: fixed; z-index: 10000; left: 1rem; bottom: 1rem; width: min(420px, calc(100vw - 2rem)); background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--sand); box-shadow: 0 10px 40px rgba(0,0,0,.18); padding: 1.3rem 1.4rem 1.4rem; font-size: .9rem; line-height: 1.5; }
.bh-consent[hidden] { display: none; }
.bh-consent__title { margin: 0 0 .4rem; font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; }
.bh-consent__text { margin: 0 0 1rem; color: #4d4a44; }
.bh-consent__text a { color: inherit; text-decoration: underline; }
.bh-consent__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.bh-consent__actions .bh-btn { flex: 1 1 auto; text-align: center; cursor: pointer; background-color: transparent; }
.bh-consent__actions .bh-btn--fill { background: var(--wp--preset--color--amber); }
.bh-consent__actions .bh-btn--fill:hover { background: var(--wp--preset--color--ink); }
body.has-sticky-buy .bh-consent { bottom: 86px; }
@media (max-width: 480px) { .bh-consent { left: .75rem; bottom: .75rem; width: calc(100vw - 1.5rem); padding: 1.1rem; } }
