/*
Theme Name: Furniturka Minimal
Theme URI: https://furniturka.org/
Author: Furniturka.org
Description: Мінімалістична тема для магазину фурнітури для прикрас Furniturka.org. Повна підтримка WooCommerce: каталог, картка товару, кошик, оформлення, кабінет.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 9.9
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: furniturka
Tags: e-commerce, woocommerce, minimal, custom-logo, custom-menu, featured-images
*/

/* ---------- Tokens ---------- */
:root {
	--f-bg: #f8f7f8;
	--f-surface: #ffffff;
	--f-soft: #f1eef1;
	--f-ink: #0b0b0c;
	--f-muted: #6b6670;
	--f-line: #e7e4e8;
	--f-accent: #8b1e6a;
	--f-accent-ink: #ffffff;
	--f-accent-light: #f2c4e4;
	--f-sale: var(--f-accent);
	--f-radius: 2px;
	--f-max: 1320px;
	--f-gutter: clamp(16px, 4vw, 40px);
	--f-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-serif: "Cormorant Garamond", Georgia, serif;
	--f-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--f-bg);
	color: var(--f-ink);
	font: 400 15px/1.6 var(--f-font);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--f-ease), opacity .2s var(--f-ease); }
a:hover { color: var(--f-accent); }
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--f-ink); color: #fff; padding: 10px 16px;
}

.f-container { width: 100%; max-width: var(--f-max); margin: 0 auto; padding: 0 var(--f-gutter); }
.f-eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--f-muted); margin-bottom: 14px; display: block; }

/* ---------- Buttons ---------- */
.f-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wp-block-button__link, .wc-block-components-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 28px;
	background: var(--f-ink); color: #fff !important;
	border: 1px solid var(--f-ink); border-radius: var(--f-radius);
	font: 500 13px/1 var(--f-font); letter-spacing: .08em; text-transform: uppercase;
	cursor: pointer; transition: background .25s var(--f-ease), border-color .25s var(--f-ease), color .25s var(--f-ease);
}
.f-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
	background: var(--f-accent); border-color: var(--f-accent); color: #fff;
}
.f-btn--ghost { background: transparent; color: var(--f-ink) !important; }
.f-btn--ghost:hover { background: var(--f-ink); border-color: var(--f-ink); color: #fff !important; }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--f-ink); }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--f-accent); }
.woocommerce a.button.disabled, .woocommerce button.button:disabled { opacity: .45; }

/* ---------- Top bar ---------- */
.f-topbar {
	background: var(--f-ink); color: #e8e5ea;
	font-size: 12px; letter-spacing: .04em; text-align: center; padding: 9px 16px;
}

/* ---------- Header ---------- */
.f-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(248, 247, 248, .92);
	-webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--f-line);
}
.admin-bar .f-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .f-header { top: 0; } }
.f-header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: 16px; }
.f-header__left { display: flex; align-items: center; gap: 8px; }
.f-header__right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.f-logo { justify-self: center; display: flex; align-items: center; }
.f-logo img { max-height: 40px; width: auto; }
.f-logo__text { font-family: var(--f-serif); font-size: 28px; letter-spacing: .02em; }
.f-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--f-ink);
}
.f-icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.f-icon-btn:hover { color: var(--f-accent); }
.f-cart-count {
	position: absolute; top: 6px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
	border-radius: 9px; background: var(--f-accent); color: #fff;
	font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
}
.f-cart-count[data-count="0"] { display: none; }

/* Primary nav (desktop) */
.f-nav { border-top: 1px solid var(--f-line); }
.f-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 30px; }
.f-nav li { position: relative; }
.f-nav a {
	display: block; padding: 15px 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
	position: relative;
}
.f-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px;
	background: var(--f-accent); transform: scaleX(0); transition: transform .3s var(--f-ease);
}
.f-nav a:hover::after, .f-nav .current-menu-item > a::after, .f-nav .current-product_cat-ancestor > a::after { transform: scaleX(1); }
.f-nav .sub-menu {
	position: absolute; top: 100%; left: -20px; min-width: 240px; display: block;
	background: var(--f-surface); border: 1px solid var(--f-line); padding: 10px 20px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--f-ease);
}
.f-nav li:hover > .sub-menu, .f-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.f-nav .sub-menu a { padding: 8px 0; text-transform: none; letter-spacing: 0; font-size: 14px; }
.f-nav .sub-menu a::after { display: none; }

