/*
Theme Name: Fixpresso
Theme URI: https://www.fixpresso.id
Author: Fixpresso Indonesia
Description: Custom WooCommerce theme for Fixpresso Indonesia — coffee machine spare parts, manual brew and machines. Search-first homepage, rounded components, indigo-violet accent.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.1
WC requires at least: 8.4
License: GPL-2.0-or-later
Text Domain: fixpresso
*/

/* ------------------------------------------------------------------
   1. Tokens
------------------------------------------------------------------- */
:root {
	--fx-accent: #5B47E0;
	--fx-accent-ink: #4A3BC0;      /* accent used for text on light backgrounds */
	--fx-ink: #16142B;
	--fx-muted: #55526B;
	--fx-page: #F7F6FB;
	--fx-card: #FFFFFF;
	--fx-tint: #EEEBFF;
	--fx-line: #E3E0F0;
	--fx-ok: #1F7A4A;
	--fx-warn: #9A5B00;
	--fx-radius-s: 14px;
	--fx-radius-m: 24px;
	--fx-radius-l: 36px;
	--fx-pill: 999px;
	--fx-shadow-hard: 4px 4px 0 var(--fx-ink);
	--fx-shadow-soft: 0 8px 30px rgba(22, 20, 43, 0.06);
	--fx-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fx-mono: "JetBrains Mono", ui-monospace, monospace;
	--fx-max: 1240px;
}

/* ------------------------------------------------------------------
   2. Base
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--fx-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--fx-ink);
	background: var(--fx-page);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fx-ink); text-decoration: none; }
a:hover { color: var(--fx-accent-ink); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--fx-accent); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 12px 18px; background: #fff; border-radius: var(--fx-pill);
}
.fx-container { max-width: var(--fx-max); margin: 0 auto; padding: 0 24px; }
.fx-section { padding: 0 0 96px; }
.fx-muted { color: var(--fx-muted); }
.fx-mono { font-family: var(--fx-mono); font-size: 13px; color: var(--fx-muted); }
.fx-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
	border-radius: var(--fx-pill); background: var(--fx-tint); color: var(--fx-accent-ink);
	font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.fx-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.fx-section-head h2 { margin: 0; }
.fx-link-more { font-size: 15px; font-weight: 700; color: var(--fx-accent-ink); }

/* ------------------------------------------------------------------
   3. Buttons, chips, inputs
------------------------------------------------------------------- */
.fx-btn, .button, button.button, a.button, input.button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 24px; border-radius: var(--fx-pill);
	border: 2px solid var(--fx-ink); background: var(--fx-ink); color: #fff;
	font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer;
	text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.fx-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { color: #fff; background: #24213f; }
.fx-btn--accent, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order, .single_add_to_cart_button {
	background: var(--fx-accent) !important; border-color: var(--fx-ink) !important; color: #fff !important;
	box-shadow: var(--fx-shadow-hard);
}
.fx-btn--accent:hover, .woocommerce button.button.alt:hover, .single_add_to_cart_button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--fx-ink); }
.fx-btn--accent:active, .single_add_to_cart_button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--fx-ink); }
.fx-btn--light { background: #fff; color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-btn--light:hover { background: var(--fx-tint); color: var(--fx-ink); }
.fx-btn--ghost { background: #fff; color: var(--fx-ink); border: 1.5px solid var(--fx-line); }
.fx-btn--ghost:hover { background: var(--fx-tint); color: var(--fx-ink); }
.fx-btn--lg { min-height: 56px; font-size: 16px; }
.fx-btn__arrow {
	width: 32px; height: 32px; border-radius: var(--fx-pill); background: var(--fx-accent);
	display: inline-flex; align-items: center; justify-content: center; margin-right: -14px;
}
.fx-chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
	border-radius: var(--fx-pill); background: #fff; border: 1.5px solid var(--fx-line);
	font-size: 15px; font-weight: 600; color: var(--fx-ink);
}
.fx-chip:hover, .fx-chip.is-active { background: var(--fx-ink); border-color: var(--fx-ink); color: #fff; }
.fx-badge {
	display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--fx-pill);
	background: var(--fx-tint); color: var(--fx-accent-ink); font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"],
input[type="search"], input[type="url"], select, textarea,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--fx-radius-s);
	border: 1.5px solid var(--fx-line); background: #fff; color: var(--fx-ink);
	font: inherit; font-size: 15px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--fx-accent); outline: none; box-shadow: 0 0 0 3px rgba(91, 71, 224, .18); }
