:root {
	--verdara-bg: #f5f4ef;
	--verdara-text: #171a17;
	--verdara-green: #254d32;
	--verdara-green-dark: #193722;
	--verdara-sage: #a4ad98;
	--verdara-sage-light: #dfe3da;
	--verdara-white: #ffffff;
	--verdara-muted: #62685f;
	--verdara-line: rgba(23, 26, 23, 0.14);
	--verdara-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--verdara-container: 1280px;
	--verdara-reading-width: 720px;
	--verdara-section-space: clamp(4.5rem, 9vw, 8.5rem);
	--verdara-radius-sm: 0.5rem;
	--verdara-radius: 1rem;
	--verdara-radius-lg: 1.5rem;
	--verdara-transition: 180ms ease;
	--verdara-shadow: 0 24px 70px rgba(23, 26, 23, 0.08);
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--verdara-bg);
	color: var(--verdara-text);
	font-family: var(--verdara-font);
	font-size: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.verdara-heading {
	color: var(--verdara-text);
	font-family: var(--verdara-font);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1.08;
}

/* Blocksy hero titles on internal WordPress pages and product archives. */
body.page:not(.home) .site-main .hero-section .entry-header > h1.page-title,
body.woocommerce-shop .site-main .hero-section .entry-header > h1.page-title,
body.post-type-archive-product .site-main .hero-section .entry-header > h1.page-title,
body.tax-product_cat .site-main .hero-section .entry-header > h1.page-title,
body.tax-product_tag .site-main .hero-section .entry-header > h1.page-title {
	font-size: clamp(2rem, 3vw, 3.2rem);
	font-weight: 600;
	line-height: 1.05;
}

/* WooCommerce single-product title rendered in Blocksy's summary layer. */
body.single-product .site-main .entry-summary h1.product_title.entry-title {
	font-size: clamp(2.2rem, 3.5vw, 3.8rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

body.page:not(.home) .site-main .hero-section[data-type="type-1"],
body.woocommerce-shop .site-main .hero-section[data-type="type-1"],
body.post-type-archive-product .site-main .hero-section[data-type="type-1"],
body.tax-product_cat .site-main .hero-section[data-type="type-1"],
body.tax-product_tag .site-main .hero-section[data-type="type-1"] {
	margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

body.page:not(.home) .site-main > [data-vertical-spacing*="top"],
body.woocommerce-shop .site-main > [data-vertical-spacing*="top"],
body.post-type-archive-product .site-main > [data-vertical-spacing*="top"],
body.tax-product_cat .site-main > [data-vertical-spacing*="top"],
body.tax-product_tag .site-main > [data-vertical-spacing*="top"] {
	padding-top: clamp(1.5rem, 2.25vw, 2.5rem);
}

body.page:not(.home) .site-main > [data-vertical-spacing*="bottom"],
body.woocommerce-shop .site-main > [data-vertical-spacing*="bottom"],
body.post-type-archive-product .site-main > [data-vertical-spacing*="bottom"],
body.tax-product_cat .site-main > [data-vertical-spacing*="bottom"],
body.tax-product_tag .site-main > [data-vertical-spacing*="bottom"] {
	padding-bottom: clamp(1.5rem, 2.25vw, 2.5rem);
}

body.page:not(.home) .site-main .hero-section[data-type="type-2"] > [class*="ct-container"],
body.woocommerce-shop .site-main .hero-section[data-type="type-2"] > [class*="ct-container"],
body.post-type-archive-product .site-main .hero-section[data-type="type-2"] > [class*="ct-container"],
body.tax-product_cat .site-main .hero-section[data-type="type-2"] > [class*="ct-container"],
body.tax-product_tag .site-main .hero-section[data-type="type-2"] > [class*="ct-container"] {
	min-height: clamp(8.5rem, 15vw, 11rem);
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

h2,
.verdara-heading {
	font-size: clamp(2.25rem, 4.8vw, 4.5rem);
}

h3 {
	font-size: clamp(1.4rem, 2.2vw, 2rem);
}

p {
	color: var(--verdara-muted);
}

a {
	text-underline-offset: 0.2em;
}

.verdara-container {
	width: min(calc(100% - 2rem), var(--verdara-container));
	margin-inline: auto;
}

.verdara-section {
	padding-block: var(--verdara-section-space);
}

.verdara-heading {
	margin: 0;
}

.verdara-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 1.25rem;
	color: var(--verdara-green);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.verdara-eyebrow::before {
	width: 2rem;
	height: 1px;
	background: currentColor;
	content: "";
}

.verdara-button,
button.verdara-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	min-height: 3.25rem;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.5rem;
	border: 1px solid var(--verdara-green);
	border-radius: var(--verdara-radius-sm);
	background: var(--verdara-green);
	box-shadow: none;
	color: var(--verdara-white);
	font-family: var(--verdara-font);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color var(--verdara-transition), border-color var(--verdara-transition), color var(--verdara-transition), transform var(--verdara-transition);
}

.verdara-button:hover,
button.verdara-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	border-color: var(--verdara-green-dark);
	background: var(--verdara-green-dark);
	color: var(--verdara-white);
	transform: translateY(-2px);
}

.verdara-button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(37, 77, 50, 0.35);
	outline-offset: 3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
select,
textarea {
	min-height: 3.5rem;
	border: 1px solid var(--verdara-line);
	border-radius: var(--verdara-radius-sm);
	background: var(--verdara-white);
	color: var(--verdara-text);
	font: inherit;
	transition: border-color var(--verdara-transition), box-shadow var(--verdara-transition);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--verdara-green);
	box-shadow: 0 0 0 3px rgba(37, 77, 50, 0.1);
}

.menu a,
nav a {
	font-family: var(--verdara-font);
	font-size: 0.8rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.verdara-header-account {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--theme-link-initial-color, var(--verdara-text));
	text-decoration: none;
}

.verdara-header-account:hover {
	color: var(--theme-link-hover-color, var(--verdara-green));
}

/* Verdara's premium three-column footer within Blocksy's footer builder. */
#footer.ct-footer,
#footer.ct-footer [data-row="bottom"] {
	background: var(--verdara-green);
	color: var(--verdara-white);
}

