/* ARTPROFILE theme for OpenCart 3 / ocStore. Loaded after bootstrap.min.css; tokens follow the ARTPROFILE landing. */
/* ---------- self-hosted fonts ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-cyrillic-UcC73FwrK3.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-UcC73FwrK3.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: 500; font-display: swap; src: url('../fonts/inter-cyrillic-UcC73FwrK3.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-UcC73FwrK3.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: 600; font-display: swap; src: url('../fonts/inter-cyrillic-UcC73FwrK3.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-UcC73FwrK3.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: 700; font-display: swap; src: url('../fonts/inter-cyrillic-UcC73FwrK3.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-UcC73FwrK3.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: 400; font-display: swap; src: url('../fonts/jetbrains-mono-cyrillic-tDbv2o-flE.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-latin-tDbv2o-flE.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: 500; font-display: swap; src: url('../fonts/jetbrains-mono-cyrillic-tDbv2o-flE.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-latin-tDbv2o-flE.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: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/oswald-cyrillic-TK3IWkUHHA.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/oswald-latin-TK3IWkUHHA.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: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/oswald-cyrillic-TK3IWkUHHA.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/oswald-latin-TK3IWkUHHA.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; }

:root {
	--paper: #f5f2ec;
	--paper-2: #ebe7df;
	--ink: #0a0a0a;
	--ink-2: #2a2a2a;
	--muted: #5c5851;
	--accent: #b84e2e;
	--accent-ink: #fff;
	--line: rgba(0, 0, 0, .12);
	--border: 1.5px solid var(--ink);
	--display: Oswald, 'Arial Narrow', sans-serif;
	--sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, monospace;
	--gutter: 56px;
	--header-h: 64px;
}

/* ---------- base ---------- */
html { font-size: 16px; scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover, a:focus { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { font-family: var(--sans); color: var(--ink); }
h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1; font-size: clamp(36px, 4.4vw, 64px); margin: 0 0 20px; }
h2 { font-size: 26px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
hr { border-top: 1px solid var(--line); }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ap-display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.ap-mono, .ap-eyebrow { font-family: var(--mono); }
.ap-eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ap-wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bootstrap .container stays for untouched default templates, just widened and aligned to our gutters. */
.container { width: auto; max-width: 1440px; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- buttons & forms ---------- */
.ap-btn, .btn-primary, .btn-default, .btn-inverse {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 22px; border: var(--border); border-radius: 0;
	font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .03em; text-transform: uppercase;
	background: var(--ink); color: var(--paper); text-shadow: none; box-shadow: none;
	transition: transform .15s ease, background .2s, color .2s;
}
.ap-btn:hover, .btn-primary:hover, .btn-primary:focus, .btn-inverse:hover { background: var(--ink-2); color: var(--paper); transform: translateY(-1px); }
.ap-btn--accent, .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ap-btn--accent:hover, .btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: #a24326; border-color: #a24326; color: #fff; }
.ap-btn--ghost, .btn-default { background: transparent; color: var(--ink); }
.ap-btn--ghost:hover, .btn-default:hover, .btn-default:focus { background: var(--ink); color: var(--paper); }
.ap-btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.ap-btn--light:hover { background: #fff; color: var(--ink); }
.ap-btn--lg { padding: 17px 28px; font-size: 14px; }
.ap-btn--block { width: 100%; }
.btn-xs, .btn-sm { padding: 6px 10px; font-size: 11px; }
.btn-link { color: var(--ink); }
.btn-danger { background: var(--ink); border: var(--border); border-radius: 0; color: var(--paper); }
.btn-group > .btn { border-radius: 0 !important; }

.form-control, .ap-input {
	height: auto; padding: 12px 14px; border: var(--border); border-radius: 0; box-shadow: none;
	background: transparent; color: var(--ink); font-family: var(--sans); font-size: 14px;
}
.form-control:focus, .ap-input:focus { border-color: var(--ink); box-shadow: none; background: var(--paper-2); }
select.form-control, select.ap-input {
	appearance: none; -webkit-appearance: none; padding-right: 36px;
	background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
	background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.input-group-addon { border: var(--border); border-radius: 0; background: var(--paper-2); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.control-label, label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.radio label, .checkbox label { font-family: var(--sans); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.has-error .form-control { border-color: var(--accent); }
.text-danger { color: var(--accent); font-size: 13px; }
.help-block { color: var(--muted); font-size: 13px; }
/* Stock language strings hardcode #FF0000 (e.g. review note): use the theme accent, it has enough contrast. */
.help-block span[style*="color"], .text-danger span[style*="color"] { color: var(--accent) !important; }
legend { font-family: var(--display); font-size: 28px; text-transform: uppercase; border-bottom: var(--border); padding-bottom: 8px; }

.table { background: var(--paper); }
.table-bordered, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > thead > tr > th { border-color: var(--line); }
.table > thead > tr > td, .table > thead > tr > th { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--paper-2); }
.table-striped > tbody > tr:nth-of-type(odd) { background: var(--paper-2); }
.img-thumbnail { border: 1px solid var(--line); border-radius: 0; background: #fff; }
.well { background: var(--paper-2); border: var(--border); border-radius: 0; box-shadow: none; }
.panel, .panel-default > .panel-heading { border-radius: 0; border-color: var(--ink); }
.panel-default > .panel-heading { background: var(--paper-2); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.list-group-item { border-radius: 0 !important; border-color: var(--line); background: transparent; }
.list-group-item.active, .list-group-item.active:hover { background: var(--ink); border-color: var(--ink); }

.alert { border-radius: 0; border: var(--border); background: var(--paper); color: var(--ink); padding: 14px 44px 14px 18px; font-size: 14px; }
.alert-success { border-left: 6px solid #3d7a4a; }
.alert-danger, .alert-warning { border-left: 6px solid var(--accent); }
.alert-info { border-left: 6px solid var(--ink); }
.alert a { text-decoration: underline; }
.alert .close { opacity: .6; text-shadow: none; }
.ap-alerts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1060; width: min(560px, calc(100% - 32px)); }
.ap-alerts .alert { box-shadow: 0 12px 40px rgba(0, 0, 0, .18); margin: 0 0 10px; }

.breadcrumb { background: none; border: 0; border-radius: 0; margin: 0 0 18px; padding: 0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb > li { text-shadow: none; padding: 0; }
.breadcrumb > li + li:before { content: "/"; padding: 0 8px; color: var(--muted); }
.breadcrumb > li:after { display: none; }
.breadcrumb a { color: var(--muted); display: inline-block; padding: 6px 0; min-width: 24px; }
.breadcrumb > li:last-child a { color: var(--ink); }

.pagination { margin: 0; border-radius: 0; }
.pagination > li > a, .pagination > li > span { border: var(--border); margin-left: -1.5px; border-radius: 0 !important; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 12px; min-width: 40px; text-align: center; }
.pagination > .active > span, .pagination > .active > span:hover, .pagination > li > a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- marquee ---------- */
.ap-marquee { overflow: hidden; white-space: nowrap; background: var(--ink); color: var(--paper); padding: 7px 0; }
.ap-marquee-track { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; animation: ap-marquee 40s linear infinite; }
.ap-marquee-sep { margin: 0 26px; opacity: .5; }
@keyframes ap-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.ap-header { position: sticky; top: 0; z-index: 1000; background: var(--paper); border-bottom: var(--border); }
.ap-header-bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); padding: 0 32px; }
.ap-logo { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: .08em; white-space: nowrap; }
.ap-logo b { font-weight: 500; color: var(--accent); }
.ap-logo { display: inline-flex; align-items: center; flex: none; }
.ap-logo img { display: block; height: 30px; width: auto; }
.ap-footer .ap-logo img { height: 34px; }
.ap-header-nav { border-top: 1px solid var(--line); padding: 0 18px; }
.ap-nav { display: flex; align-items: stretch; height: 46px; margin: 0; padding: 0; list-style: none; }
.ap-nav > li { position: relative; display: flex; }
.ap-nav > li > a { display: flex; align-items: center; padding: 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.ap-nav > li:hover > a, .ap-nav > li.is-active > a { color: var(--accent); }
.ap-nav-drop {
	position: absolute; top: 100%; left: 0; min-width: 300px; padding: 10px 0; margin-top: 1.5px;
	background: var(--paper); border: var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.ap-nav > li:hover .ap-nav-drop, .ap-nav > li:focus-within .ap-nav-drop { opacity: 1; visibility: visible; transform: none; }
.ap-nav-drop a { display: block; padding: 9px 20px; font-size: 14px; }
.ap-nav-drop a:hover { background: var(--paper-2); }
.ap-nav-drop .ap-nav-all { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.ap-header-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.ap-phone { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.ap-locale { display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.ap-locale a, .ap-locale button { padding: 2px 4px; opacity: 1; color: var(--muted); border: 0; background: none; font: inherit; letter-spacing: inherit; color: inherit; }
#form-language { margin: 0; }
.ap-locale button.is-active { opacity: 1; font-weight: 600; color: var(--ink); }
.ap-locale a.is-active { opacity: 1; font-weight: 600; color: var(--ink); }
.ap-locale span { opacity: .35; }
.ap-icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 12px; border: var(--border); background: transparent; color: var(--ink); font-size: 13px; font-weight: 500; }
.ap-icon-btn:hover { background: var(--ink); color: var(--paper); }
.ap-icon-btn svg { width: 18px; height: 18px; flex: none; }
.ap-burger { display: none; }

/* cart (markup contract with common.js: #cart > button, #cart > ul) */
#cart { position: relative; margin: 0; }
#cart > .btn { height: 40px; padding: 0 14px; font-size: 13px; text-transform: none; letter-spacing: 0; line-height: 1; background: var(--ink); color: var(--paper); }
#cart > .btn .fa { margin-right: 6px; }
#cart .dropdown-menu { right: 0; left: auto; min-width: 380px; margin-top: 8px; padding: 0; border: var(--border); border-radius: 0; background: var(--paper); box-shadow: 0 18px 40px rgba(0, 0, 0, .15); }
#cart .dropdown-menu li > div { min-width: 0; padding: 0 14px 14px; }
#cart .dropdown-menu table { margin-bottom: 10px; }
#cart .dropdown-menu li p { margin: 18px 0; }

/* search */
.ap-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.ap-search #search { display: flex; width: 100%; }
.ap-search #search .form-control { height: 40px; padding: 8px 12px; font-size: 13px; }
.ap-search #search .input-group-btn { width: auto; }
.ap-search #search .btn { height: 40px; padding: 0 14px; margin-left: -1.5px; }

/* mobile drawer */
.ap-drawer { position: fixed; inset: 0; z-index: 1100; display: none; flex-direction: column; background: var(--paper); overflow-y: auto; }
.ap-drawer.is-open { display: flex; }
.ap-drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 20px; border-bottom: var(--border); flex: none; }
.ap-drawer-body { padding: 8px 20px 32px; }
.ap-drawer-body > a, .ap-drawer summary { display: block; padding: 16px 0; font-size: 19px; font-weight: 600; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.ap-drawer summary::-webkit-details-marker { display: none; }
.ap-drawer summary:after { content: "+"; float: right; font-family: var(--mono); font-weight: 400; }
.ap-drawer details[open] summary:after { content: "–"; }
.ap-drawer details a { display: block; padding: 11px 0 11px 14px; font-size: 15px; border-bottom: 1px solid var(--line); }
.ap-drawer-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; font-family: var(--mono); font-size: 13px; }

/* ---------- page shell ---------- */
.ap-page { padding: 32px var(--gutter) 80px; }
.ap-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 28px; border-bottom: var(--border); }
.ap-page-head h1 { margin: 0; }
.ap-page-head .ap-eyebrow { margin-bottom: 12px; }
.ap-count { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.ap-sec { padding: 80px var(--gutter); border-bottom: var(--border); }
.ap-sec--alt { background: var(--paper-2); }
.ap-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.ap-sec-head h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 5vw, 64px); line-height: .95; margin: 8px 0 0; }
.ap-seeall { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-bottom: var(--border); white-space: nowrap; }

/* ---------- home hero ---------- */
.ap-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: min(760px, calc(100vh - 140px)); background: var(--ink); color: #fff; border-bottom: var(--border); }
.ap-hero-text { display: flex; flex-direction: column; justify-content: center; padding: 48px var(--gutter) 56px; }
.ap-hero-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: auto; padding-bottom: 40px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.ap-live { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #ff5544; box-shadow: 0 0 8px rgba(255, 85, 68, .7); vertical-align: middle; }
.ap-hero .ap-hero-h1 { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.ap-hero-slogan { color: #fff; font-size: clamp(52px, 6.4vw, 112px); line-height: .94; margin: 0; }
.ap-hero p { max-width: 500px; margin: 24px 0 0; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.ap-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ap-chips span { padding: 8px 14px; border: 1.5px solid rgba(255, 255, 255, .45); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ap-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; margin-bottom: auto; }
.ap-hero-cta .ap-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.ap-hero-cta .ap-btn--ghost:hover { background: #fff; color: var(--ink); }
.ap-hero-media { position: relative; overflow: hidden; border-left: var(--border); background: #e9e7e3; }
.ap-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.ap-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .18); }
.ap-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 22px 28px; border-right: 1px solid rgba(255, 255, 255, .18); }
.ap-stats > div:last-child { border-right: 0; }
.ap-stats .num { font-family: var(--display); font-size: clamp(26px, 2.6vw, 40px); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.ap-stats .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .65); text-align: right; }

/* ---------- category tiles ---------- */
.ap-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ap-cat { display: flex; flex-direction: column; border: var(--border); background: var(--paper); }
.ap-cat:hover { color: var(--ink); }
.ap-cat-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: var(--border); background: #fff; }
.ap-cat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ap-cat:hover .ap-cat-photo img { transform: scale(1.04); }
.ap-cat-body { padding: 16px 18px 20px; }
.ap-cat-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 6px; font-family: var(--display); font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.ap-cat-title .arr { font-family: var(--sans); font-size: 18px; transition: transform .2s; }
.ap-cat:hover .arr { transform: translateX(4px); color: var(--accent); }
.ap-cat-sub { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* placeholder for missing photos */
.ap-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0, 0, 0, .045) 14px 15px), var(--paper-2); }
.ap-ph span { padding: 4px 10px; border: 1px solid var(--ink); background: var(--paper); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- product card ---------- */
.ap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ap-card { position: relative; display: flex; flex-direction: column; border: var(--border); background: var(--paper); transition: box-shadow .2s; }
.ap-card:hover { box-shadow: 0 14px 36px rgba(0, 0, 0, .1); }
.ap-card-photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-bottom: var(--border); background: #fff; }
.ap-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .5s ease; }
.ap-card:hover .ap-card-photo img { transform: scale(1.04); }
.ap-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.ap-card-code { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.ap-card-name { margin: 6px 0 14px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.ap-card-name a:hover { color: var(--accent); }
.ap-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.ap-price { font-size: 17px; font-weight: 700; white-space: nowrap; }
.ap-price-old { display: block; font-size: 12px; font-weight: 400; color: var(--muted); text-decoration: line-through; }
.ap-price-new { color: var(--accent); }
.ap-add { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: var(--border); background: var(--ink); color: var(--paper); transition: background .2s; }
.ap-add:hover { background: var(--accent); border-color: var(--accent); }
.ap-add svg { width: 18px; height: 18px; }

/* default templates' .product-thumb (search, special, modules) gets the card look too */
.product-thumb { border: var(--border); border-radius: 0; background: var(--paper); margin-bottom: 14px; }
.product-thumb .image { border-bottom: var(--border); background: #fff; }
.product-thumb h4 { font-size: 14px; font-weight: 500; }
.product-thumb .price { color: var(--ink); font-weight: 700; }
.product-thumb .button-group { border-top: var(--border); background: transparent; }
.product-thumb .button-group button { background: transparent; color: var(--ink); border-left: 1px solid var(--line); text-transform: uppercase; font-size: 12px; font-weight: 600; }
.product-thumb .button-group button:hover { background: var(--ink); color: var(--paper); }

/* ---------- category page ---------- */
.ap-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.ap-subcats a { padding: 9px 14px; border: var(--border); font-size: 13px; font-weight: 500; }
.ap-subcats a:hover { background: var(--ink); color: var(--paper); }
.ap-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ap-toolbar-controls { display: flex; gap: 10px; }
.ap-toolbar select.ap-input { padding-top: 9px; padding-bottom: 9px; font-size: 13px; }
.ap-listing-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.ap-desc { max-width: 820px; margin-top: 64px; padding-top: 40px; border-top: var(--border); font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.ap-desc h2 { margin: 36px 0 14px; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.ap-desc h2:first-child { margin-top: 0; }
.ap-desc h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.ap-desc p { margin: 0 0 12px; }
.ap-desc ul { list-style: none; margin: 0 0 14px; padding: 0; }
.ap-desc li { position: relative; padding: 8px 0 8px 20px; border-bottom: 1px solid var(--line); }
.ap-desc li:before { content: "◆"; position: absolute; left: 0; top: 9px; color: var(--accent); font-size: 9px; line-height: 2.1; }
.ap-desc strong { color: var(--ink); font-weight: 600; }
.ap-desc--page { margin-top: 0; padding-top: 0; border-top: 0; }
.ap-desc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ap-empty { padding: 48px; border: var(--border); background: var(--paper-2); text-align: center; }

/* ---------- product page ---------- */
.ap-product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.ap-gallery-main { position: relative; display: block; aspect-ratio: 1; border: var(--border); background: #fff; overflow: hidden; }
.ap-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.ap-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 10px; }
.ap-gallery-thumbs a { position: relative; display: block; aspect-ratio: 1; border: 1px solid var(--line); background: #fff; }
.ap-gallery-thumbs a:hover, .ap-gallery-thumbs a.is-active { border: var(--border); }
.ap-gallery-thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.ap-buy { position: sticky; top: calc(var(--header-h) + 24px); }
.ap-buy h1 { font-size: clamp(32px, 3.2vw, 48px); margin: 10px 0 18px; }
.ap-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.ap-meta b { font-weight: 500; color: var(--ink); }
.ap-buy-price { margin: 26px 0 22px; padding: 20px 0; border-top: var(--border); border-bottom: var(--border); }
.ap-buy-price .ap-price { font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 1; }
.ap-buy-price .ap-price-old { font-family: var(--sans); font-size: 16px; margin-bottom: 6px; }
.ap-buy-price .ap-tax, .ap-buy-price .ap-discounts { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ap-buy-row { display: flex; gap: 10px; }
.ap-qty { display: flex; border: var(--border); flex: none; }
.ap-qty button { width: 44px; border: 0; background: transparent; font-size: 18px; color: var(--ink); }
.ap-qty button:hover { background: var(--paper-2); }
.ap-qty input { width: 56px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: transparent; text-align: center; font-family: var(--mono); font-size: 15px; }
.ap-buy-row #button-cart { flex: 1; }
.ap-options { margin-bottom: 18px; }
.ap-facts { margin: 26px 0 0; border: var(--border); background: var(--paper-2); }
.ap-facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 11px 14px; }
.ap-facts > div + div { border-top: 1px solid var(--line); }
.ap-facts dt { margin: 0; padding-top: 2px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ap-facts dd { margin: 0; font-size: 14px; }
.ap-list { list-style: none; margin: 0; padding: 0; }
.ap-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ap-list li:before { content: "◆"; color: var(--accent); font-size: 9px; line-height: 2.1; }
.ap-product-sections { margin-top: 64px; padding-top: 40px; border-top: var(--border); }
.ap-product-sections h2 { font-family: var(--display); font-weight: 400; font-size: 36px; text-transform: uppercase; margin: 0 0 18px; }
.ap-product-sections > div { max-width: 860px; }
.ap-product-sections .ap-text { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.ap-related { margin-top: 72px; }
.ap-reviews { margin-top: 64px; padding-top: 40px; border-top: var(--border); }
.ap-reviews > * { max-width: 760px; }
.ap-reviews h2 { font-family: var(--display); font-weight: 400; font-size: 36px; text-transform: uppercase; }
.ap-rating .fa-stack { width: 1em; }
.ap-rating .fa-star { color: var(--accent); }

/* ---------- cart ---------- */
.ap-cart, .ap-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.ap-cart-item:first-child { padding-top: 0; }
.ap-cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 130px 36px; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ap-cart-thumb { position: relative; display: block; width: 96px; height: 96px; border: 1px solid var(--line); background: #fff; }
.ap-cart-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.ap-cart-name { display: block; margin: 4px 0; font-size: 15px; font-weight: 500; line-height: 1.4; }
.ap-cart-note { font-size: 13px; color: var(--muted); }
.ap-cart-qty input { width: 48px; }
.ap-cart-qty button { width: 38px; }
.ap-cart-qty-static { font-family: var(--mono); }
.ap-cart-total { text-align: right; font-size: 16px; font-weight: 700; white-space: nowrap; }
.ap-cart-remove { width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; font-size: 20px; line-height: 1; color: var(--muted); }
.ap-cart-remove:hover { border-color: var(--ink); color: var(--ink); }
.ap-cart-extras { margin-top: 28px; border: var(--border); }
.ap-cart-extras > summary { padding: 14px 18px; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; list-style: none; }
.ap-cart-extras > summary::-webkit-details-marker { display: none; }
.ap-cart-extras > summary:after { content: "+"; float: right; }
.ap-cart-extras[open] > summary:after { content: "–"; }
.ap-cart-extras .panel-group { margin: 0; padding: 0 18px 18px; }
.ap-cart-extras .panel { box-shadow: none; }
.ap-cart-extras .panel-heading a { display: block; }
.ap-cart-side { position: sticky; top: calc(var(--header-h) + 64px); }
.ap-summary { padding: 22px; border: var(--border); background: var(--paper-2); }
.ap-summary-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ap-summary-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ap-summary-thumb { position: relative; width: 56px; height: 56px; border: 1px solid var(--line); background: #fff; }
.ap-summary-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ap-summary-thumb b { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11px; line-height: 20px; text-align: center; }
.ap-summary-name small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ap-summary-total { font-weight: 600; white-space: nowrap; }
.ap-totals { margin: 14px 0 18px; }
.ap-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.ap-totals dt { font-weight: 400; color: var(--ink-2); }
.ap-totals dt { flex: 1 1 auto; min-width: 0; }
.ap-totals dd { margin: 0; max-width: 45%; font-weight: 600; text-align: right; }
.ap-totals .is-grand dd { max-width: none; white-space: nowrap; }
.ap-totals .is-grand { margin-top: 8px; padding-top: 14px; border-top: var(--border); }
.ap-totals .is-grand dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ap-totals .is-grand dd { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }
.ap-summary .ap-totals:last-child { margin-bottom: 0; }
.ap-summary-toggle { display: none; }

/* ---------- checkout steps (stock accordion markup, numbered with CSS counters) ---------- */
.ap-checkout-steps #accordion { counter-reset: ap-step; margin: 0; }
.ap-checkout-steps .panel:first-child .panel-title { padding-top: 0; }
.ap-checkout-steps .panel { counter-increment: ap-step; margin: 0 !important; border: 0; border-bottom: var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.ap-checkout-steps .panel-heading { padding: 0; border: 0; background: transparent !important; }
.ap-checkout-steps .panel-title { display: flex; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--display); font-size: 24px; font-weight: 400; text-transform: uppercase; color: var(--muted); }
.ap-checkout-steps .panel-title:before { content: counter(ap-step, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 1.5px solid currentColor; font-family: var(--mono); font-size: 13px; }
.ap-checkout-steps .panel-title a { display: flex; align-items: center; justify-content: space-between; flex: 1; color: var(--ink); }
.ap-checkout-steps .panel-title a .fa { font-size: 14px; }
.ap-checkout-steps .panel-title:has(a) { color: var(--ink); }
.ap-checkout-steps .panel:has(.panel-collapse.in) .panel-title:before { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ap-checkout-steps .panel-body { padding: 4px 0 28px; border: 0 !important; }
.ap-checkout-steps .panel-body h2 { font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: uppercase; margin: 0 0 14px; }
.ap-checkout-steps .panel-body p { color: var(--ink-2); }
.ap-checkout-steps fieldset { margin-bottom: 16px; }
.ap-checkout-steps legend { font-size: 20px; margin-bottom: 16px; }
.ap-checkout-steps .form-group { margin-bottom: 14px; }
.ap-checkout-steps .buttons { margin-top: 12px; }
.ap-checkout-steps .buttons .pull-right { float: none !important; display: flex; justify-content: flex-end; align-items: center; gap: 14px; flex-wrap: wrap; }
.ap-checkout-steps .buttons input[type="checkbox"] { width: 18px; height: 18px; margin: 0 4px 0 0; vertical-align: -4px; accent-color: var(--ink); }
.ap-checkout-steps input[type="radio"], .ap-checkout-steps input[type="checkbox"] { accent-color: var(--ink); }
.ap-checkout-steps .radio label, .ap-checkout-steps .checkbox label { padding: 12px 14px 12px 36px; border: 1px solid var(--line); display: block; }
.ap-checkout-steps .radio label:has(input:checked) { border: var(--border); background: var(--paper-2); }
.ap-checkout-steps .radio input { margin-left: -24px; }
.ap-checkout-steps textarea.form-control { min-height: 90px; }
.ap-checkout-steps .table-responsive { border: 0; }
.ap-checkout-steps #collapse-checkout-confirm .table { border: var(--border); }
.ap-checkout-steps #collapse-checkout-confirm tfoot td { font-weight: 600; }
.ap-checkout-steps #collapse-checkout-confirm td.text-right { white-space: nowrap; }
.ap-checkout-steps #collapse-checkout-confirm tfoot tr:last-child td { font-size: 18px; }
.ap-checkout-steps .alert { margin-bottom: 16px; }
.ap-checkout-help { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--muted); }

.ap-captcha legend:empty { display: none; }
.ap-captcha-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.ap-captcha-row img { height: 46px; width: auto; border: var(--border); background: #fff; }
.ap-captcha-row .form-control { flex: 1 1 140px; max-width: 220px; }
.ap-captcha-row .text-danger { flex-basis: 100%; }

/* Nova Poshta branch picker (checkout shipping step) */
.ap-np { margin: -2px 0 16px; padding: 16px; border: var(--border); border-top: 0; background: var(--paper-2); }
.ap-np-field { position: relative; margin-bottom: 12px; }
.ap-np-field .form-control { background: var(--paper); }
.ap-np-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; max-height: 280px; overflow-y: auto; margin: -1.5px 0 0; padding: 0; list-style: none; border: var(--border); background: var(--paper); box-shadow: 0 14px 30px rgba(0, 0, 0, .12); }
.ap-np-list li { padding: 10px 14px; font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.ap-np-list li:hover, .ap-np-list li.is-active { background: var(--ink); color: var(--paper); }
.ap-np-list li.is-empty { color: var(--muted); cursor: default; }
.ap-np-list li.is-empty:hover { background: none; color: var(--muted); }
.ap-np-status:empty { display: none; }
.ap-np .help-block, .ap-np-note { margin: 0; }

/* Nova Poshta: recipient row (checkout) and the account wizard */
.ap-np-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ap-np-saved { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.ap-np-wizard { max-width: 720px; }
.ap-np-intro { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 18px; }
.ap-np-current { font-size: 14px; margin: 0 0 18px; }
.ap-np-form fieldset { margin: 0 0 28px; }
.ap-np-wizard .ap-np { margin: 0 0 28px; border-top: var(--border); }
.ap-np-wizard .ap-np legend { border: 0; margin-bottom: 8px; padding: 0; }
.ap-np-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .ap-np-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- message pages (success, not found, empty cart) ---------- */
.ap-message { max-width: 720px; padding: 48px 0 32px; }
.ap-message h1 { margin: 10px 0 18px; }
.ap-message .ap-text { margin-bottom: 28px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.ap-message-mark { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 22px; background: var(--accent); color: #fff; font-size: 30px; }

/* ---------- split / advantages ---------- */
.ap-split { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--border); }
.ap-split > div { padding: 64px var(--gutter); }
.ap-split > div:first-child { border-right: var(--border); }
.ap-split > div:last-child { background: var(--paper-2); }
.ap-split h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 4vw, 56px); line-height: .98; margin: 10px 0 18px; }
.ap-split p { max-width: 440px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.ap-adv { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.ap-adv > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 200px; padding: 32px 24px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); text-align: center; }
.ap-adv img { height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; mix-blend-mode: multiply; }
.ap-adv .t { max-width: 22ch; font-size: 14px; font-weight: 600; line-height: 1.5; }

/* ---------- footer ---------- */
.ap-footer { background: var(--ink); color: var(--paper); padding: 64px var(--gutter) 24px; }
.ap-footer a:hover { color: #fff; opacity: 1; }
.ap-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.ap-footer .ap-logo { display: inline-block; margin-bottom: 18px; }
.ap-footer-tagline { max-width: 300px; margin: 0 0 18px; font-size: 14px; line-height: 1.6; opacity: .7; }
.ap-footer-contacts { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.7; opacity: .8; }
.ap-footer-head { margin-bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.ap-footer-col a { display: block; margin-bottom: 8px; font-size: 13px; opacity: .85; }
.ap-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; opacity: .6; }

/* default templates rendered inside our shell */
#content { min-height: 200px; }
.ap-default { padding: 32px 0 80px; }

/* ---------- responsive ---------- */
/* Pay to account: NBU QR + bank app buttons (extension/payment/iban_qr) */
.ap-message .ap-pay { margin: 8px 0 32px; text-align: left; }
.ap-pay-page { max-width: 880px; padding: 32px 0 48px; }
.ap-pay-page h1 { margin: 0 0 24px; }
.ap-pay { border: var(--border); background: #fff; padding: 28px; }
.ap-pay h2 { margin: 8px 0 10px; font-size: 26px; }
.ap-pay-state { display: none; }
.ap-pay.is-pending .ap-pay-state--pending, .ap-pay.is-paid .ap-pay-state--paid, .ap-pay.is-closed .ap-pay-state--closed { display: block; }
.ap-pay.is-paid { border-color: #2f7d4a; box-shadow: inset 6px 0 0 #2f7d4a; }
.ap-pay-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.ap-pay-sum span { color: var(--muted); margin-right: 6px; }
.ap-pay-sum b { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: .01em; }
.ap-pay-label { margin: 0 0 12px; font-weight: 600; }
.ap-pay-banks { margin-bottom: 22px; }
.ap-pay-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ap-pay-bank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 6px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 12px/1.2 var(--sans); text-align: center; text-decoration: none; overflow-wrap: break-word; cursor: pointer; }
.ap-pay-bank[hidden] { display: none; }
.ap-pay-bank:hover, .ap-pay-bank:focus { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.ap-pay-bank-mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 15px/1 var(--display); }
.ap-pay-bank--other .ap-pay-bank-mark { background: var(--accent); }
.ap-pay-bank--more { color: var(--muted); }
.ap-pay-body { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.ap-pay-qr summary { display: none; font-weight: 600; cursor: pointer; }
/* QR stays black on white with a quiet zone: scanners read inverted codes badly. */
.ap-pay-qr-img { width: 240px; max-width: 100%; aspect-ratio: 1; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.ap-pay-qr-img svg { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.ap-pay-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.ap-pay-req { margin: 0; }
.ap-pay-req > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.ap-pay-req > div:last-child { border-bottom: 0; }
.ap-pay-req dt { margin-bottom: 2px; font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ap-pay-req dd { margin: 0; font-size: 15px; word-break: break-word; }
.ap-pay-mono { font-family: var(--mono); font-size: 14px; }
.ap-pay-copy { margin-left: 6px; padding: 2px 8px; border: 1px solid var(--line); background: transparent; font: 400 11px/1.6 var(--mono); color: var(--muted); cursor: pointer; }
.ap-pay-copy:hover { border-color: var(--ink); color: var(--ink); }
.ap-pay-copy.is-done { border-color: #2f7d4a; color: #2f7d4a; }
.ap-pay-note { margin: 20px 0 10px; padding: 12px 14px; background: var(--paper); font-size: 14px; }
.ap-pay-link { margin: 0; font-size: 13px; color: var(--muted); word-break: break-all; }
.ap-pay-link small { font-size: 12px; }
.ap-pay.is-mobile .ap-pay-body { grid-template-columns: 1fr; gap: 12px; }
.ap-pay.is-mobile .ap-pay-qr summary { display: list-item; margin-bottom: 12px; }
.ap-pay-confirm { margin-bottom: 16px; }
@media (max-width: 768px) {
	.ap-pay { padding: 20px 16px; }
	.ap-pay-body { grid-template-columns: 1fr; }
	.ap-pay-sum b { font-size: 28px; }
}
@media (max-width: 420px) { .ap-pay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 1280px) {
	.ap-phone { display: none; }
}
@media (max-width: 1100px) {
	:root { --gutter: 32px; }
	.ap-header-nav, .ap-search { display: none; }
	.ap-burger { display: inline-flex; }
	.ap-grid { grid-template-columns: repeat(3, 1fr); }
	.ap-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ap-product, .ap-product-sections { grid-template-columns: 1fr; gap: 32px; }
	.ap-buy { position: static; }
	.ap-cart, .ap-checkout { grid-template-columns: 1fr; }
	.ap-checkout .ap-cart-side { order: -1; }
	.ap-checkout .ap-summary { padding: 14px 16px; }
	.ap-checkout .ap-summary-head { margin-bottom: 4px; }
	.ap-summary-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--ink); }
	.ap-checkout .ap-summary-items, .ap-checkout .ap-summary .ap-totals { display: none; }
	.ap-checkout .ap-summary.is-open .ap-summary-items, .ap-checkout .ap-summary.is-open .ap-totals { display: block; }
	.ap-summary.is-open .ap-summary-toggle .fa { transform: rotate(180deg); }
	.ap-checkout-help { display: none; }
	.ap-cart-side { position: static; }
	.ap-footer-grid { grid-template-columns: 1fr 1fr; }
	.ap-footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
	:root { --gutter: 20px; --header-h: 56px; }
	body { font-size: 14px; }
	.ap-header-bar { gap: 12px; padding: 0 16px; }
	.ap-logo img { height: 22px; }
	.ap-account, .ap-locale-desktop { display: none; }
	#cart > .btn #cart-total { font-size: 0; }
	#cart > .btn #cart-total .fa { font-size: 16px; margin: 0; }
	#cart .dropdown-menu { position: fixed; top: var(--header-h); left: 8px; right: 8px; min-width: 0; }
	.ap-hero { grid-template-columns: 1fr; min-height: 0; }
	.ap-hero-media { order: -1; height: 52vw; min-height: 200px; border-left: 0; border-bottom: var(--border); }
	.ap-hero-text { padding: 24px 20px 32px; }
	.ap-hero-top { flex-direction: column; gap: 4px; padding-bottom: 20px; font-size: 10px; }
	.ap-hero-slogan { font-size: clamp(38px, 11.5vw, 60px); }
	.ap-hero .ap-hero-h1 { font-size: 11px; }
	.ap-hero p { font-size: 15px; }
	.ap-stats { grid-template-columns: 1fr 1fr; }
	.ap-stats > div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .18); }
	.ap-stats > div:nth-child(2n) { border-right: 0; }
	.ap-stats .num { font-size: 28px; }
	.ap-stats .lbl { text-align: left; }
	.ap-sec { padding: 48px var(--gutter); }
	.ap-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ap-cat-title { font-size: 19px; }
	.ap-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ap-card-body { padding: 12px; }
	.ap-card-name { font-size: 13px; }
	.ap-price { font-size: 15px; }
	.ap-split { grid-template-columns: 1fr; }
	.ap-split > div { padding: 40px var(--gutter); }
	.ap-split > div:first-child { border-right: 0; border-bottom: var(--border); }
	.ap-adv { grid-template-columns: 1fr 1fr; }
	.ap-adv > div { min-height: 160px; padding: 24px 14px; }
	.ap-page { padding-top: 20px; padding-bottom: 56px; }
	.ap-buy-price .ap-price { font-size: 42px; }
	.ap-facts > div { grid-template-columns: 110px 1fr; }
	.ap-footer-grid { grid-template-columns: 1fr; }
	.ap-cart-item { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "thumb info remove" "thumb qty total"; gap: 10px 14px; }
	.ap-cart-thumb { grid-area: thumb; width: 72px; height: 72px; }
	.ap-cart-info { grid-area: info; }
	.ap-cart-qty, .ap-cart-qty-static { grid-area: qty; justify-self: start; }
	.ap-cart-total { grid-area: total; }
	.ap-cart-remove { grid-area: remove; justify-self: end; }
	.ap-checkout-steps .panel-title { font-size: 19px; gap: 12px; }
	.ap-checkout-steps .panel-title:before { width: 34px; height: 34px; }
}
@media (max-width: 480px) {
	.ap-cats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.ap-marquee-track { animation: none; }
	* { transition: none !important; }
}