.f-menu-toggle { display: none; }

/* Search panel */
.f-search-panel { border-top: 1px solid var(--f-line); background: var(--f-surface); }
.f-search-panel[hidden] { display: none; }
.f-search-panel .f-container { padding-top: 22px; padding-bottom: 22px; }
.f-search-form { display: flex; gap: 0; border-bottom: 1px solid var(--f-ink); }
.f-search-form input[type="search"] {
	flex: 1; border: 0; background: none; padding: 12px 0; font-size: 20px; outline: none; min-width: 0;
}
.f-search-form button { border: 0; background: none; cursor: pointer; padding: 0 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* Mobile drawer */
.f-drawer {
	position: fixed; inset: 0; z-index: 100; background: rgba(11, 11, 12, .35);
	opacity: 0; visibility: hidden; transition: opacity .25s var(--f-ease);
}
.f-drawer.is-open { opacity: 1; visibility: visible; }
.f-drawer__panel {
	position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 380px);
	background: var(--f-bg); padding: 20px 24px 40px; overflow-y: auto;
	transform: translateX(-100%); transition: transform .3s var(--f-ease);
}
.f-drawer.is-open .f-drawer__panel { transform: none; }
.f-drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.f-drawer ul { list-style: none; margin: 0; padding: 0; }
.f-drawer li { border-bottom: 1px solid var(--f-line); }
.f-drawer a { display: block; padding: 14px 0; font-size: 16px; }
.f-drawer .sub-menu { padding-left: 14px; }
.f-drawer .sub-menu li { border: 0; }
.f-drawer .sub-menu a { padding: 8px 0; font-size: 14px; color: var(--f-muted); }
body.f-lock { overflow: hidden; }

@media (max-width: 960px) {
	.f-nav { display: none; }
	.f-menu-toggle { display: inline-flex; }
	.f-header__row { height: 64px; }
	.f-header__account { display: none; }
}

/* ---------- Main ---------- */
.f-main { min-height: 50vh; }
.f-section { padding: clamp(56px, 8vw, 110px) 0; }
.f-section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.f-section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.f-section__head h2 { margin: 0; }
.f-link-arrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap; }

