/* =========================================================================
   ProMedix 3.0 — design system (tokens → base → components → pages).
   Light sky look, Manrope, deep teal-grey buttons, small yellow accents.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --brand-mono: #5E8395;
  --brand-blue: #1D9CD7;
  --brand-red: #E32124;
  --bg: #FFFFFF;
  --bg-subtle: #F5F9FB;
  --bg-accent: #EAF3F7;
  --product-bg: #E1EDF3;
  /* The shop's product photos are shot on #D0E5F8: photo tiles use the same colour so contained photos show no edges. */
  --product-photo-bg: #D0E5F8;
  --primary: #286071;
  --primary-hover: #204D5B;
  --primary-active: #183D49;
  --dark-section: #204D5B;
  --heading: #142D38;
  --text: #263F4A;
  --text-muted: #506570;
  --border: #D6E3E9;
  --control-border: #748B96;
  --accent-yellow: #F4D85E;
  --success: #237553;
  --error: #B42332;
  --error-bg: #FFF1F2;
  --disabled-bg: #E3E9ED;
  --disabled-text: #627580;

  --font: Manrope, system-ui, sans-serif;
  --r-sm: 8px;
  --r-photo: 12px;
  --r-lg: 16px;
  --shadow: 0 8px 24px rgba(20, 45, 56, .06);
  --container: 1280px;
  --gutter: 32px;
  --section: 80px;
  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 180ms;

  /* Older names still used by a few rules/patterns */
  --pmx-ink: var(--heading);
  --pmx-body: var(--text);
  --pmx-muted: var(--text-muted);
  --pmx-primary: var(--primary);
  --pmx-primary-dark: var(--primary-hover);
  --pmx-steel: var(--brand-mono);
  --pmx-line: var(--border);
  --pmx-line-strong: var(--control-border);
  --pmx-sky: var(--product-photo-bg);
  --pmx-ice: var(--bg-subtle);
  --pmx-yellow: var(--accent-yellow);
  --pmx-head: var(--font);
  --pmx-r: var(--r-sm);
  --pmx-r-lg: var(--r-lg);
}
@media (max-width: 781px) { :root { --gutter: 16px; --section: 56px; --header-h: 64px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.pmx-lock { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.625; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4, .wp-block-heading { font-family: var(--font); color: var(--heading); margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3rem); line-height: 1.167; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; }
h3, .pmx-h3 { font-size: 1.5rem; line-height: 1.333; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
small, .pmx-caption { font-size: .875rem; line-height: 1.43; }
.pmx-muted { color: var(--text-muted); }
.pmx-lead { font-size: 1.25rem; line-height: 1.5; color: var(--text); }
.pmx-center { text-align: center; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.pmx-visually-hidden { position: absolute !important; width: 1px !important; min-width: 0 !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.pmx-skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--heading); color: #fff; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.pmx-skip:focus { top: 12px; color: #fff; }
.wp-site-blocks > * + *, .pmx-main > * + * { margin-block-start: 0; }
.wpml-ls-statics-footer { display: none !important; }
.pmx-hl { white-space: nowrap; padding-bottom: .06em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10C50 4 120 2 197 5' stroke='%23F4D85E' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .24em no-repeat; }
.pmx-ico { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- 3. Layout ---------- */
.pmx-container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-left: auto !important; margin-right: auto !important; padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
.pmx-container .pmx-container { padding-left: 0 !important; padding-right: 0 !important; max-width: none; }
.pmx-main { padding-bottom: var(--section); }
.pmx-home { padding-bottom: 0; }
.pmx-block { margin-top: var(--section); }
.pmx-block > h2 { margin-bottom: 24px; }
.pmx-prose { max-width: 860px; }
.pmx-prose > *:first-child { margin-top: 0; }
.pmx-prose h2 { margin-top: 1.5em; }
.pmx-prose ul, .pmx-prose ol { padding-left: 1.25em; }
.pmx-page > .pmx-prose { margin-top: 48px; }
.pmx-main .is-layout-constrained > :where(:not(.alignfull)) { max-width: var(--container); }

/* ---------- 4. Buttons ---------- */
.wp-block-button__link, .pmx-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px !important;
  border-radius: var(--r-sm) !important; border: 1.5px solid var(--primary) !important; background: var(--primary) !important; color: #fff !important;
  font-family: var(--font) !important; font-size: 1rem !important; line-height: 1.5 !important; font-weight: 700 !important; text-decoration: none !important; cursor: pointer;
  transition: background-color var(--t) ease, border-color var(--t) ease, color var(--t) ease;
}
.wp-block-button__link:hover, .pmx-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover { background: var(--primary-hover) !important; border-color: var(--primary-hover) !important; color: #fff !important; }
.wp-block-button__link:active, .pmx-btn:active, .woocommerce a.button:active, .woocommerce button.button:active { background: var(--primary-active) !important; border-color: var(--primary-active) !important; }
.wp-block-button.is-style-outline > .wp-block-button__link, .pmx-btn--secondary { background: transparent !important; color: var(--primary) !important; border-color: var(--primary) !important; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover, .pmx-btn--secondary:hover { background: var(--bg-accent) !important; color: var(--primary-hover) !important; }
.pmx-btn--light { background: #fff !important; color: var(--primary) !important; border-color: #fff !important; }
.pmx-btn--light:hover { background: var(--bg-accent) !important; color: var(--primary-hover) !important; border-color: var(--bg-accent) !important; }
.pmx-btn:disabled, .pmx-btn[aria-disabled="true"], .woocommerce button.button:disabled, .woocommerce button.button.disabled, .woocommerce a.button.disabled, .woocommerce button.button:disabled[disabled], .woocommerce button.button.alt.disabled {
  background: var(--disabled-bg) !important; border-color: var(--disabled-bg) !important; color: var(--disabled-text) !important; cursor: not-allowed; opacity: 1 !important;
}
.pmx-btn.is-loading { position: relative; color: transparent !important; }
.pmx-btn.is-loading .pmx-ico { visibility: hidden; }
.pmx-btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2.5px solid var(--disabled-text); border-right-color: transparent; border-radius: 50%; animation: pmx-spin .7s linear infinite; }
@keyframes pmx-spin { to { transform: rotate(360deg); } }
.pmx-arrow > .wp-block-button__link::after { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform var(--t) ease; }
.pmx-arrow > .wp-block-button__link:hover::after { transform: translateX(3px); }
.pmx-btn .pmx-ico { transition: transform var(--t) ease; }
.pmx-btn:hover .pmx-ico:last-child { transform: translateX(3px); }
.pmx-teamband :focus-visible { outline-color: #fff; }

/* ---------- 5. Forms ---------- */
.pmx-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.pmx-form--contact .pmx-form__grid { grid-template-columns: 1fr; }
.pmx-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.pmx-field--wide { grid-column: 1 / -1; }
.pmx-field label, .woocommerce form .form-row label, .pmx-label { font-size: .875rem; line-height: 1.43; font-weight: 700; color: var(--heading); margin: 0; }
.pmx-label span { font-weight: 500; color: var(--text); }
.pmx-req, .woocommerce form .form-row .required { color: var(--error); text-decoration: none; }
.pmx-field input, .pmx-field select, .pmx-field textarea, .pmx-picker select,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce form .form-row .select2-selection, .woocommerce .woocommerce-cart-form .coupon input.input-text {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--control-border) !important; border-radius: var(--r-sm) !important; background-color: #fff; color: var(--heading); font: inherit; font-size: 1rem; line-height: 1.5;
  transition: border-color var(--t) ease;
}
.woocommerce form .form-row .select2-selection { display: flex; align-items: center; height: auto !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.5 !important; padding: 0 !important; color: var(--heading) !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 12px !important; right: 10px !important; }
.pmx-field textarea, .woocommerce form .form-row textarea { min-height: 120px; resize: vertical; }
.pmx-field select, .pmx-picker select, .woocommerce form .form-row select { -webkit-appearance: none; appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23142D38' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") right 16px center no-repeat; cursor: pointer; }
.pmx-field input:hover, .pmx-field select:hover, .pmx-field textarea:hover, .woocommerce form .form-row input.input-text:hover { border-color: var(--heading) !important; }
.pmx-field.has-error input, .pmx-field.has-error select, .pmx-field.has-error textarea, .woocommerce form .form-row.woocommerce-invalid input.input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--error) !important; background-color: var(--error-bg); }
.pmx-field__err, .woocommerce form .form-row .checkout-inline-error-message { display: flex; gap: 6px; margin: 0; font-size: .875rem; line-height: 1.43; color: var(--error); font-weight: 600; }
.pmx-field__err::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: #fff; font-size: 12px; line-height: 18px; text-align: center; margin-top: 1px; }
.pmx-field__err[hidden] { display: none; }
.pmx-field--check { margin-top: 16px; }
.pmx-check-label { display: flex !important; align-items: flex-start; gap: 12px; font-weight: 500 !important; color: var(--text) !important; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 20px; height: 20px; flex: none; margin: 2px 0 0; }
.pmx-hp { position: absolute !important; left: -9999px; }
.pmx-form__submit { margin-top: 24px; }
.pmx-notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r-sm); margin: 0 0 24px; font-weight: 600; }
.pmx-notice--success { background: #E9F5EF; color: var(--success); }
.pmx-notice--error { background: var(--error-bg); color: var(--error); }
.pmx-notice[hidden] { display: none; }
.pmx-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; color: var(--heading); cursor: pointer; min-height: 44px; position: relative; }
.pmx-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pmx-switch__ui { position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--disabled-bg); border: 1.5px solid var(--control-border); transition: background-color var(--t) ease; flex: none; }
.pmx-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20,45,56,.25); transition: transform var(--t) var(--ease); }
.pmx-switch input:checked + .pmx-switch__ui { background: var(--primary); border-color: var(--primary); }
.pmx-switch input:checked + .pmx-switch__ui::after { transform: translateX(20px); }
.pmx-switch input:focus-visible + .pmx-switch__ui { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (max-width: 600px) { .pmx-form__grid { grid-template-columns: 1fr; } }

/* ---------- 6. Header ---------- */
.pmx-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.admin-bar .pmx-header { top: 32px; }
.pmx-header__row { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.pmx-logo-link { display: inline-flex; flex: none; padding: 16px 0; }
.pmx-logo { display: block; max-width: none; }
.pmx-header .pmx-menu { flex: 1; display: flex; justify-content: center; }
.pmx-menu--primary ul { display: flex; gap: 4px 40px; list-style: none; margin: 0; padding: 0; }
.pmx-menu--primary li { position: relative; }
.pmx-menu--primary a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--heading); text-decoration: none; font-size: .9375rem; line-height: 1.467; font-weight: 600; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow var(--t) ease, color var(--t) ease; }
.pmx-menu--primary a:hover { color: var(--primary); }
.pmx-menu--primary .current-menu-item > a, .pmx-menu--primary .current-menu-ancestor > a { box-shadow: inset 0 -2px 0 var(--accent-yellow); }
.pmx-menu--primary .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -4px 0 0 4px; }
.pmx-menu--primary .sub-menu { display: none; position: absolute; top: 100%; left: -18px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 8px 18px; flex-direction: column; gap: 0; min-width: 230px; box-shadow: var(--shadow); }
.pmx-menu--primary li:hover > .sub-menu, .pmx-menu--primary li:focus-within > .sub-menu { display: flex; }
.pmx-header__row > *, .pmx-header__actions > * { margin-block: 0 !important; }
.pmx-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pmx-icon-btn, .pmx-cart { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--heading); background: transparent; border: 0; border-radius: 50%; cursor: pointer; text-decoration: none; transition: background-color var(--t) ease; }
.pmx-icon-btn:hover, .pmx-cart:hover { background: var(--bg-accent); color: var(--heading); }
.pmx-cart__count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.pmx-lang { display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--text-muted); margin-right: 8px; }
.pmx-lang a { color: var(--text-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 2px; }
.pmx-lang a:hover { color: var(--primary); }
.pmx-lang .is-active { color: var(--heading); }
.pmx-search-panel { display: none; padding: 12px 0 20px; }
.pmx-search-panel.is-open { display: block; }
.pmx-search .wp-block-search__inside-wrapper { border: 1.5px solid var(--control-border) !important; border-radius: var(--r-sm); background: #fff; padding: 4px; max-width: 720px; margin: 0 auto; }
.pmx-search .wp-block-search__input { border: 0; font: inherit; min-height: 44px; padding: 0 12px; }
.pmx-search .wp-block-search__button { background: var(--primary); color: #fff; border-radius: 6px; margin: 0; padding: 0 20px; font-weight: 700; min-height: 44px; border: 0; }
.pmx-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 14px 11px; flex-direction: column; justify-content: space-between; border-radius: 50%; }
.pmx-burger span { display: block; height: 2px; border-radius: 2px; background: var(--heading); }
@media (max-width: 1024px) {
  .pmx-burger { display: inline-flex; }
  .pmx-header .pmx-lang, .pmx-header .pmx-account { display: none; }
  .pmx-header__row { gap: 12px; }
  .pmx-header .pmx-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 24px; z-index: 60; box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .pmx-header .pmx-menu.is-open { display: block; }
  .pmx-menu--primary ul { flex-direction: column; gap: 0; }
  .pmx-menu--primary a { width: 100%; min-height: 52px; border-bottom: 1px solid var(--border); font-size: 1rem; box-shadow: none !important; }
  .pmx-menu--primary .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
}
@media (max-width: 781px) { .pmx-header .pmx-logo { width: 120px !important; } .pmx-logo-link { padding: 10px 0; } }

/* ---------- 7. Page hero band + breadcrumbs ---------- */
.pmx-page-hero { position: relative; overflow: hidden; background: linear-gradient(90deg, #F7FBFD 0%, #EEF5F9 50%, #E2EEF5 100%); }
.pmx-page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("../img/wave-page.svg") right center / cover no-repeat; }
.pmx-page-hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 220px; padding-top: 32px !important; padding-bottom: 40px !important; }
.pmx-page-hero--compact .pmx-page-hero__in { min-height: 160px; }
.pmx-page-hero__title { margin: 0; max-width: 16em; }
.pmx-page-hero__lead { margin: 16px 0 0; font-size: 1.25rem; line-height: 1.5; color: var(--text); max-width: 34em; }
.pmx-page-hero__img { margin: -32px 0 -40px; width: min(36vw, 400px); align-self: stretch; display: flex; align-items: center; }
.pmx-page-hero__img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; -webkit-mask-image: radial-gradient(closest-side, #000 66%, transparent 100%); mask-image: radial-gradient(closest-side, #000 66%, transparent 100%); }
.pmx-crumbs, .woocommerce .woocommerce-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 16px; font-size: .875rem; line-height: 1.43; color: var(--text-muted); }
.pmx-crumbs a, .woocommerce .woocommerce-breadcrumb a { color: var(--text); text-decoration: none; }
.pmx-crumbs a:hover, .woocommerce .woocommerce-breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.pmx-crumbs [aria-current] { color: var(--heading); font-weight: 600; }
@media (max-width: 781px) {
  .pmx-page-hero__in { grid-template-columns: 1fr; min-height: 0; padding-top: 20px !important; padding-bottom: 28px !important; }
  .pmx-page-hero__img { display: none; }
  .pmx-page-hero__lead { font-size: 1.0625rem; }
}

/* ---------- 8. Home: hero slider ---------- */
/* ---------- Home: hero slider ---------- */
.pmx-hero {
  position: relative; overflow: hidden; padding-top: 0 !important; padding-bottom: 0 !important;
  background:
    url("../img/wave-hero.svg") right center / cover no-repeat,
    linear-gradient(90deg, #F7FBFD 0%, #EEF5FA 40%, #E2EEF5 100%);
}
.pmx-slider__track { display: grid; max-width: calc(var(--container) + var(--gutter) * 2); padding: 0 var(--gutter) !important; margin: 0 auto !important; position: relative; z-index: 1; }
.pmx-slide { grid-area: 1 / 1; margin: 0 !important; opacity: 1; }
.pmx-slider:not(.is-ready) .pmx-slide:not(:first-child) { display: none; }
.pmx-slider.is-ready .pmx-slide { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.pmx-slider.is-ready .pmx-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
.pmx-slide__cols { gap: 24px !important; min-height: clamp(460px, 40vw, 560px); margin: 0 !important; }
.pmx-slide__text { padding: 56px 0; position: relative; z-index: 2; }
.pmx-slide__tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 20px; background: rgba(255,255,255,.75); font-family: var(--pmx-head); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.pmx-slide__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pmx-yellow); }
.pmx-slide__title { font-weight: 800 !important; font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4rem) !important; line-height: 1.0625 !important; letter-spacing: -0.03em; margin: 0 0 20px; max-width: 8em; }
.pmx-slide__lead { font-size: 1.25rem; color: var(--text); max-width: 26em; margin: 0 0 32px; line-height: 1.5; }
.pmx-slide__btns { gap: 14px; }
.pmx-slide__media { align-self: stretch !important; position: relative; display: flex; align-items: center; justify-content: center; padding: 24px 0; min-height: 420px; }
.pmx-slide__num { position: absolute; right: -2%; top: 50%; margin: 0; transform: translateY(-50%); font-family: var(--pmx-head); font-weight: 800; font-size: clamp(150px, 17vw, 260px); line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px rgba(44, 90, 106, .16); pointer-events: none; user-select: none; z-index: 0; }
.pmx-slide__img { position: relative; z-index: 1; margin: 0 !important; width: 100%; max-width: 600px; }
.pmx-slide__img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); }
.pmx-slide__caption { position: absolute; right: 4%; bottom: 34px; margin: 0; z-index: 2; display: flex; align-items: center; gap: 14px; font-family: var(--pmx-head); font-style: italic; font-weight: 500; font-size: 16px; color: var(--pmx-ink); }
.pmx-slide__caption::before { content: ""; width: 56px; height: 1px; background: var(--pmx-ink); }
/* Prints: second pair tucked behind */
.pmx-slide--prints .pmx-slide__img--1 { max-width: 540px; margin-right: 12% !important; }
.pmx-slide--prints .pmx-slide__img--2 { position: absolute; width: 46%; right: 0; bottom: 12%; z-index: 0; transform: rotate(-8deg); }
/* Team: three pairs in a fan */
.pmx-slide--team .pmx-slide__img { position: absolute; width: 50%; top: 50%; left: 50%; }
.pmx-slide--team .pmx-slide__img--1 { transform: translate(-98%, -54%) rotate(-10deg); z-index: 0; }
.pmx-slide--team .pmx-slide__img--2 { transform: translate(-4%, -62%) rotate(9deg); z-index: 0; }
.pmx-slide--team .pmx-slide__img--3 { width: 60%; transform: translate(-50%, -42%); z-index: 1; }