#footer.ct-footer [data-row="bottom"] > .ct-container {
	padding-block: clamp(3.5rem, 6vw, 5rem) 1.75rem;
}

#footer .ct-footer-copyright {
	display: block;
	width: 100%;
	color: var(--verdara-white);
	text-align: left;
}

.verdara-footer-directory {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
	gap: clamp(2.5rem, 7vw, 7rem);
	width: min(100%, 68rem);
	margin: 0 auto clamp(3rem, 5vw, 4.5rem);
}

.verdara-footer-logo {
	display: inline-flex;
	margin-bottom: 1rem;
	color: var(--verdara-white);
	font-size: 1.05rem;
	font-weight: 750;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-decoration: none;
}

.verdara-footer-logo:hover {
	color: var(--verdara-sage-light);
}

.verdara-footer-brand p {
	max-width: 19rem;
	margin: 0;
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.95rem;
	line-height: 1.65;
}

.verdara-footer-title {
	margin: 0 0 1.15rem;
	color: var(--verdara-white);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-transform: uppercase;
}

.verdara-footer-list {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.verdara-footer-list a {
	color: rgba(255, 255, 255, 0.76);
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.5;
	text-decoration: none;
	text-transform: none;
	transition: color var(--verdara-transition);
}

.verdara-footer-list a:hover {
	color: var(--verdara-white);
}

.verdara-footer-copyright {
	width: min(100%, 68rem);
	margin-inline: auto;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.78rem;
	letter-spacing: 0.01em;
	line-height: 1.5;
	text-align: center;
}

@media (max-width: 689.98px) {
	#footer.ct-footer [data-row="bottom"] > .ct-container {
		padding-block: 3rem 1.5rem;
	}

	.verdara-footer-directory {
		grid-template-columns: 1fr;
		gap: 2rem;
		margin-bottom: 2.5rem;
	}
}

