/* VK Commerce – core styles. Design tokens (colors, radii, spacing) are also set from the Customizer. */
:root {
	--vkc-color-primary: #0f766e;
	--vkc-color-secondary: #f2b84b;
	--vkc-color-text: #1b1f24;
	--vkc-color-muted: #5b6470;
	--vkc-color-background: #ffffff;
	--vkc-color-surface: #f6f7f8;
	--vkc-color-border: #e3e6ea;
	--vkc-color-danger: #b42318;
	--vkc-container-width: 1240px;
	--vkc-radius-small: 5px;
	--vkc-radius-medium: 10px;
	--vkc-radius-large: 20px;
	--vkc-radius-button: 8px;
	--vkc-spacing-section: 72px;
	--vkc-shadow: 0 6px 24px rgba(16, 24, 40, .08);
	--vkc-header-h: 68px;
	--vkc-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--vkc-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--vkc-color-text);
	background: var(--vkc-color-background);
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--vkc-color-primary); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--vkc-color-primary); outline-offset: 2px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	background: #fff; color: #000; padding: 12px 20px; z-index: 100000; top: 8px; left: 8px;
}

.vkc-container { width: 100%; max-width: var(--vkc-container-width); margin-inline: auto; padding-inline: 20px; }
.vkc-section { padding-block: var(--vkc-spacing-section); }
.vkc-main { outline: none; min-height: 50vh; }
.vkc-page-title { margin-bottom: .4em; }
.vkc-page-head { margin-bottom: 2rem; }
.vkc-meta { color: var(--vkc-color-muted); font-size: .875rem; }