/* Entrance animation of the active slide */
.pmx-slider.is-ready .pmx-slide__text > *, .pmx-slider.is-ready .pmx-slide__num, .pmx-slider.is-ready .pmx-slide__media > .pmx-slide__img, .pmx-slider.is-ready .pmx-slide__caption { opacity: 0; transition: opacity .7s ease, translate .8s cubic-bezier(.2,.7,.2,1); translate: 0 22px; }
.pmx-slider.is-ready .pmx-slide__media > .pmx-slide__img { translate: 50px 0; }
.pmx-slider.is-ready .pmx-slide__num { translate: 80px 0; }
.pmx-slider.is-ready .is-active .pmx-slide__text > *, .pmx-slider.is-ready .is-active .pmx-slide__num, .pmx-slider.is-ready .is-active .pmx-slide__media > .pmx-slide__img, .pmx-slider.is-ready .is-active .pmx-slide__caption { opacity: 1; translate: 0 0; }
.pmx-slider .is-active .pmx-slide__text > :nth-child(2) { transition-delay: .08s; }
.pmx-slider .is-active .pmx-slide__text > :nth-child(3) { transition-delay: .16s; }
.pmx-slider .is-active .pmx-slide__text > :nth-child(4) { transition-delay: .24s; }
.pmx-slider .is-active .pmx-slide__img--2 { transition-delay: .12s; }
.pmx-slider .is-active .pmx-slide__img--3 { transition-delay: .22s; }
.pmx-slider .is-active .pmx-slide__caption { transition-delay: .35s; }
.pmx-slide.is-active .pmx-slide__img--1 img, .pmx-slider:not(.is-ready) .pmx-slide__img--1 img { animation: pmx-float 6s ease-in-out infinite alternate; }
@keyframes pmx-float { from { transform: translateY(0) rotate(0); } to { transform: translateY(-12px) rotate(-1deg); } }

