/* Viver Storefront — minimal, fast layer on top of the block theme. */
:root {
	--vs-ink: #111;
	--vs-muted: #6b6b6b;
	--vs-line: #ececec;
	--vs-soft: #f6f6f4;
	--vs-radius: 14px;
	--vs-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* System fonts: no web-font download, instant text. */
body,
body h1, body h2, body h3, body h4, body h5, body h6,
body .wp-block-navigation, body button, body input, body select, body textarea,
body .wp-element-button, body .wc-block-components-button {
	font-family: var(--vs-font) !important;
}
body { color: var(--vs-ink); -webkit-font-smoothing: antialiased; font-weight: 400 !important; }
body p, body li, body .wp-block-post-content { font-weight: 400 !important; }
.stock.available-on-backorder, .backorder_notification { color: #8a5a00 !important; font-weight: 500; }
.stock.in-stock { color: #1a7f37 !important; font-weight: 500; }
body h1, body h2, body h3 { letter-spacing: -0.02em; font-weight: 600; }

/* Header: slim, sticky, quiet. */
.wp-site-blocks > header,
.wp-site-blocks > .wp-block-template-part:first-child {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(10px);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--vs-line);
}
.admin-bar .wp-site-blocks > header,
.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header,
	.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 0; }
}
header .wp-block-group.alignwide,
header .wp-block-group.alignfull { padding-top: 14px !important; padding-bottom: 14px !important; }
header .wp-block-site-title { font-size: 1.25rem !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
header .wp-block-site-title a { text-decoration: none; }
header .wp-block-navigation { font-size: 0.95rem !important; gap: 1.5rem; }
header .wp-block-navigation a { text-decoration: none; }
header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Front page: no page title, no big top gap, sections edge to edge. */
.home .wp-block-post-title,
.home main > .wp-block-group > h1.wp-block-post-title { display: none; }
.home main { margin-top: 0 !important; padding-top: 0 !important; }
.home main > .wp-block-group,
.home .wp-block-post-content { padding-top: 0 !important; margin-top: 0 !important; }
.vs-section { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.vs-home > * { margin-block-start: 0 !important; }

/* Header search: icon only, no black pill. */
header .wp-block-search__button {
	background: transparent !important; color: var(--vs-ink) !important; border: 0 !important;
	padding: 8px !important; margin: 0 !important; border-radius: 50% !important; min-width: 0 !important; width: 40px; height: 40px;
}
header .wp-block-search__button:hover { background: var(--vs-soft) !important; }
header .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
header .wp-block-search__input { border-radius: 999px !important; border: 1px solid var(--vs-line) !important; padding: 8px 14px !important; }

/* ---------- Our Brands bar ---------- */
.vs-brands {
	text-align: center;
	padding: 22px 16px 18px;
	border-bottom: 1px solid var(--vs-line);
	background: #fff;
}
.vs-brands__title {
	margin: 0 0 12px; font-size: 0.72rem; letter-spacing: 0.22em;
	text-transform: uppercase; color: var(--vs-muted);
}
.vs-brands__list {
	list-style: none; margin: 0 auto; padding: 0;
	display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 64px);
	overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.vs-brands__list::-webkit-scrollbar { display: none; }
.vs-brands__list li { flex: 0 0 auto; scroll-snap-align: center; }
.vs-brand {
	display: flex; align-items: center; justify-content: center;
	height: 64px; min-width: 96px; padding: 6px 10px;
	text-decoration: none; color: var(--vs-ink); border-radius: 10px;
	transition: background-color 0.2s;
}
.vs-brand:hover { opacity: 0.65; }
.vs-brand:focus-visible { outline: 2px solid var(--vs-ink); outline-offset: 2px; }
.vs-brand__logo { max-height: 52px; width: auto; max-width: 160px; object-fit: contain; mix-blend-mode: multiply; }
.vs-brand__name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; }
@media (max-width: 600px) {
	.vs-brands { padding: 14px 12px 12px; }
	.vs-brands__list { justify-content: flex-start; gap: 14px; }
	.vs-brand { height: 52px; min-width: 84px; }
	.vs-brand__logo { max-height: 40px; max-width: 120px; }
}

/* ---------- Hero slider ---------- */
.vs-hero { position: relative; background: var(--vs-soft); }
.vs-hero__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
	scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.vs-hero__track::-webkit-scrollbar { display: none; }
.vs-hero__track:focus-visible { outline: 2px solid var(--vs-ink); outline-offset: -2px; }
.vs-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; background: var(--vs-bg, #111); }
.vs-slide__inner { display: block; position: relative; color: inherit; text-decoration: none; }
.vs-slide--light { color: #fff; }
.vs-slide--dark { color: var(--vs-ink); }
.vs-slide picture, .vs-slide__img { display: block; width: 100%; height: auto; }
.vs-slide.has-image .vs-slide__img { aspect-ratio: 8 / 3; object-fit: cover; }
@media (max-width: 767px) { .vs-slide.has-image .vs-slide__img { aspect-ratio: 4 / 5; } }

.vs-slide__content { padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 96px); max-width: 640px; }
.vs-slide.no-image .vs-slide__inner { min-height: clamp(300px, 42vw, 520px); display: flex; align-items: center; }
.vs-slide.has-image .vs-slide__content { position: absolute; inset: auto auto 0 0; }
.vs-slide.has-image.vs-slide--light .vs-slide__content { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.vs-slide__title { margin: 0 0 10px; font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.05; color: inherit; }
.vs-slide__sub { margin: 0 0 22px; font-size: clamp(1rem, 1.6vw, 1.2rem); opacity: 0.85; }
.vs-btn {
	display: inline-block; padding: 13px 26px; border-radius: 999px;
	background: #fff; color: var(--vs-ink); font-weight: 600; font-size: 0.95rem;
	text-shadow: none; transition: transform 0.15s;
}
.vs-slide--dark .vs-btn { background: var(--vs-ink); color: #fff; }
.vs-slide__inner:hover .vs-btn { transform: translateY(-1px); }

.vs-hero__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, 0.85); color: var(--vs-ink); font-size: 28px; line-height: 1;
	display: grid; place-items: center; opacity: 0; transition: opacity 0.2s;
}
.vs-hero:hover .vs-hero__nav, .vs-hero__nav:focus-visible { opacity: 1; }
.vs-hero__prev { left: 16px; }
.vs-hero__next { right: 16px; }
.vs-hero__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.vs-hero__dots button {
	width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
	background: rgba(255, 255, 255, 0.55); transition: width 0.25s, background 0.25s;
}
.vs-hero__dots button[aria-current="true"] { width: 24px; background: #fff; }
@media (hover: none) { .vs-hero__nav { display: none; } }

/* ---------- Section headings ---------- */
.vs-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: clamp(36px, 6vw, 64px) 0 18px; }
.vs-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.vs-heading a { color: var(--vs-ink); font-size: 0.92rem; text-underline-offset: 4px; }

/* ---------- Product grids (shortcodes + shop blocks) ---------- */
.woocommerce ul.products,
.wp-block-woocommerce-product-template {
	display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 28px 14px !important; margin: 0 !important; padding: 0 !important;
}
@media (min-width: 900px) {
	.woocommerce ul.products,
	.wp-block-woocommerce-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 36px 22px !important; }
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product,
.wp-block-woocommerce-product-template > li {
	width: auto !important; margin: 0 !important; float: none !important; text-align: left !important; list-style: none;
}
.woocommerce ul.products li.product a img,
.wp-block-woocommerce-product-template .wc-block-components-product-image img,
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-image img {
	aspect-ratio: 1 / 1; object-fit: contain; background: var(--vs-soft);
	border-radius: var(--vs-radius); margin: 0 0 12px !important; transition: transform 0.35s ease;
}
.woocommerce ul.products li.product:hover a img,
.wp-block-woocommerce-product-template > li:hover img { transform: scale(1.02); }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wp-block-woocommerce-product-template .wp-block-post-title {
	font-size: 0.95rem !important; font-weight: 500 !important; line-height: 1.35;
	padding: 0 !important; margin: 0 0 6px !important; text-align: left !important;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wp-block-woocommerce-product-template .wp-block-post-title a { text-decoration: none; }
.woocommerce ul.products li.product .price,
.wp-block-woocommerce-product-template .wc-block-components-product-price {
	color: var(--vs-ink) !important; font-weight: 600; font-size: 0.95rem !important; text-align: left !important; justify-content: flex-start;
}
.woocommerce ul.products li.product .price del,
.wp-block-woocommerce-product-template del { color: var(--vs-muted); font-weight: 400; }
.woocommerce ul.products li.product .button,
.wp-block-woocommerce-product-template .wp-block-button__link,
.wp-block-woocommerce-product-template .wc-block-components-product-button__button {
	margin-top: 10px !important; padding: 9px 16px !important; font-size: 0.85rem !important;
	border-radius: 999px !important; background: var(--vs-ink) !important; color: #fff !important; border: 0 !important;
}
.wp-block-woocommerce-product-template .wc-block-components-product-button { align-items: flex-start !important; }
.woocommerce span.onsale,
.wc-block-components-product-sale-badge {
	background: var(--vs-ink) !important; color: #fff !important; border-radius: 999px !important;
	min-height: 0 !important; min-width: 0 !important; padding: 4px 10px !important; font-size: 0.72rem !important; line-height: 1.4 !important; font-weight: 600 !important;
}

/* ---------- Trust strip ---------- */
.vs-trust {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
	background: var(--vs-line); border: 1px solid var(--vs-line); border-radius: var(--vs-radius);
	overflow: hidden; margin: clamp(40px, 6vw, 72px) 0;
}
.vs-trust div { background: #fff; padding: 22px 18px; }
.vs-trust strong { display: block; font-size: 0.98rem; margin-bottom: 4px; }
.vs-trust span { color: var(--vs-muted); font-size: 0.86rem; }
@media (min-width: 900px) { .vs-trust { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Footer ---------- */
.vs-footer { border-top: 1px solid var(--vs-line); padding: 36px 20px 28px; font-size: 0.9rem; color: var(--vs-muted); }
.vs-footer__inner { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.vs-footer a { color: var(--vs-ink); text-decoration: none; }
.vs-footer a:hover { text-decoration: underline; }
.vs-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }

@media (prefers-reduced-motion: reduce) {
	.vs-hero__track { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* Quieter "(incl. GST)" suffix. */
.woocommerce-price-suffix { font-size: 0.72em; font-weight: 400; color: var(--vs-muted); white-space: nowrap; }
@media (max-width: 600px) {
	.woocommerce ul.products li.product .woocommerce-price-suffix,
	.wp-block-woocommerce-product-template .woocommerce-price-suffix { display: none; }
}