/* Buttons & forms */
.vkc-btn, .button, button.button, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .75em 1.4em; border: 2px solid var(--vkc-color-primary);
	border-radius: var(--vkc-radius-button); background: var(--vkc-color-primary); color: #fff;
	font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.vkc-btn:hover, .button:hover, input[type="submit"]:hover { background: #0b5d57; border-color: #0b5d57; color: #fff; }
.vkc-btn--small { padding: .5em 1em; font-size: .875rem; }
.vkc-btn--ghost { background: transparent; color: var(--vkc-color-primary); }
.vkc-btn--ghost:hover { background: var(--vkc-color-primary); color: #fff; }
.vkc-btn--light { background: #fff; border-color: #fff; color: #12312e; }
.vkc-btn--light:hover { background: var(--vkc-color-secondary); border-color: var(--vkc-color-secondary); color: #1b1f24; }
.vkc-btn--ghost-light { background: transparent; border-color: #fff; color: #fff; }
.vkc-btn--ghost-light:hover { background: #fff; color: #12312e; }
.vkc-btn-outline .button, .vkc-btn-outline .vkc-btn:not(.vkc-btn--light):not(.vkc-btn--ghost-light) { background: transparent; color: var(--vkc-color-primary); }
.vkc-btn-outline .button:hover, .vkc-btn-outline .vkc-btn:not(.vkc-btn--light):not(.vkc-btn--ghost-light):hover { background: var(--vkc-color-primary); color: #fff; }

input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"],
input[type="password"], input[type="number"], select, textarea, .vkc-input {
	width: 100%; padding: .7em .9em; font: inherit; color: inherit; background: #fff;
	border: 1px solid #9aa3ad; border-radius: var(--vkc-radius-small);
}
label { font-weight: 600; }

.vkc-icon-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: inherit; cursor: pointer;
}
.vkc-icon-btn:hover { background: var(--vkc-color-surface); }

/* Announcement */
.vkc-announce { background: var(--vkc-announce-bg); color: var(--vkc-announce-fg); text-align: center; font-size: .875rem; padding: .55rem 0; }
.vkc-announce a { color: inherit; font-weight: 600; }

/* Header */
.vkc-header { background: #fff; border-bottom: 1px solid var(--vkc-color-border); z-index: 50; }
.vkc-sticky-header .vkc-header { position: sticky; top: 0; }
.admin-bar.vkc-sticky-header .vkc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.vkc-sticky-header .vkc-header { top: 46px; } }
.vkc-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--vkc-header-h); }
.vkc-brand { flex: 0 0 auto; }
.vkc-brand__title { margin: 0; font-size: 1.4rem; font-weight: 800; }
.vkc-brand__title a { color: inherit; text-decoration: none; }
.custom-logo { max-height: 48px; width: auto; }
.vkc-nav { flex: 1 1 auto; }
.vkc-menu { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.vkc-header-default .vkc-menu { justify-content: center; }
.vkc-menu a { display: block; padding: .5rem 0; color: inherit; font-weight: 600; text-decoration: none; }
.vkc-menu a:hover, .vkc-menu .current-menu-item > a { color: var(--vkc-color-primary); }
.vkc-menu li { position: relative; }
.vkc-menu .sub-menu {
	position: absolute; left: -1rem; top: 100%; min-width: 220px; list-style: none; margin: 0; padding: .5rem 1rem;
	background: #fff; border: 1px solid var(--vkc-color-border); border-radius: var(--vkc-radius-medium);
	box-shadow: var(--vkc-shadow); opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .15s, transform .15s;
}
.vkc-menu li:hover > .sub-menu, .vkc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.vkc-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.vkc-cart-count {
	position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
	background: var(--vkc-color-secondary); color: #1b1f24; font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center;
}
.vkc-cart-count[data-count="0"] { background: var(--vkc-color-surface); border: 1px solid var(--vkc-color-border); }
.vkc-search-panel { border-top: 1px solid var(--vkc-color-border); padding: 1rem 0; background: var(--vkc-color-surface); }
.vkc-searchform { display: flex; gap: .5rem; }
.vkc-menu-toggle, .vkc-nav__close { display: none; }
.vkc-header-centered .vkc-header__inner { flex-wrap: wrap; justify-content: space-between; }
.vkc-header-centered .vkc-brand { order: 2; margin-inline: auto; }
.vkc-header-centered .vkc-actions { order: 3; margin-left: 0; }
.vkc-header-centered .vkc-nav { order: 4; flex-basis: 100%; border-top: 1px solid var(--vkc-color-border); }
.vkc-header-centered .vkc-menu { justify-content: center; }
.vkc-overlay { position: fixed; inset: 0; background: rgba(10, 15, 20, .5); z-index: 90; }

@media (max-width: 900px) {
	.vkc-menu-toggle, .vkc-nav__close { display: inline-flex; }
	.vkc-actions__promo { display: none; }
	.vkc-header-centered .vkc-brand, .vkc-header-centered .vkc-actions { order: initial; }
	.vkc-nav, .vkc-header-centered .vkc-nav {
		position: fixed; inset: 0 auto 0 0; width: min(86vw, 340px); background: #fff; z-index: 100;
		padding: 1rem 1.25rem; overflow-y: auto; transform: translateX(-102%); visibility: hidden;
		transition: transform .25s ease, visibility .25s; border: 0; flex: none;
	}
	.vkc-nav.is-open { transform: none; visibility: visible; }
	.vkc-menu { flex-direction: column; gap: 0; }
	.vkc-menu a { padding: .8rem 0; border-bottom: 1px solid var(--vkc-color-border); }
	.vkc-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
	.vkc-brand { margin-inline: auto; }
	.vkc-actions { margin-left: 0; }
}
body.vkc-lock { overflow: hidden; }

/* Hero */
.vkc-hero {
	position: relative; display: flex; align-items: center; min-height: clamp(380px, 60vh, 620px); color: #fff;
	background: linear-gradient(120deg, #0b3f3b 0%, var(--vkc-color-primary) 60%, #2c9a8f 100%);
}
.vkc-hero.has-image { background: var(--vkc-hero-img) center / cover no-repeat; }
.vkc-hero.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(8, 18, 20, var(--vkc-hero-overlay)); }
.vkc-hero .vkc-container { position: relative; }
.vkc-hero__content { max-width: 620px; padding-block: 3rem; }
.vkc-hero--center .vkc-hero__content { margin-inline: auto; text-align: center; }
.vkc-hero--right .vkc-hero__content { margin-left: auto; text-align: right; }
.vkc-hero__title { font-size: clamp(2.1rem, 5.5vw, 3.8rem); }
.vkc-hero__text { font-size: 1.15rem; opacity: .95; }
.vkc-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.vkc-hero--center .vkc-hero__actions { justify-content: center; }
.vkc-hero--right .vkc-hero__actions { justify-content: flex-end; }
@media (max-width: 640px) { .vkc-hero.has-image { background-image: var(--vkc-hero-img-m, var(--vkc-hero-img)); } }

/* Sections */
.vkc-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.vkc-section__title { margin: 0; }
.vkc-link-more { font-weight: 600; }
.vkc-section--sale, .vkc-section--blog, .vkc-section--testimonials { background: var(--vkc-color-surface); }

.vkc-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.vkc-cat-card a { display: block; text-decoration: none; color: inherit; text-align: center; }
.vkc-cat-card__media { display: block; aspect-ratio: 1; overflow: hidden; background: var(--vkc-color-surface); border-radius: var(--vkc-radius-medium); margin-bottom: .6rem; }
.vkc-cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.vkc-cat-card a:hover img { transform: scale(1.04); }
.vkc-cat-card__name { display: block; font-weight: 700; }
.vkc-cat-card__count { display: block; font-size: .85rem; color: var(--vkc-color-muted); }

.vkc-banner-grid { display: grid; gap: 1rem; }
.vkc-banner-grid--2 { grid-template-columns: repeat(2, 1fr); }
.vkc-banner-grid--3 { grid-template-columns: repeat(3, 1fr); }
.vkc-banner { position: relative; display: block; overflow: hidden; border-radius: var(--vkc-radius-medium); aspect-ratio: 16 / 10; background: var(--vkc-color-primary); color: #fff; text-decoration: none; }
.vkc-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vkc-banner__title { position: absolute; left: 1.25rem; bottom: 1.1rem; right: 1.25rem; font-size: 1.4rem; font-weight: 800; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.vkc-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 55%); }
.vkc-banner__title { z-index: 1; }
@media (max-width: 700px) { .vkc-banner-grid--2, .vkc-banner-grid--3 { grid-template-columns: 1fr; } }

.vkc-brand-row { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; list-style: none; padding: 1.5rem 0 0; margin: 0; }
.vkc-brand-row img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .75; }
.vkc-brand-row a:hover img, .vkc-brand-row a:focus-visible img { filter: none; opacity: 1; }
.vkc-section--brands .vkc-section__title { text-align: center; }

.vkc-testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.vkc-testi { margin: 0; padding: 1.5rem; background: #fff; border: 1px solid var(--vkc-color-border); border-radius: var(--vkc-radius-medium); }
.vkc-testi blockquote { margin: 0 0 1rem; }
.vkc-testi figcaption { font-weight: 700; }

.vkc-newsletter { max-width: 640px; text-align: center; }
.vkc-newsletter__form form { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

/* Posts */
.vkc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.vkc-layout:has(.vkc-sidebar) { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 900px) { .vkc-layout:has(.vkc-sidebar) { grid-template-columns: minmax(0, 1fr); } }
.vkc-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.vkc-post-card { background: #fff; border: 1px solid var(--vkc-color-border); border-radius: var(--vkc-radius-medium); overflow: hidden; }
.vkc-post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.vkc-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.vkc-post-card__body { padding: 1.1rem 1.25rem 1.4rem; }
.vkc-post-card__title { font-size: 1.15rem; margin: .25rem 0 .5rem; }
.vkc-post-card__title a { color: inherit; text-decoration: none; }
.vkc-post-card__title a:hover { color: var(--vkc-color-primary); }
.vkc-prose > * + * { margin-top: 1em; }
.vkc-prose img { border-radius: var(--vkc-radius-small); }
.vkc-single__media { margin-bottom: 1.5rem; }
.vkc-single__media img { width: 100%; border-radius: var(--vkc-radius-medium); }
.vkc-widget { margin-bottom: 2rem; }
.vkc-widget__title { font-size: 1.05rem; }
.vkc-widget ul { list-style: none; padding: 0; margin: 0; }
.vkc-widget li { padding: .25rem 0; }
.navigation.pagination, .woocommerce-pagination { margin-top: 2rem; text-align: center; }
.page-numbers { display: inline-block; min-width: 40px; padding: .45rem .8rem; margin: 0 2px; border: 1px solid var(--vkc-color-border); border-radius: var(--vkc-radius-small); text-decoration: none; color: inherit; }
.page-numbers.current { background: var(--vkc-color-primary); border-color: var(--vkc-color-primary); color: #fff; }
ul.page-numbers { list-style: none; padding: 0; border: 0; }
ul.page-numbers li { display: inline-block; }
.vkc-empty { text-align: center; padding-block: 3rem; }
.vkc-empty .vkc-searchform { max-width: 460px; margin: 1.5rem auto; }
.vkc-comments { margin-top: 3rem; }
.vkc-comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--vkc-color-border); }

/* Footer */
.vkc-footer { background: #111a1a; color: #d6dcdc; padding-top: 3rem; margin-top: var(--vkc-spacing-section); }
.vkc-footer a { color: #fff; }
.vkc-footer__grid { display: grid; gap: 2rem; }
.vkc-footer__grid.vkc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vkc-footer__grid.vkc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vkc-footer__grid.vkc-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { .vkc-footer__grid { grid-template-columns: 1fr !important; } }
.vkc-footer__name { font-weight: 800; font-size: 1.2rem; color: #fff; }
.vkc-footer .vkc-widget__title { color: #fff; }
.vkc-footer__menu { list-style: none; padding: 0; margin: 0; }
.vkc-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; }
.vkc-footer__bottom p { margin: 0; }
.vkc-social { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }

.vkc-to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 46px; height: 46px; border: 0; border-radius: 50%;
	background: var(--vkc-color-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--vkc-shadow);
}
.vkc-to-top[hidden] { display: none; }

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