/* Navigation (built by theme.js) */
.pmx-slider__nav { position: relative; z-index: 3; max-width: calc(var(--container) + var(--gutter) * 2); padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; margin: 0 auto !important; display: flex; align-items: center; gap: 24px; padding-top: 0; padding-bottom: 22px; }
.pmx-slider__tabs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
.pmx-slider__tab { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 14px 0 0; border: 0; background: none; text-align: left; font-family: var(--pmx-head); font-size: .875rem; font-weight: 600; color: var(--text-muted); cursor: pointer; min-height: 44px; }
.pmx-slider__tab b { font-weight: 800; font-size: 12px; color: var(--pmx-steel); }
.pmx-slider__tab::before, .pmx-slider__tab::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; border-radius: 2px; }
.pmx-slider__tab::before { right: 0; background: rgba(44, 90, 106, .15); }
.pmx-slider__tab::after { width: 0; background: var(--pmx-primary); }
.pmx-slider__tab:hover { color: var(--pmx-ink); }
.pmx-slider__tab[aria-selected="true"] { color: var(--pmx-ink); }
.pmx-slider__tab[aria-selected="true"]::after { width: 100%; }
.pmx-slider.is-playing .pmx-slider__tab[aria-selected="true"]::after { animation: pmx-progress var(--pmx-delay, 7s) linear forwards; }
@keyframes pmx-progress { from { width: 0; } to { width: 100%; } }
.pmx-slider__arrows { display: flex; gap: 8px; }
.pmx-slider__arrow { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--primary); color: var(--primary) !important; background: rgba(255,255,255,.6); color: var(--pmx-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.pmx-slider__arrow:hover { background: var(--primary); color: #fff !important; }

@media (max-width: 781px) {
  .pmx-hero { background: linear-gradient(180deg, #F6FAFD 0%, #E6F0F9 40%, var(--pmx-sky) 75%); }
  .pmx-slide__cols { display: flex !important; flex-direction: column; gap: 0 !important; min-height: 0; padding-bottom: 8px; }
  .pmx-slide__text { display: contents; }
  .pmx-slide__tag { order: 1; align-self: flex-start; margin: 28px 0 12px; font-size: 11px; }
  .pmx-slide__title { order: 2; font-size: 36px !important; margin: 0 0 12px; }
  .pmx-slide__lead { order: 3; font-size: 15px; margin: 0; }
  .pmx-slide__media { order: 4; min-height: 270px; padding: 0; margin: 0 -24px; }
  .pmx-slide__img { max-width: 300px; }
  .pmx-slide__num { font-size: 130px; right: 2%; }
  .pmx-slide__caption { display: none; }
  .pmx-slide--prints .pmx-slide__img--1 { max-width: 260px; margin-right: 18% !important; }
  .pmx-slide--team .pmx-slide__img { width: 46%; }
  .pmx-slide--team .pmx-slide__img--3 { width: 56%; }
  .pmx-slide__btns { order: 5; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .pmx-slide__btns .wp-block-button, .pmx-slide__btns .wp-block-button__link { width: 100%; }
  .pmx-slider__nav { padding: 6px 0 22px; justify-content: center; }
  .pmx-slider__tabs { flex: none; display: flex; gap: 8px; }
  .pmx-slider__tab { width: 28px; padding: 10px 0; font-size: 0; }
  .pmx-slider__tab b { display: none; }
  .pmx-slider__tab::before, .pmx-slider__tab::after { top: 50%; margin-top: -1.5px; }
  .pmx-slider__arrows { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pmx-slide__img img { animation: none !important; }
  .pmx-slider.is-ready .pmx-slide * { translate: none !important; }
}


/* ---------- 8b. Home sections ---------- */
.pmx-prof { background: #fff; border-bottom: 1px solid var(--border); }
.pmx-prof__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: var(--container); margin: 0 auto; }
.pmx-prof__link { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 76px; padding: 0 12px; font-weight: 700; font-size: 1.125rem; color: var(--heading); text-decoration: none; text-align: center; transition: color var(--t) ease; }
.pmx-prof__link + .pmx-prof__link::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px; background: var(--border); }
.pmx-prof__link svg { flex: none; transition: transform var(--t) ease; }
.pmx-prof__link:hover { color: var(--primary); }
.pmx-prof__link:hover svg { transform: translate(2px, -2px); }
@media (max-width: 781px) {
  .pmx-prof__row { display: flex; overflow-x: auto; gap: 8px; padding: 12px 0; scrollbar-width: none; }
  .pmx-prof__row::-webkit-scrollbar { display: none; }
  .pmx-prof__link { flex: none; min-height: 44px; padding: 0 16px; font-size: .9375rem; border: 1.5px solid var(--border); border-radius: 22px; }
  .pmx-prof__link + .pmx-prof__link::before { display: none; }
}
.pmx-section { padding-top: var(--section); }
.pmx-section > *, .pmx-char > *, .pmx-picker-wrap > * { max-width: var(--container); margin-left: auto !important; margin-right: auto !important; }
.pmx-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 24px; }
.pmx-section__head h2 { margin: 0; }
.pmx-more { margin: 0; font-weight: 700; }
.pmx-more a { color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.pmx-more a::after { content: "→"; transition: transform var(--t) ease; }
.pmx-more a:hover::after { transform: translateX(3px); }
.pmx-products .woocommerce { margin: 0; }

.pmx-char { padding-top: var(--section); }
.pmx-char__box { display: grid; grid-template-columns: minmax(260px, .9fr) 2fr; min-height: 320px; background: linear-gradient(100deg, var(--bg-accent) 0%, var(--product-photo-bg) 100%); border-radius: var(--r-lg); overflow: hidden; }
.pmx-char__text { padding: 40px 0 40px 48px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.pmx-char__text h2 { font-weight: 800; letter-spacing: -0.03em; margin: 0 0 24px; max-width: 8em; }
.pmx-char__tiles { display: flex; gap: 10px; margin: 0 -40px 0 0; padding-left: 10px; }
.pmx-char__tile { flex: 1; margin: 0 !important; overflow: hidden; transform: skewX(-9deg); transform-origin: bottom; background: var(--product-photo-bg); }
.pmx-char__tile:first-child { flex: 1.5; }
.pmx-char__tile img { display: block; width: 100%; height: 100%; object-fit: cover; transform: skewX(9deg) scale(1.28); transition: transform .5s var(--ease); }
.pmx-char__tile:hover img { transform: skewX(9deg) scale(1.36); }
@media (max-width: 781px) {
  .pmx-char__box { grid-template-columns: 1fr; }
  .pmx-char__text { padding: 28px 24px 20px; }
  .pmx-char__tiles { margin: 0; padding: 0 0 0 24px; height: 180px; overflow: hidden; }
  .pmx-char__tile { flex: none; width: 46%; }
  .pmx-char__tile:first-child { flex: none; width: 58%; }
}

.pmx-picker-wrap { padding-top: 24px; padding-bottom: var(--section); }
.pmx-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px 32px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--r-lg); }
.pmx-picker__title { flex: 1 1 260px; margin: 0; font-size: clamp(1.5rem, 1.1rem + 1vw, 1.875rem); font-weight: 800; letter-spacing: -0.02em; }
.pmx-picker__field { flex: 0 1 240px; }
.pmx-picker .pmx-btn { flex: 0 0 auto; }
.pmx-picker .pmx-arrow-btn::after { content: "→"; }
@media (max-width: 781px) { .pmx-picker { padding: 20px; } .pmx-picker__field, .pmx-picker .pmx-btn { flex: 1 1 100%; } }

.pmx-seo { max-width: var(--container); margin: 0 auto var(--section) !important; padding: 0 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.pmx-seo summary { min-height: 60px; display: flex; align-items: center; font-weight: 700; color: var(--heading); cursor: pointer; }
.pmx-seo p { color: var(--text); }
.pmx-woo .pmx-seo { margin-top: 40px !important; margin-bottom: 0 !important; }

/* ---------- 9. Product card ---------- */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; margin: 0 !important; padding: 0; list-style: none; }
.woocommerce ul.products.columns-3, .pmx-catalog ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { position: relative; width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; display: flex; flex-direction: column; text-align: left; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; color: var(--heading); text-decoration: none; border-radius: var(--r-photo); }
.woocommerce ul.products li.product a img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; padding: 0; margin: 0 0 14px !important; background: var(--product-photo-bg); border-radius: var(--r-photo); transition: transform var(--t) ease, box-shadow var(--t) ease; }
.woocommerce ul.products li.product a:hover img { box-shadow: var(--shadow); transform: translateY(-2px); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font); font-weight: 600; font-size: .9375rem !important; line-height: 1.47; padding: 0 !important; margin: 0 0 2px; color: var(--heading); }
.woocommerce ul.products li.product .price { display: block; font-weight: 700; font-size: 1.375rem !important; line-height: 1.27; color: var(--heading) !important; margin: 0 !important; }
.woocommerce ul.products li.product:has(.pmx-swatches) .price { padding-right: 96px; }
.woocommerce ul.products li.product .price del { color: var(--text-muted); font-size: 1rem; font-weight: 500; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce span.onsale, .woocommerce ul.products li.product .onsale { background: var(--accent-yellow); color: var(--heading); border-radius: 6px; min-height: 0; min-width: 0; line-height: 1.4; padding: 4px 10px; font-size: .8125rem; font-weight: 700; top: 12px; left: 12px; right: auto; margin: 0; }
.woocommerce ul.products li.product.outofstock img { opacity: .6; }
.pmx-swatches { position: absolute; right: 0; bottom: 4px; display: flex; align-items: center; gap: 2px; z-index: 2; }
.pmx-swatches { gap: 8px; bottom: 6px; }
.pmx-swatch { width: 24px; height: 24px; display: block; border-radius: 50%; background: var(--product-photo-bg) center / 260% no-repeat; border: 1px solid var(--control-border); box-shadow: 0 0 0 2px #fff; transition: box-shadow var(--t) ease; }
.pmx-swatch.is-current, .pmx-swatch:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--heading); }
.pmx-swatch-more { font-size: .8125rem; font-weight: 700; color: var(--text-muted); margin-left: 2px; }
.pmx-fav { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: rgba(255,255,255,.85); color: var(--heading); cursor: pointer; border-radius: 50%; z-index: 2; transition: background-color var(--t) ease, color var(--t) ease; }
.pmx-fav:hover { background: #fff; color: var(--primary); }
.pmx-fav[aria-pressed="true"] { color: var(--brand-red); }
.pmx-fav[aria-pressed="true"] svg { fill: currentColor; }
@media (max-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 781px) {
  .woocommerce ul.products, .woocommerce ul.products.columns-3, .pmx-catalog ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .875rem !important; }
  .woocommerce ul.products li.product .price { font-size: 1.125rem !important; }
  .woocommerce ul.products li.product:has(.pmx-swatches) .price { padding-right: 0; }
  .pmx-swatches { position: static; margin-top: 6px; margin-left: -5px; }
  .pmx-fav { width: 40px; height: 40px; top: 6px; right: 6px; }
}

/* ---------- 10. Catalog ---------- */
.pmx-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; min-height: 72px; border-bottom: 1px solid var(--border); }
.pmx-quick__label { color: var(--text-muted); font-weight: 600; }
.pmx-quick a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 1.0625rem; color: var(--heading); text-decoration: none; }
.pmx-quick a:hover { color: var(--primary); }
.pmx-catalog { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 32px; }
.pmx-catalog__main { min-width: 0; }
.pmx-filters__open { display: none !important; }
.pmx-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--primary); color: #fff; font-size: .75rem; }
.pmx-btn--secondary .pmx-badge { background: var(--primary); color: #fff; }
.pmx-filters { position: sticky; top: calc(var(--header-h) + 16px); }
.admin-bar .pmx-filters { top: calc(var(--header-h) + 48px); }
.pmx-filters__form { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 8px 20px 20px; box-shadow: var(--shadow); }
.pmx-filters__head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--border); }
.pmx-filters__title { margin: 0; font-size: 1.25rem; font-weight: 800; }
.pmx-filters__close { display: none; }
.pmx-fgroup { border-bottom: 1px solid var(--border); padding: 4px 0 16px; }
.pmx-fgroup fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pmx-fgroup summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 48px; font-weight: 700; color: var(--heading); cursor: pointer; }
.pmx-fgroup summary::-webkit-details-marker { display: none; }
.pmx-fgroup summary::after { content: ""; width: 8px; height: 8px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(-135deg); margin: 4px 6px 0 0; transition: transform var(--t) ease; }
.pmx-fgroup:not([open]) summary::after { transform: rotate(45deg); margin-top: -4px; }
.pmx-fgroup__sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pmx-chip-opt { position: relative; }
.pmx-chip-opt input, .pmx-swatch-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pmx-chip-opt span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: #fff; font-size: .875rem; font-weight: 600; color: var(--heading); cursor: pointer; transition: border-color var(--t) ease, background-color var(--t) ease; white-space: nowrap; }
.pmx-chip-opt span:hover { border-color: var(--primary); }
.pmx-chip-opt input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pmx-chip-opt input:focus-visible + span, .pmx-swatch-opt input:focus-visible + .pmx-swatch-opt__dot { outline: 3px solid var(--primary); outline-offset: 3px; }
.pmx-fgroup__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.pmx-swatch-opt { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.pmx-swatch-opt__dot { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--control-border); box-shadow: 0 0 0 3px #fff; transition: box-shadow var(--t) ease; }
.pmx-swatch-opt:hover .pmx-swatch-opt__dot { box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--border); }
.pmx-swatch-opt input:checked + .pmx-swatch-opt__dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary); }
.pmx-swatch-opt__name { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pmx-fgroup__checks { display: flex; flex-direction: column; }
.pmx-check-opt { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: .9375rem; color: var(--text); cursor: pointer; }
.pmx-check-opt input { margin: 0; }
.pmx-price__range { position: relative; height: 32px; --a: 0%; --b: 100%; }
.pmx-price__range::before, .pmx-price__range::after { content: ""; position: absolute; top: 14px; height: 4px; border-radius: 2px; }
.pmx-price__range::before { left: 0; right: 0; background: var(--border); }
.pmx-price__range::after { left: var(--a); right: calc(100% - var(--b)); background: var(--primary); }
.pmx-price { --a: 0%; --b: 100%; }
.pmx-price .pmx-price__range::after { left: var(--a); right: calc(100% - var(--b)); }
.pmx-price__range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 1; }
.pmx-price__range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: grab; }
.pmx-price__range input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: grab; }
.pmx-price__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pmx-price__inputs label { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--control-border); border-radius: var(--r-sm); font-size: .8125rem; color: var(--text-muted); }
.pmx-price__inputs label:focus-within { outline: 3px solid var(--primary); outline-offset: 3px; }
.pmx-price__inputs input { width: 100%; min-width: 0; border: 0; padding: 0; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--heading); background: none; -moz-appearance: textfield; }
.pmx-price__inputs input:focus { outline: none; }
.pmx-fgroup--switch { padding: 8px 0; }
.pmx-filters__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.pmx-filters__actions .pmx-btn { width: 100%; }
.pmx-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 16px; }
.pmx-active ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pmx-active__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--bg-accent); color: var(--heading); font-size: .875rem; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; }
.pmx-active__chip:hover { border-color: var(--primary); color: var(--heading); }
.pmx-active__reset { font-size: .875rem; font-weight: 700; color: var(--primary); min-height: 40px; display: inline-flex; align-items: center; }
.pmx-catalog__main .woocommerce-notices-wrapper:empty { display: none; }
.pmx-catalog__main .pmx-count { float: left; margin: 0 0 24px; line-height: 52px; font-size: .9375rem; color: var(--text-muted); }
.pmx-catalog__main .woocommerce-ordering { float: right; margin: 0 0 24px; display: flex; align-items: center; gap: 10px; }
.pmx-catalog__main .woocommerce-ordering::before { content: "Сортувати:"; font-size: .875rem; color: var(--text-muted); }
.pmx-catalog__main .woocommerce-ordering select { min-height: 52px; padding: 0 44px 0 16px; border: 1.5px solid var(--control-border); border-radius: var(--r-sm); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23142D38' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") right 16px center no-repeat; -webkit-appearance: none; appearance: none; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--heading); cursor: pointer; }
.pmx-catalog__main ul.products { clear: both; }
.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-noreviews { border: 0 !important; border-radius: var(--r-sm); background: var(--bg-accent) !important; color: var(--heading) !important; padding: 16px 20px 16px 52px !important; font-weight: 500; }
.woocommerce-error { background: var(--error-bg) !important; color: var(--error) !important; }
.woocommerce-info::before, .woocommerce-message::before { color: var(--primary) !important; top: 16px !important; left: 20px !important; }
.woocommerce-error::before { color: var(--error) !important; top: 16px !important; left: 20px !important; }
.woocommerce nav.woocommerce-pagination { margin-top: 48px; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: flex !important; gap: 8px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1.5px solid var(--border); color: var(--heading); font-weight: 700; padding: 0 8px !important; }
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--primary); background: #fff; color: var(--primary); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (max-width: 1024px) {
  .pmx-catalog { grid-template-columns: 1fr; margin-top: 20px; }
  .pmx-filters__open { display: inline-flex !important; margin-bottom: 16px; }
  .pmx-filters { position: fixed; inset: 0; top: 0 !important; z-index: 200; background: rgba(20, 45, 56, .4); display: none; }
  .pmx-filters.is-open { display: block; }
  .pmx-filters__form { position: absolute; top: 0; bottom: 0; left: 0; width: min(380px, 92vw); overflow-y: auto; border-radius: 0 var(--r-lg) var(--r-lg) 0; padding-bottom: 0; }
  .pmx-filters__close { display: inline-flex; }
  .pmx-filters__actions { position: sticky; bottom: 0; background: #fff; padding: 12px 0 16px; margin-top: 8px; border-top: 1px solid var(--border); }
  .pmx-quick { gap: 4px 20px; }
  .pmx-quick__label { flex-basis: 100%; padding-top: 12px; }
}
@media (max-width: 781px) {
  .pmx-catalog__main .pmx-count { float: none; line-height: 1.4; margin: 0 0 12px; }
  .pmx-catalog__main .woocommerce-ordering { float: none; margin: 0 0 20px; }
  .pmx-catalog__main .woocommerce-ordering select { flex: 1; }
}

