/* Param Gems: warm off-white shop, white product cards, one teal accent. Gentle motion only (see "motion" block). */
@font-face { font-family: Cardo; src: url(../fonts/Cardo-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Cardo; src: url(../fonts/Cardo-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Cardo; src: url(../fonts/Cardo-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Mukta; src: url(../fonts/Mukta-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Mukta; src: url(../fonts/Mukta-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Mukta; src: url(../fonts/Mukta-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --page: #FAF8F5;        /* warm off-white ground */
  --card: #FFFFFF;
  --soft: #F2EDE6;        /* panels, image wells */
  --ink: #2A2522;         /* warm near-black text */
  --ink-2: #6B625B;       /* secondary text */
  --line: #E6DED4;
  --accent: #1D6F80;      /* Param Gems teal, darkened for white text (5.6:1) */
  --accent-dark: #155866;
  --accent-soft: #E3F0F2;
  --error: #B3402A;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(42, 37, 34, .06);
  --wrap: min(1320px, 100% - clamp(32px, 6vw, 96px));
  --serif: Cardo, "Iowan Old Style", Georgia, serif;
  --sans: Mukta, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
  accent-color: var(--accent);
  scrollbar-color: #C9BFB4 var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); font-variant-numeric: tabular-nums; caret-color: var(--accent); }
::selection { background: var(--accent-soft); color: var(--ink); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pg-wrap { width: var(--wrap); margin-inline: auto; }
.pg-mono { font-family: var(--sans); font-size: .875rem; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.pg-icon { flex: none; }
.pg-skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.pg-skip:focus { top: 12px; }
.pg-demo { margin: 0; background: var(--accent); color: #fff; font-size: .85rem; text-align: center; padding: 8px 16px; }

/* ---------- header ---------- */
.pg-header { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.pg-header__row { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); height: 70px; }
.pg-logo img { height: 28px; width: auto; }
.pg-nav { display: flex; gap: clamp(14px, 2.2vw, 30px); font-weight: 600; font-size: .98rem; }
.pg-nav a { text-decoration: none; padding: 6px 0; }
.pg-nav a:hover { color: var(--accent); }
.pg-search { margin-left: auto; display: flex; align-items: center; background: var(--page); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; min-width: 0; }
.pg-search input { border: 0; background: transparent; font: inherit; font-size: .95rem; padding: 8px 4px; width: clamp(130px, 17vw, 240px); color: var(--ink); }
.pg-search input::placeholder { color: var(--ink-2); }
.pg-search input:focus { outline: none; }
.pg-search:focus-within { border-color: var(--accent); }
.pg-search button { border: 0; background: none; padding: 6px; cursor: pointer; color: var(--ink); }
.pg-cart { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; padding: 6px; }
.pg-cart-count { font-size: .8rem; line-height: 1; background: var(--accent); color: #fff; border-radius: 999px; min-width: 22px; padding: 4px 6px; text-align: center; }

/* ---------- buttons and links ---------- */
.pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; background: var(--accent); color: #fff; border: 1.5px solid var(--accent); border-radius: 8px; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.pg-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.pg-btn--line { background: transparent; color: var(--accent); }
.pg-btn--line:hover { background: var(--accent-soft); color: var(--accent-dark); }
.pg-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--accent); text-decoration: none; }
.pg-link:hover { color: var(--accent-dark); text-decoration: underline; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- sections ---------- */
.pg-section { padding-block: clamp(48px, 6vw, 88px); }
.pg-head { text-align: center; max-width: 60ch; margin: 0 auto 32px; }
.pg-head p { color: var(--ink-2); margin: 0; }
.pg-head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; text-align: left; max-width: none; }
.pg-head--left { text-align: left; margin-left: 0; }
.pg-note { font-size: .9rem; color: var(--ink-2); }

/* hero: static */
.pg-hero { background: var(--soft); }
.pg-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.pg-hero__copy h1 { max-width: 15ch; }
.pg-hero__lead { font-size: clamp(1.08rem, 1.35vw, 1.22rem); color: var(--ink-2); max-width: 48ch; }
.pg-hero__img { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); aspect-ratio: 4 / 5; max-height: 640px; justify-self: end; width: min(100%, 520px); }
.pg-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.pg-hero__tag { position: absolute; left: 14px; bottom: 14px; background: var(--card); padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow); }
.pg-hero--short { background: var(--soft); }
.pg-hero__piece { margin: 0; }
.pg-hero__piece .pg-hero__img { justify-self: auto; }
.pg-hero__piece figcaption { color: var(--ink-2); padding-top: 10px; }

/* shop by purpose */
.pg-purpose__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.pg-purpose__tile { display: block; text-decoration: none; text-align: center; }
.pg-purpose__img { display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); margin-bottom: 12px; }
.pg-purpose__img img { width: 100%; height: 100%; object-fit: cover; }
.pg-purpose__name { display: block; font-weight: 600; font-size: 1.05rem; }
.pg-purpose__stones { display: block; font-size: .85rem; color: var(--ink-2); }
.pg-purpose__tile:hover .pg-purpose__name { color: var(--accent); }

/* wholesale strip */
.pg-strip { display: flex; align-items: center; gap: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 28px; box-shadow: var(--shadow); }
.pg-strip__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.pg-strip div { flex: 1; }
.pg-strip__small { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pg-strip__big { margin: 0; font: 700 clamp(1.2rem, 2vw, 1.55rem)/1.25 var(--serif); }

/* tabs (CSS only) */
.pg-tabs { display: grid; grid-template-columns: auto auto 1fr; gap: 0 6px; align-items: start; }
.pg-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.pg-tabs > label { grid-row: 1; padding: 9px 20px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: .95rem; cursor: pointer; margin-bottom: 22px; }
.pg-tabs > input:checked + label { background: var(--accent); color: #fff; }
.pg-tabs > input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.pg-tabs__panel { grid-column: 1 / -1; grid-row: 2; display: none; }
#pg-tab-new:checked ~ .pg-tabs__panel--new, #pg-tab-fav:checked ~ .pg-tabs__panel--fav { display: block; }
.pg-empty-row { color: var(--ink-2); }

/* trust row */
.pg-trust { background: var(--card); border-block: 1px solid var(--line); }
.pg-trust__row { list-style: none; margin: 0 auto; padding: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.pg-trust__row li { display: grid; justify-items: center; gap: 4px; padding: 0 12px; border-left: 1px solid var(--line); }
.pg-trust__row li:first-child { border-left: 0; }
.pg-trust__row .pg-icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 6px; }
.pg-trust__row strong { font-size: 1rem; }
.pg-trust__row span { font-size: .88rem; color: var(--ink-2); }

/* shop by category */
.pg-cats-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.pg-cats-grid a { display: block; text-decoration: none; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pg-cats-grid__img { display: block; aspect-ratio: 4 / 5; background: var(--soft); }
.pg-cats-grid__img img { width: 100%; height: 100%; object-fit: cover; }
.pg-cats-grid__name { display: block; padding: 10px 12px 0; font-weight: 600; }
.pg-cats-grid__count { display: block; padding: 0 12px 12px; font-size: .85rem; color: var(--ink-2); }
.pg-cats-grid a:hover .pg-cats-grid__name { color: var(--accent); }

/* how to use */
.pg-howto { background: var(--soft); }
.pg-howto__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pg-steps { list-style: none; counter-reset: step; margin: 0 0 18px; padding: 0; }
.pg-steps li { counter-increment: step; position: relative; padding: 0 0 22px 60px; display: grid; gap: 2px; }
.pg-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.pg-steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 2px; width: 2px; background: #BFD9DE; }
.pg-steps strong { font-size: 1.1rem; }
.pg-steps span { color: var(--ink-2); font-size: .96rem; }
.pg-howto__media { margin: 0; }
.pg-howto__media video { width: 100%; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.pg-howto__media figcaption { font-size: .88rem; color: var(--ink-2); padding-top: 10px; }

/* story */
.pg-story__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pg-story__text p { color: var(--ink-2); max-width: 62ch; }
.pg-story__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; max-width: 460px; justify-self: end; width: 100%; }
.pg-story__img img { width: 100%; height: 100%; object-fit: cover; }

/* faq */
.pg-faq__wrap { max-width: 820px; }
.pg-faq h2 { text-align: center; margin-bottom: 24px; }
.pg-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.pg-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.pg-faq details[open] summary::after { content: "\2212"; }
.pg-faq details p { padding: 0 20px 16px; margin: 0; color: var(--ink-2); }

/* ---------- footer ---------- */
.pg-footer { background: var(--ink); color: #CFC7BF; padding-top: 56px; }
.pg-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.pg-footer__brand img { filter: invert(1); height: 32px; width: auto; margin-bottom: 16px; }
.pg-footer__tag { font: italic 400 1.35rem/1.2 var(--serif); color: #fff; }
.pg-footer h2 { font: 700 .82rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 16px; }
.pg-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg-footer a { text-decoration: none; }
.pg-footer a:hover { color: #fff; text-decoration: underline; }
.pg-footer__legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 22px 30px; font-size: .85rem; display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.pg-footer__legal p { margin: 0; max-width: 90ch; }

/* ---------- pages, wholesale, forms ---------- */
.pg-page { padding-block: clamp(36px, 5vw, 72px); }
.pg-prose { max-width: 70ch; }
.pg-prose h2 { margin-top: 1.5em; }
.pg-terms { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 7vw, 96px); }
.pg-spec { margin: 0; border-top: 1px solid var(--line); }
.pg-spec dt { font-weight: 600; padding-top: 14px; }
.pg-spec dd { margin: 2px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.pg-stages { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; counter-reset: st; }
.pg-stages li { counter-increment: st; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: .9rem; }
.pg-stages li::before { content: counter(st); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; margin-right: 8px; }
.pg-enquiry { background: var(--soft); padding-block: clamp(48px, 7vw, 96px); }
.pg-enquiry__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); }
.pg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; background: var(--card); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.pg-form p { margin: 0 0 14px; }
.pg-form__wide { grid-column: 1 / -1; }
.pg-form label, .pg-wc label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.pg-form input:not([type=checkbox]), .pg-form textarea, .pg-wc input.input-text, .pg-wc select, .pg-wc textarea, .pg-shop select, .pg-shop input.qty {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--card); border: 1px solid #CFC5BA; border-radius: 8px; padding: 11px 12px; }
.pg-form input:focus, .pg-form textarea:focus, .pg-wc input.input-text:focus, .pg-wc textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pg-checks { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.pg-checks label { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.pg-checks input { width: 18px; height: 18px; }
.pg-hp { position: absolute; left: -9999px; }
.pg-notice { padding: 18px 20px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.pg-notice--ok { border-color: #9CC9D1; background: var(--accent-soft); }
.pg-notice--err { border-color: #E2B3A8; background: #FBEDEA; color: #7A2A1B; grid-column: 1 / -1; }
.pg-empty { max-width: 52ch; padding-block: 40px; }

/* ---------- WooCommerce: product cards (shop, home rows, related) ---------- */
.pg-shop { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.pg-cats { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.pg-cats a { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; }
.pg-cats a span { color: var(--ink-2); font-weight: 400; font-size: .8rem; }
.pg-cats a:hover { border-color: var(--accent); color: var(--accent); }
.pg-cats a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pg-cats a[aria-current] span { color: #DCEFF2; }
.woocommerce-products-header__title { font-size: clamp(2rem, 3.6vw, 3rem); }
.woocommerce-result-count { color: var(--ink-2); font-size: .9rem; }
.woocommerce-ordering select { width: auto; }
/* sort box and result count get their own row with space before the grid (WooCommerce's own rule had no gap) */
.woocommerce .woocommerce-ordering, .woocommerce-ordering { margin: 0 0 28px !important; }
.woocommerce .woocommerce-result-count { margin: 0 0 28px !important; }
.woocommerce-breadcrumb { font-size: .88rem; color: var(--ink-2); margin-bottom: 16px; }
.woocommerce-breadcrumb a { color: var(--ink-2); }
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; clear: both; }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product { margin: 0 !important; width: auto !important; float: none !important; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding: 0 0 16px !important; } /* WooCommerce's padding: 0 removed the space under the button */
ul.products li.product a.woocommerce-LoopProduct-link { text-decoration: none; display: block; }
ul.products li.product img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); margin: 0 0 12px !important; }
ul.products li.product .woocommerce-loop-product__title { font: 600 1rem/1.3 var(--sans); margin: 0 14px 4px; padding: 0; }
ul.products li.product .price { display: block; font-size: 1rem; font-weight: 600; color: var(--accent); margin: 0 14px 12px; }
ul.products li.product .price .pg-usd { font-weight: 400; }
ul.products li.product .button { margin: auto 14px 0 !important; width: calc(100% - 28px); }
.pg-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.pg-wc .button, .pg-shop .button, .single_add_to_cart_button, ul.products li.product .button {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px !important; background: var(--accent) !important; color: #fff !important;
  border: 1.5px solid var(--accent) !important; border-radius: 8px !important; font: 600 .96rem/1 var(--sans) !important; text-decoration: none; cursor: pointer; }
.woocommerce a.button:hover, .pg-wc .button:hover, .single_add_to_cart_button:hover, ul.products li.product .button:hover { background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; }
.woocommerce a.button.loading { opacity: .6; }
.woocommerce a.added_to_cart { display: block; margin: 8px 14px 0; font-size: .88rem; color: var(--accent); font-weight: 600; }
.pg-usd { display: inline-block; font-size: .8rem; color: var(--ink-2); margin-left: 6px; font-weight: 400; }
.woocommerce-pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 40px 0 0; border: 0 !important; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.woocommerce-pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.woocommerce-info, .woocommerce-message, .woocommerce-error { list-style: none; padding: 14px 18px; margin: 0 0 24px; background: var(--accent-soft); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.woocommerce-error { background: #FBEDEA; }
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before { display: none; }

/* ---------- WooCommerce: single product ---------- */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.single-product div.product .woocommerce-product-gallery { width: auto !important; float: none !important; margin: 0; position: relative; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.woocommerce-product-gallery__image img { width: 100%; }
.woocommerce-product-gallery .flex-control-thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.woocommerce-product-gallery .flex-control-thumbs img { cursor: pointer; opacity: .6; border-radius: 8px; aspect-ratio: 4 / 5; object-fit: cover; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; outline: 2px solid var(--accent); outline-offset: 2px; }
.woocommerce-product-gallery__trigger { position: absolute; right: 12px; top: 12px; z-index: 5; width: 44px; height: 44px; background: var(--card); border-radius: 50%; display: grid; place-items: center; font-size: 0; color: transparent; box-shadow: var(--shadow); }
.woocommerce-product-gallery__trigger > * { display: none; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 22px; height: 22px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2522' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E"); }
.woocommerce-product-gallery__trigger:hover { background: var(--accent-soft); }
/* hover zoom (zoom.js) */
.pg-zoom-lens, .pg-zoom-pane { position: absolute; z-index: 40; pointer-events: none; opacity: 0; visibility: hidden; }
.pg-zoom-lens { background: rgba(255, 255, 255, .35); border: 1px solid rgba(42, 37, 34, .35); box-shadow: 0 0 0 9999px rgba(250, 248, 245, .18); }
.pg-zoom-pane { background: #fff no-repeat; border: 1px solid #CFC5BA; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(42, 37, 34, .18); }
.pg-zoom-pane.is-loading::after { content: "Loading zoom6"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-size: .9rem; }
.pg-zoom-lens.is-on, .pg-zoom-pane.is-on { opacity: 1; visibility: visible; }
.woocommerce-product-gallery__image img { cursor: crosshair; }
.single-product div.product .summary { width: auto !important; float: none !important; background: var(--card); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.single-product .product_title { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.single-product .summary .price { font-size: 1.4rem; font-weight: 700; color: var(--accent); margin-bottom: 16px; display: block; }
.single-product .woocommerce-product-details__short-description { color: var(--ink-2); font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: 14px; }
form.cart { display: flex; gap: 12px; align-items: stretch; margin: 22px 0 12px; }
form.cart .quantity input.qty { width: 84px; min-height: 44px; text-align: center; border-radius: 8px; border: 1px solid #CFC5BA; }
form.cart .single_add_to_cart_button { flex: 1; }
.pg-wholesale-hint { font-size: .95rem; color: var(--ink-2); background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; margin-top: 18px; }
.pg-wholesale-hint a { color: var(--accent-dark); font-weight: 700; }
.product_meta { font-size: .85rem; color: var(--ink-2); display: grid; gap: 4px; margin-top: 16px; }
.product_meta a { color: var(--ink-2); }
.pg-product-body { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.pg-sec { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.pg-sec h2 { font-size: 1.45rem; }
.pg-sec ul, .pg-sec ol { padding-left: 1.2em; }
.pg-sec li { margin-bottom: 6px; }
.pg-sec table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pg-sec th, .pg-sec td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pg-sec th { font-size: .8rem; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pg-sec-6, .pg-sec-13, .pg-sec-17 { grid-column: 1 / -1; }
.pg-sec-17 blockquote { margin: 0; font-size: .9rem; color: var(--ink-2); }
.related.products, .upsells.products { grid-column: 1 / -1; margin-top: 48px; }
.related.products > h2 { text-align: center; margin-bottom: 24px; }
.onsale { display: none; }

/* ---------- WooCommerce: cart + checkout (classic) ---------- */
.pg-page--wc h1 { margin-bottom: 24px; }
.pg-wc table.shop_table { width: 100%; border-collapse: collapse; margin-bottom: 24px; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pg-wc table.shop_table th { font-size: .8rem; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
.pg-wc table.shop_table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pg-wc table.shop_table img { width: 64px; border-radius: 8px; }
.pg-wc .product-remove a { font-size: 1.4rem; text-decoration: none; color: var(--ink-2); }
.pg-wc .coupon { display: flex; gap: 8px; align-items: center; }
.pg-wc .coupon input { width: 180px !important; }
.pg-wc .cart-collaterals { display: grid; justify-content: end; }
.pg-wc .cart_totals { min-width: min(420px, 100%); background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pg-wc .wc-proceed-to-checkout .button { width: 100%; }
.pg-wc .cart-empty { font: 700 1.5rem/1.3 var(--serif); }
.pg-wc .return-to-shop { margin-top: 20px; }
.pg-wc form.checkout { display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0 clamp(28px, 5vw, 64px); }
.pg-wc #customer_details, .pg-wc .col2-set { grid-column: 1; }
.pg-wc #customer_details { grid-row: 1 / span 2; background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pg-wc #order_review_heading, .pg-wc #order_review { grid-column: 2; }
.pg-wc #order_review_heading { grid-row: 1; align-self: start; margin-top: 0; }
.pg-wc #order_review { grid-row: 2; background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); align-self: start; }
.pg-wc .col2-set .col-1, .pg-wc .col2-set .col-2 { width: 100%; float: none; }
.pg-wc .form-row { margin: 0 0 14px; padding: 0; }
.pg-wc .form-row-first, .pg-wc .form-row-last { width: 48%; display: inline-block; vertical-align: top; }
.pg-wc .form-row-first { margin-right: 3%; }
.pg-wc .required { color: var(--error); text-decoration: none; }
.pg-wc #payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; }
.pg-wc #payment .payment_box { font-size: .92rem; color: var(--ink-2); background: var(--soft); border-radius: 8px; padding: 12px 14px; margin-top: 8px; }
.pg-wc #place_order { width: 100%; min-height: 52px; }
.pg-wc .woocommerce-privacy-policy-text { font-size: .82rem; color: var(--ink-2); }
.select2-container .select2-selection--single { height: 46px !important; border: 1px solid #CFC5BA !important; border-radius: 8px !important; background: var(--card) !important; }
.select2-container .select2-selection__rendered { line-height: 44px !important; }
.select2-container .select2-selection__arrow { height: 44px !important; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .pg-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pg-purpose__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  ul.products, .pg-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-trust__row { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .pg-trust__row li:nth-child(3) { border-left: 0; }
}
@media (max-width: 860px) {
  .pg-header { position: static; }
  .pg-header__row { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 6px 16px; }
  .pg-cart { margin-left: auto; }
  .pg-nav { order: 3; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; gap: 22px; white-space: nowrap; border-top: 1px solid var(--line); padding: 4px 32px 4px 0;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .pg-search { order: 4; flex: 1 1 100%; margin: 0 0 12px; }
  .pg-search input { width: 100%; }
  .pg-hero__grid, .pg-howto__grid, .pg-story__grid, .pg-terms, .pg-enquiry__grid, .pg-footer__grid,
  .single-product div.product, .pg-product-body, .pg-wc form.checkout { grid-template-columns: minmax(0, 1fr); }
  .pg-wc #customer_details, .pg-wc #order_review_heading, .pg-wc #order_review { grid-column: 1; grid-row: auto; }
  .pg-hero__img, .pg-story__img { justify-self: stretch; width: 100%; max-height: none; }
  .pg-hero__img { order: -1; }
  .pg-strip { flex-wrap: wrap; }
  .pg-head--row { flex-direction: column; align-items: start; }
  ul.products, .pg-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pg-purpose__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-footer__legal { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pg-logo img { height: 22px; }
  .pg-demo { font-size: .76rem; }
  .pg-trust__row { grid-template-columns: 1fr; }
  .pg-trust__row li { border-left: 0; }
  .pg-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pg-form { grid-template-columns: 1fr; padding: 18px; }
  .pg-wc .form-row-first, .pg-wc .form-row-last { width: 100%; margin-right: 0; }
  .pg-wc table.shop_table thead { display: none; }
}

/* ---------- motion: gentle, and off for reduced-motion users ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pg-btn, .pg-link, .pg-nav a, .pg-cats a, .pg-search, .pg-tabs > label,
  .woocommerce a.button, .single_add_to_cart_button, ul.products li.product .button { transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
  ul.products li.product, .pg-cats-grid a, .pg-purpose__img { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
  ul.products li.product img, .pg-cats-grid__img img, .pg-purpose__img img, .pg-hero__img img, .pg-story__img img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  ul.products li.product:hover, .pg-cats-grid a:hover, .pg-purpose__tile:hover .pg-purpose__img { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(42, 37, 34, .10); }
  ul.products li.product:hover img, .pg-cats-grid a:hover img, .pg-purpose__tile:hover img, .pg-hero__img:hover img { transform: scale(1.04); }
  .pg-link .pg-icon, .pg-btn .pg-icon { transition: transform .25s ease; }
  .pg-link:hover .pg-icon, .pg-btn:hover .pg-icon { transform: translateX(3px); }
  .pg-faq details[open] p { animation: pg-fade .3s ease both; }
  .pg-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .pg-reveal.is-in { opacity: 1; transform: none; }
}
@keyframes pg-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- account: header link, login / register, signed-in area ---------- */
.pg-account { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px; }
.pg-account:hover { color: var(--accent); }
.woocommerce-account .pg-page h1 { text-align: center; }
.pg-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; max-width: 980px; margin: 8px auto 0; background: var(--card); border-radius: 18px; box-shadow: 0 6px 28px rgba(42, 37, 34, .08); overflow: hidden; }
.pg-auth--single { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.pg-auth__panel { padding: clamp(24px, 4vw, 44px); }
.pg-auth__register { background: linear-gradient(180deg, var(--accent-soft), #F3F8F9); border-left: 1px solid var(--line); }
.pg-auth h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: .2em; }
.pg-auth__lead { color: var(--ink-2); margin-bottom: 22px; }
.pg-field { margin: 0 0 16px; }
.pg-field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.pg-auth .input-text { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--card); border: 1px solid #CFC5BA; border-radius: 10px; padding: 12px 14px; }
.pg-auth .input-text:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pg-auth__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 20px; font-size: .92rem; }
.pg-auth__row a { color: var(--accent); font-weight: 600; text-decoration: none; }
.pg-auth__row a:hover { text-decoration: underline; }
.pg-check { display: inline-flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; cursor: pointer; }
.pg-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.pg-auth__submit { width: 100%; min-height: 50px; }
.pg-auth__perks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.pg-auth__perks li { display: flex; gap: 12px; align-items: center; font-size: .96rem; }
.pg-auth__perks .pg-icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
.pg-auth__note { font-size: .9rem; color: var(--ink-2); }
.pg-optin { margin: 6px 0 18px; }
.pg-auth .woocommerce-privacy-policy-text { font-size: .82rem; color: var(--ink-2); }
.woocommerce-MyAccount-navigation { float: none !important; width: auto !important; margin-bottom: 24px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.woocommerce-MyAccount-navigation a { display: block; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--accent); border-color: var(--accent); color: #fff; }
.woocommerce-MyAccount-content { float: none !important; width: auto !important; max-width: 980px; margin: 0 auto; background: var(--card); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .pg-auth { grid-template-columns: minmax(0, 1fr); }
  .pg-auth__register { border-left: 0; border-top: 1px solid var(--line); }
  .pg-account span { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .pg-account { transition: color .2s ease; } }

/* ================= B2B "trade catalogue" (0.3.0): thin rules instead of shadows, product codes, enquiry list ================= */
:root { --page: #FBFAF7; --radius: 6px; --shadow: none; --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.pg-eyebrow, .pg-code, .pg-facts, .pg-order__steps .pg-mono, .pg-cats-grid__count { font-family: var(--mono); letter-spacing: .02em; }
.pg-eyebrow { font-size: .78rem; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }

/* top contact line */
.pg-topbar { background: var(--ink); color: #EDE7E0; font-size: .82rem; }
.pg-topbar__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.pg-topbar p { margin: 0; display: flex; gap: 20px; align-items: center; }
.pg-topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pg-topbar a:hover { text-decoration: underline; }
.pg-topbar .pg-icon { width: 16px; height: 16px; }

/* enquiry list link in the header */
.pg-cart { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 10px; }
.pg-cart:hover { border-color: var(--accent); color: var(--accent); }
.pg-cart__label { font-size: .95rem; }
.pg-cart-count[hidden] { display: none; }

/* cards: bordered catalogue tiles */
ul.products li.product, .pg-cats-grid a { box-shadow: none; border: 1px solid var(--line); }
ul.products li.product:hover, .pg-cats-grid a:hover { box-shadow: none !important; border-color: #CFC4B7; }
.pg-code { display: block; font-size: .78rem; color: var(--ink-2); margin: 0 14px 12px; }
.pg-add { display: flex; gap: 8px; margin: auto 14px 0; }
.pg-add__qty { width: 68px; flex: none; min-height: 42px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 8px; font: inherit; font-size: .95rem; text-align: center; background: var(--card); color: var(--ink); }
.pg-add__qty:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pg-add .pg-btn { flex: 1; min-height: 42px; padding: 0 12px; font-size: .92rem; border-radius: var(--radius); white-space: nowrap; }
.pg-add--single { margin: 18px 0 12px; max-width: 420px; }
.pg-add--single .pg-add__qty { width: 90px; min-height: 50px; }
.pg-add--single .pg-btn { min-height: 50px; }
.single-product .pg-code { margin: 0 0 6px; font-size: .85rem; }
.pg-b2b-note { color: var(--ink-2); font-size: .95rem; margin: 6px 0 0; }
.pg-wa-line { margin: 0 0 18px; }
.pg-wa .pg-icon { width: 20px; height: 20px; }

/* home */
.pg-facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.pg-facts div { display: flex; flex-direction: column; }
.pg-facts dt { font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.pg-facts dd { margin: 0; font-size: .78rem; color: var(--ink-2); text-transform: uppercase; }
.pg-cats-grid__count { font-size: .8rem; }
.pg-order__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.pg-order__steps li { padding: 18px 18px 6px 0; display: flex; flex-direction: column; gap: 6px; }
.pg-order__steps li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.pg-order__steps .pg-mono { color: var(--accent); font-size: .8rem; }
.pg-order__steps strong { font-family: var(--serif); font-size: 1.2rem; }
.pg-order__steps span:last-child { color: var(--ink-2); font-size: .95rem; }

/* enquiry page */
.pg-enq { padding: clamp(32px, 5vw, 64px) 0; }
.pg-enq__head { max-width: 720px; margin-bottom: 28px; }
.pg-enq__empty { background: var(--card); border: 1px dashed #CFC4B7; border-radius: var(--radius); padding: 22px; }
.pg-enq__empty[hidden], .pg-enq__table[hidden] { display: none; }
.pg-enq__table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
.pg-enq__table th { text-align: left; font: 600 .78rem/1 var(--mono); text-transform: uppercase; color: var(--ink-2); padding: 12px; border-bottom: 1px solid var(--ink); }
.pg-enq__table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pg-enq__img { width: 76px; }
.pg-enq__img img { width: 64px; height: 80px; object-fit: cover; background: var(--soft); }
.pg-enq__name a { font-weight: 600; text-decoration: none; display: block; }
.pg-enq__name a:hover { color: var(--accent); }
.pg-enq__name .pg-mono { font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }
.pg-enq__qty input { width: 96px; }
.pg-enq__note input { width: 100%; min-width: 140px; }
.pg-enq__table input { min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 10px; font: inherit; font-size: .95rem; background: var(--page); color: var(--ink); }
.pg-enq__del { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-2); padding: 4px 8px; }
.pg-enq__del:hover { color: var(--error); }
.pg-enq__more { margin: 16px 0 40px; }
.pg-enq__send { max-width: 860px; border-top: 1px solid var(--ink); padding-top: 24px; }
.pg-enq__send .pg-notice[hidden], .pg-enq__send [hidden] { display: none; }
.pg-enq__code input { max-width: 200px; font-family: var(--mono); font-size: 1.3rem; letter-spacing: .3em; }
.pg-enq__code .pg-link { background: none; border: 0; cursor: pointer; font: inherit; margin-left: 12px; color: var(--accent); text-decoration: underline; }
.pg-enq__direct { color: var(--ink-2); margin-top: 18px; }
.pg-form.is-busy { opacity: .6; pointer-events: none; }

/* "added" toast */
.pg-toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: .95rem; z-index: 60; max-width: calc(100% - 32px); opacity: 0; }
.pg-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.pg-toast a { color: #fff; font-weight: 600; margin-left: 6px; }

@media (max-width: 960px) {
  .pg-order__steps { grid-template-columns: 1fr 1fr; }
  .pg-order__steps li, .pg-order__steps li + li { padding: 16px 12px 12px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .pg-topbar__row > p:first-child { display: none; }
  .pg-topbar__row { justify-content: center; }
  .pg-cart__label { display: none; }
}
@media (max-width: 560px) {
  .pg-topbar p { gap: 14px; font-size: .78rem; }
  .pg-add { flex-direction: column; }
  .pg-add__qty { width: 100%; }
  .pg-order__steps { grid-template-columns: 1fr; }
  .pg-enq__table thead { display: none; }
  .pg-enq__table, .pg-enq__table tbody, .pg-enq__table tr { display: block; }
  .pg-enq__table tr { display: grid; grid-template-columns: 72px 1fr auto; gap: 6px 10px; padding: 10px; border-bottom: 1px solid var(--line); }
  .pg-enq__table td { border: 0; padding: 0; }
  .pg-enq__img { grid-row: span 3; }
  .pg-enq__qty, .pg-enq__note { grid-column: 2 / 4; }
  .pg-enq__table td:last-child { grid-column: 3; grid-row: 1; }
}
@media (prefers-reduced-motion: no-preference) { .pg-toast { transition: transform .3s ease, opacity .3s ease; } }
.pg-nav a, .pg-account span, .pg-cart__label { white-space: nowrap; }
@media (max-width: 1240px) { .pg-account span { display: none; } }

/* ================= 0.4.0: steppers, password eye, avatar, account tabs, register ================= */
/* quantity: - [n] + */
.pg-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; flex: none; }
.pg-qty input { width: 46px; border: 0; text-align: center; font: inherit; font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--ink); background: transparent; padding: 0; min-height: 40px; }
.pg-qty input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.pg-step { width: 34px; border: 0; background: var(--soft); color: var(--ink); font: 600 1.15rem/1 var(--sans); cursor: pointer; padding: 0; }
.pg-step:hover { background: var(--accent-soft); color: var(--accent-dark); }
.pg-add .pg-qty { min-height: 42px; }
.pg-add--single .pg-qty input { width: 64px; min-height: 50px; font-size: 1.05rem; }
.pg-add--single .pg-step { width: 44px; }
.pg-enq__qty .pg-qty input { width: 64px; }
@media (max-width: 560px) { .pg-add .pg-qty { width: 100%; } .pg-add .pg-qty input { flex: 1; } }

/* password with eye */
.pg-pw { position: relative; display: block; }
.pg-pw .input-text { padding-right: 48px; }
.pg-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.pg-eye:hover, .pg-eye.is-on { color: var(--accent); }
.pg-eye.is-on::after { content: ""; position: absolute; width: 22px; height: 1.6px; background: currentColor; transform: rotate(-35deg); }
.woocommerce form .show-password-input { display: none !important; } /* WooCommerce's own toggle; ours replaces it */

/* header: initial + first name */
.pg-account--in { gap: 8px; }
.pg-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 600 .95rem/1 var(--sans); flex: none; }
.pg-account__name { font-weight: 600; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1240px) { .pg-account--in .pg-account__name { display: inline; } }
@media (max-width: 560px) { .pg-account__name { display: none !important; } }

/* account page: one tab row with a clear rule, content right under it */
.woocommerce-account .pg-page h1 { margin-bottom: 18px; }
.woocommerce-MyAccount-navigation { margin: 0 0 28px !important; border-bottom: 1.5px solid var(--ink); }
.woocommerce-MyAccount-navigation ul { justify-content: flex-start; gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.woocommerce-MyAccount-navigation li { flex: none; }
.woocommerce-MyAccount-navigation a { background: none; border: 0; border-radius: 0; padding: 12px 18px 11px; margin-bottom: -1.5px; border-bottom: 3px solid transparent; color: var(--ink-2); font-size: .98rem; }
.woocommerce-MyAccount-navigation a:hover { color: var(--ink); }
.woocommerce-MyAccount-navigation .is-active a { background: none; color: var(--ink); border-bottom-color: var(--accent); }
.woocommerce-MyAccount-navigation-link--customer-logout { margin-left: auto; }
.woocommerce-MyAccount-content { max-width: none; margin: 0; background: none; padding: 0; border-radius: 0; }
.woocommerce-account .pg-page--wc .pg-wc { max-width: 980px; }
.pg-dash__hello { font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--serif); margin-bottom: 18px; }
.pg-dash { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pg-dash a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pg-dash a:hover { border-color: var(--accent); }
.pg-dash strong { font-size: 1.05rem; }
.pg-dash span { color: var(--ink-2); font-size: .92rem; }
.pg-dash__help { color: var(--ink-2); }
.pg-verify { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.pg-verify h2 { font-size: 1.3rem; }
.pg-mine { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
.pg-mine th, .pg-mine td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pg-mine th { font: 600 .78rem/1 var(--mono); text-transform: uppercase; color: var(--ink-2); border-bottom-color: var(--ink); }

/* login / register pages */
.pg-auth { border-radius: var(--radius); box-shadow: none; border: 1px solid var(--line); }
.pg-auth--register { max-width: 720px; }
.pg-auth h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .2em; }
.pg-auth__switch { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.pg-auth__switch a { color: var(--accent); font-weight: 600; }
.pg-reg__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pg-field--wide { grid-column: 1 / -1; }
.pg-reg .pg-field { margin: 0 0 14px; }
.pg-reg .pg-field > label, .pg-reg .pg-field > span > label:not(.screen-reader-text) { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.pg-reg .input-text, .pg-verify .input-text { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--card); border: 1px solid #CFC5BA; border-radius: var(--radius); padding: 11px 13px; }
.pg-reg .input-text:focus, .pg-verify .input-text:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pg-phone { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
.pg-code-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pg-code-row .input-text { max-width: 170px; font-family: var(--mono); letter-spacing: .25em; }
.pg-code-row .pg-btn { min-height: 46px; }
.pg-reg__msg, .pg-reg__hint { display: block; font-size: .9rem; margin: 6px 0 0; min-height: 1.2em; }
.pg-reg__hint { margin: -6px 0 10px; }
.is-ok { color: #2E7D4F; }
.is-bad { color: var(--error); }
.pg-reg .pg-optin { margin: 6px 0 16px; }
.pg-enq__gate { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pg-enq__gate .pg-actions { margin: 0; }
.pg-enq__as { color: var(--ink-2); }
.pg-enq__as a { color: var(--accent); margin-left: 6px; }
@media (max-width: 560px) {
  .pg-reg__grid { grid-template-columns: 1fr; }
  .pg-phone { grid-template-columns: 110px 1fr; }
  .woocommerce-MyAccount-navigation a { padding: 10px 12px 9px; font-size: .92rem; }
}
/* 0.4.1 fixes */
.woocommerce-account .pg-page--wc .pg-wc { margin-inline: auto; }
.pg-account .pg-avatar { display: grid !important; }
@media (max-width: 560px) {
  .woocommerce-MyAccount-navigation a { padding: 10px 9px 9px; font-size: .86rem; }
  .woocommerce-MyAccount-navigation-link--customer-logout { margin-left: 0; }
}
.pg-add { flex-wrap: wrap; }
.pg-add .pg-btn { flex: 1 1 120px; }
/* 0.4.3: header never overlaps when logged in */
.pg-logo { flex: none; }
@media (min-width: 1061px) {
  .pg-nav { flex: none; }
  .pg-search { min-width: 0; flex: 0 1 auto; }
  .pg-search input { min-width: 60px; width: clamp(60px, 17vw, 240px); }
}
.pg-account, .pg-cart { flex: none; }
@media (max-width: 1180px) { .pg-account--in .pg-account__name { display: none !important; } }
@media (min-width: 861px) and (max-width: 1060px) {
  .pg-header__row { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 8px 22px; }
  .pg-account { margin-left: auto; }
  .pg-search { order: 4; flex: 1 1 100%; margin: 0 0 12px; }
  .pg-search input { width: 100%; }
}

/* ================= 0.5.0: search-first home, phone header with menu, bottom bar ================= */
/* home: find a piece first, the catalogue index beside it */
.pg-find-hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.pg-find-hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: clamp(36px, 4.5vw, 60px); }
.pg-find-hero h1 { font-size: clamp(2.1rem, 4.1vw, 3.5rem); max-width: 20ch; margin-bottom: .35em; }
.pg-find-hero__lead { font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: var(--ink-2); max-width: 52ch; margin-bottom: 24px; }
.pg-find { position: relative; max-width: 640px; }
.pg-find__box { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 10px; padding: 6px 6px 6px 16px; }
.pg-find__box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pg-find__box > .pg-icon { color: var(--ink-2); }
.pg-find__box input[type="search"] { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.08rem; padding: 10px 0; color: var(--ink); }
.pg-find__box input:focus { outline: none; }
.pg-find__box input::placeholder { color: var(--ink-2); }
.pg-find__box .pg-btn { min-height: 46px; padding: 0 22px; border-radius: 7px; flex: none; }
.pg-find__results { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(42, 37, 34, .16); overflow: hidden; }
.pg-find__results ul { list-style: none; margin: 0; padding: 6px; }
.pg-find__results li a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 6px; text-decoration: none; }
.pg-find__results li a:hover, .pg-find__results li a:focus-visible { background: var(--soft); outline: none; }
.pg-find__results img, .pg-find__results li a > span:first-child { width: 48px; height: 60px; object-fit: cover; border-radius: 4px; background: var(--soft); }
.pg-find__name { font-weight: 600; line-height: 1.25; }
.pg-find__code { font: .78rem/1 var(--mono); color: var(--ink-2); }
.pg-find__all { display: block; padding: 12px 16px; border-top: 1px solid var(--line); font-weight: 600; color: var(--accent); text-decoration: none; }
.pg-find__all:hover, .pg-find__all:focus-visible { background: var(--accent-soft); outline: none; }
.pg-find__none { margin: 0; padding: 16px; color: var(--ink-2); }
.pg-find__none a { color: var(--accent); font-weight: 600; }
.pg-find__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }
.pg-find__popular span { font-size: .92rem; color: var(--ink-2); margin-right: 4px; }
.pg-find__popular a { padding: 7px 14px; border: 1px solid #CFC4B7; border-radius: 999px; background: var(--card); text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.pg-find__popular a:hover { border-color: var(--accent); color: var(--accent); }
.pg-find-hero__wa { margin: 20px 0 0; color: var(--ink-2); font-size: .95rem; }
.pg-find-hero__wa a { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pg-find-hero__wa a:hover { text-decoration: underline; }
.pg-find-hero__wa .pg-icon { width: 18px; height: 18px; }

/* catalogue index: a contents page with photo, name and piece count */
.pg-index { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.pg-index__title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 14px 18px 12px; font-size: 1.2rem; border-bottom: 1.5px solid var(--ink); }
.pg-index__title a { color: var(--accent); text-decoration: none; font: 600 .95rem var(--sans); }
.pg-index__title a:hover { text-decoration: underline; }
.pg-index ul { list-style: none; margin: 0; padding: 0; }
.pg-index li + li { border-top: 1px solid var(--line); }
.pg-index li a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 7px 18px; text-decoration: none; }
.pg-index li:last-child a { border-radius: 0 0 10px 10px; }
.pg-index__img { display: block; width: 40px; height: 50px; border-radius: 4px; overflow: hidden; background: var(--soft); }
.pg-index__img img { width: 100%; height: 100%; object-fit: cover; }
.pg-index__name { font-weight: 600; }
.pg-index__count { font: .85rem/1 var(--mono); color: var(--ink-2); }
.pg-index li a:hover { background: var(--soft); }
.pg-index li a:hover .pg-index__name { color: var(--accent); }

/* menu button and contact links: phone only */
.pg-menu-btn, .pg-nav__contact { display: none; }
.pg-menu-btn { place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); cursor: pointer; padding: 0; flex: none; }
.pg-menu-btn .pg-icon:last-child, .pg-header.is-menu .pg-menu-btn .pg-icon:first-child { display: none; }
.pg-header.is-menu .pg-menu-btn .pg-icon:last-child { display: block; }

/* bottom bar: phone only */
.pg-tabbar { display: none; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(42, 37, 34, .06); }
.pg-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; text-decoration: none; font-size: .74rem; font-weight: 600; color: var(--ink-2); }
.pg-tabbar a[aria-current] { color: var(--accent); }
.pg-tabbar a:active { background: var(--soft); }
.pg-tabbar__icon { position: relative; display: inline-flex; }
.pg-tabbar__count { position: absolute; top: -6px; right: -13px; background: var(--accent); color: #fff; font-size: .7rem; min-width: 18px; padding: 2px 5px; border-radius: 999px; text-align: center; line-height: 1.2; }
.pg-tabbar__count[hidden] { display: none; }

@media (max-width: 860px) {
  .pg-topbar { display: none; }
  .pg-header__row { min-height: 60px; padding-top: 0; gap: 0 8px; }
  .pg-logo { margin-right: auto; }
  .pg-cart { display: none; }
  .pg-account { order: 2; padding: 10px 8px; }
  .pg-menu-btn { display: grid; order: 3; }
  .pg-nav { display: none; order: 5; flex: 1 1 100%; -webkit-mask-image: none; mask-image: none; overflow: visible; white-space: normal; padding: 0 0 14px; border-top: 1px solid var(--line); gap: 0; }
  .pg-header.is-menu .pg-nav { display: flex; flex-direction: column; }
  .pg-nav a { padding: 13px 2px; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
  .pg-nav__contact { display: flex; flex-direction: column; padding-top: 6px; }
  .pg-nav__contact a { display: flex; align-items: center; gap: 10px; border: 0; padding: 10px 2px; font-size: .98rem; color: var(--accent); }
  .pg-search { order: 4; margin: 0 0 12px; }
  .home .pg-header .pg-search { display: none; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .pg-tabbar { display: grid; }
  .pg-toast { bottom: calc(74px + env(safe-area-inset-bottom)); }

  .pg-find-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 22px 26px; }
  .pg-find-hero h1 { font-size: clamp(1.9rem, 7.6vw, 2.7rem); }
  .pg-find-hero__lead { margin-bottom: 16px; }
  .pg-find__box { padding-left: 12px; gap: 8px; }
  .pg-find__box .pg-btn { padding: 0 16px; }
  .pg-find__popular { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .pg-find__popular::-webkit-scrollbar, .pg-index ul::-webkit-scrollbar { display: none; }
  .pg-find__popular span, .pg-find__popular a { flex: none; }
  .pg-find-hero__wa { margin-top: 16px; }
  .pg-index { background: none; border: 0; border-radius: 0; }
  .pg-index__title { padding: 0 0 10px; border-bottom: 0; }
  .pg-index ul { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .pg-index li { flex: 0 0 116px; scroll-snap-align: start; }
  .pg-index li + li { border-top: 0; }
  .pg-index li a, .pg-index li:last-child a { display: block; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  .pg-index__img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 0; }
  .pg-index__name { display: block; padding: 8px 10px 0; font-size: .9rem; line-height: 1.2; }
  .pg-index__count { display: block; padding: 4px 10px 9px; font-size: .78rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .pg-find__results:not([hidden]) { animation: pg-drop .3s cubic-bezier(.16, 1, .3, 1); }
  .pg-find.is-busy .pg-find__box > .pg-icon { animation: pg-pulse .7s ease-in-out infinite alternate; }
  .pg-index li a, .pg-find__popular a, .pg-tabbar a { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
}
@keyframes pg-drop { from { opacity: 0; transform: translateY(-6px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes pg-pulse { to { color: var(--accent); transform: scale(1.12); } }
/* desktop index: the 8 biggest categories, the rest behind one link; the phone rail shows them all */
.pg-index li.pg-index__more a { grid-template-columns: minmax(0, 1fr) auto; color: var(--accent); padding-block: 14px; }
.pg-index li.pg-index__more .pg-index__name { color: var(--accent); }
@media (min-width: 861px) { .pg-index li.pg-index__extra { display: none; } }
@media (max-width: 860px) { .pg-index li.pg-index__more { display: none; } }
/* 0.5.2: search box without the browser's blue clear button; shop categories as one swipe row on phones */
.pg-find__box input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
@media (max-width: 860px) {
  .pg-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 14px; margin-bottom: 18px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .pg-cats::-webkit-scrollbar { display: none; }
  .pg-cats a { flex: none; white-space: nowrap; }
}
/* 0.5.3: phones stack quantity over the button; the 120px row basis must not become the button's height */
@media (max-width: 560px) {
  .pg-add .pg-btn { flex: 0 0 auto; min-height: 40px; padding: 0 10px; font-size: .9rem; }
  .pg-add .pg-qty { min-height: 38px; }
  .pg-add .pg-qty input { min-height: 38px; }
  .pg-add--single .pg-btn { min-height: 48px; font-size: 1rem; }
  .pg-add--single .pg-qty, .pg-add--single .pg-qty input { min-height: 46px; }
  .pg-wa-line .pg-btn { width: 100%; }
}
