/*!
 * AirPixel Shop theme — single stylesheet.
 * 1 Tokens & fonts · 2 Base · 3 Buttons & forms · 4 Header & nav · 5 Hero & filter
 * 6 Product cards · 7 Single product · 8 Accessory picker · 9 Configurator
 * 10 WooCommerce pieces (notices, archive, cart/checkout skin) · 11 Fly Cart · 12 Footer · 13 Responsive
 */

/* ===================================================== 1 Tokens & fonts */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(../fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--ink: #15171b; --ink-2: #3b4048; --muted: #6c7380;
	--line: #e4e5e8; --line-2: #d3d6db;
	--bg: #f5f5f3; --surface: #fff; --surface-2: #fafaf9;
	--dark: #111318; --dark-2: #1b1e25; --dark-line: #2a2e37;

	/* Ecosystem colours */
	--entire: #f28a1e; --entire-hover: #db7710; --entire-ink: #a95a07; --entire-soft: #fff3e6;
	--tage: #2f6fd0;   --tage-hover: #2259ad;   --tage-ink: #1f4f99;   --tage-soft: #e8f0fc;

	/* Active accent (orange by default; TAG-E scopes switch it to blue) */
	--accent: var(--entire); --accent-hover: var(--entire-hover); --accent-ink: var(--entire-ink); --accent-soft: var(--entire-soft);

	--ok: #17885c; --ok-soft: #e7f6ef; --warn: #a8650a; --warn-soft: #fdf3e2; --err: #b8382a; --err-soft: #fcebe8;

	--radius: 14px; --radius-lg: 18px;
	--shadow: 0 1px 2px rgba(16,18,22,.04), 0 6px 20px rgba(16,18,22,.06);
	--shadow-lg: 0 20px 60px rgba(16,18,22,.18);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Manrope", var(--font);
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--wrap: 1280px; --gutter: clamp(16px, 3vw, 32px); --header-h: 68px;
}
.ap-eco--tage, body.ap-eco--tage, body[data-eco="tage"] .ap-filter {
	--accent: var(--tage); --accent-hover: var(--tage-hover); --accent-ink: var(--tage-ink); --accent-soft: var(--tage-soft);
}
/* page-level TAG-E scope must not recolour the header/footer brand */
body.ap-eco--tage .ap-header, body.ap-eco--tage .ap-footer { --accent: var(--entire); --accent-hover: var(--entire-hover); --accent-ink: var(--entire-ink); --accent-soft: var(--entire-soft); }

/* ===================================================== 2 Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 80px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.015em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.ap-icon { width: 20px; height: 20px; flex-shrink: 0; }
.ap-muted { color: var(--muted); font-size: 13px; }
.ap-main { padding-top: 8px; padding-bottom: 72px; min-height: 50vh; }
.ap-page-head { padding: 28px 0 20px; }
.ap-page-head h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.ap-prose { max-width: 820px; }
.ap-prose a { color: var(--accent-ink); }
.ap-prose h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.ap-prose h3 { font-size: 19px; margin: 1.4em 0 .5em; }
.ap-prose img { border-radius: 12px; }
.ap-prose table { border-collapse: collapse; width: 100%; background: var(--surface); }
.ap-prose td, .ap-prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.ap-post-list { display: grid; gap: 14px; }
.ap-post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.ap-post-card h2 { font-size: 20px; margin-bottom: 4px; }
.ap-post-card h2 a { text-decoration: none; }

/* ===================================================== 3 Buttons & forms */
.ap-btn, .button, button.button, a.button, input.button, .wp-element-button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
	background: var(--ink); color: #fff; font: 600 14px/1.2 var(--font); text-decoration: none;
	cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.ap-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: #000; color: #fff; }
.ap-btn:active, .button:active { transform: translateY(1px); }
.ap-btn--brand, .button.alt, .single_add_to_cart_button, .checkout-button, #place_order,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--accent); color: #fff; }
.ap-btn--brand:hover, .button.alt:hover, .single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--accent-hover); color: #fff; }
.ap-btn--tage { background: var(--tage); color: #fff; } .ap-btn--tage:hover { background: var(--tage-hover); }
.ap-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.ap-btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.ap-btn--lg, .single_add_to_cart_button { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.ap-btn--block { width: 100%; }
.button.disabled, .button:disabled, .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }
.button.loading { opacity: .7; pointer-events: none; }
.button.added { background: var(--ok); }
a.added_to_cart { display: none; } /* Fly Cart / header count give feedback */

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"],
select, textarea, .select2-container .select2-selection--single {
	font: 15px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
	min-height: 44px; padding: 8px 12px; width: 100%; max-width: 100%;
}
textarea { min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select2-container .select2-selection--single { display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 9px; right: 6px; }
label { font-weight: 500; }

/* ===================================================== 4 Header & nav */
.ap-topbar { background: var(--dark); color: #c9ccd3; font-size: 12.5px; }
.ap-topbar .wrap { display: flex; align-items: center; min-height: 34px; }
.ap-topbar__usps { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; overflow: hidden; white-space: nowrap; }
.ap-topbar__usps li::before { content: "✓"; color: var(--entire); margin-right: 7px; font-weight: 700; }

.ap-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .ap-header { top: 32px; }
.ap-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.ap-logo { display: flex; align-items: center; flex-shrink: 0; }
.ap-header .ap-logo__img { height: 30px; width: auto; max-width: none; display: block; }
.ap-nav { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ap-nav li { position: relative; list-style: none; }
.ap-nav > li > a { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--ink-2); font-size: 14.5px; }
.ap-nav > li > a:hover, .ap-nav > li.is-open > a, .ap-nav > li > a[aria-current], .ap-nav > .current-menu-item > a { background: var(--bg); color: var(--ink); }
.ap-nav > .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); margin-left: 4px; opacity: .6; }
.ap-nav .sub-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 60; }
.ap-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.ap-nav > li:hover > .sub-menu, .ap-nav > li:focus-within > .sub-menu, .ap-nav > li.is-open > .sub-menu { display: grid; gap: 2px; }
.ap-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); }
.ap-nav .sub-menu a:hover { background: var(--bg); }
.menu-item-description { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.ap-header__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.ap-iconbtn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; text-decoration: none; color: var(--ink); padding: 0; }
.ap-iconbtn:hover { background: var(--bg); }
.ap-iconbtn .ap-icon { width: 21px; height: 21px; }
.ap-cart-count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--entire); color: #fff; font: 700 11px/18px var(--font); text-align: center; }
.ap-cart-count[data-count="0"] { background: var(--line-2); color: var(--ink-2); }
.ap-burger { display: none; }

