/*
 * Istina theme — osnovni vanilla CSS.
 */

@font-face {
	font-family: "EB Garamond";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/eb-garamond-latin-400.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "EB Garamond";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/eb-garamond-cyrillic-400.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
	--istina-bg: #0f0d0d;
	--istina-text: #e8e4db;
	--istina-border: #2a2626;
	--istina-accent: #e8e4db;
	--istina-max-width: 1500px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--istina-bg);
	color: var(--istina-text);
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--istina-text);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Layout */
.site-header-inner,
.site-footer-inner,
.site-main,
.archive-posts {
	max-width: var(--istina-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

/* Top bar */
.site-topbar-inner {
	max-width: var(--istina-max-width);
	margin: 0 auto;
	padding: 24px 24px 0;
	display: flex;
	justify-content: flex-start;
}

.social-links {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: flex;
	gap: 16px;
}

.social-links a {
	display: flex;
	align-items: center;
	opacity: 0.75;
	transition: opacity 0.2s ease;
}

.social-links a:hover,
.social-links a:focus {
	opacity: 1;
	text-decoration: none;
}

/* Header */
.site-header {
	padding-top: 48px;
	padding-bottom: 84px;
	background-image: url("/wp-content/uploads/2026/08/home-hero-banner-web.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center 12%;
	background-attachment: fixed;
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-title a {
	text-decoration: none;
}

.site-header-quote-row {
	max-width: var(--istina-max-width);
	margin: 28px auto 0;
	padding: 0 24px;
	text-align: left;
}

.header-quote {
	margin: 0;
	padding: 0;
	border: none;
	opacity: 0.8;
	max-width: none;
}

.header-quote-item {
	display: none;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-quote-item.is-active {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

.header-quote p {
	margin: 0 0 4px;
	font-style: normal;
	font-size: 28px;
	color: #fff;
}

.header-quote cite {
	display: block;
	font-style: normal;
	font-size: 18px;
	opacity: 0.8;
}

.custom-logo {
	display: block;
	width: 100px;
	height: auto;
}

/* Navigation */
.main-navigation {
	margin-left: auto;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
}

.main-navigation a {
	text-decoration: none;
	letter-spacing: 0.03em;
	font-size: 22px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.main-navigation li.menu-item-has-children {
	position: relative;
}

.main-navigation li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.main-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	flex-direction: column;
	gap: 0;
	min-width: 200px;
	margin-top: 0;
	padding: 12px 0 8px;
	background-color: var(--istina-bg);
	border: 1px solid var(--istina-border);
}

.main-navigation li.menu-item-has-children:hover > .sub-menu,
.main-navigation li.menu-item-has-children:focus-within > .sub-menu {
	display: flex;
}

.main-navigation .sub-menu a {
	display: block;
	padding: 10px 20px;
	font-size: 17px;
	white-space: nowrap;
}

.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu a:focus {
	background-color: rgba(232, 228, 219, 0.06);
	text-decoration: none;
}

/* Header actions (cart + mobile toggle) */
.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.cart-contents {
	display: flex;
	align-items: center;
	gap: 6px;
}

.cart-contents svg {
	display: block;
}

.cart-count {
	font-size: 0.8125rem;
	min-width: 14px;
	text-align: center;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: transparent;
	border: none;
	padding: 10px;
	cursor: pointer;
}

.menu-toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	background-color: var(--istina-text);
}

body.nav-open {
	overflow: hidden;
}

/* Main content */
.site-main {
	padding-top: 40px;
	padding-bottom: 40px;
}

.front-page {
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Hero */
.hero {
	border-bottom: 1px solid var(--istina-border);
	background-image: linear-gradient(rgba(15, 13, 13, 0.55), rgba(15, 13, 13, 0.75)), url("/wp-content/uploads/2026/08/home-hero-banner-web.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center 12%;
	background-attachment: fixed;
}

.hero-inner {
	max-width: var(--istina-max-width);
	margin: 0 auto;
	padding: 120px 24px 50px;
	text-align: center;
}

.hero-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 24px;
}

.hero-logo .custom-logo {
	width: 140px;
}

.hero-title {
	margin: 0 0 16px;
	font-size: 2rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hero-subtitle {
	margin: 0 auto 32px;
	max-width: 640px;
	font-family: "EB Garamond", serif;
	font-size: 20px;
	opacity: 0.9;
}

.hero-highlight {
	color: #ff544b;
	opacity: 1;
}

.hero-badges {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 28px;
	font-size: 20px;
	opacity: 0.85;
}

.hero-cta {
	display: inline-block;
}

/* About section */
.front-about {
	border-bottom: 1px solid var(--istina-border);
	padding: 80px 0;
}

.front-about-inner {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: center;
}

.front-about-inner p {
	text-align: left;
	opacity: 0.9;
	margin-bottom: 20px;
	font-size: 20px;
}

.front-about-ornament {
	width: 100%;
	margin: 32px auto;
	opacity: 0.85;
}

.front-about-quote {
	margin: 32px 0;
	padding: 20px 24px;
	border-left: 2px solid var(--istina-highlight, #ff544b);
	text-align: left;
	font-style: italic;
}

.front-about-quote p {
	margin: 0 0 8px;
}

.front-about-quote cite {
	display: block;
	font-style: normal;
	font-size: 0.875rem;
	opacity: 0.75;
}

.front-about-tagline {
	text-align: center;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-top: 32px;
}

.front-about-latin {
	margin-top: 24px;
	font-size: 15px;
	line-height: 1.6;
	opacity: 0.6;
	text-align: left;
}

/* Featured products */
.front-featured {
	padding: 80px 0;
}

.front-featured-inner {
	max-width: var(--istina-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.section-title {
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 1.25rem;
	margin: 0 0 40px;
}

.front-about .section-title {
	font-size: 30px;
}

.front-featured-more {
	text-align: center;
	margin-top: 40px;
}

.entry-title {
	margin-top: 0;
}

/* Long-form page content (e.g. О нама) */
.entry-header,
.entry-content {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content p {
	margin: 0 0 22px;
	font-size: 19px;
	line-height: 1.7;
}

.entry-content h2 {
	margin-top: 56px;
	margin-bottom: 20px;
	font-size: 30px;
	letter-spacing: 0.02em;
}

.entry-content a {
	color: var(--istina-highlight, #ff544b);
	text-decoration: underline;
}

.entry-content a:hover {
	opacity: 0.8;
}

.entry-content .wp-block-quote {
	margin: 40px 0;
	padding: 4px 0 4px 28px;
	border-left: 2px solid var(--istina-highlight, #ff544b);
	font-style: italic;
}

.entry-content .wp-block-quote p {
	margin: 0 0 10px;
	font-size: 20px;
}

.entry-content .wp-block-quote cite {
	display: block;
	font-style: normal;
	font-size: 0.875rem;
	opacity: 0.75;
}

.entry-content .wp-block-buttons {
	justify-content: center;
	margin: 36px 0;
}

.entry-content .wp-block-button__link {
	background-color: var(--istina-highlight, #ff544b);
	color: var(--istina-text);
	border: none;
	border-radius: 0;
	padding: 14px 32px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	font-size: 0.875rem;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.entry-content .wp-block-button__link:hover {
	opacity: 0.85;
	color: var(--istina-text);
	text-decoration: none;
}

.entry-content img,
.entry-content figure {
	margin: 32px auto;
	display: block;
}

.entry-content .content-image-placeholder {
	margin: 32px auto;
	padding: 60px 20px;
	text-align: center;
	border: 1px dashed var(--istina-border);
	opacity: 0.5;
	font-size: 0.875rem;
}

.entry-content .social-links {
	justify-content: center;
	margin: 40px 0 0;
}

.entry-content .social-links a {
	color: var(--istina-text);
	opacity: 0.75;
	text-decoration: none;
}

.entry-content .social-links a:hover {
	opacity: 1;
	text-decoration: none;
}

/* О нама page — wider column, larger text (desktop only) */
@media (min-width: 783px) {
	.page-id-282 .entry-header,
	.page-id-282 .entry-content {
		max-width: 900px;
	}

	.page-id-282 .entry-content p {
		font-size: 22px;
	}
}

.entry-meta {
	font-size: 0.875rem;
	opacity: 0.7;
	margin-bottom: 16px;
}

.entry-meta span + span::before {
	content: "\2022";
	margin: 0 8px;
}

.post-thumbnail {
	margin: 16px 0;
}

.page-links {
	margin-top: 24px;
}

/* Archive grid */
.archive-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 32px;
	padding-left: 0;
	padding-right: 0;
}

.archive-posts article {
	border: 1px solid var(--istina-border);
	padding: 16px;
}

/* Buttons */
.button,
button,
input[type="submit"] {
	display: inline-block;
	background-color: transparent;
	color: var(--istina-text);
	border: 1px solid var(--istina-text);
	padding: 12px 28px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
	background-color: var(--istina-text);
	color: var(--istina-bg);
	text-decoration: none;
}

/* Contact page layout */
.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 72px;
	max-width: 960px;
	margin: 0 auto;
	align-items: start;
}

.contact-layout .contact-info {
	order: 2;
}

.contact-layout .contact-form-wrap {
	order: 1;
}

.contact-layout .entry-header,
.contact-layout .entry-content {
	max-width: none;
	margin: 0;
}

.contact-info .entry-content p:last-child {
	opacity: 0.9;
	line-height: 1.9;
}

/* Contact form */
.contact-form-wrap {
	margin-top: 0;
	max-width: none;
	padding: 40px;
	border: 1px solid var(--istina-border);
}

.contact-form-notice {
	padding: 14px 18px;
	margin-bottom: 24px;
	border: 1px solid var(--istina-border);
}

.contact-form-notice--success {
	border-color: var(--istina-text);
}

.contact-form-notice--error {
	border-color: #a8433a;
}

.contact-form-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form-row {
	margin: 0 0 22px;
}

.contact-form-row label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.75;
}

.contact-form-row input,
.contact-form-row textarea {
	width: 100%;
	background-color: transparent;
	color: var(--istina-text);
	border: 1px solid var(--istina-border);
	padding: 14px;
	font-family: inherit;
	font-size: 1rem;
	transition: border-color 0.2s ease;
}

.contact-form-row textarea {
	resize: vertical;
}

.contact-form-submit {
	width: 100%;
	background-color: var(--istina-highlight, #ff544b);
	color: var(--istina-text);
	border: none;
	font-weight: 700;
	padding: 16px 28px;
}

.contact-form-submit:hover {
	opacity: 0.85;
	background-color: var(--istina-highlight, #ff544b);
	color: var(--istina-text);
}

.contact-form-row input:focus,
.contact-form-row textarea:focus {
	outline: none;
	border-color: var(--istina-text);
}

/* Gallery page — full-width masonry grid */
.gallery-page .entry-content {
	max-width: none;
}

.gallery-page .entry-content.gallery-intro {
	max-width: var(--istina-max-width);
	margin: 32px auto 0;
	padding: 0 24px;
}

.gallery-page .entry-content.gallery-intro h1 {
	font-weight: 700;
	font-size: 34px;
	margin: 0 0 20px;
}

.gallery-page .entry-content.gallery-intro p {
	max-width: 700px;
}

.istina-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	grid-auto-rows: 1px;
	gap: 28px;
	max-width: var(--istina-max-width);
	margin: 48px auto 0;
	padding: 0 24px;
	list-style: none;
}

.istina-gallery-item {
	display: flex;
	flex-direction: column;
	align-self: start;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.istina-gallery-item.is-visible {
	opacity: 1;
	transform: none;
}

.istina-gallery-figure {
	margin: 0;
}

.istina-gallery-trigger {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background: none;
	border: 1px solid var(--istina-border);
	overflow: hidden;
	cursor: pointer;
	position: relative;
}

.istina-gallery-trigger::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(15, 13, 13, 0.15);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.istina-gallery-trigger:hover::after,
.istina-gallery-trigger:focus-visible::after {
	opacity: 1;
}

.istina-gallery-trigger img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.5s ease, opacity 0.4s ease;
}

.istina-gallery-trigger:hover img,
.istina-gallery-trigger:focus-visible img {
	transform: scale(1.05);
}

.istina-gallery-item figcaption {
	padding: 10px 2px 0;
	font-size: 0.875rem;
	opacity: 0.75;
	color: var(--istina-text);
}

/* Lightbox (gallery page) */
.istina-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(15, 13, 13, 0.96);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.istina-lightbox.is-open {
	opacity: 1;
}

.istina-lightbox[hidden] {
	display: none;
}

.istina-lightbox-stage {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 96px;
}

.istina-lightbox-figure {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.istina-lightbox-image {
	max-width: 100%;
	max-height: calc(100vh - 200px);
	width: auto;
	height: auto;
	border: 1px solid var(--istina-border);
	opacity: 0;
	transform: scale(0.98);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.istina-lightbox-image.is-loaded {
	opacity: 1;
	transform: none;
}

.istina-lightbox-caption {
	max-width: 60ch;
	text-align: center;
	font-size: 0.95rem;
	opacity: 0.8;
	color: var(--istina-text);
}

.istina-lightbox-caption:empty {
	display: none;
}

.istina-lightbox-counter {
	position: absolute;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	margin: 0;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	opacity: 0.65;
	color: var(--istina-text);
}

.istina-lightbox-close,
.istina-lightbox-prev,
.istina-lightbox-next {
	position: absolute;
	background-color: transparent;
	color: var(--istina-text);
	border: 1px solid var(--istina-border);
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.istina-lightbox-close:hover,
.istina-lightbox-prev:hover,
.istina-lightbox-next:hover {
	border-color: var(--istina-text);
	background-color: transparent;
	color: var(--istina-text);
}

.istina-lightbox-close:disabled,
.istina-lightbox-prev:disabled,
.istina-lightbox-next:disabled {
	opacity: 0.3;
	cursor: default;
}

.istina-lightbox-close {
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
}

.istina-lightbox-prev,
.istina-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
}

.istina-lightbox-prev {
	left: 20px;
}

.istina-lightbox-next {
	right: 20px;
}

/* FAQ accordion */
.faq-accordion {
	max-width: 760px;
	margin-top: 32px;
}

.faq-item {
	border-bottom: 1px solid var(--istina-border);
}

.faq-question {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 20px 36px 20px 0;
	font-family: "EB Garamond", serif;
	font-size: 27px;
	font-weight: 700;
	color: #a9a79f;
}

.faq-question::-webkit-details-marker {
	display: none;
}

.faq-question::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%) rotate(0deg);
	transition: transform 0.25s ease;
	font-size: 1.25rem;
	line-height: 1;
}

.faq-item[open] .faq-question::after {
	transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
	height: 0;
	overflow: hidden;
	transition: height 0.25s ease;
	padding: 0 24px 20px 0;
	font-family: "EB Garamond", serif;
	font-size: 24px;
	color: var(--istina-text);
	opacity: 1;
}

.faq-answer p {
	margin: 0;
	padding-bottom: 20px;
}

.front-page-shop-link {
	margin-top: 32px;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--istina-border);
	padding: 80px 0 20px;
	margin-top: 40px;
	background-image: url("/wp-content/uploads/2026/09/footer-background-web.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center 50%;
	background-attachment: fixed;
}

.footer-columns {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	margin-bottom: 40px;
}

.footer-column-title {
	margin: 0 0 16px;
	font-size: 0.9375rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.footer-logo .custom-logo {
	width: 80px;
}

.footer-brand-name {
	margin: 0 0 12px;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.footer-tagline {
	margin: 12px 0 0;
	font-size: 0.875rem;
	opacity: 0.75;
	max-width: 32ch;
}

.footer-column p {
	margin: 0 0 8px;
	font-size: 16px;
}

.footer-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	margin-bottom: 24px;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 24px;
	border-top: 1px solid var(--istina-border);
}

.footer-legal ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.footer-legal a {
	font-size: 0.8125rem;
	opacity: 0.7;
}

.site-info {
	font-size: 16px;
	opacity: 0.7;
	margin: 0;
}

.site-info small {
	font-size: 16px;
}

/* WooCommerce — notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
	list-style: none;
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid var(--istina-border);
	background-color: rgba(232, 228, 219, 0.04);
}

.woocommerce-error {
	border-color: #a8433a;
}

.istina-free-shipping-notice {
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid var(--istina-border);
	background-color: rgba(232, 228, 219, 0.04);
	font-weight: 700;
}

/* WooCommerce — shop loop */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products li.product {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--istina-border);
	padding: 16px;
	transition: border-color 0.3s ease;
}

.woocommerce ul.products li.product:hover {
	border-color: var(--istina-text);
}

.woocommerce ul.products li.product img {
	margin-bottom: 12px;
	transition: transform 0.4s ease;
}

.woocommerce ul.products li.product:hover img {
	transform: scale(1.06);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 20px;
	margin: 0 0 2px;
}

.woocommerce ul.products li.product .price {
	font-size: 20px;
	opacity: 0.9;
}

.woocommerce ul.products li.product .price del {
	opacity: 0.5;
	margin-right: 8px;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
}

.woocommerce ul.products li.product .button {
	margin-top: 12px;
	width: 100%;
	text-align: center;
}

.woocommerce span.onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	background-color: var(--istina-text);
	color: var(--istina-bg);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 4px 10px;
	z-index: 1;
}

.woocommerce .star-rating {
	color: var(--istina-text);
	font-size: 0.875rem;
}

/* WooCommerce — result count / ordering */
.woocommerce-result-count,
.woocommerce-ordering {
	margin-bottom: 24px;
}

.woocommerce-ordering select {
	background-color: transparent;
	color: var(--istina-text);
	border: 1px solid var(--istina-border);
	padding: 8px 12px;
}

/* WooCommerce — single product */
.woocommerce div.product {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
}

.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary {
	margin-bottom: 0;
	flex: 1 1 420px;
}

.woocommerce div.product .flex-control-thumbs {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
}

.woocommerce div.product .flex-control-thumbs li {
	list-style: none;
	width: 80px;
}

.woocommerce div.product .flex-control-thumbs img {
	display: block;
	width: 100%;
	height: auto;
	cursor: pointer;
	border: 1px solid var(--istina-border);
	opacity: 0.6;
	transition: opacity 0.2s;
}

.woocommerce div.product .flex-control-thumbs img.flex-active {
	opacity: 1;
	border-color: var(--istina-accent);
}

.woocommerce div.product .summary {
	font-size: 20px;
	color: #aba8a1;
}

.woocommerce div.product .summary .product_title {
	font-size: 40px;
	color: #fff;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells,
.woocommerce div.product .product-description-section {
	flex: 1 1 100%;
}

.product-description-section {
	margin-top: -18px;
	font-size: 20px;
	color: #a9a79f;
}

.product-description-section h2 {
	margin-bottom: 12px;
	font-size: 1.17em; /* same as the h3 subheadings in the description */
	color: #a9a79f;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: #fff;
	font-size: 24px;
}

.quantity-label {
	margin: 20px 0 10px;
	font-weight: 700;
	text-align: left;
}

.woocommerce div.product .quantity input.qty {
	background-color: transparent;
	color: var(--istina-text);
	border: 1px solid var(--istina-border);
	padding: 12px;
	width: 64px;
	text-align: center;
}

.woocommerce div.product form.cart .button {
	display: block;
	margin-left: 0;
	margin-top: 16px;
}

.product-trust-intro {
	margin: 24px 0 0;
}

.product-trust-badges {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 20px;
	opacity: 0.85;
}

.woocommerce div.product .product_meta {
	font-size: 20px;
}

/* Size/attribute buttons (progressive enhancement over the native <select>) */
.woocommerce div.product .variations,
.woocommerce div.product .variations tbody,
.woocommerce div.product .variations tr {
	display: block;
	width: 100%;
}

.woocommerce div.product .variations th.label,
.woocommerce div.product .variations td.value {
	display: block;
	width: 100%;
	padding: 0;
}

.woocommerce div.product .variations th.label {
	margin-bottom: 10px;
	font-weight: 700;
	text-align: left;
}

.woocommerce div.product .variations tr + tr th.label {
	margin-top: 20px;
}

.variations select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.istina-attribute-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.istina-attribute-buttons button {
	background-color: transparent;
	color: var(--istina-text);
	border: 1px solid var(--istina-border);
	padding: 8px 14px;
	font-size: 0.875rem;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.istina-attribute-buttons button:hover {
	border-color: var(--istina-text);
	background-color: transparent;
	color: var(--istina-text);
}

.istina-attribute-buttons button[aria-pressed="true"] {
	background-color: var(--istina-text);
	color: var(--istina-bg);
	border-color: var(--istina-text);
}

.product-tabs-accordion {
	max-width: 100%;
	margin-top: 8px;
}

.istina-size-guide {
	width: 100%;
	max-width: 480px;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.istina-size-guide th,
.istina-size-guide td {
	border: 1px solid var(--istina-border);
	padding: 10px 14px;
	text-align: left;
}

.istina-size-guide-note {
	font-size: 0.875rem;
	opacity: 0.75;
}

/* WooCommerce — forms, cart, checkout tables */
.woocommerce table.shop_table,
.woocommerce table.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce table.woocommerce-checkout-review-order-table th,
.woocommerce table.woocommerce-checkout-review-order-table td {
	border: 1px solid var(--istina-border);
	padding: 12px;
	text-align: left;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
	background-color: transparent;
	color: var(--istina-text);
	border: 1px solid var(--istina-border);
	padding: 12px;
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
}

/* WooCommerce — my account */
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--istina-border);
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 10px 0;
}

/* WooCommerce — Cart block totals */
.wc-block-cart__totals-title {
	font-size: 16px !important;
}

/* Hide the "New in store" upsell grid on the empty cart page */
.wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new,
.wp-block-woocommerce-empty-cart-block h2:has(+ .wp-block-woocommerce-product-new) {
	display: none;
}

.wc-block-components-totals-shipping .wc-block-components-totals-item__label,
.wc-block-components-totals-shipping .wc-block-components-totals-item__value {
	font-size: 16px;
}

/* WooCommerce Blocks — checkout/cart form fields render on a white input
   background, so the theme's light body text color needs overriding here
   or the floating labels are nearly invisible. */
.wc-block-components-text-input label,
.wc-block-components-textarea label,
.wc-blocks-components-select__label {
	color: #57534e !important;
}

/* Checkout page: the form and order summary need more room side by side
   than the theme's default text-page content width (.entry-content is
   normally capped at 700px for long-form reading). */
.woocommerce-checkout .entry-content {
	max-width: var(--istina-max-width);
	padding: 0 24px;
}

/* Checkout page: WooCommerce Blocks sets a lot of secondary text (address
   summary, labels, totals, product names, button text) at a small 13px —
   bump it to match the rest of the theme's body copy. */
.woocommerce-checkout .wc-block-components-address-card__address-section,
.woocommerce-checkout .wc-block-components-address-card__edit,
.woocommerce-checkout .wc-blocks-components-select__label,
.woocommerce-checkout .wc-block-components-address-form__address_2-toggle,
.woocommerce-checkout .wc-block-components-checkbox__label,
.woocommerce-checkout .wc-block-components-radio-control__label,
.woocommerce-checkout .wc-block-components-radio-control-accordion-content,
.woocommerce-checkout .wc-block-checkout__shipping-option--free,
.woocommerce-checkout .wc-block-components-payment-method-label,
.woocommerce-checkout .wc-block-components-checkout-place-order-button__text,
.woocommerce-checkout .wc-block-formatted-money-amount,
.woocommerce-checkout .wc-block-components-product-name,
.woocommerce-checkout .wc-block-components-totals-item__label,
.woocommerce-checkout .wc-block-components-product-details__name {
	font-size: 16px;
}

/* Responsive */
@media (max-width: 782px) {
	.contact-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.contact-layout .contact-info {
		order: 1;
	}

	.contact-layout .contact-form-wrap {
		order: 2;
	}

	.contact-form-wrap {
		padding: 28px 20px;
	}

	.site-header {
		padding-top: 28px;
		padding-bottom: 24px;
	}

	.hero-inner {
		padding: 40px 18px 10px;
	}

	.front-about {
		padding: 40px 0;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.front-about-inner p {
		font-size: 22px;
	}

	.front-about-quote p {
		font-size: 22px;
	}

	.front-about-tagline {
		font-size: 22px;
	}

	.front-about .section-title {
		font-size: 26px;
		margin-bottom: 20px;
	}

	.header-quote p {
		font-size: 26px;
	}

	.hero-subtitle {
		font-size: 26px;
	}

	.main-navigation {
		order: 3;
		margin-left: 0;
		flex-basis: 100%;
	}

	.main-navigation ul {
		display: none;
	}

	.main-navigation.is-open {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		position: fixed;
		inset: 0;
		z-index: 100;
		background-color: var(--istina-bg);
		padding: calc(32px + 4rem) 32px 32px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.main-navigation.is-open::before {
		content: "Истина";
		display: block;
		margin-bottom: 40px;
		text-align: center;
		font-size: 28px;
		letter-spacing: 0.25em;
		text-transform: uppercase;
		color: #ff544b;
	}

	.main-navigation.is-open ul {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		max-width: 320px;
		gap: 0;
	}

	.main-navigation.is-open > ul > li {
		width: 100%;
		text-align: center;
		border-bottom: 1px solid var(--istina-border);
	}

	.main-navigation.is-open > ul > li:first-child {
		border-top: 1px solid var(--istina-border);
	}

	.main-navigation.is-open > ul > li > a {
		display: block;
		padding: 18px 0;
		font-size: 21px;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		transition: color 0.2s ease;
	}

	.main-navigation.is-open > ul > li > a:hover,
	.main-navigation.is-open > ul > li > a:focus {
		color: #ff544b;
		text-decoration: none;
	}

	.main-navigation .sub-menu {
		display: flex;
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		margin: 2px 0 18px;
		padding: 0;
		border: none;
		background-color: transparent;
		gap: 10px 20px;
	}

	.main-navigation .sub-menu a {
		padding: 4px 0;
		font-size: 13px;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: #a9a79f;
		transition: color 0.2s ease;
	}

	.main-navigation .sub-menu a:hover,
	.main-navigation .sub-menu a:focus {
		color: #ff544b;
		text-decoration: none;
	}

	.menu-toggle {
		position: relative;
		z-index: 101;
	}

	body.nav-open .menu-toggle {
		position: fixed;
		top: calc(1rem + 4rem);
		right: 1rem;
	}

	.menu-toggle-bar {
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.site-footer {
		padding: 50px 0 20px;
	}

	.site-footer-inner {
		text-align: center;
	}

	.footer-columns {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.footer-column {
		padding: 28px 0;
		border-bottom: 1px solid var(--istina-border);
	}

	.footer-column:first-child {
		padding-top: 0;
	}

	.footer-column:last-child {
		border-bottom: none;
	}

	.footer-logo .custom-logo {
		margin: 0 auto;
	}

	.footer-column p.footer-tagline {
		margin-left: auto;
		margin-right: auto;
	}

	.footer-navigation ul,
	.footer-column .social-links {
		align-items: center;
	}

	.footer-column .social-links {
		display: flex;
		justify-content: center;
		gap: 20px;
	}

	.footer-bottom {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 16px;
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 30px;
	}

	.woocommerce ul.products li.product .price {
		font-size: 30px;
	}

	.faq-question {
		font-size: 21px;
	}

	.istina-gallery {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 14px;
		margin-top: 28px;
	}

	.istina-lightbox-stage {
		padding: 64px 16px;
	}

	.istina-lightbox-prev,
	.istina-lightbox-next {
		width: 40px;
		height: 40px;
	}

	.istina-lightbox-prev {
		left: 8px;
	}

	.istina-lightbox-next {
		right: 8px;
	}

	.istina-lightbox-close {
		top: 10px;
		right: 10px;
		width: 36px;
		height: 36px;
	}

	.istina-lightbox-counter {
		bottom: 12px;
	}
}

@media (max-width: 480px) {
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}
}