/* Blocksy/WooCommerce shop archives: compact, centered product cards. */
body.post-type-archive-product .site-main :is(.woo-listing-top, [data-products]),
body.tax-product_cat .site-main :is(.woo-listing-top, [data-products]),
body.tax-product_tag .site-main :is(.woo-listing-top, [data-products]) {
	width: min(100%, 1200px);
	margin-inline: auto;
}

body.post-type-archive-product [data-products] .product,
body.tax-product_cat [data-products] .product,
body.tax-product_tag [data-products] .product {
	--horizontal-alignment: center;
	--text-horizontal-alignment: center;
	height: 100%;
}

body.post-type-archive-product [data-products] .product .woocommerce-loop-product__title,
body.tax-product_cat [data-products] .product .woocommerce-loop-product__title,
body.tax-product_tag [data-products] .product .woocommerce-loop-product__title {
	display: flex;
	min-height: 2.2em;
	align-items: center;
	justify-content: center;
	margin-top: 0;
	font-size: clamp(1.25rem, 1.6vw, 1.65rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-align: center;
}

body.post-type-archive-product [data-products] .product :is(.price, .ct-woo-card-actions),
body.tax-product_cat [data-products] .product :is(.price, .ct-woo-card-actions),
body.tax-product_tag [data-products] .product :is(.price, .ct-woo-card-actions) {
	width: 100%;
	text-align: center;
}

body.post-type-archive-product [data-products] .product .ct-woo-card-actions,
body.tax-product_cat [data-products] .product .ct-woo-card-actions,
body.tax-product_tag [data-products] .product .ct-woo-card-actions {
	justify-content: center;
}

@media (min-width: 690px) and (max-width: 999.98px) {
	body.post-type-archive-product [data-products],
	body.tax-product_cat [data-products],
	body.tax-product_tag [data-products] {
		--shop-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Product grids: preserve the full product within a consistent image area. */
body.post-type-archive-product [data-products] li.product figure .ct-media-container,
body.tax-product_cat [data-products] li.product figure .ct-media-container,
.single-product .related.products [data-products] li.product figure .ct-media-container,
.verdara-products ul.products li.product figure .ct-media-container {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--verdara-radius);
	background: var(--verdara-white);
}

body.post-type-archive-product [data-products] li.product figure .ct-media-container img,
body.tax-product_cat [data-products] li.product figure .ct-media-container img,
.single-product .related.products [data-products] li.product figure .ct-media-container img,
.verdara-products ul.products li.product figure .ct-media-container img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	border-radius: inherit;
	background: var(--verdara-white);
}

/* Single product: retain Blocksy's gallery layout without cropping its image. */
.single-product .woocommerce-product-gallery .ct-media-container {
	--theme-object-fit: contain;
	background: var(--verdara-white);
}

.single-product .woocommerce-product-gallery .ct-media-container img:not(.zoomImg) {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

/* Native WooCommerce gallery fallback used when Blocksy's gallery is unavailable. */
.single-product .woocommerce-product-gallery__image > a {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--verdara-white);
}

.single-product .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center;
}

.single-product .related.products [data-products] .product {
	--horizontal-alignment: center;
	--text-horizontal-alignment: center;
	height: 100%;
}

.single-product .related.products [data-products] .product :is(.woocommerce-loop-product__title, .price) {
	width: 100%;
	text-align: center;
}

.single-product .related.products [data-products] .product .ct-woo-card-actions {
	width: 100%;
	justify-content: center;
	margin-top: auto;
	text-align: center;
}

/* Keep the empty-cart "Novo v ponudbi" cards compact. */
.woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__products .wc-block-grid__product-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--verdara-radius);
	background: var(--verdara-white);
}

.woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__products .wc-block-grid__product-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	border-radius: inherit;
}

@media (min-width: 768px) {
	.verdara-container {
		width: min(calc(100% - 4rem), var(--verdara-container));
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