label { font-size: 14px; font-weight: 700; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--fx-accent); width: 18px; height: 18px; }

/* ------------------------------------------------------------------
   4. Header + navigation
------------------------------------------------------------------- */
.fx-header { position: sticky; top: 0; z-index: 50; padding: 16px 24px 0; }
.fx-header__bar {
	max-width: var(--fx-max); margin: 0 auto; background: #fff; border-radius: var(--fx-pill);
	padding: 8px 10px 8px 22px; display: flex; align-items: center; gap: 20px; box-shadow: var(--fx-shadow-soft);
}
.fx-header .custom-logo, .fx-logo img { height: 40px; width: auto; }
.fx-logo__text { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.fx-nav { flex: 1; display: flex; justify-content: center; }
.fx-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.fx-nav__list > li { position: relative; }
.fx-nav__list > li > a, .fx-nav__toggle {
	min-height: 42px; padding: 0 16px; border-radius: var(--fx-pill); display: inline-flex; align-items: center; gap: 6px;
	font-size: 15px; font-weight: 600; color: var(--fx-ink); background: transparent; border: 0; font-family: inherit; cursor: pointer;
}
.fx-nav__list > li.current-menu-item > a, .fx-nav__list > li.current-menu-ancestor > a { background: var(--fx-tint); color: var(--fx-accent-ink); }
.fx-nav__list .sub-menu {
	display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
	min-width: 300px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 20px;
	border: 1.5px solid var(--fx-line); box-shadow: 0 16px 40px rgba(22, 20, 43, .14);
}
.fx-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.fx-nav__list li:hover > .sub-menu, .fx-nav__list li:focus-within > .sub-menu, .fx-nav__list li.is-open > .sub-menu { display: block; }
.fx-nav__list .sub-menu a { display: block; padding: 12px 14px; border-radius: var(--fx-radius-s); font-size: 15px; font-weight: 700; }
.fx-nav__list .sub-menu a:hover { background: var(--fx-page); color: var(--fx-ink); }
.fx-nav__list .sub-menu .menu-item-description { display: block; font-size: 13px; font-weight: 500; color: var(--fx-muted); }
.fx-nav__list .fx-menu-new > a::after {
	content: "BARU"; height: 22px; padding: 0 8px; border-radius: var(--fx-pill); background: var(--fx-tint);
	color: var(--fx-accent-ink); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center;
}
.fx-header__actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.fx-icon-btn {
	width: 44px; height: 44px; border-radius: var(--fx-pill); border: 1.5px solid var(--fx-line); background: #fff;
	display: inline-flex; align-items: center; justify-content: center; color: var(--fx-ink); cursor: pointer;
}
.fx-icon-btn:hover { background: var(--fx-tint); color: var(--fx-ink); }
.fx-cart-btn {
	min-height: 44px; padding: 0 18px 0 7px; border-radius: var(--fx-pill); background: var(--fx-ink); color: #fff;
	display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700;
}
.fx-cart-btn:hover { color: #fff; background: #24213f; }
.fx-cart-btn__icon { width: 30px; height: 30px; border-radius: var(--fx-pill); background: var(--fx-accent); display: inline-flex; align-items: center; justify-content: center; }
.fx-lang a { font-size: 14px; font-weight: 700; }
.fx-menu-toggle { display: none; }

/* ------------------------------------------------------------------
   5. Homepage
------------------------------------------------------------------- */
.fx-hero { position: relative; padding: 72px 0 56px; text-align: center; }
.fx-hero__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; z-index: 1; }
.fx-hero h1 { max-width: 840px; font-size: clamp(38px, 6vw, 68px); line-height: 1.05; margin: 0; }
.fx-hero h1 .fx-hl { color: var(--fx-accent); }
.fx-hero__lead { max-width: 640px; font-size: 19px; color: var(--fx-muted); margin: 0; }
.fx-hero__photo {
	position: absolute; width: 200px; aspect-ratio: 10 / 9; border-radius: 28px; overflow: hidden;
	background: var(--fx-tint); box-shadow: var(--fx-shadow-soft);
}
.fx-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.fx-hero__photo--1 { left: 0; top: 40px; transform: rotate(-9deg); }
.fx-hero__photo--2 { left: -16px; top: 320px; transform: rotate(6deg); }
.fx-hero__photo--3 { right: 0; top: 56px; transform: rotate(8deg); }
.fx-hero__photo--4 { right: -16px; top: 330px; transform: rotate(-7deg); }

.fx-search {
	width: 100%; max-width: 760px; display: flex; align-items: center; gap: 8px; background: #fff;
	border: 2px solid var(--fx-ink); border-radius: var(--fx-pill); padding: 8px 8px 8px 22px; box-shadow: 5px 5px 0 var(--fx-ink);
}
.fx-search input[type="search"] { flex: 1; min-width: 0; border: 0; min-height: 48px; padding: 0; font-size: 17px; box-shadow: none; background: transparent; }
.fx-search button { min-height: 52px; padding: 0 28px; border-radius: var(--fx-pill); border: 0; background: var(--fx-accent); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.fx-search--sm { max-width: 420px; padding: 6px 6px 6px 18px; box-shadow: var(--fx-shadow-hard); }
.fx-search--sm input[type="search"] { min-height: 40px; font-size: 15px; }
.fx-search--sm button { min-height: 44px; padding: 0 20px; font-size: 15px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 840px; }
.fx-wa-hint {
	display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; border-radius: var(--fx-pill);
	background: var(--fx-tint); font-size: 15px; font-weight: 600;
}
.fx-wa-hint strong { color: var(--fx-accent-ink); }
.fx-wa-hint__go { width: 32px; height: 32px; border-radius: var(--fx-pill); background: var(--fx-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* Brand marquee */
.fx-brands { padding: 24px 0 64px; }
.fx-brands__title { text-align: center; font-size: 26px; font-weight: 800; margin: 0 0 24px; }
.fx-marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.fx-marquee__track { display: flex; gap: 16px; width: max-content; animation: fx-scroll 40s linear infinite; }
.fx-marquee:hover .fx-marquee__track, .fx-marquee:focus-within .fx-marquee__track { animation-play-state: paused; }
.fx-marquee__group { display: flex; gap: 16px; }
.fx-brand {
	flex: none; height: 64px; padding: 0 24px; background: transparent; border: 0;
	display: flex; align-items: center; font-size: 20px; font-weight: 800; color: var(--fx-muted);
}
.fx-brand img { height: 44px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.fx-brand:hover img { filter: none; opacity: 1; }
@keyframes fx-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Trust bar */
.fx-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fx-trust__item { background: #fff; border-radius: var(--fx-radius-m); padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.fx-trust__icon { flex: none; width: 48px; height: 48px; border-radius: 16px; background: var(--fx-tint); color: var(--fx-accent); display: flex; align-items: center; justify-content: center; }
.fx-trust__item h3 { font-size: 16px; margin: 0; letter-spacing: 0; }
.fx-trust__item p { font-size: 14px; color: var(--fx-muted); margin: 6px 0 0; line-height: 1.5; }

/* Category bento */
.fx-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); grid-auto-rows: 240px; gap: 16px; }
.fx-bento__item {
	position: relative; border-radius: 28px; background: #fff; padding: 28px; display: flex; flex-direction: column;
	justify-content: space-between; overflow: hidden;
}
.fx-bento__item h3 { font-size: 24px; margin: 0; position: relative; }
.fx-bento__item p { margin: 0; font-size: 14px; color: var(--fx-muted); position: relative; }
.fx-bento__img { position: absolute; right: 16px; top: 16px; width: 96px; height: 96px; border-radius: 20px; object-fit: cover; background: var(--fx-tint); }
.fx-bento__item--feature { grid-row: span 2; background: var(--fx-accent); color: #fff; padding: 32px; }
.fx-bento__item--feature h3 { font-size: 36px; color: #fff; }
.fx-bento__item--feature p { color: rgba(255, 255, 255, .9); font-size: 16px; }
.fx-bento__item--feature .fx-bento__img { position: static; width: 100%; height: 200px; border-radius: 20px; background: rgba(255,255,255,.14); }
.fx-bento__item--feature:hover { color: #fff; }
.fx-bento__item--dark { background: var(--fx-ink); color: #fff; }
.fx-bento__item--dark h3 { color: #fff; }
.fx-bento__item--dark p { color: #C9C5DE; }
.fx-bento__item--dark:hover { color: #fff; }

/* Business band */
.fx-biz-band { border-radius: var(--fx-radius-l); background: var(--fx-accent); color: #fff; padding: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.fx-biz-band h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); }
.fx-biz-band p { color: rgba(255,255,255,.92); font-size: 17px; }
.fx-biz-band__text { flex: 1 1 420px; }
.fx-biz-band__grid { flex: 1 1 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fx-biz-band__card { border-radius: var(--fx-radius-m); background: #fff; color: var(--fx-ink); padding: 22px; }
.fx-biz-band__card h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: 0; }
.fx-biz-band__card p { color: var(--fx-muted); font-size: 14px; margin: 0; line-height: 1.5; }
.fx-biz-band .fx-badge { background: #fff; margin-bottom: 16px; }
.fx-btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.fx-btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Guides */
.fx-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.fx-guide { background: #fff; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.fx-guide__img { height: 200px; background: var(--fx-tint); }
.fx-guide__img img { width: 100%; height: 100%; object-fit: cover; }
.fx-guide__body { padding: 24px; }
.fx-guide__cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--fx-accent-ink); text-transform: uppercase; }
.fx-guide h3 { font-size: 20px; margin: 8px 0; letter-spacing: 0; }
.fx-guide p { font-size: 14px; color: var(--fx-muted); margin: 0; }

/* Help band */
.fx-help { border-radius: var(--fx-radius-l); background: var(--fx-tint); padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.fx-help h2 { font-size: 32px; margin: 0 0 8px; }
.fx-help p { margin: 0; color: var(--fx-muted); font-size: 17px; }

/* Marketplace strip */
.fx-market {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
	padding: 24px 0; border-top: 1.5px solid var(--fx-line); border-bottom: 1.5px solid var(--fx-line);
}
.fx-market__text { margin: 0; font-size: 17px; color: var(--fx-muted); }
.fx-market__links { display: flex; flex-wrap: wrap; gap: 10px; }
.fx-market__btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px;
	border-radius: var(--fx-pill); border: 2px solid var(--fx-ink); background: #fff;
	font-size: 15px; font-weight: 700; color: var(--fx-ink); transition: transform .15s ease, box-shadow .15s ease;
}
.fx-market__btn:hover, .fx-market__btn:focus-visible { color: var(--fx-ink); transform: translate(-2px, -2px); box-shadow: var(--fx-shadow-hard); }
.fx-section:has(.fx-market) { padding-bottom: 72px; }

/* ------------------------------------------------------------------
   6. Product cards (loop)
------------------------------------------------------------------- */
.woocommerce ul.products, ul.products {
	list-style: none; margin: 0; padding: 0;
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important; padding: 14px 14px 20px !important;
	background: #fff; border-radius: 28px; display: flex; flex-direction: column; gap: 12px;
}
.fx-card__media { position: relative; display: block; border-radius: 20px; overflow: hidden; background: var(--fx-tint); aspect-ratio: 1 / 1; }
.fx-card__media img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; }
.fx-card__tag { position: absolute; top: 12px; left: 12px; }
.fx-card__tag .fx-badge { background: #fff; color: var(--fx-ink); }
.fx-card__body { padding: 0 6px; display: flex; flex-direction: column; gap: 6px; }
.fx-card__title { font-size: 16px !important; font-weight: 800; line-height: 1.3; margin: 0 !important; padding: 0 !important; letter-spacing: 0; }
.fx-card__foot { padding: 0 6px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fx-card__foot .price, .fx-card__foot .price .amount { font-size: 19px !important; font-weight: 800 !important; color: var(--fx-ink) !important; margin: 0 !important; }
.fx-card__foot .price del { font-size: 14px; color: var(--fx-muted); font-weight: 500; }
.fx-card__foot .price ins { text-decoration: none; }
.fx-card__foot .button {
	width: 46px; min-height: 46px !important; height: 46px; padding: 0 !important; font-size: 0 !important; border-radius: var(--fx-pill) !important;
	background: var(--fx-ink) !important; border-color: var(--fx-ink) !important; position: relative; flex: none;
}
.fx-card__foot .button { display: inline-flex !important; align-items: center; justify-content: center; }
.fx-card__foot .button::before {
	content: ""; display: block; flex: none; width: 20px; height: 20px; background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fx-card__foot .button.loading::before { opacity: .4; }
.fx-card__foot .button.added::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
.fx-card__foot .added_to_cart { display: none !important; }
.fx-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--fx-ok); }
.fx-stock::before { content: ""; width: 8px; height: 8px; border-radius: var(--fx-pill); background: currentColor; }
.fx-stock--out { color: var(--fx-muted); }
.fx-stock--backorder { color: var(--fx-warn); }

/* ------------------------------------------------------------------
   7. Shop / category
------------------------------------------------------------------- */
.fx-main { padding: 40px 0 96px; }
.woocommerce-breadcrumb, .fx-breadcrumb { font-size: 14px !important; color: var(--fx-muted) !important; margin: 0 0 20px !important; }
.woocommerce-breadcrumb a { color: var(--fx-muted) !important; }
.fx-shop-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.fx-shop-head h1 { margin: 0 0 10px; }
.fx-shop-head .term-description, .fx-shop-head .page-description { max-width: 680px; color: var(--fx-muted); font-size: 17px; }
.fx-shop-head .term-description p:last-child { margin: 0; }
.fx-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.fx-shop-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.fx-shop-sidebar { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 16px; }
.fx-shop-sidebar .widget { background: #fff; border-radius: var(--fx-radius-m); padding: 22px; }
.fx-shop-sidebar .widget-title, .fx-shop-sidebar h2 { font-size: 15px; margin: 0 0 10px; letter-spacing: 0; }
.fx-shop-sidebar ul { list-style: none; margin: 0; padding: 0; }
.fx-shop-sidebar li { padding: 6px 0; }
.fx-shop-content { flex: 999 1 560px; min-width: 0; }
.fx-shop-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.woocommerce .woocommerce-result-count { margin: 0; font-size: 15px; color: var(--fx-muted); float: none; }
.woocommerce .woocommerce-ordering { margin: 0; float: none; }
.woocommerce .woocommerce-ordering select { min-height: 44px; border-radius: var(--fx-pill); padding: 0 40px 0 16px; width: auto; }
.woocommerce nav.woocommerce-pagination { margin-top: 32px; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: flex !important; gap: 8px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	min-width: 44px; height: 44px; border-radius: var(--fx-pill); background: #fff; border: 1.5px solid var(--fx-line);
	display: inline-flex !important; align-items: center; justify-content: center; font-weight: 700; padding: 0 14px !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--fx-ink); color: #fff; border-color: var(--fx-ink); }
.fx-wa-block { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: var(--fx-pill); background: var(--fx-tint); color: var(--fx-accent-ink); font-weight: 700; font-size: 15px; padding: 0 18px; }

/* ------------------------------------------------------------------
   8. Single product
------------------------------------------------------------------- */
.single-product div.product { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.single-product div.product .woocommerce-product-gallery { flex: 1 1 480px; min-width: 0; width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product .summary { flex: 1 1 440px; min-width: 0; width: auto !important; float: none !important; margin: 0 !important; display: flex; flex-direction: column; gap: 18px; }
.woocommerce-product-gallery__wrapper { border-radius: 32px; overflow: hidden; background: #fff; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 84px !important; }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: 18px; border: 1.5px solid var(--fx-line); opacity: 1; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { border: 2px solid var(--fx-ink); }
.woocommerce span.onsale { background: var(--fx-ink); border-radius: var(--fx-pill); min-height: 32px; min-width: 0; padding: 0 14px; line-height: 32px; font-weight: 700; top: 20px; left: 20px; }
.single-product .product_title { font-size: clamp(30px, 3.4vw, 40px); margin: 0; }
.woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 36px; font-weight: 800; color: var(--fx-ink); margin: 0; }
.woocommerce div.product .stock { font-size: 14px; font-weight: 700; color: var(--fx-ok); margin: 0; }
.woocommerce div.product .stock.out-of-stock { color: var(--fx-muted); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 !important; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce .quantity { display: inline-flex; align-items: center; height: 56px; border-radius: var(--fx-pill); background: #fff; border: 1.5px solid var(--fx-line); padding: 0 6px; }
.woocommerce .quantity .qty { width: 52px; min-height: 0; height: 44px; border: 0; text-align: center; font-weight: 700; font-size: 17px; padding: 0; box-shadow: none; }
.fx-qty-btn { width: 44px; height: 44px; border-radius: var(--fx-pill); border: 0; background: var(--fx-page); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--fx-ink); }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1 1 220px; min-height: 56px; font-size: 17px; font-weight: 800; float: none; }
.fx-biz-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--fx-tint); font-size: 14px; font-weight: 600; color: var(--fx-ink); }
.fx-biz-note strong { color: var(--fx-accent-ink); }
.fx-biz-note--active { background: #E5F4E4; }
.fx-biz-note--active strong { color: var(--fx-ok); }
.fx-assure { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 600; }
.fx-assure li { display: flex; align-items: center; gap: 10px; }
.fx-assure svg { color: var(--fx-ok); flex: none; }
.fx-ship-box { background: #fff; border-radius: var(--fx-radius-m); padding: 20px; }
.fx-ship-box h3 { font-size: 15px; margin: 0 0 6px; letter-spacing: 0; }
.fx-ship-box p { font-size: 14px; color: var(--fx-muted); margin: 0; }
.single-product .product_meta { font-size: 13px; color: var(--fx-muted); }
.single-product .product_meta .sku { font-family: var(--fx-mono); }
.woocommerce div.product .woocommerce-tabs { flex: 1 1 100%; background: #fff; border-radius: 28px; padding: 32px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 20px !important; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 1.5px solid var(--fx-line) !important; border-radius: var(--fx-pill) !important; background: #fff !important; margin: 0 !important; padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 0 18px !important; line-height: 42px; font-weight: 700 !important; color: var(--fx-ink) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--fx-ink) !important; border-color: var(--fx-ink) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
.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-top: 1px solid var(--fx-line) !important; border-bottom: 0 !important; padding: 14px 16px !important; font-style: normal; background: none !important; }
.single-product .related, .single-product .upsells { flex: 1 1 100%; }
.single-product .related > h2, .single-product .upsells > h2 { font-size: 32px; margin-bottom: 20px; }

/* ------------------------------------------------------------------
   9. Cart + checkout + account
------------------------------------------------------------------- */
.woocommerce-cart .fx-page, .woocommerce-checkout .fx-page, .woocommerce-account .fx-page { background: transparent; }
.woocommerce table.shop_table { border: 0; border-radius: 28px; background: #fff; overflow: hidden; border-collapse: separate; }
.woocommerce table.shop_table th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--fx-muted); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top: 1px solid var(--fx-line); padding: 16px !important; }
.woocommerce-cart table.cart img { width: 64px; border-radius: 14px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout-review-order {
	background: #fff; border-radius: 28px; padding: 28px; border: 2px solid var(--fx-ink); box-shadow: 6px 6px 0 var(--fx-ink);
}
.woocommerce .cart-collaterals .cart_totals table.shop_table, .woocommerce-checkout-review-order table.shop_table { border-radius: 0; }
.woocommerce form.checkout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.woocommerce form.checkout #customer_details { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.woocommerce form.checkout #customer_details .col-1, .woocommerce form.checkout #customer_details .col-2 {
	width: 100% !important; float: none !important; background: #fff; border-radius: 28px; padding: 28px;
}
.woocommerce form.checkout #order_review_heading { display: none; }
.woocommerce form.checkout #order_review { flex: 1 1 360px; max-width: 440px; position: sticky; top: 100px; }
.woocommerce form.checkout h3 { font-size: 20px; letter-spacing: 0; }
.woocommerce form .form-row { padding: 0; margin: 0 0 14px; }
.woocommerce-checkout #payment { background: transparent !important; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { border: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.woocommerce-checkout #payment ul.payment_methods li { border: 1.5px solid var(--fx-line); border-radius: 18px; padding: 14px 16px; background: #fff; list-style: none; }
.woocommerce-checkout #payment div.payment_box { background: var(--fx-page) !important; border-radius: 14px; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce ul#shipping_method li { margin-bottom: 8px; }
.woocommerce #place_order { width: 100%; min-height: 58px; font-size: 17px; font-weight: 800; float: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border: 0 !important; border-radius: 18px; background: #fff !important; padding: 16px 20px 16px 52px !important; box-shadow: var(--fx-shadow-soft);
}
.woocommerce-message::before { color: var(--fx-ok) !important; }
.woocommerce-info::before { color: var(--fx-accent) !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 24px; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--fx-ink); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-content { background: #fff; border-radius: 24px; padding: 28px; }

/* ------------------------------------------------------------------
   10. Pages, posts, business page
------------------------------------------------------------------- */
.fx-page { background: #fff; border-radius: 32px; padding: clamp(24px, 4vw, 48px); }
.fx-page--plain { background: transparent; padding: 0; }
.fx-entry-content > * { max-width: 760px; }
.fx-entry-content > .alignwide, .fx-entry-content > .alignfull, .fx-entry-content > .woocommerce { max-width: none; }
.fx-biz-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px 0 48px; }
.fx-biz-hero h1 { max-width: 860px; margin: 0; }
.fx-biz-hero h1 span { color: var(--fx-accent); }
.fx-biz-hero p { max-width: 640px; font-size: 18px; color: var(--fx-muted); margin: 0; }
.fx-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 48px; }
.fx-benefit { background: #fff; border-radius: var(--fx-radius-m); padding: 24px; }
.fx-benefit h3 { font-size: 18px; margin: 14px 0 6px; letter-spacing: 0; }
.fx-benefit p { margin: 0; font-size: 14px; color: var(--fx-muted); }
.fx-tiers { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0 12px; }
.fx-tier { flex: 1 1 240px; border-radius: 28px; padding: 28px; background: #fff; }
.fx-tier__label { font-size: 14px; font-weight: 700; color: var(--fx-muted); margin: 0; }
.fx-tier__min { font-size: 22px; font-weight: 800; margin: 0; }
.fx-tier__pct { font-size: 44px; font-weight: 800; line-height: 1; color: var(--fx-accent); margin: 14px 0 4px; }
.fx-tier--top { background: var(--fx-ink); color: #fff; box-shadow: 6px 6px 0 var(--fx-accent); }
.fx-tier--top .fx-tier__label { color: #C9C5DE; }
.fx-tier--top .fx-tier__pct { color: #fff; }
.fx-steps { border-radius: var(--fx-radius-l); background: var(--fx-accent); padding: 48px; margin: 48px 0; color: #fff; }
.fx-steps h2 { color: #fff; }
.fx-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; counter-reset: fx-step; }
.fx-steps li { flex: 1 1 220px; counter-increment: fx-step; }
.fx-steps li::before {
	content: counter(fx-step); width: 40px; height: 40px; border-radius: var(--fx-pill); background: #fff; color: var(--fx-ink);
	font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.fx-steps h3 { color: #fff; font-size: 17px; margin: 0 0 6px; letter-spacing: 0; }
.fx-steps p { color: #E4E0FF; font-size: 14px; margin: 0; }
.fx-form-card { background: #fff; border-radius: 32px; padding: clamp(24px, 4vw, 32px); border: 2px solid var(--fx-ink); box-shadow: 8px 8px 0 var(--fx-ink); }
.fx-form-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.fx-field { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx-field--full { flex-basis: 100%; }
.fx-radio-pills { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 14px; }
.fx-radio-pills legend { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.fx-radio-pills label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--fx-pill); border: 1.5px solid var(--fx-line); background: #fff; font-weight: 600; cursor: pointer; }
.fx-radio-pills label:has(input:checked) { border: 2px solid var(--fx-ink); }
.fx-hp { position: absolute; left: -9999px; }
.fx-notice { padding: 16px 20px; border-radius: 18px; font-weight: 600; margin-bottom: 20px; }
.fx-notice--ok { background: #E5F4E4; color: #14532D; }
.fx-notice--err { background: #FBEBEB; color: #8A1C1C; }

/* ------------------------------------------------------------------
   11. Footer
------------------------------------------------------------------- */
.fx-footer { background: var(--fx-ink); color: #fff; border-radius: 40px 40px 0 0; padding: 72px 24px 40px; }
.fx-footer a { color: #C9C5DE; }
.fx-footer a:hover { color: #fff; }
.fx-footer__top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.fx-footer__brand { flex: 1 1 320px; max-width: 380px; }
/* Footer logo: the header logo inverted (outline/shadow turn white, letters dark).
   "screen" blending drops the inverted (now black) background so the logo sits on the footer colour. */
.fx-footer__logo { display: inline-flex; margin-bottom: 16px; isolation: auto; }
.fx-footer__logo img { height: 48px; width: auto; filter: invert(1); mix-blend-mode: screen; }
.fx-footer__brand p { color: #C9C5DE; font-size: 15px; }
.fx-footer__cols { display: flex; flex-wrap: wrap; gap: 56px; }
.fx-footer__col h2 { font-size: 15px; color: #fff; margin: 0 0 12px; letter-spacing: 0; }
.fx-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.fx-footer__pay { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 48px; font-size: 13px; color: #C9C5DE; }
.fx-footer__pay span.fx-pill { height: 36px; padding: 0 14px; border-radius: var(--fx-pill); background: rgba(255,255,255,.08); display: inline-flex; align-items: center; font-weight: 600; color: #fff; }
.fx-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #C9C5DE; }
.fx-footer__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.fx-wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: var(--fx-pill);
	background: var(--fx-accent); color: #fff; display: flex; align-items: center; justify-content: center;
	border: 2px solid var(--fx-ink); box-shadow: var(--fx-shadow-hard);
}
.fx-wa-float:hover { color: #fff; }

/* ------------------------------------------------------------------
   12. Responsive + motion
------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.fx-hero__photo { display: none; }
}
@media (max-width: 900px) {
	.fx-header { padding: 10px 12px 0; }
	.fx-header__bar { border-radius: 24px; flex-wrap: wrap; padding: 8px 8px 8px 16px; }
	.fx-menu-toggle { display: inline-flex; }
	.fx-nav { order: 10; flex-basis: 100%; display: none; }
	.fx-nav.is-open { display: block; }
	.fx-nav__list { flex-direction: column; align-items: stretch; padding: 8px 0; }
	.fx-nav__list > li > a, .fx-nav__toggle { width: 100%; justify-content: space-between; }
	.fx-nav__list .sub-menu { position: static; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
	.fx-nav__list li:hover > .sub-menu { display: none; }
	.fx-nav__list li.is-open > .sub-menu { display: block; }
	.fx-cart-btn__label { display: none; }
	.fx-cart-btn { padding: 0 7px; }
	.fx-hero { padding: 40px 0 40px; }
	.fx-biz-band, .fx-steps, .fx-help { padding: 32px 24px; border-radius: 28px; }
	.fx-biz-band__grid { grid-template-columns: 1fr; }
	.fx-shop-sidebar { max-width: none; }
	.woocommerce form.checkout #order_review { max-width: none; position: static; }
}
@media (max-width: 900px) {
	.fx-bento { grid-auto-rows: minmax(150px, auto); }
	.fx-bento__item--feature { min-height: 340px; }
}
@media (max-width: 560px) {
	.fx-header__bar { gap: 8px; }
	.fx-header .custom-logo, .fx-logo img { height: 30px; }
	.fx-logo__text { font-size: 20px; }
	.fx-header__actions { gap: 6px; }
	.fx-header__actions > .fx-icon-btn[href*="wa.me"] { display: none; }
	.fx-wa-hint { border-radius: 20px; text-align: left; }
	.fx-search { padding-left: 16px; }
	.fx-search button { padding: 0 18px; }
	.fx-lang { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
	.fx-marquee__track { animation: none; }
	.fx-marquee { overflow-x: auto; }
	.fx-marquee__group[aria-hidden="true"] { display: none; }
}