/* ---------- 11. Product page ---------- */
.pmx-woo--single { padding-top: 24px; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: start; }
.woocommerce div.product > * { grid-column: 1 / -1; }
.woocommerce div.product > .woocommerce-product-gallery, .woocommerce div.product div.images { grid-column: 1; width: auto !important; float: none !important; margin: 0 !important; position: relative; }
.woocommerce div.product div.summary { grid-column: 2; width: auto !important; float: none !important; margin: 0 !important; position: sticky; top: calc(var(--header-h) + 24px); }
.woocommerce-product-gallery { overflow: hidden; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; }
.woocommerce-product-gallery > * { grid-column: 2; }
.woocommerce div.product div.images .flex-viewport, .woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border-radius: var(--r-photo); }
.woocommerce div.product div.images .woocommerce-product-gallery__image { background: var(--product-photo-bg); border-radius: var(--r-photo); overflow: hidden; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { display: none; }
.woocommerce div.product div.images .flex-control-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 12px; margin: 0 !important; padding: 0; max-height: 640px; overflow: auto; scrollbar-width: thin; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 88px !important; float: none !important; margin: 0 !important; flex: none; }
.woocommerce div.product div.images .flex-control-thumbs img { width: 88px; height: 88px; object-fit: cover; background: var(--product-photo-bg); border-radius: var(--r-sm); border: 2px solid transparent; opacity: 1 !important; cursor: pointer; transition: border-color var(--t) ease; }
.woocommerce div.product div.images .flex-control-thumbs img:hover { border-color: var(--border); }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active { border-color: var(--primary); }
.woocommerce div.product div.images .pmx-fav { top: 14px; right: 14px; }
.pswp { display: none; }
.pswp.pswp--open { display: block; }
.woocommerce div.product .product_title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { font-weight: 800; font-size: 2rem; line-height: 1.25; color: var(--heading) !important; margin: 0 0 20px; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--text); margin-bottom: 20px; }
.pmx-model-colors { margin: 0 0 20px; }
.pmx-model-colors .pmx-label { margin-bottom: 10px; }
.pmx-model-colors .pmx-swatches { position: static; gap: 12px; flex-wrap: wrap; }
.pmx-model-colors .pmx-swatch { width: 36px; height: 36px; }
.woocommerce div.product form.cart { margin: 0 0 20px; }
.woocommerce div.product form.cart .variations, .woocommerce div.product form.cart .variations tbody { display: block; width: 100%; margin: 0 0 4px; border: 0; }
.woocommerce div.product form.cart .variations tr { display: flex; flex-direction: column; gap: 10px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; line-height: 1.4; border: 0; background: none; }
.woocommerce div.product form.cart .variations th.label label { font-size: .875rem; font-weight: 700; color: var(--heading); }
.pmx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.pmx-tile-btn { min-width: 44px; min-height: 48px; padding: 0 8px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: #fff; color: var(--heading); font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer; transition: border-color var(--t) ease, background-color var(--t) ease; }
.pmx-tile-btn:hover:not(:disabled) { border-color: var(--primary); }
.pmx-tile-btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pmx-tile-btn:disabled, .pmx-tile-btn.is-soldout { background: var(--disabled-bg); border-color: var(--disabled-bg); color: var(--disabled-text); cursor: not-allowed; text-decoration: line-through; }
.woocommerce div.product form.cart .reset_variations { display: inline-flex !important; align-items: center; min-height: 32px; margin-top: 8px; font-size: .875rem; color: var(--text-muted); }
.pmx-size-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 4px 0 8px; padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-size: .9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.woocommerce div.product .single_variation_wrap .woocommerce-variation { margin: 8px 0 12px; }
.woocommerce div.product .woocommerce-variation-price .price { font-size: 1.25rem !important; margin: 0 0 4px !important; }
.woocommerce div.product .stock { font-size: .875rem; font-weight: 700; margin: 0; }
.woocommerce div.product .stock.in-stock { color: var(--success); }
.woocommerce div.product .stock.out-of-stock { color: var(--error); }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart, .woocommerce div.product form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.woocommerce div.product form.cart .quantity { margin: 0 !important; }
.woocommerce div.product form.cart .quantity::before { content: "Кількість"; display: block; font-size: .875rem; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.woocommerce div.product .single_add_to_cart_button { flex: 1 1 100%; min-height: 56px !important; font-size: 1rem !important; }
.woocommerce div.product .single_add_to_cart_button::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12H6.2z'/%3E%3Cpath d='M9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12H6.2z'/%3E%3Cpath d='M9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat; }
.pmx-qty { display: inline-flex !important; flex-wrap: wrap; align-items: center; }
.pmx-qty::before { flex-basis: 100%; }
.pmx-qty .qty, .woocommerce .quantity .qty { width: 56px; min-height: 48px; border: 1.5px solid var(--control-border); border-left: 0; border-right: 0; border-radius: 0; text-align: center; font: inherit; font-weight: 700; color: var(--heading); background: #fff; -moz-appearance: textfield; }
.pmx-qty .qty::-webkit-inner-spin-button, .pmx-qty .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pmx-qty__btn { width: 48px; height: 48px; border: 1.5px solid var(--control-border); background: #fff; color: var(--heading); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background-color var(--t) ease; }
.pmx-qty__btn:first-of-type { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.pmx-qty__btn:last-of-type { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.pmx-qty__btn:hover { background: var(--bg-accent); }
.pmx-qty .qty { height: 48px !important; min-height: 48px; margin: 0 !important; padding: 0 !important; box-sizing: border-box; }
.pmx-qty__btn { box-sizing: border-box; margin: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.pmx-b2b-line { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 16px; border-radius: var(--r-sm); background: var(--bg-subtle); font-size: .9375rem; color: var(--text); }
.pmx-b2b-line .pmx-ico { color: var(--primary); margin-top: 2px; }
.pmx-b2b-line a { font-weight: 700; }
.pmx-tabs { margin-top: 64px; }
.pmx-tabs__list { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--border); }
.pmx-tabs__list [role="tab"] { min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--heading); font: inherit; font-weight: 700; cursor: pointer; transition: background-color var(--t) ease, color var(--t) ease; }
.pmx-tabs__list [role="tab"]:hover { background: var(--bg-accent); }
.pmx-tabs__list [role="tab"][aria-selected="true"] { background: var(--primary); color: #fff; }
.pmx-tabs__panel { padding: 24px 0 0; max-width: 860px; }
.pmx-tabs__panel table.shop_attributes { border: 0; margin: 0; width: 100%; border-collapse: collapse; }
.pmx-tabs__panel table.shop_attributes th, .pmx-tabs__panel table.shop_attributes td { border: 0; border-bottom: 1px solid var(--border); background: transparent !important; padding: 12px 0; font-style: normal; text-align: left; vertical-align: top; }
.pmx-tabs__panel table.shop_attributes th { width: 40%; font-weight: 700; color: var(--heading); padding-right: 16px; }
.pmx-tabs__panel table.shop_attributes td p { margin: 0; }
.woocommerce div.product .related, .woocommerce div.product .upsells { margin-top: var(--section); }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { margin-bottom: 24px; }
.pmx-dialog { border: 0; border-radius: var(--r-lg); padding: 0; max-width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgba(20,45,56,.2); color: var(--text); }
.pmx-dialog::backdrop { background: rgba(20, 45, 56, .45); }
.pmx-dialog__in { padding: 32px; }
.pmx-dialog h2 { font-size: 1.5rem; }
@media (max-width: 960px) {
  .woocommerce div.product { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .woocommerce div.product > .woocommerce-product-gallery, .woocommerce div.product div.images, .woocommerce div.product div.summary { grid-column: 1; position: static; }
  .woocommerce-product-gallery { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-product-gallery > * { grid-column: 1; }
  .woocommerce div.product div.images .flex-control-thumbs { grid-row: auto; flex-direction: row; overflow-x: auto; max-height: none; }
  .woocommerce div.product div.images .flex-control-thumbs li, .woocommerce div.product div.images .flex-control-thumbs img { width: 72px !important; height: 72px; }
  .pmx-tabs__list { display: flex; overflow-x: auto; flex-wrap: nowrap; }
  .pmx-tabs__list [role="tab"] { flex: none; }
}
@media (max-width: 781px) {
  .pmx-woo--single .single_variation_wrap .woocommerce-variation-add-to-cart { position: sticky; bottom: 0; z-index: 20; background: #fff; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); border-top: 1px solid var(--border); flex-wrap: nowrap; align-items: center; }
  .pmx-woo--single .woocommerce-variation-add-to-cart .quantity::before { display: none; }
  .pmx-woo--single .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1 1 auto; }
}

/* ---------- 12. Service pages: cart, checkout, account ---------- */
.pmx-service__body { padding-top: 40px; }
.pmx-service--cart .pmx-service__body > .woocommerce, .pmx-service--cart .wp-block-post-content > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.pmx-service--cart .woocommerce > * { grid-column: 1 / -1; }
.pmx-service--cart .woocommerce > form.woocommerce-cart-form { grid-column: 1; }
.pmx-service--cart .woocommerce > .cart-collaterals { grid-column: 2; position: sticky; top: calc(var(--header-h) + 24px); }
.woocommerce table.shop_table { border: 1px solid var(--border) !important; border-radius: var(--r-lg) !important; border-collapse: separate !important; background: #fff; overflow: hidden; margin: 0 !important; }
.woocommerce table.shop_table th { font-size: .875rem; font-weight: 700; color: var(--text-muted); background: var(--bg-subtle); padding: 14px 16px !important; border: 0 !important; }
.woocommerce table.shop_table td { padding: 16px !important; border-top: 1px solid var(--border) !important; vertical-align: middle; }
.woocommerce table.shop_table td.product-name a { font-weight: 700; color: var(--heading); text-decoration: none; }
.woocommerce table.shop_table td.product-name a:hover { color: var(--primary); }
.woocommerce table.shop_table td.product-name dl.variation { margin: 4px 0 0; font-size: .875rem; color: var(--text-muted); }
.woocommerce table.shop_table td.product-name dl.variation dt, .woocommerce table.shop_table td.product-name dl.variation dd { display: inline; margin: 0; font-weight: 500; }
.woocommerce table.shop_table td.product-name dl.variation dd p { display: inline; margin: 0; }
.woocommerce table.cart img, .woocommerce table.shop_table img { width: 88px !important; height: 66px; object-fit: contain; border-radius: var(--r-sm); background: var(--product-photo-bg); }
.woocommerce table.shop_table .product-price, .woocommerce table.shop_table .product-subtotal { font-weight: 700; color: var(--heading); white-space: nowrap; }
.woocommerce a.remove { width: 44px !important; height: 44px !important; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 50% !important; font-size: 0 !important; color: var(--text-muted) !important; background: transparent !important; }
.woocommerce a.remove::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13'/%3E%3C/svg%3E") center / contain no-repeat; }
.woocommerce a.remove:hover { background: var(--error-bg) !important; color: var(--error) !important; }
.woocommerce table.cart td.actions { background: var(--bg-subtle); }
.woocommerce table.cart td.actions .coupon { display: flex; gap: 8px; align-items: center; }
.woocommerce table.cart td.actions .coupon input.input-text { width: 200px !important; }
.woocommerce table.cart td.actions button[name="update_cart"] { background: transparent !important; color: var(--primary) !important; }
.woocommerce table.cart td.actions button[name="update_cart"]:disabled { background: var(--disabled-bg) !important; color: var(--disabled-text) !important; }
.woocommerce .cart-collaterals .cart_totals, .pmx-summary, .woocommerce-checkout-review-order { width: 100% !important; float: none !important; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 1.5rem; margin: 0 0 12px; }
.woocommerce .cart-collaterals .cart_totals table.shop_table { border: 0 !important; box-shadow: none; }
.woocommerce .cart-collaterals .cart_totals table.shop_table th, .woocommerce .cart-collaterals .cart_totals table.shop_table td { background: none; padding: 12px 0 !important; color: var(--text); font-weight: 600; }
.woocommerce .cart-collaterals .cart_totals .order-total th, .woocommerce .cart-collaterals .cart_totals .order-total td { font-size: 1.25rem; color: var(--heading); font-weight: 800; }
.woocommerce .wc-proceed-to-checkout { padding: 16px 0 0 !important; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { width: 100%; margin: 0 !important; font-size: 1rem !important; }
.woocommerce ul#shipping_method { margin: 0; padding: 0; list-style: none; }
.woocommerce ul#shipping_method li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; text-indent: 0 !important; }
.pmx-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 48px 24px; border: 1px dashed var(--border); border-radius: var(--r-lg); background: var(--bg-subtle); }
.pmx-empty .pmx-ico { color: var(--primary); margin-bottom: 8px; }
.pmx-empty h2 { font-size: 1.5rem; margin: 0; }
.pmx-empty p { color: var(--text-muted); max-width: 32em; margin: 0 0 12px; }
.woocommerce .return-to-shop { text-align: center; margin-top: 16px; }
.woocommerce-cart .cart-empty.woocommerce-info { display: none; }
/* Checkout */
.woocommerce form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0 40px; align-items: start; counter-reset: pmx-step; }
.woocommerce form.checkout > * { grid-column: 1; }
.woocommerce form.checkout { grid-template-rows: auto auto 1fr; }
.woocommerce form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; grid-row: 1; }
.woocommerce form.checkout > #customer_details { grid-column: 1; grid-row: 2 / 4; }
.woocommerce form.checkout > #order_review_heading { grid-column: 2; grid-row: 2; margin: 0 0 12px; font-size: 1.5rem; }
.woocommerce form.checkout > #order_review { grid-column: 2; grid-row: 3; position: sticky; top: calc(var(--header-h) + 24px); }
.woocommerce-checkout .col2-set { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { width: 100% !important; float: none !important; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.woocommerce-checkout #customer_details h3 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; margin: 0 0 16px; }
.woocommerce-checkout #customer_details h3:not(#ship-to-different-address)::before, .woocommerce-checkout #payment::before { counter-increment: pmx-step; content: counter(pmx-step); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.woocommerce-checkout #ship-to-different-address label { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; }
.woocommerce form .form-row { padding: 0 !important; margin: 0 0 16px !important; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 8px) !important; }
.woocommerce-checkout-review-order { padding: 24px; }
.woocommerce-checkout-review-order-table { border: 0 !important; box-shadow: none; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { background: none !important; padding: 10px 0 !important; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: 1.25rem; font-weight: 800; color: var(--heading); }
.woocommerce-checkout #payment { position: relative; background: transparent !important; border-radius: 0; margin-top: 16px; display: block; }
.woocommerce-checkout #payment::before { position: absolute; left: 0; top: -2px; }
.woocommerce-checkout #payment::after { content: "Оплата"; position: absolute; left: 44px; top: -2px; font-size: 1.25rem; font-weight: 800; color: var(--heading); line-height: 32px; }
.woocommerce-checkout #payment ul.payment_methods { padding: 48px 0 16px !important; border: 0 !important; list-style: none; margin: 0; }
.woocommerce-checkout #payment ul.payment_methods li { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
.woocommerce-checkout #payment ul.payment_methods li label { font-weight: 700; color: var(--heading); cursor: pointer; }
.woocommerce-checkout #payment div.payment_box { background: var(--bg-subtle) !important; color: var(--text) !important; border-radius: var(--r-sm); margin: 10px 0 0 !important; font-size: .9375rem; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment div.form-row.place-order { padding: 0 !important; }
.woocommerce-checkout #place_order { width: 100%; float: none !important; min-height: 56px; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { font-size: .875rem; margin-bottom: 16px; }
.woocommerce .blockUI.blockOverlay { background: rgba(255,255,255,.7) !important; }
.woocommerce .blockUI.blockOverlay::before { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 3px solid var(--primary); border-right-color: transparent; border-radius: 50%; animation: pmx-spin .7s linear infinite; }
/* Order received */
.woocommerce-order .woocommerce-thankyou-order-received { font-size: 1.25rem; font-weight: 700; color: var(--success); background: #E9F5EF; padding: 20px; border-radius: var(--r-sm); }
.woocommerce ul.order_details { display: flex; flex-wrap: wrap; gap: 16px; padding: 0; list-style: none; }
.woocommerce ul.order_details li { border: 1px solid var(--border) !important; border-radius: var(--r-sm); padding: 12px 16px !important; margin: 0 !important; float: none !important; }
/* Account */
.woocommerce-account .pmx-service__body > .woocommerce, .woocommerce-account .wp-block-post-content > .woocommerce { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation { width: auto !important; float: none !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--heading); font-weight: 700; text-decoration: none; transition: background-color var(--t) ease, border-color var(--t) ease; }
.woocommerce-MyAccount-navigation a::before { content: ""; width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.woocommerce-MyAccount-navigation a::after { content: "›"; margin-left: auto; font-size: 1.25rem; }
.woocommerce-MyAccount-navigation a:hover { border-color: var(--primary); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--primary); border-color: var(--primary); color: #fff; }
.woocommerce-MyAccount-navigation-link { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--dashboard { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M4 11 12 4l8 7v9h-5v-6H9v6H4z'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--orders { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='m3 7 9-4 9 4v10l-9 4-9-4z'/%3E%3Cpath d='m3 7 9 4 9-4M12 11v10'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--obrane { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-address { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M12 21s-6-5.4-6-11a6 6 0 0 1 12 0c0 5.6-6 11-6 11z'/%3E%3Ccircle cx='12' cy='10' r='2.2'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-account { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--customer-logout { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h4v16h-4M10 8l-4 4 4 4M6 12h10'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-content { width: auto !important; float: none !important; min-width: 0; }
.woocommerce-MyAccount-content > p:first-child { padding: 20px 24px; border-radius: var(--r-lg); background: var(--bg-subtle); }
.woocommerce-account #customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; grid-column: 1 / -1; }
.woocommerce-account #customer_login::before, .woocommerce-account #customer_login::after { display: none; }
.woocommerce-account #customer_login > div { width: auto !important; float: none !important; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.woocommerce form.login, .woocommerce form.register { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.woocommerce-account .woocommerce > form.login { grid-column: 1 / -1; max-width: 520px; }
.woocommerce-account .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 10px; margin-right: 16px; }
@media (max-width: 1024px) {
  .pmx-service--cart .pmx-service__body > .woocommerce, .pmx-service--cart .wp-block-post-content > .woocommerce, .woocommerce form.checkout, .woocommerce-account .pmx-service__body > .woocommerce, .woocommerce-account .wp-block-post-content > .woocommerce { grid-template-columns: 1fr; }
  .pmx-service--cart .woocommerce > .cart-collaterals, .woocommerce form.checkout > #order_review_heading, .woocommerce form.checkout > #order_review, .woocommerce form.checkout > #customer_details { grid-column: 1; grid-row: auto; position: static; }
  .woocommerce form.checkout { grid-template-rows: none; }
  .woocommerce form.checkout > #order_review_heading { margin-top: 32px; }
  .woocommerce-account #customer_login { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100% !important; }
  .woocommerce table.shop_table_responsive tr td { padding: 10px 16px !important; }
  .woocommerce table.cart td.actions .coupon { flex-wrap: wrap; }
  .woocommerce table.cart td.actions .coupon input.input-text { width: 100% !important; }
}

/* ---------- 13. Content pages ---------- */
.pmx-card-soft { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.pmx-card-soft > .pmx-ico { color: var(--primary); margin-bottom: 12px; }
.pmx-card-soft h2, .pmx-card-soft h3 { font-size: 1.375rem; margin: 0 0 8px; }
.pmx-card-soft p:last-child { margin-bottom: 0; }
.pmx-card-soft--img { padding: 0 0 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.pmx-card-soft--img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--product-photo-bg); margin-bottom: 20px; }
.pmx-card-soft--img h3, .pmx-card-soft--img p { padding: 0 24px; }
.pmx-bigline { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1.25rem; font-weight: 800; color: var(--heading); text-decoration: none; }
.pmx-bigline .pmx-ico { color: var(--primary); }
.pmx-bigline:hover { color: var(--primary); }
/* Help */
.pmx-help { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 48px !important; }
.pmx-sidenav { position: sticky; top: calc(var(--header-h) + 24px); }
.pmx-sidenav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pmx-sidenav a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--heading); font-weight: 700; text-decoration: none; background: #fff; transition: border-color var(--t) ease, background-color var(--t) ease; }
.pmx-sidenav a .pmx-ico { color: var(--primary); }
.pmx-sidenav a:hover { border-color: var(--primary); background: var(--bg-subtle); }
.pmx-help__sec + .pmx-help__sec { margin-top: 56px; }
.pmx-help__sec > h2 { margin-bottom: 20px; }
.pmx-tiles-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pmx-tile-card { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; font-weight: 700; color: var(--heading); box-shadow: var(--shadow); }
.pmx-tile-card .pmx-ico { color: var(--primary); }
.pmx-acc { border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.pmx-acc__item + .pmx-acc__item { border-top: 1px solid var(--border); }
.pmx-acc--single { border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.pmx-acc__item summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 20px; cursor: pointer; font-weight: 700; color: var(--heading); }
.pmx-acc__item summary::-webkit-details-marker { display: none; }
.pmx-acc__item summary span { flex: 1; }
.pmx-acc__item summary::after { content: ""; width: 8px; height: 8px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform var(--t) ease; }
.pmx-acc__item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pmx-acc__item summary:hover { background: var(--bg-subtle); }
.pmx-acc__body { padding: 0 20px 20px; color: var(--text); }
.pmx-sizehelp { position: relative; overflow: hidden; padding: 32px; border-radius: var(--r-lg); background: linear-gradient(100deg, var(--bg-accent), var(--product-photo-bg)); }
.pmx-sizehelp > div { position: relative; z-index: 1; max-width: 520px; }
.pmx-sizehelp::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 300px; height: 200px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' fill='none' stroke='%23286071' stroke-opacity='.35' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M30 160h240M50 160v-14M80 160v-8M110 160v-14M140 160v-8M170 160v-14M200 160v-8M230 160v-14M90 140c0-60 10-100 40-110 20-6 30 20 30 50 0 30 50 40 70 60'/%3E%3C/svg%3E") center / contain no-repeat; }
.pmx-sizehelp h2 { margin-bottom: 8px; }
/* Contacts */
.pmx-contacts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding-top: 48px !important; align-items: start; }
.pmx-contacts__cards { display: flex; flex-direction: column; gap: 16px; }
.pmx-contacts__cards p { margin: 0; }
.pmx-contacts__form, .pmx-card-form { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); }
.pmx-contacts__form h2, .pmx-card-form h2 { font-size: 1.5rem; margin-bottom: 20px; }
/* Teams */
.pmx-teams { padding-top: 48px !important; }
.pmx-teams__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pmx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.pmx-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--r-lg); background: var(--bg-subtle); border: 1px solid var(--border); }
.pmx-steps__n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.pmx-steps h3 { font-size: 1.125rem; margin: 6px 0 4px; }
.pmx-steps p { margin: 0; color: var(--text); }
/* About */
.pmx-about { padding-top: 56px !important; }
.pmx-about__intro { max-width: 760px; }
.pmx-about__intro .pmx-logo-link { margin-bottom: 24px; }
.pmx-about__title { font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.pmx-about__cards { list-style: none; margin: 48px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* Profession */
.pmx-prof-page { padding-top: 32px !important; }
.pmx-segment { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--border); }
.pmx-segment a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; border-radius: var(--r-sm); color: var(--heading); font-weight: 700; text-decoration: none; }
.pmx-segment a:hover { background: var(--bg-accent); }
.pmx-segment a.is-on { background: var(--primary); color: #fff; }
.pmx-prof-page .pmx-block:first-of-type { margin-top: 48px; }
/* Favourites */
.pmx-favs { padding-top: 40px; }
.pmx-favs__loading { color: var(--text-muted); }
@media (max-width: 1024px) {
  .pmx-help { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pmx-sidenav { min-width: 0; }
  .pmx-sidenav { position: static; }
  .pmx-sidenav ul { flex-direction: row; overflow-x: auto; }
  .pmx-sidenav a { flex: none; }
  .pmx-contacts { grid-template-columns: 1fr; }
  .pmx-teams__cards, .pmx-steps, .pmx-about__cards { grid-template-columns: 1fr; }
}
@media (max-width: 781px) { .pmx-contacts__form, .pmx-card-form { padding: 20px; } .pmx-sizehelp { padding: 24px; } .pmx-sizehelp::after { opacity: .4; } }

/* ---------- 14. Team band + footer ---------- */
.pmx-teamband { background: var(--dark-section); color: #fff; }
.pmx-teamband__in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; min-height: 120px; padding-top: 24px !important; padding-bottom: 24px !important; }
.pmx-logo-link--plate { background: #fff; border-radius: 12px; padding: 12px 16px; }
.pmx-teamband__text { flex: 1 1 320px; padding-left: 40px; border-left: 1px solid rgba(255,255,255,.3); }
.pmx-teamband__title { color: #fff; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); font-weight: 800; margin: 0 0 4px; }
.pmx-teamband__lead { margin: 0; color: #DCE9EF; }
.pmx-footer { background: var(--bg-subtle); color: var(--text); padding: 56px 0 24px; }
.pmx-footer__grid { display: grid; grid-template-columns: minmax(200px, 1.2fr) repeat(3, minmax(0, .9fr)) minmax(0, 1.25fr); gap: 32px; }
.pmx-footer__brand p { margin: 16px 0 0; color: var(--text-muted); max-width: 18em; }
.pmx-footer__brand .pmx-logo-link { padding: 0; }
.pmx-fcol__title { font-size: 1rem; font-weight: 800; margin: 0 0 12px; }
.pmx-fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pmx-fcol a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text); text-decoration: none; }
.pmx-fcol a:hover { color: var(--primary); text-decoration: underline; }
.pmx-fcol--contacts li { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.pmx-fcol--contacts .pmx-ico { color: var(--primary); margin-top: 8px; }
.pmx-fcol--contacts span { display: flex; flex-direction: column; }
.pmx-fcol--contacts small { color: var(--text-muted); font-size: .8125rem; margin-top: 4px; }
.pmx-fcol--contacts a { min-height: 32px; font-weight: 700; color: var(--heading); }
.pmx-fcol--contacts li > span:only-of-type { padding-top: 6px; }
.pmx-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px !important; padding-top: 16px !important; border-top: 1px solid var(--border); font-size: .875rem; color: var(--text-muted); }
.pmx-footer__bottom p { margin: 0; }
@media (max-width: 1100px) { .pmx-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pmx-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 781px) {
  .pmx-teamband__text { padding-left: 0; border-left: 0; }
  .pmx-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .pmx-fcol--contacts { grid-column: 1 / -1; }
}

/* ---------- 15. Older patterns kept for the editor ---------- */
.pmx-eyebrow { font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin: 0; }
.pmx-b2b-soft { padding-top: var(--section); }
.pmx-b2b-soft__box { max-width: var(--container); margin: 0 auto; background: var(--bg-subtle); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); gap: 40px !important; }
.pmx-team__row { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding: 24px 0; border-bottom: 1px solid var(--border); max-width: var(--container); margin: 0 auto; }
.pmx-team__title { margin: 0; font-size: 1.5rem; font-weight: 800; }
.pmx-team__text { flex: 1 1 280px; margin: 0; }
.pmx-form--fallback { padding: 24px; background: #fff; border-radius: var(--r-lg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- WooCommerce block-theme stylesheet overrides (it caps cart/checkout/account at 1000px and tables at 70%) ---------- */
.woocommerce-account main .woocommerce, .woocommerce-cart main .woocommerce, .woocommerce-checkout main .woocommerce { max-width: none; }
.woocommerce-page table.shop_table { width: 100%; }
.woocommerce-cart-form .pmx-qty { flex-wrap: nowrap; }
.woocommerce-cart-form td.product-quantity { min-width: 160px; }
.woocommerce-cart-form td.product-name { min-width: 200px; }
.cart_totals .pmx-strip--small { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-subtle); font-size: .875rem; line-height: 1.45; }
.wc-block-components-notice-banner .wc-forward { flex: none; min-height: 40px; padding: 8px 16px !important; white-space: nowrap; }
.pmx-check-label input[type="checkbox"] { width: 20px !important; height: 20px !important; min-height: 0 !important; flex: none; margin: 2px 0 0 !important; padding: 0 !important; accent-color: var(--primary); }
.pmx-check-label span { flex: 1; min-width: 0; }
@media (max-width: 1024px) { .pmx-catalog { row-gap: 12px !important; } }

/* Product: the summary must never slide over the description. Tabs sit in the left column under the gallery,
   the summary spans both rows beside them (no sticky: a sticky summary overlapped the tabs and related products). */
@media (min-width: 961px) {
  .woocommerce div.product > .woocommerce-product-gallery, .woocommerce div.product > div.images { grid-row: 1; }
  .woocommerce div.product > div.summary { grid-row: 1 / span 2; position: static !important; }
  .woocommerce div.product > .pmx-tabs { grid-column: 1; grid-row: 2; margin-top: 16px; }
  .woocommerce div.product > .pmx-tabs .pmx-tabs__list { flex-wrap: wrap; }
}

/* Home hero fits the screen on laptops: slider controls and the profession strip stay visible above the fold. */
@media (min-width: 961px) {
  .pmx-slide__cols { min-height: min(clamp(460px, 40vw, 560px), calc(100svh - var(--header-h) - 150px)) !important; }
  .pmx-slide__media { min-height: 0; padding: 16px 0; }
  .pmx-slide__img, .pmx-slide--prints .pmx-slide__img--1 { max-width: min(600px, calc(100svh - var(--header-h) - 190px)); }
  .pmx-slide__media { max-height: calc(100svh - var(--header-h) - 150px); }
  .pmx-slide__text { padding: clamp(24px, 4svh, 56px) 0; }
  .pmx-slide__title { font-size: min(clamp(2.5rem, 1.3rem + 3.6vw, 4rem), 7.2svh) !important; }
}

/* Product gallery: the thumbnail column never makes the gallery taller than the main photo (it scrolls instead). */
@media (min-width: 961px) {
  .woocommerce div.product div.images { padding-left: 104px; display: block; }
  .woocommerce div.product div.images .flex-control-thumbs { position: absolute; left: 0; top: 0; bottom: 0; width: 92px; max-height: none; overflow-y: auto; overscroll-behavior: contain; }
}
.woocommerce div.product form.cart .reset_variations[style*="hidden"] { display: none !important; }
.pmx-slide__num { display: none !important; }
/* Cards: product photos are square with wide empty margins; fill the 4:3 card by width (only empty top/bottom background is trimmed, toe and heel stay). */
.woocommerce ul.products li.product a img, .pmx-favs img { object-fit: cover; object-position: center; }

/* ---------- 3.1: ribbons and people from the approved artwork ---------- */
.pmx-hl { background: url("../img/deco/stroke-yellow.webp") left 100% / 100% .3em no-repeat; padding-bottom: .1em; }
.pmx-hero {
  background:
    url("../img/deco/ribbon-low.webp") right -4% bottom -6% / min(62vw, 900px) auto no-repeat,
    url("../img/deco/ribbon-long.webp") right -6% top 8% / min(58vw, 860px) auto no-repeat,
    linear-gradient(90deg, #F7FBFD 0%, #EEF5FA 40%, #E2EEF5 100%) !important;
}
.pmx-slide__media::before { content: ""; position: absolute; left: -6%; right: -8%; top: 6%; bottom: 0; background: url("../img/deco/ribbon-rise.webp") center 60% / contain no-repeat; z-index: 0; pointer-events: none; opacity: .95; }
.pmx-page-hero::after { background: url("../img/deco/ribbon-long.webp") right -4% top 20% / min(62vw, 880px) auto no-repeat, url("../img/deco/ribbon-lines.webp") right 8% bottom -10% / min(46vw, 640px) auto no-repeat !important; }

/* People cut-outs: no glow mask, they stand on the bottom edge of the band */
.pmx-slide__person { position: absolute !important; right: 0; bottom: 0; top: 4%; margin: 0 !important; z-index: 2; display: flex; align-items: flex-end; pointer-events: none; }
.pmx-slide__person img { height: 100%; width: auto; max-width: none; object-fit: contain; object-position: bottom; }
.pmx-slide--care .pmx-slide__img { max-width: min(470px, calc(100svh - var(--header-h) - 230px)) !important; margin-right: 30% !important; }
.pmx-slide--care .pmx-slide__caption { right: 34%; }
.pmx-slide--team .pmx-slide__person { left: 0; right: 0; justify-content: center; top: 2%; }
.pmx-slide--team .pmx-slide__caption { display: none; }
.pmx-slide__media { overflow: visible; }
.pmx-page-hero.has-person .pmx-page-hero__in { padding-bottom: 0 !important; }
.pmx-page-hero.has-person .pmx-page-hero__in > .pmx-page-hero__text { padding-bottom: 40px; }
.pmx-page-hero__img.is-person { align-self: end; margin: 0; width: auto; height: clamp(220px, 24vw, 330px); }
.pmx-page-hero__img.is-person img { height: 100%; width: auto; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none; object-fit: contain; object-position: bottom; }
@media (max-width: 960px) {
  .pmx-slide__person { position: relative !important; top: auto; height: 300px; justify-content: center; }
  .pmx-slide--care .pmx-slide__person { display: none; }
  .pmx-slide--care .pmx-slide__img { margin-right: 0 !important; }
  .pmx-slide__media::before { top: 0; }
}
@media (max-width: 760px) {
  .pmx-page-hero__img.is-person { display: flex; justify-self: center; height: 220px; margin-top: 8px; }
}
.pmx-slide--care .pmx-slide__caption { right: auto; left: 8%; bottom: 24px; }
@media (max-width: 960px) {
  .pmx-slide__person { height: auto; max-width: 100%; }
  .pmx-slide__person img { width: 100%; height: auto; max-width: 100%; max-height: 300px; object-fit: contain; }
  .pmx-slide__track, .pmx-slide, .pmx-slide__cols { min-width: 0; max-width: 100%; }
  .pmx-page-hero::after { background-position: right -30% bottom -6%, right 0 bottom -20% !important; background-size: 120% auto, 90% auto !important; opacity: .7; }
}
/* SEO block */
.pmx-seo-wrap { margin-block: 0 !important; padding-top: 48px; padding-bottom: var(--section); }
.pmx-seo-wrap .pmx-seo { margin: 0 !important; }
.pmx-seo summary { list-style: none; justify-content: space-between; gap: 16px; border-radius: var(--r-lg); }
.pmx-seo summary::-webkit-details-marker { display: none; }
.pmx-seo summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg) translateY(-3px); transition: transform var(--t) ease; }
.pmx-seo[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.pmx-seo summary:focus { outline: none; }
.pmx-seo summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.pmx-seo .pmx-prose { padding-bottom: 24px; }
.pmx-seo h3 { font-size: 1.25rem; margin: 24px 0 8px; }

/* ---------- 3.2: scene photos ---------- */
/* Home banner: photo cards like the mockup */
.pmx-slide__card { position: absolute !important; margin: 0 !important; z-index: 1; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 18px 40px rgba(20, 45, 56, .16); }
.pmx-slide__card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pmx-slide--care .pmx-slide__card { right: 0; top: 7%; bottom: 9%; aspect-ratio: 3 / 4; }
.pmx-slide--care .pmx-slide__img { position: relative; z-index: 2; margin-right: 34% !important; filter: drop-shadow(0 18px 24px rgba(20,45,56,.14)); }
.pmx-slide--team .pmx-slide__card { position: relative !important; width: 100%; max-width: 620px; aspect-ratio: 1341 / 1024; max-height: calc(100% - 32px); }
.pmx-slide--team .pmx-slide__card img { object-position: center 25%; }
@media (max-width: 960px) {
  .pmx-slide--care .pmx-slide__card { display: none; }
  .pmx-slide--care .pmx-slide__img { margin-right: 0 !important; }
  .pmx-slide--team .pmx-slide__card { max-height: none; }
}

/* Page headers with a scene photo: text on the light left part of the photo */
.pmx-page-hero.has-scene { min-height: clamp(300px, 30vw, 440px); display: flex; align-items: center; }
.pmx-page-hero.has-scene::after { display: none; }
.pmx-page-hero.has-scene .pmx-page-hero__in { position: relative; z-index: 2; width: 100%; grid-template-columns: minmax(0, 560px); padding-top: 40px !important; padding-bottom: 48px !important; }
.pmx-page-hero__scene { position: absolute; inset: 0; z-index: 0; margin: 0; }
.pmx-page-hero__scene img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.pmx-page-hero.has-scene::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(240,246,250,.96) 0%, rgba(240,246,250,.86) 30%, rgba(240,246,250,0) 58%); }
@media (max-width: 760px) {
  .pmx-page-hero.has-scene { display: block; min-height: 0; }
  .pmx-page-hero.has-scene::before { display: none; }
  .pmx-page-hero.has-scene .pmx-page-hero__in { padding-bottom: 20px !important; }
  .pmx-page-hero__scene { position: relative; display: block; height: 230px; }
  .pmx-page-hero__scene img { object-position: 72% center; }
}
@media (min-width: 761px) {
  .pmx-page-hero.has-scene { min-height: clamp(340px, 32vw, 520px); background: linear-gradient(90deg, #F4F8FB 0%, #E3EEF4 100%); }
  .pmx-page-hero.has-scene::before { display: none; }
  .pmx-page-hero__scene { left: auto; right: 0; width: auto; height: 100%; aspect-ratio: 3 / 2; }
  .pmx-page-hero__scene img { object-position: center; }
  .pmx-page-hero__scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #EAF2F7 0%, rgba(234,242,247,.6) 18%, rgba(234,242,247,0) 40%); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .pmx-page-hero__scene { opacity: .55; }
}
.pmx-page-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pmx-page-hero__cta .pmx-btn--secondary { background: rgba(255,255,255,.8); }
@media (max-width: 760px) { .pmx-page-hero__cta .pmx-btn { flex: 1 1 100%; } }
.pmx-swatch-more { text-decoration: none; padding: 4px 2px; } .pmx-swatch-more:hover { color: var(--primary, #286071); }
.pmx-pick__all { margin-top: 32px; text-align: center; } .pmx-pick__all a.pmx-btn { display: inline-flex; color: var(--primary); }
.wp-block-group.pmx-prose:empty { display: none; }
/* Sold-out sizes: soft, with a thin diagonal stroke */
.pmx-tile-btn:disabled, .pmx-tile-btn.is-soldout { position: relative; overflow: hidden; background: #fff; border-color: var(--border); color: #A9B6BE; text-decoration: none; }
.pmx-tile-btn:disabled::after, .pmx-tile-btn.is-soldout::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - .75px), #C9D3D9 calc(50% - .75px), #C9D3D9 calc(50% + .75px), transparent calc(50% + .75px)); pointer-events: none; }
/* SEO landing pages */
.pmx-landing-text { padding-top: 16px; padding-bottom: 24px; }
.pmx-landing-links { padding-bottom: var(--section); }
.pmx-landing-links ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pmx-landing-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--heading); font-weight: 600; text-decoration: none; transition: border-color var(--t) ease, color var(--t) ease; }
.pmx-landing-links a:hover { border-color: var(--primary); color: var(--primary); }
.pmx-seo-wrap + .pmx-landing-links { margin-top: calc(-1 * var(--section) + 8px); }
.pmx-kroksy { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--border); }
.pmx-kroksy__lead { margin: -8px 0 24px; color: var(--text-muted); }
.pmx-kroksy .pmx-more { margin-top: 16px; }
