/*
Theme Name: Hygge Tatra Shop
Author: Hygge Tatra
Description: Edytowalny motyw blokowy WordPress i WooCommerce dla sklepu Hygge Tatra z kolekcją Bean Boots.
Requires at least: 6.6
Requires PHP: 8.1
Version: 1.1.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hygge-tatra-shop
Tags: block-theme, full-site-editing, e-commerce, woocommerce, wide-blocks
*/

:root {
	--ht-navy: #07182f;
	--ht-navy-soft: #122944;
	--ht-ink: #111317;
	--ht-ivory: #f3f0e9;
	--ht-paper: #fff;
	--ht-tan: #9c6a45;
	--ht-rust: #7d321f;
	--ht-muted: #676a6c;
	--ht-line: rgba(17, 19, 23, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { display: block; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

/* Header */
.ht-header-wrap { position: relative; z-index: 40; }
.ht-concept-bar {
	min-height: 38px;
	padding: 0 4.5vw;
	background: var(--ht-navy);
	color: #fff;
	font-size: 11px;
	letter-spacing: .09em;
}
.ht-concept-bar p { margin: 0; }
.ht-concept-bar .ht-top-message { font-weight: 800; }
.ht-concept-bar .ht-top-note { opacity: .84; }
.ht-site-header {
	height: 78px;
	padding: 0 4.5vw;
	position: absolute;
	top: 38px;
	left: 0;
	right: 0;
	z-index: 30;
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, .28);
	background: linear-gradient(180deg, rgba(4, 12, 23, .5), rgba(4, 12, 23, .05));
}
.ht-brand-lockup { gap: 16px; min-width: max-content; }
.ht-llbean-logo { margin: 0; width: 118px; }
.ht-llbean-logo img { width: 100%; filter: brightness(0) invert(1); }
.ht-brand-divider { width: 1px; height: 34px; background: rgba(255, 255, 255, .4); }
.ht-partner-brand { gap: 2px; }
.ht-partner-brand p { margin: 0; color: #fff; }
.ht-partner-brand .ht-partner-name { font-family: Georgia, serif; font-size: 14px; letter-spacing: .16em; }
.ht-partner-brand .ht-partner-subtitle { font-size: 8px; font-weight: 700; letter-spacing: .14em; opacity: .78; }
.ht-main-nav { margin-left: auto; }
.ht-main-nav a { color: #fff !important; }
.ht-main-nav a:hover { opacity: .72; }
.ht-site-header .wc-block-mini-cart__button { color: #fff; }
body:not(.home) .ht-header-wrap { background: var(--ht-navy); }
body:not(.home) .ht-site-header { position: relative; top: auto; background: var(--ht-navy); }
body:not(.home) .ht-page-shell { padding-top: 5rem; }

/* Hero */
.ht-hero {
	min-height: max(690px, calc(100svh - 38px));
	position: relative;
	overflow: hidden;
	background: #8b8174;
}
.ht-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, rgba(3, 10, 18, .34), rgba(3, 10, 18, .06) 38%, rgba(3, 10, 18, .64));
	pointer-events: none;
}
.ht-hero-image {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 4% 8% 1%;
	transform: translateX(10%) scale(1.08);
	background-color: #8b8174;
	background-image: url("assets/images/llbean-womens-shearling-8.jpg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-origin: content-box;
	background-blend-mode: multiply;
}
.ht-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	pointer-events: none;
}
.ht-hero-copy {
	position: relative;
	z-index: 3;
	min-height: max(690px, calc(100svh - 38px));
	padding: 150px 8vw 76px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
	color: #fff;
}
.ht-eyebrow {
	margin: 0 0 18px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .2em;
	text-transform: uppercase;
}
.ht-hero .ht-eyebrow { color: #fff; text-shadow: 0 1px 18px rgba(0, 0, 0, .45); }
.ht-hero-title { max-width: 980px; margin: 0; font-size: clamp(52px, 6.1vw, 94px); letter-spacing: -.025em; text-shadow: 0 2px 24px rgba(0, 0, 0, .38); }
.ht-hero-lead { margin: 18px 0 24px; font-family: Georgia, serif; font-size: clamp(17px, 1.6vw, 23px); text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.ht-hero-actions { gap: 30px; }
.ht-hero-actions .wp-block-button__link { padding: 8px 0 6px; border: 0; border-bottom: 1px solid #fff; background: transparent; }

/* Shared editorial sections */
.ht-ticker {
	min-height: 48px;
	padding: 0 5vw;
	gap: 25px;
	background: #fff;
	border-bottom: 1px solid var(--ht-line);
	overflow: hidden;
	white-space: nowrap;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
}
.ht-ticker p { margin: 0; }
.ht-ticker .ht-dot { color: var(--ht-tan); }
.ht-editorial-pair { gap: 8px; padding: 8px; }
.ht-editorial-card {
	min-height: 680px;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding: 7%;
	color: #fff;
}
.ht-editorial-men { background: #a9b0af; }
.ht-editorial-women { background: #a48773; }
.ht-editorial-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 38%, rgba(4, 10, 15, .72)); }
.ht-editorial-card .wp-block-image { position: absolute; inset: 0; margin: 0; }
.ht-editorial-card .wp-block-image img { width: 100%; height: 100%; padding: 7% 8% 3%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s ease; }
.ht-editorial-card:hover .wp-block-image img { transform: scale(1.04); }
.ht-editorial-copy { position: relative; z-index: 2; }
.ht-editorial-copy p { margin: 0 0 14px; }
.ht-editorial-copy h2 { margin: 0 0 14px; font-size: clamp(42px, 4vw, 66px); }
.ht-editorial-copy .ht-editorial-lead { max-width: 470px; margin-bottom: 24px; font-family: Georgia, serif; font-size: 17px; }
.ht-text-link { display: inline-block; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-decoration: none; }

/* Product collection */
.ht-collection-section { padding: 110px 5vw 125px; border-bottom: 1px solid var(--ht-line); }
.ht-section-heading { gap: 8vw; align-items: flex-end; }
.ht-section-heading h2 { margin: 0; font-size: clamp(48px, 5.4vw, 82px); letter-spacing: -.035em; }
.ht-section-intro { color: var(--ht-muted); font-family: Georgia, serif; font-size: 16px; line-height: 1.7; }
.ht-collection-links { margin: 52px 0 30px; padding-top: 19px; border-top: 1px solid var(--ht-line); }
.ht-collection-links a { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.ht-collection-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.ht-product-collection .wc-block-product-template { gap: 30px 16px; }
.ht-product-collection .wc-block-product { text-align: left; }
.ht-product-collection .wc-block-components-product-image { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ht-ivory); }
.ht-product-collection .wc-block-components-product-image img { width: 100%; height: 100%; padding: 9%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s ease; }
.ht-product-collection .wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.045); }
.ht-product-collection .wp-block-post-terms { margin: 18px 2px 8px; color: var(--ht-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ht-product-collection .wp-block-post-title { min-height: 46px; margin: 0 2px 12px; font-size: 19px; }
.ht-product-collection .wp-block-post-title a { text-decoration: none; }
.ht-product-collection .wc-block-components-product-price { margin: 0 2px 12px; font-size: 15px; font-weight: 700; }
.ht-product-collection .wp-block-button__link { width: 100%; justify-content: space-between; border-top: 1px solid var(--ht-line); background: transparent; color: var(--ht-ink); }
.ht-catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 16px; }
.ht-catalog-card { min-width: 0; }
.ht-catalog-image { aspect-ratio: 4 / 5; position: relative; display: block; overflow: hidden; background: var(--ht-ivory); }
.ht-catalog-image img { width: 100%; height: 100%; padding: 9%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s ease; }
.ht-catalog-card:hover .ht-catalog-image img { transform: scale(1.045); }
.ht-catalog-badge { position: absolute; top: 14px; left: 14px; padding: 7px 9px; background: rgba(255, 255, 255, .92); color: var(--ht-ink); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ht-catalog-meta { margin: 18px 2px 8px; color: var(--ht-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ht-catalog-card h3 { min-height: 46px; margin: 0 2px 12px; font-size: 19px; }
.ht-catalog-card h3 a { text-decoration: none; }
.ht-catalog-price { margin: 0 2px 12px; font-size: 15px; font-weight: 700; }
.ht-catalog-action { width: 100%; padding: 12px 2px; display: flex; justify-content: space-between; border-top: 1px solid var(--ht-line); font-size: 11px; font-weight: 700; text-decoration: none; }
.ht-no-products { padding: 3rem; background: var(--ht-ivory); text-align: center; }
.ht-footnote { margin-top: 25px; color: var(--ht-muted); font-size: 12px; }

/* Story, features, size guide and FAQ */
.ht-story { padding: 130px 7vw; background: var(--ht-navy); color: #fff; }
.ht-story-columns { gap: 5vw; align-items: flex-end; }
.ht-story-index { color: #c7b59d; font-size: 12px; letter-spacing: .15em; }
.ht-story h2, .ht-size-guide h2, .ht-signup h2, .ht-faq h2 { margin: 0; font-size: clamp(45px, 5vw, 74px); letter-spacing: -.03em; }
.ht-story-copy { color: #d9dee4; font-family: Georgia, serif; font-size: 18px; line-height: 1.7; }
.ht-feature-grid { gap: 0; border-bottom: 1px solid var(--ht-line); }
.ht-feature { min-height: 420px; padding: 42px 4vw; border-right: 1px solid var(--ht-line); }
.ht-feature:last-child { border-right: 0; }
.ht-feature-number { color: var(--ht-muted); font-size: 11px; font-weight: 700; }
.ht-feature-symbol { margin: auto 0; color: var(--ht-tan); font-family: Georgia, serif; font-size: 74px; }
.ht-feature h3 { margin: 0 0 13px; font-size: 30px; }
.ht-feature p:last-child { color: var(--ht-muted); font-size: 14px; }
.ht-size-guide { padding: 120px 7vw; }
.ht-size-columns { gap: 8vw; align-items: center; }
.ht-size-copy { color: var(--ht-muted); font-size: 14px; }
.ht-size-table { border-top: 2px solid var(--ht-ink); }
.ht-size-row { min-height: 68px; padding: 0 10px; display: grid !important; grid-template-columns: 1fr 1.4fr 1.4fr; align-items: center; border-bottom: 1px solid var(--ht-line); font-size: 14px; }
.ht-size-row p { margin: 0; }
.ht-size-head { min-height: 45px; color: var(--ht-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ht-signup { padding: 105px 7vw; background: var(--ht-navy); color: #fff; }
.ht-signup .ht-eyebrow { color: #c7b59d; }
.ht-signup .ht-signup-copy { color: #d7dce2; }
.ht-signup .wp-block-button__link { background: #fff; color: var(--ht-navy); }
.ht-faq { padding: 120px 7vw; }
.ht-faq-columns { gap: 8vw; align-items: flex-start; }
.ht-faq details { border-bottom: 1px solid var(--ht-line); }
.ht-faq details:first-child { border-top: 1px solid var(--ht-ink); }
.ht-faq summary { padding: 22px 0; cursor: pointer; font-family: Georgia, serif; font-size: 18px; }
.ht-faq details p { color: var(--ht-muted); font-size: 14px; }

/* Footer */
.ht-footer { padding: 75px 7vw 35px; background: #041225; color: #fff; }
.ht-footer-grid { gap: 40px; align-items: flex-start; }
.ht-footer-brand { gap: 12px; }
.ht-footer-logo { margin: 0 0 8px; width: 160px; }
.ht-footer-logo img { filter: brightness(0) invert(1); }
.ht-footer-name { margin: 0; font-family: Georgia, serif; font-size: 24px; letter-spacing: .12em; }
.ht-footer-subtitle, .ht-footer h4 { color: #c7b59d; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ht-footer p, .ht-footer a { color: #d0d6dd; font-size: 13px; }
.ht-footer a { text-decoration: none; }
.ht-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); }
.ht-legal p { margin: 0; color: #8996a5; font-size: 11px; line-height: 1.6; }

/* Standard WordPress and WooCommerce views */
.ht-page-shell { padding: 8rem 6vw 6rem; }
.ht-entry-header { margin-bottom: 3rem; }
.ht-entry-title { font-size: clamp(3rem, 6vw, 5.5rem); }
.ht-query-grid .wp-block-post-template { gap: 3rem 1.5rem; }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 2rem; color: var(--ht-muted); font-size: .75rem; }
.woocommerce div.product .product_title { font-family: Georgia, serif; font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 400; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ht-ink); }
.woocommerce button.button.alt, .woocommerce a.button.alt { border-radius: 0; background: var(--ht-navy); }
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: var(--ht-navy-soft); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 3.2rem; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 400; }
.woocommerce ul.products li.product a img { padding: 8%; background: var(--ht-ivory); }

@media (max-width: 1080px) {
	.ht-main-nav { display: none; }
	.ht-product-collection .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.ht-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
	.ht-top-note, .ht-concept-location { display: none; }
	.ht-editorial-pair { flex-direction: column; }
	.ht-editorial-card { min-height: 590px; }
	.ht-section-heading, .ht-story-columns, .ht-size-columns, .ht-faq-columns { flex-direction: column; align-items: stretch; }
	.ht-product-collection .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.ht-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ht-feature-grid { flex-direction: column; }
	.ht-feature { min-height: 330px; border-right: 0; border-bottom: 1px solid var(--ht-line); }
	.ht-footer-grid { flex-wrap: wrap !important; }
}

@media (max-width: 600px) {
	.ht-concept-bar { min-height: 34px; justify-content: center !important; padding: 7px 18px; text-align: center; }
	.ht-site-header { top: 34px; height: 69px; padding: 0 18px; }
	body:not(.home) .ht-site-header { top: auto; }
	.ht-brand-lockup { gap: 9px; }
	.ht-llbean-logo { width: 91px; }
	.ht-brand-divider { height: 28px; }
	.ht-partner-brand .ht-partner-name { font-size: 10px; }
	.ht-partner-subtitle { display: none; }
	.ht-main-nav .wp-block-navigation__responsive-container.is-menu-open {
		padding: 24px;
		background: var(--ht-navy) !important;
		color: #fff !important;
	}
	.ht-main-nav .wp-block-navigation__responsive-container-content {
		align-items: flex-start;
		justify-content: flex-start;
		padding-top: 72px;
	}
	.ht-main-nav .wp-block-navigation__container {
		align-items: stretch;
		width: 100%;
		gap: 0;
	}
	.ht-main-nav .wp-block-navigation-item {
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, .2);
	}
	.ht-main-nav .wp-block-navigation-item__content {
		width: 100%;
		padding: 18px 0 !important;
		color: #fff !important;
		font-family: Georgia, serif;
		font-size: 24px !important;
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
	}
	.ht-main-nav .wp-block-navigation__responsive-container-close { color: #fff; }
	.ht-main-nav .wp-block-navigation__responsive-container-close svg { fill: currentColor; }
	.ht-hero, .ht-hero-copy { min-height: 610px; }
	.ht-hero-copy { padding: 132px 22px 54px; }
	.ht-hero-title { font-size: 50px; }
	.ht-hero-image { padding: 6%; transform: translateX(8%) scale(1.15); }
	.ht-ticker { justify-content: flex-start !important; overflow: hidden; }
	.ht-editorial-pair { padding: 5px; gap: 5px; }
	.ht-editorial-card { min-height: 520px; padding: 24px; }
	.ht-editorial-copy h2 { font-size: 44px; }
	.ht-collection-section, .ht-story, .ht-size-guide, .ht-signup, .ht-faq { padding: 78px 20px; }
	.ht-collection-links { align-items: flex-start !important; flex-direction: column; }
	.ht-product-collection .wc-block-product-template { grid-template-columns: 1fr !important; }
	.ht-catalog-grid { grid-template-columns: 1fr; }
	.ht-product-collection .wc-block-components-product-image { aspect-ratio: 1 / 1.05; }
	.ht-feature { padding: 34px 24px; }
	.ht-size-table { border-top: 0; }
	.ht-size-head { display: none !important; }
	.ht-size-row:not(.ht-size-head) {
		min-height: 0;
		padding: 14px 0;
		display: block !important;
		font-size: 14px;
	}
	.ht-size-head + .ht-size-row { border-top: 2px solid var(--ht-ink); }
	.ht-size-row:not(.ht-size-head) p {
		padding: 6px 0;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 18px;
		align-items: baseline;
		text-align: right;
	}
	.ht-size-row:not(.ht-size-head) p::before {
		color: var(--ht-muted);
		font-size: 10px;
		font-weight: 700;
		letter-spacing: .1em;
		text-align: left;
		text-transform: uppercase;
	}
	.ht-size-row:not(.ht-size-head) p:nth-child(1)::before { content: "US męskie"; }
	.ht-size-row:not(.ht-size-head) p:nth-child(2)::before { content: "EU orientacyjnie"; }
	.ht-size-row:not(.ht-size-head) p:nth-child(3)::before { content: "Długość stopy"; }
	.ht-size-row:not(.ht-size-head) strong { font-size: 17px; }
	.ht-footer { padding: 65px 20px 30px; }
	.ht-footer-grid, .ht-legal { flex-direction: column; }

	/* WooCommerce pages use their own block templates, so give them the same
	 * mobile rhythm as the bespoke home page instead of letting content touch
	 * the viewport edge. */
	body.woocommerce-page main.wp-block-group { padding-inline: 20px; }
	body.woocommerce-page main.wp-block-group > .alignwide { width: 100%; max-width: 100%; }
	body.woocommerce-shop main > .wp-block-group.alignwide.is-layout-flex,
	body.tax-product_cat main > .wp-block-group.alignwide.is-layout-flex {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
	}
	body.woocommerce-shop .wc-block-product-results-count,
	body.woocommerce-shop .wc-block-catalog-sorting,
	body.tax-product_cat .wc-block-product-results-count,
	body.tax-product_cat .wc-block-catalog-sorting,
	body.woocommerce-shop .woocommerce-ordering,
	body.tax-product_cat .woocommerce-ordering {
		float: none;
		width: 100%;
		margin: 0;
	}
	body.woocommerce-shop .woocommerce-ordering select,
	body.tax-product_cat .woocommerce-ordering select { width: 100%; max-width: 100%; padding: 10px 12px; }
	body.woocommerce-shop .wc-block-product-template,
	body.tax-product_cat .wc-block-product-template {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 44px !important;
	}
	body.woocommerce-shop .wc-block-product-template > .wc-block-product,
	body.tax-product_cat .wc-block-product-template > .wc-block-product { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}