/* ===================================================== 5 Hero & filter */
.ap-hero { background: radial-gradient(900px 400px at 85% -10%, rgba(242,138,30,.22), transparent 60%), radial-gradient(700px 360px at 100% 110%, rgba(47,111,208,.18), transparent 60%), var(--dark); color: #fff; position: relative; overflow: hidden; }
.ap-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; background-image: linear-gradient(var(--dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--dark-line) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.ap-hero .wrap { position: relative; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 56px); }
.ap-hero__eyebrow { font: 600 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--entire); }
.ap-hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; margin: 14px 0; max-width: 22ch; }
.ap-hero__lead { color: #b7bcc6; font-size: clamp(15px, 1.5vw, 17px); max-width: 60ch; margin: 0 0 32px; }
.ap-eco-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ap-eco-card { display: grid; grid-template-columns: 1fr 150px; gap: 16px; align-items: center; padding: 22px; border-radius: var(--radius-lg); background: var(--dark-2); border: 1px solid var(--dark-line); border-top: 3px solid var(--accent); text-decoration: none; color: #fff; transition: border-color .2s, transform .2s; }
.ap-eco-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ap-eco-card__tag { font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ap-eco--tage .ap-eco-card__tag, .ap-eco-card.ap-eco--tage .ap-eco-card__tag { color: #7aa9ee; }
.ap-eco-card h2 { font-size: 24px; margin: 8px 0 6px; }
.ap-eco-card p { color: #a9aeb9; margin: 0 0 14px; font-size: 14px; }
.ap-eco-card__cta { font-weight: 600; font-size: 14px; }
.ap-eco-card__cta::after { content: " →"; }
.ap-eco-card img { border-radius: 12px; background: #fff; aspect-ratio: 1; object-fit: contain; width: 100%; }
.ap-hero__help { margin: 20px 0 0; color: #a9aeb9; font-size: 14px; }
.ap-hero__help a { color: #fff; font-weight: 600; }

.ap-filter { position: sticky; top: var(--header-h); z-index: 40; background: rgba(245,245,243,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .ap-filter { top: calc(var(--header-h) + 32px); }
.ap-filter .wrap { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.ap-seg { display: inline-flex; padding: 4px; background: #e9e9e6; border-radius: 12px; flex-shrink: 0; }
.ap-seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.ap-seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ap-seg button[data-eco="entire"][aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--entire), 0 1px 3px rgba(0,0,0,.1); }
.ap-seg button[data-eco="tage"][aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--tage), 0 1px 3px rgba(0,0,0,.1); }
.ap-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); flex-shrink: 0; }
.ap-dot--entire { background: var(--entire); } .ap-dot--tage { background: var(--tage); }
.ap-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.ap-chips::-webkit-scrollbar { display: none; }
.ap-chips a { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.ap-chips a:hover { border-color: var(--ink); color: var(--ink); }
.ap-chips a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
body[data-eco="tage"] .ap-chips a.is-active { background: var(--tage); border-color: var(--tage); }
.ap-search { position: relative; flex-shrink: 0; margin: 0; }
.ap-search input { width: 220px; height: 38px; min-height: 38px; border-radius: 10px; padding: 0 12px 0 34px; font-size: 14px; }
.ap-search .ap-icon { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--muted); }

.ap-catalog { padding: 28px 0 64px; }
.ap-section { margin-top: 44px; }
.ap-section:first-of-type { margin-top: 8px; }
.ap-section__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ap-section__head h2 { font-size: 22px; font-weight: 800; }
.ap-section__count { font: 500 13px var(--font-mono); color: var(--muted); }
.ap-section__note { color: var(--muted); font-size: 14px; flex-basis: 100%; margin: 0; }
.ap-section.ap-eco--entire .ap-section__head h2, .ap-section.ap-eco--tage .ap-section__head h2 { padding-left: 12px; border-left: 3px solid var(--accent); }
.ap-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-eco-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 600 11px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; background: var(--entire-soft); color: var(--entire-ink); }
.ap-eco-pill--tage { background: var(--tage-soft); color: var(--tage-ink); }
.ap-empty { padding: 48px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line-2); }

/* ===================================================== 6 Product cards */
.woocommerce ul.products, ul.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.woocommerce ul.products::before, .woocommerce ul.products::after, ul.products::before, ul.products::after { content: none !important; display: none !important; }
.ap-section--compact ul.products, ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.woocommerce ul.products li.product, ul.products li.product {
	position: relative; display: flex; flex-direction: column; float: none !important; width: auto !important; margin: 0 !important;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; transition: box-shadow .2s, border-color .2s;
}
ul.products li.product:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
ul.products li.product.ap-eco--tage, ul.products li.product.ap-eco--entire { border-top: 2px solid var(--accent); }
li.product .woocommerce-LoopProduct-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
li.product .ap-thumb { position: relative; border-radius: 10px; overflow: hidden; background: #fff; aspect-ratio: 1; margin-bottom: 12px; }
li.product .ap-thumb img { width: 100%; height: 100%; object-fit: contain; margin: 0 !important; transition: transform .35s; display: block; }
li.product:hover .ap-thumb img { transform: scale(1.04); }
li.product .onsale { position: absolute; right: 8px; top: 8px; left: auto; z-index: 2; background: var(--err); color: #fff; font: 700 11px/1 var(--font); padding: 5px 8px; border-radius: 999px; min-height: 0; min-width: 0; margin: 0; }
li.product .woocommerce-loop-product__title { font: 600 15px/1.3 var(--font); letter-spacing: 0; margin: 0 0 4px; padding: 0 2px; }
li.product .ap-excerpt { color: var(--muted); font-size: 13px; margin: 0 2px 8px; line-height: 1.45; }
li.product .ap-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 2px 0; }
.price { font: 600 15px var(--font-mono); color: var(--ink); letter-spacing: -.02em; }
.price del { color: var(--muted); font-weight: 400; margin-right: 4px; }
.price ins { text-decoration: none; }
.ap-from { font: 500 12px var(--font); color: var(--muted); letter-spacing: 0; }
li.product .ap-card-foot .price { margin: 0; }
li.product .button { min-height: 36px; padding: 0 12px; font-size: 13px; margin: 0 !important; }
li.product .button .ap-icon { width: 16px; height: 16px; }
.ap-section--compact li.product { padding: 10px; }
.ap-section--compact li.product .woocommerce-loop-product__title { font-size: 13.5px; }
.ap-section--compact .price { font-size: 14px; }
.ap-section--compact li.product .button { padding: 0 10px; }
.ap-section--compact li.product .button.add_to_cart_button { width: 36px; padding: 0; }
.ap-section--compact li.product .button.add_to_cart_button span { display: none; }
.ap-stock { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1.4 var(--font); padding: 3px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.ap-stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ap-stock--backorder { background: var(--warn-soft); color: var(--warn); }
.ap-stock--out { background: var(--err-soft); color: var(--err); }
.ap-stock--legacy { background: #eef0f3; color: var(--ink-2); }
li.product .ap-thumb .ap-stock { position: absolute; left: 8px; top: 8px; z-index: 2; }
li.product.outofstock .ap-thumb img { opacity: .55; }

/* ===================================================== 7 Single product */
.woocommerce-breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0 0; margin: 0; }
.woocommerce-breadcrumb a { color: var(--muted); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.woocommerce-breadcrumb .sep { margin: 0 8px; opacity: .6; }

.ap-product-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: 20px 0 48px; }
.ap-product .woocommerce-product-gallery { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; margin: 0; width: auto !important; float: none !important; opacity: 1 !important; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.woocommerce-product-gallery__image { background: #fff; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; aspect-ratio: 1; object-fit: contain; }
.flex-control-thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.flex-control-thumbs li { margin: 0; }
.flex-control-thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; opacity: .75; transition: opacity .15s, border-color .15s; }
.flex-control-thumbs img:hover { opacity: 1; }
.flex-control-thumbs img.flex-active { border-color: var(--ink); opacity: 1; }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 0; text-decoration: none; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; }
.ap-product .onsale { position: absolute; z-index: 6; top: 14px; left: 14px; background: var(--err); color: #fff; padding: 5px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }

.summary.entry-summary { min-width: 0; float: none !important; width: auto !important; margin: 0 !important; }
.summary .product_title { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; margin: 12px 0 10px; }
.summary .woocommerce-product-rating { margin-bottom: 10px; font-size: 13px; }
.woocommerce-product-details__short-description { color: var(--ink-2); font-size: 16px; margin: 0 0 20px; }
.woocommerce-product-details__short-description p { margin: 0 0 8px; }
.ap-legacy-note { background: #eef0f3; border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.ap-buybox { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius-lg); padding: 20px; }
.ap-buybox > .price { font-size: 30px; font-weight: 700; margin: 0 0 12px; display: block; }
.ap-buybox__stock { margin: 0 0 14px; }
.ap-buybox p.stock { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.4 var(--font); padding: 4px 10px; border-radius: 999px; margin: 0 0 14px; background: var(--ok-soft); color: var(--ok); }
.ap-buybox p.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ap-buybox p.stock.available-on-backorder { background: var(--warn-soft); color: var(--warn); }
.ap-buybox p.stock.out-of-stock { background: var(--err-soft); color: var(--err); }
form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
form.cart:not(.variations_form)::before, form.cart::after { content: none; }
form.cart .single_add_to_cart_button { flex: 1; min-width: 180px; }
.ap-buybox .quantity, .ap-cart-item .quantity { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; height: 52px; }
.ap-buybox .quantity .qty, .woocommerce .ap-cart-item .quantity .qty { width: 46px; min-height: 0; height: 100%; border: 0; text-align: center; font: 600 16px var(--font-mono); background: transparent; padding: 0; -moz-appearance: textfield; appearance: textfield; box-shadow: none !important; }
.ap-buybox .quantity .qty::-webkit-inner-spin-button, .ap-buybox .quantity .qty::-webkit-outer-spin-button, .ap-cart-item .quantity .qty::-webkit-inner-spin-button, .ap-cart-item .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ap-qty-btn { width: 38px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--ink-2); padding: 0; }
.ap-qty-btn:hover { color: var(--ink); }
.ap-buybox .quantity:has(input[type="hidden"]) { display: none; }
/* inputs inside Fly Cart keep the plugin's compact look */
.woofc-area input.woofc-qty { min-height: 0; width: 40px; padding: 0; text-align: center; border-radius: 0; box-shadow: none; }
/* variations */
.variations_form { display: block; }
table.variations { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
table.variations th, table.variations td { display: block; padding: 0; text-align: left; border: 0; }
table.variations th label { font: 600 13px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.variations td { margin: 6px 0 12px; }
.reset_variations { font-size: 13px; color: var(--muted); margin-left: 8px; }
.woocommerce-variation-price .price { font-size: 22px; display: block; margin-bottom: 8px; }
.woocommerce-variation-availability p.stock { margin-bottom: 10px; }
.woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.ap-trust div { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.ap-trust .ap-icon { width: 18px; height: 18px; color: var(--accent-ink); }
.ap-inbox { margin: 20px 0 0; }
.ap-inbox h3, .ap-addons__head h3 { font: 700 13px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.ap-inbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ap-inbox li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.ap-inbox li::before { content: "✓"; width: 20px; height: 20px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }

/* WPC Bought Together: hidden when the theme picker / configurator drives it */
.ap-has-addons .ap-product-top .woobt-wrap, .ap-cfg-cart .woobt-wrap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* …and a clean look when the WPC table is shown on its own */
.woobt-wrap { margin: 0 0 16px; }
.woobt-wrap .woobt-text { font-size: 14px; color: var(--ink-2); }
.woobt-wrap .woobt-text * { font: inherit !important; color: inherit !important; float: none !important; }
.woobt-products { width: 100%; border-collapse: collapse; }
.woobt-products .woobt-product td { padding: 8px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
.woobt-products .woobt-price { font-family: var(--font-mono); text-align: right; white-space: nowrap; }

/* details (tabs → sections) */
.ap-details { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 8px 0 48px; border-top: 1px solid var(--line); }
.ap-details__nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 2px; padding-top: 32px; }
.ap-details__nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; border-left: 2px solid transparent; }
.ap-details__nav a:hover { background: var(--surface); color: var(--ink); border-left-color: var(--accent); }
.ap-details__body { min-width: 0; }
.ap-details__section { padding-top: 32px; max-width: 780px; }
.ap-details__section h2 { font-size: 24px; margin-bottom: 14px; }
.ap-details__section p, .ap-details__section li { color: var(--ink-2); }
.ap-details__section img { border-radius: 12px; height: auto; }
.ap-details__section a { color: var(--accent-ink); }
.ap-details__section table.shop_attributes { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; }
.ap-details__section .shop_attributes th, .ap-details__section .shop_attributes td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.ap-details__section .shop_attributes th { width: 35%; font-weight: 600; }
.ap-details__section .shop_attributes td p { margin: 0; }
.ap-doclinks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-doclinks a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--ink) !important; }
.ap-doclinks a:hover { border-color: var(--accent); }
.ap-doclinks small { display: block; font-weight: 400; color: var(--muted); }
.related.products, .upsells.products { padding: 24px 0 0; border-top: 1px solid var(--line); margin-top: 16px; }
.related.products > h2, .upsells.products > h2 { font-size: 22px; margin: 20px 0 16px; }

/* reviews */
#reviews .commentlist { list-style: none; padding: 0; }
#reviews .comment_container { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
#reviews .avatar { display: none; }
.star-rating { font-size: 13px; color: var(--entire); }

/* sticky mobile bar */
.ap-buybar { display: none; }

/* ===================================================== 8 Accessory picker */
.ap-addons { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.ap-addons__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.ap-addons__head h3 { margin: 0; }
.ap-addons__hint { font-size: 12.5px; color: var(--muted); }
.ap-addons__chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; }
.ap-addons__chips button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.ap-addons__chips button span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-left: 3px; }
.ap-addons__chips button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.ap-addons__chips button.is-active span { color: #c9ccd3; }
.ap-addons__grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-addon { position: relative; }
.ap-addon label { display: grid; grid-template-columns: 52px 1fr 22px; gap: 10px; align-items: center; padding: 8px 10px 8px 8px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; height: 100%; }
.ap-addon label:hover { border-color: var(--line-2); background: var(--surface-2); }
.ap-addon__cb { position: absolute; opacity: 0; pointer-events: none; }
.ap-addon__img img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; display: block; }
.ap-addon__body { min-width: 0; display: grid; gap: 2px; }
.ap-addon__name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.ap-addon__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.ap-addon__price { font: 600 13px var(--font-mono); color: var(--ink-2); }
.ap-addon__avail { font-size: 11.5px; font-weight: 600; color: var(--warn); }
.ap-addon--outofstock .ap-addon__avail { color: var(--err); }
.ap-addon__tick { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: all .15s; }
.ap-addon__tick .ap-icon { width: 14px; height: 14px; stroke-width: 3; }
.ap-addon__cb:checked ~ .ap-addon__tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.ap-addon__cb:checked ~ .ap-addon__body .ap-addon__name { color: var(--ink); }
.ap-addon label:has(.ap-addon__cb:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ap-addon__cb:focus-visible ~ .ap-addon__tick { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-addon--outofstock label { cursor: not-allowed; opacity: .55; }
.ap-addon__link { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: none; place-items: center; border-radius: 6px; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.ap-addon__link .ap-icon { width: 14px; height: 14px; }
.ap-addon:hover .ap-addon__link { display: grid; }
.ap-addons__more { width: 100%; border: 0; background: none; padding: 12px 0 2px; color: var(--accent-ink); font-weight: 600; cursor: pointer; }
.ap-addons__total { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ap-addons__label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ap-addons__sum { font-size: 20px; margin-left: auto; }
.ap-addons__add { display: none; }
.ap-addons.has-selection .ap-addons__add { display: inline-flex; }

/* ===================================================== 9 Configurator */
.ap-configurator { padding-bottom: 32px; }
.ap-cfg-hero { padding: 24px 0 8px; }
.ap-cfg-hero .product_title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin: 10px 0; }
.ap-cfg-hero__intro { color: var(--ink-2); max-width: 72ch; }
.ap-cfg-hero__intro p { margin: 0 0 8px; }
.ap-cfg-hero__img { margin-top: 18px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.ap-cfg-hero__img img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.ap-cfg { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding: 24px 0 40px; align-items: start; }
.ap-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.ap-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); transition: background .3s; }
.ap-progress span.is-done { background: var(--accent); }
fieldset.ap-step { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); padding: 22px; margin: 0 0 16px; min-width: 0; }
fieldset.ap-step legend { float: left; width: 100%; padding: 0; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 4px; }
.ap-step__num { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 14px var(--font-mono); flex-shrink: 0; transition: background .2s; }
.ap-step.is-answered .ap-step__num { background: var(--ok); }
.ap-step__q { font: 700 18px/1.3 var(--font-head); padding-top: 3px; }
.ap-step__help { clear: both; color: var(--muted); font-size: 14px; margin: 4px 0 14px 44px; }
.ap-options { clear: both; display: grid; gap: 8px; margin-left: 44px; padding-top: 6px; }
.ap-step__help + .ap-options { padding-top: 0; }
.ap-options--grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ap-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; font-weight: 400; }
.ap-opt:hover { border-color: var(--line-2); background: var(--surface-2); }
.ap-opt input { margin: 2px 0 0; accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; min-height: 0; }
.ap-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ap-opt__text { display: grid; gap: 3px; min-width: 0; }
.ap-opt__label { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.ap-opt__adds { font: 500 12px var(--font-mono); color: var(--muted); }
.ap-opt__adds.is-plus { color: var(--accent-ink); }
.ap-opt__badge { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 7px; border-radius: 6px; white-space: nowrap; align-self: flex-start; }
.ap-note-box { margin: 12px 0 0 44px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.ap-note-box a { color: var(--accent-ink); font-weight: 600; }
.ap-tage-tip { margin: 14px 0 0 44px; padding: 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-radius: 12px; background: var(--tage-soft); border: 1px solid #c9dbf7; }
.ap-tage-tip p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); max-width: 60ch; }

.ap-summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.admin-bar .ap-summary { top: calc(var(--header-h) + 52px); }
.ap-summary__head { padding: 18px 20px; background: var(--dark); color: #fff; border-bottom: 3px solid var(--accent); }
.ap-summary__head h2 { font-size: 18px; }
.ap-summary__head p { margin: 4px 0 0; color: #a9aeb9; font-size: 13px; }
.ap-summary__list { list-style: none; margin: 0; padding: 8px 20px; max-height: 46vh; overflow: auto; }
.ap-summary__list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; animation: apIn .25s ease; }
.ap-summary__list li:last-child { border-bottom: 0; }
.ap-summary__list img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.ap-summary__list small { color: var(--muted); }
.ap-summary__list .ap-stock { font-size: 11px; padding: 1px 6px; margin-top: 3px; }
.ap-summary__list .price { font-size: 13.5px; white-space: nowrap; }
.ap-summary__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.ap-summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 600; }
.ap-summary__total .price { font-size: 26px; font-weight: 700; }
.ap-summary__warn { font-size: 12.5px; color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; }
.ap-summary__help { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.ap-cfg-add.is-busy { opacity: .7; cursor: progress; }
.ap-cfg-add[data-done] { background: var(--ok); }
.ap-summary__help a { color: var(--accent-ink); }
@keyframes apIn { from { opacity: 0; transform: translateY(-4px); } }

/* ===================================================== 10 WooCommerce pieces */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; margin: 16px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14.5px; border-left: 4px solid var(--ok);
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { content: none !important; }
.woocommerce-info { border-left-color: var(--tage); }
.woocommerce-error { border-left-color: var(--err); flex-direction: column; align-items: flex-start; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; float: none !important; }
.woocommerce-products-header { padding: 24px 0 8px; }
.woocommerce-products-header__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.term-description { color: var(--ink-2); max-width: 70ch; }
.woocommerce-result-count { color: var(--muted); font-size: 13px; margin: 12px 0 16px; float: left; }
.woocommerce-ordering { float: right; margin: 6px 0 16px; }
.woocommerce-ordering select { min-height: 38px; width: auto; }
.ap-main ul.products { clear: both; }
.woocommerce-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; justify-content: center; margin: 32px 0 0; border: 0 !important; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.woocommerce-pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* cart / checkout / account — WooCommerce CSS loads on these pages; we restyle on top */
.woocommerce-cart .ap-main, .woocommerce-checkout .ap-main, .woocommerce-account .ap-main { max-width: var(--wrap); }
.woocommerce-cart .ap-prose, .woocommerce-checkout .ap-prose, .woocommerce-account .ap-prose { max-width: none; }
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { font: 600 12px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--line); padding: 12px 14px; }
.woocommerce table.shop_table img { width: 64px; border-radius: 8px; background: #fff; }
.woocommerce a.remove { color: var(--muted) !important; border-radius: 8px; }
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled], .woocommerce button.button.disabled { background: var(--line); color: var(--muted); opacity: 1; padding: 0 16px; }
.woocommerce table.shop_table td.product-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.woocommerce table.shop_table td.product-name a:hover { color: var(--accent-ink); }
.woocommerce a.remove:hover { background: var(--err-soft); color: var(--err) !important; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout-review-order, #order_review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.woocommerce .cart-collaterals .cart_totals h2, #order_review_heading { font-size: 20px; margin-bottom: 12px; }
.woocommerce .cart-collaterals .cart_totals table.shop_table { border: 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { font-size: 16px; padding: 16px; border-radius: 12px; }
.woocommerce .coupon .input-text { width: auto !important; min-width: 160px; }
.woocommerce form .form-row label { font-size: 13.5px; }
.woocommerce form .form-row .required { color: var(--err); text-decoration: none; }
.woocommerce-checkout #payment { background: var(--surface-2); border-radius: 12px; }
.woocommerce-checkout #payment div.payment_box { background: #fff; border-radius: 10px; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a, .woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--surface); color: var(--ink); }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon, .woocommerce form.lost_reset_password { border: 1px solid var(--line) !important; border-radius: var(--radius-lg) !important; background: var(--surface); padding: 24px !important; }
.wc-empty-cart-message + .return-to-shop .button { background: var(--accent); }

/* cart page (theme template woocommerce/cart/cart.php): product cards + sticky totals */
.ap-cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.ap-cart__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.ap-cart__head h2 { font-size: 18px; margin: 0; }
.ap-cart__continue { font-size: 14px; color: var(--accent-ink); }
.ap-cart__list { display: grid; gap: 10px; }
.ap-cart-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto 112px 36px; grid-template-areas: "img info qty total rm"; align-items: center; gap: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.ap-cart-item__img { grid-area: img; }
.ap-cart-item__img img { display: block; width: 80px; height: 80px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.ap-cart-item__info { grid-area: info; display: grid; gap: 4px; min-width: 0; }
.ap-cart-item__name { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.ap-cart-item__name a { color: var(--ink); text-decoration: none; }
.ap-cart-item__name a:hover { color: var(--accent-ink); }
.ap-cart-item__info dl.variation { margin: 0; font-size: 13px; color: var(--muted); }
.ap-cart-item__info dl.variation p { margin: 0; }
.ap-cart-item__info .backorder_notification { margin: 0; font-size: 13px; color: var(--warn); }
.ap-cart-item__each { font: 13px var(--font-mono); color: var(--muted); }
.ap-cart-item__qty { grid-area: qty; }
.ap-cart-item .quantity { height: 40px; }
.ap-cart-item .quantity .ap-qty-btn { width: 34px; }
.ap-cart-item .quantity:has(input[type="hidden"]) { border-color: transparent; background: none; font: 600 15px var(--font-mono); padding: 0 12px; } /* sold individually: plain "1" */
.ap-cart-item__total { grid-area: total; text-align: right; font: 700 16px var(--font-mono); white-space: nowrap; }
.ap-cart-item__remove { grid-area: rm; justify-self: end; }
.woocommerce .ap-cart-item a.remove { display: grid; place-items: center; width: 36px; height: 36px; font-size: 0; line-height: 1; border-radius: 10px; }
.ap-cart-item a.remove .ap-icon { width: 18px; height: 18px; }
.ap-cart__actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 14px; }
.ap-cart__coupon summary { cursor: pointer; font-size: 14px; color: var(--accent-ink); padding: 6px 0; }
.ap-cart__coupon .coupon { display: flex; gap: 8px; margin-top: 8px; }
.woocommerce .ap-cart__coupon .coupon .input-text { min-width: 0; flex: 1; width: 200px !important; }
.ap-cart--auto .ap-cart__update { display: none !important; } /* a live-shop plugin stylesheet sets it to flex */
.woocommerce .ap-cart__side { position: sticky; top: calc(var(--header-h) + 16px); width: auto; }
.woocommerce .ap-cart__side .cart_totals { float: none; width: auto; }
.ap-cart__side .cart_totals table.shop_table th { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink-2); padding-left: 0; }
.ap-cart__side .cart_totals table.shop_table td { text-align: right; padding-right: 0; }
.ap-cart__side .cart_totals .order-total th, .ap-cart__side .cart_totals .order-total td { font-size: 18px; color: var(--ink); border-top: 2px solid var(--line-2); }
.ap-cart__side .cart_totals .woocommerce-Price-amount { font-family: var(--font-mono); }
.ap-cart__side .wc-proceed-to-checkout { padding-bottom: 0; }
.woocommerce-cart .cross-sells { margin-top: 40px; }

/* block cart / checkout (if used instead of the classic shortcodes) */
.wc-block-components-product-name { color: var(--ink) !important; text-decoration: none !important; font-weight: 600; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .wc-block-components-button:not(.is-link) { background: var(--accent) !important; color: #fff !important; border-radius: 12px !important; border: 0 !important; }
.wc-block-components-button:not(.is-link):hover { background: var(--accent-hover) !important; }
.wc-block-components-product-price, .wc-block-components-totals-item__value, .wc-block-formatted-money-amount { font-family: var(--font-mono); }

/* helpdesk form */
.ap-support { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); margin: 8px 0 32px; scroll-margin-top: calc(var(--header-h) + 20px); max-width: 820px; }
.ap-support__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ap-field { margin: 0 0 16px; }
.ap-field > label { display: block; font: 600 13.5px var(--font); margin-bottom: 6px; }
.ap-field .req { color: var(--err); }
.ap-support .was-validated :invalid, .ap-support.was-validated :invalid { border-color: var(--err); }
.ap-support__more { margin: 0 0 16px; border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px 0; }
.ap-support__more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.ap-drop { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); cursor: pointer; font-weight: 400; }
.ap-drop:hover { border-color: var(--accent); }
.ap-drop input[type="file"] { font-size: 13px; }
.ap-drop__text { font-size: 13.5px; color: var(--ink-2); }
.ap-drop__list { font-size: 13px; color: var(--ok); }
.ap-drop__list.is-error { color: var(--err); }
.ap-field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.ap-field--check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; min-height: 0; }
.ap-field--check a { color: var(--accent-ink); }
.ap-support__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 8px 0 0; }
.ap-support__actions a { color: var(--accent-ink); }
.ap-support__errors { background: var(--err-soft); color: var(--err); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.ap-support__errors ul { margin: 6px 0 0; padding-left: 18px; }
.ap-support--done { text-align: center; padding: 40px 24px; }
.ap-support--done h2 { font-size: 24px; margin: 12px 0 8px; }
.ap-support--done p { color: var(--ink-2); max-width: 52ch; margin: 0 auto 16px; }
.ap-support__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: inline-grid; place-items: center; }
.ap-support__icon .ap-icon { width: 28px; height: 28px; stroke-width: 3; }
.ap-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .ap-support__grid { grid-template-columns: 1fr; } }

/* ===================================================== 11 Fly Cart restyle */
.woofc-area { font-family: var(--font) !important; }
.woofc-area .woofc-area-top, .woofc-area .woofc-area-bot { background: var(--surface) !important; color: var(--ink) !important; }
.woofc-area .woofc-area-top { border-bottom: 1px solid var(--line); }
.woofc-area .woofc-area-top span { font-family: var(--font-head) !important; font-weight: 800 !important; }
.woofc-area .woofc-area-mid { background: var(--bg) !important; }
.woofc-area .woofc-item .woofc-item-inner { background: var(--surface) !important; border-radius: 12px; position: relative; padding-right: 40px !important; }
/* remove (X): always visible, also on touch screens (the plugin shows a white icon on hover only) */
.woofc-area .woofc-item .woofc-item-remove { opacity: 1 !important; visibility: visible !important; color: var(--muted) !important; top: 8px !important; right: 8px !important; width: 26px; height: 26px; display: grid !important; place-items: center; border-radius: 8px; cursor: pointer; }
.woofc-area .woofc-item .woofc-item-remove i { color: inherit !important; font-size: 12px; }
.woofc-area .woofc-item .woofc-item-remove:hover { color: var(--err) !important; background: var(--err-soft); }
.woofc-area .woofc-item-price, .woofc-area .woofc-data-right .woofc-total-right { font-family: var(--font-mono) !important; }
.woofc-area .woofc-action .woofc-action-inner > div a, .woofc-area .woofc-action-checkout a { background: var(--entire) !important; border-radius: 10px !important; color: #fff !important; }
.woofc-area .woofc-action .woofc-action-inner > div:first-child a { background: var(--ink) !important; }
.ap-hide-flycart-btn .woofc-count { display: none !important; }
.woofc-count { background: var(--ink) !important; border-radius: 14px !important; }
.woofc-count span { background: var(--entire) !important; }

/* ===================================================== 12 Footer */
.ap-footer { background: var(--dark); color: #a9aeb9; font-size: 14px; margin-top: 0; }
.ap-footer__cta { border-bottom: 1px solid var(--dark-line); }
.ap-footer__cta .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.ap-footer__cta a { display: block; color: #fff; text-decoration: none; padding: 18px; border-radius: 14px; border: 1px solid var(--dark-line); transition: border-color .2s; }
.ap-footer__cta a:hover { border-color: var(--entire); }
.ap-footer__cta strong { display: block; font-family: var(--font-head); font-size: 16px; margin-bottom: 4px; }
.ap-footer__cta span { color: #a9aeb9; font-size: 13.5px; }
.ap-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.ap-footer h3 { color: #fff; font: 700 13px var(--font); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.ap-footer p { margin: 0 0 8px; }
.ap-footer a { color: #d6d9df; }
.ap-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ap-footer .ap-muted { color: #7f8590; }
.ap-footer__bottom { border-top: 1px solid var(--dark-line); }
.ap-footer__bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: 13px; }
.ap-pay { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-pay span { border: 1px solid var(--dark-line); border-radius: 6px; padding: 3px 8px; font: 600 11px var(--font-mono); color: #d6d9df; }

/* ===================================================== 13 Responsive */
@media (max-width: 1100px) {
	ul.products, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ap-section--compact ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ap-cfg { grid-template-columns: minmax(0, 1fr) 330px; }
	.ap-search input { width: 170px; }
	.ap-addons__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	:root { --header-h: 60px; }
	.ap-header .wrap { gap: 12px; }
	.ap-nav-wrap { order: 3; }
	.ap-nav { display: none; }
	.ap-burger { display: inline-grid; }
	.ap-nav.is-open { display: grid; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; padding: 10px var(--gutter) 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow: auto; }
	.ap-nav .sub-menu { display: grid; position: static; border: 0; box-shadow: none; padding: 0 0 6px 12px; min-width: 0; }
	.ap-nav > .menu-item-has-children > a::after { display: none; }
	.ap-eco-cards { grid-template-columns: 1fr; }
	.ap-filter .wrap { flex-wrap: wrap; gap: 10px; }
	.ap-chips { order: 3; flex-basis: 100%; }
	.ap-search { flex: 1; } .ap-search input { width: 100%; }
	ul.products, .woocommerce ul.products, .ap-section--compact ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ap-product-top { grid-template-columns: 1fr; padding-top: 12px; }
	.ap-product .woocommerce-product-gallery { position: relative; top: 0; }
	.ap-details { grid-template-columns: 1fr; gap: 0; }
	.ap-details__nav { display: none; }
	.ap-cfg { grid-template-columns: 1fr; }
	.ap-summary { position: static; }
	.ap-footer__cta .wrap, .ap-footer__cols { grid-template-columns: 1fr 1fr; }
	.ap-buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .25s; }
	.ap-buybar.is-on { transform: none; }
	.ap-buybar .price { font-size: 18px; }
	.ap-buybar .ap-btn { flex: 1; max-width: 60%; }
	/* CookieYes revisit button would cover the buy bar price; lift it above the bar (73px tall) */
	.cky-btn-revisit-wrapper { transition: bottom .25s; }
	body:has(.ap-buybar.is-on) .cky-btn-revisit-wrapper { bottom: calc(85px + env(safe-area-inset-bottom)) !important; }
	.woocommerce-result-count, .woocommerce-ordering { float: none; }
	.ap-cart { grid-template-columns: 1fr; }
	.woocommerce .ap-cart__side { position: static; }
	/* WooCommerce's small-screen CSS turns the totals table into stacked blocks; keep label | amount rows */
	.ap-cart__side .cart_totals table.shop_table_responsive tr { display: table-row; }
	.ap-cart__side .cart_totals table.shop_table_responsive tr th { display: table-cell; }
	.ap-cart__side .cart_totals table.shop_table_responsive tr td { display: table-cell; }
	.ap-cart__side .cart_totals table.shop_table_responsive tr td::before { content: none; }
}
@media (max-width: 782px) { .admin-bar .ap-header { top: 0; } .admin-bar .ap-filter { top: var(--header-h); } }
@media (max-width: 560px) {
	.ap-cart-item { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img qty total"; gap: 10px 12px; }
	.ap-cart-item__img { align-self: start; }
	.ap-cart-item__img img { width: 64px; height: 64px; }
	.ap-cart-item__remove { align-self: start; margin: -6px -6px 0 0; }
	.ap-cart-item__qty { justify-self: start; }
	.ap-topbar__usps li:nth-child(n+2) { display: none; }
	.ap-eco-card { grid-template-columns: 1fr 96px; padding: 16px; }
	.ap-eco-card h2 { font-size: 20px; }
	.ap-options, .ap-step__help, .ap-note-box, .ap-tage-tip { margin-left: 0; }
	fieldset.ap-step { padding: 18px 16px; }
	.ap-trust { grid-template-columns: 1fr; }
	.ap-doclinks { grid-template-columns: 1fr; }
	.ap-footer__cta .wrap, .ap-footer__cols { grid-template-columns: 1fr; }
	.ap-section--compact li.product .button.add_to_cart_button { width: 34px; }
	form.cart .single_add_to_cart_button { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .ap-topbar, .ap-header, .ap-filter, .ap-footer, .ap-buybar, .woofc-count { display: none !important; } }

/* Site-wide notice (WooCommerce store notice). Not dismissible. */
.ap-notice { background: var(--entire-soft); color: var(--entire-ink); border-bottom: 1px solid #f6c996; font-size: 13.5px; line-height: 1.4; text-align: center; }
.ap-notice p { margin: 0; padding: 9px 0; font-weight: 600; }
.ap-notice a { color: inherit; text-decoration: underline; }
.ap-notice--alert { background: repeating-linear-gradient(-45deg, #f6a24a 0 14px, #f28a1e 14px 28px); color: var(--ink); border-bottom: 2px solid var(--entire-hover); font-size: 15px; }
.ap-notice--alert p { padding: 14px 0; font-weight: 700; }