/* Hero slider (full width) */
.f-slider {
	position: relative; width: 100%; overflow: hidden;
	height: clamp(480px, 82vh, 820px); background: var(--f-soft); color: var(--f-ink);
}
.f-slider__track { display: flex; height: 100%; transition: transform .8s var(--f-ease); will-change: transform; }
.f-slider.is-dragging .f-slider__track { transition: none; }
.f-slide { position: relative; flex: 0 0 100%; height: 100%; display: flex; align-items: center; }
.f-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.f-slide.has-img { color: #fff; }
.f-slide.has-img::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(90deg, rgba(10, 10, 12, .55) 0%, rgba(10, 10, 12, .28) 45%, rgba(10, 10, 12, 0) 75%);
}
.f-slide__inner { position: relative; z-index: 2; width: 100%; }
.f-slide__content { max-width: 560px; padding-bottom: 40px; }
.f-slide .f-eyebrow { color: inherit; opacity: .8; }
.f-slide__title { font-size: clamp(38px, 5.6vw, 76px); margin-bottom: 20px; color: inherit; }
.f-slide__title em { font-style: italic; color: var(--f-accent); }
.f-slide.has-img .f-slide__title em { color: var(--f-accent-light); }
.f-slide__text { font-size: 16px; max-width: 460px; margin-bottom: 32px; opacity: .85; }
.f-slide__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.f-slide.has-img .f-btn--light { background: #fff; border-color: #fff; color: var(--f-ink) !important; }
.f-slide.has-img .f-btn--light:hover { background: var(--f-accent); border-color: var(--f-accent); color: #fff !important; }
.f-btn--outline-light { background: transparent; color: var(--f-ink) !important; }
.f-btn--outline-light:hover { background: var(--f-ink); color: #fff !important; }
.f-slide.has-img .f-btn--outline-light { border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.f-slide.has-img .f-btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--f-ink) !important; }

/* Controls: thin progress lines + arrows */
.f-slider__controls {
	position: absolute; left: 0; right: 0; bottom: 32px; z-index: 3;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.f-slider__dots { display: flex; gap: 8px; }
.f-slider__dot { width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.f-slider__dot span { position: relative; display: block; width: 100%; height: 2px; background: rgba(11, 11, 12, .2); overflow: hidden; }
.f-slider__dot span::after { content: ""; position: absolute; inset: 0; background: var(--f-ink); transform: scaleX(0); transform-origin: left; }
.f-slider__dot.is-active span::after { transform: scaleX(1); }
.f-slider.is-playing .f-slider__dot.is-active span::after { animation: f-progress var(--f-interval, 6s) linear forwards; }
.f-slider.is-paused .f-slider__dot.is-active span::after { animation-play-state: paused; }
@keyframes f-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.f-slider__arrows { display: flex; gap: 8px; }
.f-slider__arrow {
	width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(11, 11, 12, .25); background: transparent;
	color: var(--f-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
	transition: background .2s var(--f-ease), border-color .2s var(--f-ease), color .2s var(--f-ease);
}
.f-slider__arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.f-slider__prev svg { transform: rotate(180deg); }
.f-slider__arrow:hover { background: var(--f-ink); border-color: var(--f-ink); color: #fff; }
/* light controls when the active slide has a photo */
.f-slider.on-img .f-slider__dot span { background: rgba(255, 255, 255, .35); }
.f-slider.on-img .f-slider__dot span::after { background: #fff; }
.f-slider.on-img .f-slider__arrow { border-color: rgba(255, 255, 255, .5); color: #fff; }
.f-slider.on-img .f-slider__arrow:hover { background: #fff; border-color: #fff; color: var(--f-ink); }

@media (max-width: 760px) {
	.f-slider { height: clamp(460px, 78vh, 640px); }
	.f-slide { align-items: flex-end; }
	.f-slide.has-img::before { background: linear-gradient(0deg, rgba(10, 10, 12, .65) 0%, rgba(10, 10, 12, .25) 50%, rgba(10, 10, 12, 0) 80%); }
	.f-slide__content { padding-bottom: 96px; }
	.f-slider__controls { bottom: 24px; }
	.f-slider__arrows { display: none; }
	.f-slider__dot { width: 32px; }
}

/* Top products carousel (compact, ~half a screen) */
.f-topslider {
	--f-ts-bg: var(--f-soft); --f-ts-gap: 16px; --f-ts-per: 4.3;
	background: var(--f-ts-bg); padding: 24px 0 18px; border-bottom: 1px solid var(--f-line);
}
.f-topslider__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.f-topslider__head .f-eyebrow { margin-bottom: 6px; }
.f-topslider__title { margin: 0; font-family: var(--f-font); font-size: 22px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.f-topslider__nav { display: flex; align-items: center; gap: 8px; }
.f-topslider__nav .f-link-arrow { margin-right: 12px; }
.f-topslider__nav .f-slider__arrow { width: 40px; height: 40px; }
.f-topslider__nav .f-slider__arrow:disabled { opacity: .3; cursor: default; background: transparent; color: var(--f-ink); border-color: rgba(11, 11, 12, .25); }
.f-topslider__prev svg { transform: rotate(180deg); }

.f-topslider__track {
	list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: var(--f-ts-gap);
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.f-topslider__track::-webkit-scrollbar { display: none; }
.f-topslider__track:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 4px; }

.f-tcard {
	flex: 0 0 calc((100% - (var(--f-ts-per) - 1) * var(--f-ts-gap)) / var(--f-ts-per));
	scroll-snap-align: start; background: var(--f-surface); display: flex; flex-direction: column; min-width: 0;
}
.f-tcard__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.f-tcard__img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; transition: transform .6s var(--f-ease); }
.f-tcard:hover .f-tcard__img { transform: scale(1.04); }
.f-tcard__badge {
	position: absolute; top: 10px; left: 10px; padding: 4px 8px; background: var(--f-bg);
	font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--f-muted);
}
.f-tcard__badge--sale { background: var(--f-sale); color: #fff; font-size: 13px; letter-spacing: 0; padding: 4px 9px; }
.f-tcard__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.f-tcard__name {
	font-family: var(--f-font); font-size: 14px; font-weight: 400; line-height: 1.4; margin: 0 0 10px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em;
}
.f-tcard__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.f-tcard__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-width: 0; }
.f-tcard__now { font-size: 17px; font-weight: 600; }
.f-tcard__now del { font-size: .75em; font-weight: 400; color: var(--f-muted); margin-right: 4px; }
.f-tcard__now ins { text-decoration: none; }
.f-tcard__was { font-size: 13px; color: var(--f-muted); }
.f-tcard.is-sale .f-tcard__now { color: var(--f-sale); }
.f-tcard__note { margin: 6px 0 0; font-size: 12px; color: var(--f-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-tcard__cart {
	flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: var(--f-ink); color: #fff; transition: background .2s var(--f-ease);
}
.f-tcard__cart svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.f-tcard__cart:hover { background: var(--f-accent); color: #fff; }
.f-tcard__cart.loading { opacity: .5; pointer-events: none; }
.f-tcard__cart.added { background: var(--f-accent); }
.f-tcard .added_to_cart { display: none; } /* header counter updates instead */

.f-topslider__progress { position: relative; height: 2px; background: rgba(11, 11, 12, .1); margin-top: 14px; }
.f-topslider__progress span { position: absolute; top: 0; left: 0; height: 100%; width: 25%; background: var(--f-ink); transition: left .25s linear, width .25s linear; }

/* Photo height follows screen height so the block stays ≈ half a screen on short monitors. */
@media (min-width: 761px) { .f-tcard__media { aspect-ratio: auto; height: clamp(130px, 21vh, 210px); } }
@media (max-width: 1100px) { .f-topslider { --f-ts-per: 3.3; } }
@media (max-width: 760px) {
	.f-topslider { --f-ts-per: 1.75; --f-ts-gap: 10px; padding: 20px 0 16px; }
	.f-topslider__nav .f-slider__arrow { display: none; }
	.f-topslider__nav .f-link-arrow { margin-right: 0; }
	.f-topslider__title { font-size: 19px; }
	.f-tcard__body { padding: 10px 10px 12px; }
	.f-tcard__now { font-size: 15px; }
	.f-tcard__cart { width: 34px; height: 34px; }
	.f-tcard__note { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .f-topslider__track { scroll-behavior: auto; } }

/* Category grid */
.f-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.f-cat { display: block; }
.f-cat__img { aspect-ratio: 4 / 5; background: var(--f-soft); overflow: hidden; margin-bottom: 14px; }
.f-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--f-ease); }
.f-cat:hover .f-cat__img img { transform: scale(1.04); }
.f-cat__name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.f-cat__count { color: var(--f-muted); font-size: 12px; }
@media (max-width: 960px) { .f-cats { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* Benefits */
.f-benefits { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--f-line); border-bottom: 1px solid var(--f-line); }
.f-benefit { padding: 34px 24px; border-right: 1px solid var(--f-line); }
.f-benefit:last-child { border-right: 0; }
.f-benefit strong { display: block; font-family: var(--f-serif); font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.f-benefit span { color: var(--f-muted); font-size: 14px; }
@media (max-width: 860px) {
	.f-benefits { grid-template-columns: repeat(2, 1fr); }
	.f-benefit:nth-child(2) { border-right: 0; }
	.f-benefit:nth-child(-n+2) { border-bottom: 1px solid var(--f-line); }
}

/* About strip */
.f-about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.f-about p { color: var(--f-muted); font-size: 16px; }
@media (max-width: 860px) { .f-about { grid-template-columns: 1fr; } }

/* ---------- Content pages ---------- */
.f-page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); text-align: center; }
.f-page-head h1 { margin: 0; }
.f-content { max-width: 760px; margin: 0 auto; padding-bottom: 80px; font-size: 16px; }
.f-content a { color: var(--f-accent); border-bottom: 1px solid currentColor; }
.f-content--wide { max-width: none; }
.woocommerce-page .f-content a:not(.button) { border-bottom: 0; }
.woocommerce-page .f-content .shop_table .product-name a { color: var(--f-ink); }
.woocommerce-page .f-content .shop_table .product-name a:hover { color: var(--f-accent); }
.woocommerce .wc-proceed-to-checkout a.checkout-button { font-size: 13px; min-height: 56px; padding: 0 24px; margin-bottom: 0; }
.f-post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 80px; }
.f-post-card__img { aspect-ratio: 3 / 2; background: var(--f-soft); margin-bottom: 14px; overflow: hidden; }
.f-post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.f-post-card time { font-size: 12px; color: var(--f-muted); }
@media (max-width: 860px) { .f-post-list { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.f-footer { background: var(--f-ink); color: #bdb8c0; margin-top: 0; }
.f-footer a:hover { color: #fff; }
.f-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 48px; }
.f-footer__brand .f-logo__text { color: #fff; }
.f-footer__brand p { margin-top: 14px; max-width: 320px; font-size: 14px; }
.f-footer h4 { font-family: var(--f-font); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 18px; }
.f-footer ul { list-style: none; margin: 0; padding: 0; }
.f-footer li { margin-bottom: 9px; font-size: 14px; }
.f-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .f-footer__grid { grid-template-columns: 1fr 1fr; } .f-footer__brand { grid-column: 1 / -1; } }

/* ==========================================================
   WooCommerce
   ========================================================== */
.woocommerce .woocommerce-breadcrumb {
	font-size: 12px; letter-spacing: .06em; color: var(--f-muted); margin: 0; padding: 24px 0 0;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--f-muted); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--f-ink); }
.woocommerce-products-header { text-align: left; padding: 20px 0 18px; }
.woocommerce-products-header__title.page-title {
	margin: 0; font-family: var(--f-font); font-size: 22px; font-weight: 500;
	letter-spacing: -.01em; line-height: 1.3;
}
.term-description { color: var(--f-muted); max-width: 640px; margin: 8px 0 0; font-size: 14px; }
.term-description p:last-child { margin-bottom: 0; }

/* Subcategory chips */
.f-subcats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; margin: 0 0 20px; padding: 0; list-style: none; }
.f-subcats a { display: inline-block; padding: 8px 16px; border: 1px solid var(--f-line); border-radius: 40px; font-size: 13px; }
.f-subcats a:hover, .f-subcats .is-current a { border-color: var(--f-ink); color: var(--f-ink); background: var(--f-surface); }

/* Toolbar */
.f-shop-toolbar {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
	border-top: 1px solid var(--f-line); border-bottom: 1px solid var(--f-line);
	padding: 12px 0; margin-bottom: 36px;
}
.woocommerce .woocommerce-result-count { margin: 0; font-size: 13px; color: var(--f-muted); }
.woocommerce .woocommerce-ordering { margin: 0; }
.woocommerce .woocommerce-ordering select {
	appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230b0b0c'/%3E%3C/svg%3E") no-repeat right center;
	padding: 6px 22px 6px 0; font-size: 13px; cursor: pointer;
}

/* Product grid */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid; grid-template-columns: repeat(var(--f-cols, 4), minmax(0, 1fr));
	gap: 40px 24px; margin: 0 0 48px; padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important; padding: 0; text-align: left;
	display: flex; flex-direction: column; position: relative;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; }
.woocommerce ul.products li.product a img {
	aspect-ratio: 1; object-fit: cover; width: 100%; margin: 0 0 16px; background: var(--f-soft);
	transition: opacity .3s var(--f-ease);
}
.woocommerce ul.products li.product:hover a img { opacity: .88; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--f-font); font-size: 14px; font-weight: 400; line-height: 1.45; padding: 0; margin: 0 0 8px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em;
}
.woocommerce ul.products li.product .price {
	color: var(--f-ink); font-size: 15px; font-weight: 600; margin: 0 0 14px; display: block;
}
.woocommerce ul.products li.product .price del { color: var(--f-muted); font-weight: 400; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--f-sale); }
.woocommerce ul.products li.product .button {
	display: flex; align-items: center; justify-content: center; line-height: 1;
	margin-top: auto; width: 100%; min-height: 42px; padding: 0 12px;
	background: transparent; color: var(--f-ink) !important; border-color: var(--f-line); font-size: 11px;
}
.woocommerce ul.products li.product .button:hover { background: var(--f-ink); border-color: var(--f-ink); color: #fff !important; }
.woocommerce ul.products li.product .button.loading { opacity: .5; }
.woocommerce ul.products li.product .added_to_cart { font-size: 12px; margin-top: 8px; text-align: center; color: var(--f-accent); }
.woocommerce span.onsale, .woocommerce ul.products li.product .onsale {
	position: absolute; top: 10px; left: 10px; right: auto; margin: 0; z-index: 2;
	min-width: 0; min-height: 0; padding: 5px 10px; border-radius: 0; line-height: 1.2;
	background: var(--f-surface); color: var(--f-sale); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.woocommerce ul.products li.product .star-rating { font-size: 11px; margin-bottom: 8px; }

/* Category tiles in loop */
.woocommerce ul.products li.product-category a img { aspect-ratio: 4 / 5; }
.woocommerce ul.products li.product-category h2 { font-family: var(--f-font); font-size: 15px; font-weight: 400; }
.woocommerce ul.products li.product-category mark.count { background: none; color: var(--f-muted); font-size: 12px; }

@media (max-width: 1100px) { .woocommerce ul.products, .woocommerce-page ul.products { --f-cols: 3; } }
@media (max-width: 760px) { .woocommerce ul.products, .woocommerce-page ul.products { --f-cols: 2; gap: 28px 14px; } }

/* Pagination */
.woocommerce nav.woocommerce-pagination { margin-bottom: 80px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	min-width: 40px; height: 40px; line-height: 40px; padding: 0 8px; font-size: 13px; border: 1px solid transparent;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: none; color: var(--f-ink); border-color: var(--f-ink); }
.woocommerce nav.woocommerce-pagination ul li a:hover { background: none; border-color: var(--f-line); }

/* Optional filters sidebar */
.f-shop-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.f-shop-sidebar { padding-top: 140px; }
@media (max-width: 960px) { .f-shop-layout { grid-template-columns: 1fr; } .f-shop-sidebar { padding-top: 24px; order: 2; } }

/* Single product */
.woocommerce div.product > .onsale { top: 42px; left: 10px; }
.woocommerce div.product { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); padding: 32px 0 60px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images img { background: var(--f-soft); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; float: none !important; }
.woocommerce div.product div.images .flex-control-thumbs li img { opacity: .55; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { opacity: 1; }
.woocommerce div.product div.summary { position: sticky; top: 140px; align-self: start; }
.woocommerce div.product .product_title { font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--f-ink); font-size: 24px; font-weight: 600; margin-bottom: 22px; }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--f-sale); }
.woocommerce div.product p.price del, .woocommerce div.product span.price del { color: var(--f-muted); font-weight: 400; font-size: .7em; opacity: 1; margin-right: 6px; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--f-muted); border-top: 1px solid var(--f-line); padding-top: 20px; }
.woocommerce div.product form.cart { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0; }
.woocommerce div.product form.cart .button { flex: 1; min-width: 200px; }
.woocommerce div.product form.cart div.quantity { margin: 0; }
.woocommerce .quantity .qty {
	width: 84px; height: 48px; border: 1px solid var(--f-line); border-radius: var(--f-radius);
	background: var(--f-surface); text-align: center;
}
.woocommerce div.product .stock { font-size: 13px; color: var(--f-muted); }
.woocommerce div.product .stock.in-stock { color: #4f7a4f; }
.woocommerce div.product .stock.out-of-stock { color: var(--f-sale); }
.woocommerce div.product .product_meta { font-size: 13px; color: var(--f-muted); border-top: 1px solid var(--f-line); padding-top: 18px; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 4px; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 28px; border-bottom: 1px solid var(--f-line); display: flex; gap: 32px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; border-radius: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 14px 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--f-muted); font-weight: 500; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--f-ink); box-shadow: inset 0 -1px 0 var(--f-ink); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 760px; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--f-line); background: none !important; padding: 12px 0; font-style: normal; }
.woocommerce table.shop_attributes th { width: 40%; font-weight: 500; }
.related > h2, .upsells > h2 { text-align: center; margin: 40px 0 32px; }
@media (max-width: 860px) {
	.woocommerce div.product { grid-template-columns: 1fr; }
	.woocommerce div.product div.summary { position: static; }
}

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	border: 1px solid var(--f-line) !important; border-left: 2px solid var(--f-accent) !important;
	background: var(--f-surface) !important; color: var(--f-ink); font-size: 14px; border-radius: 0 !important;
}
.woocommerce-error { border-left-color: var(--f-sale) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--f-accent); }
.woocommerce-message .button, .woocommerce-info .button { min-height: 36px; padding: 0 16px; font-size: 11px; }

/* Forms */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.select2-container--default .select2-selection--single, .woocommerce-input-wrapper input,
.f-content input[type="text"], .f-content input[type="email"], .f-content textarea {
	border: 1px solid var(--f-line); background: var(--f-surface); border-radius: var(--f-radius);
	padding: 12px 14px; min-height: 48px; width: 100%;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 22px; padding: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.woocommerce form .form-row label { font-size: 13px; color: var(--f-muted); margin-bottom: 4px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--f-ink); outline: none; }

/* Cart & checkout (classic) */
.woocommerce-cart .f-content, .woocommerce-checkout .f-content, .woocommerce-account .f-content { max-width: var(--f-max); }
.woocommerce table.shop_table { border: 0; border-collapse: collapse; border-radius: 0; }
.woocommerce table.shop_table th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--f-muted); font-weight: 500; border-bottom: 1px solid var(--f-line); padding: 14px 10px; }
.woocommerce table.shop_table td { border-top: 0; border-bottom: 1px solid var(--f-line); padding: 18px 10px; }
.woocommerce table.shop_table img { width: 72px; background: var(--f-soft); }
.woocommerce a.remove { color: var(--f-muted) !important; font-weight: 300; }
.woocommerce a.remove:hover { background: none; color: var(--f-sale) !important; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout-review-order {
	background: var(--f-surface); border: 1px solid var(--f-line); padding: 28px;
}
.woocommerce .cart-collaterals .cart_totals h2, #order_review_heading { font-size: 24px; }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment div.payment_box { background: var(--f-bg); }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce .coupon .input-text { min-height: 48px; border: 1px solid var(--f-line); padding: 0 14px; width: 180px !important; }

/* My account */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { width: auto; float: none; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--f-line); }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--f-line); }
.woocommerce-MyAccount-navigation a { display: block; padding: 13px 0; font-size: 14px; }
.woocommerce-MyAccount-navigation .is-active a { color: var(--f-accent); }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-account:not(.logged-in) .f-content { max-width: 520px; }
.woocommerce-account:not(.logged-in) .u-columns.col2-set { max-width: 1000px; }
.woocommerce form.login, .woocommerce form.register { border: 1px solid var(--f-line); border-radius: 0; background: var(--f-surface); }
@media (max-width: 760px) { .woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 24px; } }

/* Block cart/checkout */
.wc-block-cart, .wc-block-checkout { font-family: var(--f-font); }
.wc-block-components-button:not(.is-link) { width: 100%; }
.wp-block-woocommerce-cart .wc-block-cart__submit-button { background: var(--f-ink); }

/* Widgets in shop sidebar (if used) */
.widget { margin-bottom: 32px; }
.widget-title { font-family: var(--f-font); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }

/* 404 */
.f-404 { text-align: center; padding: 120px 0; }
.f-404 .f-search-form { max-width: 480px; margin: 28px auto; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
