/* Pic2Pro Store: site styles.
   Every brand decision is a token below. Colours come from the child theme's theme.json
   palette (the fallbacks are the neutral parent look); a child overrides the type, shape and
   surface tokens in its own CSS and adds its flourishes (e.g. .p2p-decor, .p2p-face-*).
   WooCommerce screens: store-woocommerce.css. */

/* ---------- Tokens ---------- */
:root {
  /* Colour roles (theme.json palette slugs) */
  --p2p-dark: var(--wp--preset--color--dark, #111214);              /* hero, page heads, visit, footer, card cases */
  --p2p-light: var(--wp--preset--color--light, #F1F2F4);            /* content ground */
  --p2p-ink: var(--wp--preset--color--ink, #111111);                /* headings and strong text on light */
  --p2p-ink-soft: var(--wp--preset--color--ink-soft, #3A3F45);      /* body text on light */
  --p2p-on-dark: var(--wp--preset--color--on-dark, #F4F5F6);        /* headings on dark */
  --p2p-on-dark-body: var(--wp--preset--color--on-dark-body, #C9CDD2);
  --p2p-muted: var(--wp--preset--color--muted, #9AA0A8);            /* secondary text on dark */
  --p2p-accent: var(--wp--preset--color--accent, #2563EB);          /* actions only */
  --p2p-accent-light: var(--wp--preset--color--accent-light, #60A5FA);
  --p2p-accent-deep: var(--wp--preset--color--accent-deep, #1D4ED8);
  --p2p-accent-ink: var(--wp--preset--color--accent-ink, #FFFFFF);  /* text on accent */
  --p2p-feature: var(--wp--preset--color--feature, #1E2A3A);        /* categories band */
  --p2p-feature-deep: var(--wp--preset--color--feature-deep, #121A26);
  --p2p-alert: var(--wp--preset--color--alert, #D3121A);            /* sold stamp, errors */

  /* Surfaces built from the roles */
  --p2p-label-bg: var(--p2p-accent);
  --p2p-edge-bg: var(--p2p-accent);
  --p2p-signup-bg: var(--p2p-accent);
  --p2p-window-bg: radial-gradient(ellipse at 50% 0%, #2C2D31 0%, #111113 72%);
  --p2p-card-border: rgba(255, 255, 255, 0.24);
  --p2p-line: color-mix(in srgb, var(--p2p-ink) 16%, var(--p2p-light));
  --p2p-dark-raised: color-mix(in srgb, var(--p2p-dark) 90%, #fff);

  /* Type */
  --p2p-font: var(--wp--preset--font-family--brand, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
  --p2p-display-weight: 800;
  --p2p-display-style: normal;
  --p2p-display-stretch: 100%;
  --p2p-display-transform: none;
  --p2p-display-leading: 1.04;
  --p2p-button-stretch: 100%;
  --p2p-button-weight: var(--p2p-display-weight);

  /* Secondary ("dark") buttons: WooCommerce's plain buttons, search, "Shop all". A child whose
     accent equals its dark colour sets the ink to a light colour so the label stays readable. */
  --p2p-btn2-bg: var(--p2p-dark);
  --p2p-btn2-ink: var(--p2p-accent);
  --p2p-btn2-ink-hover: var(--p2p-accent-light);

  /* Shape */
  --p2p-radius: 6px;
  --p2p-card-radius: 14px;
  --p2p-point: 0px;      /* depth of the point every band ends in; 0 = straight edge */
  --p2p-edge-w: 6px;     /* accent line along the bottom of a band */

  /* Layout */
  --p2p-maxw: 1200px;
  --p2p-gutter: clamp(20px, 4vw, 40px);
  --p2p-bar-h: 68px;

  /* Docking logo: starts at --p2p-logo-w in the hero, ends at --p2p-logo-dock-w in the bar */
  --p2p-logo-w: min(600px, 78vw);
  --p2p-logo-top: 84px;
  --p2p-logo-dock-w: 116px;
  --p2p-logo-dock-top: 4px;
  --p2p-dock-range: 400px;   /* keep at or below ~0.7 x --p2p-logo-w */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--p2p-dark); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--p2p-dark);
  color: var(--p2p-on-dark);
  font-family: var(--p2p-font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--p2p-accent); }
a:hover { color: var(--p2p-accent-light); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 7px #000;
}
.p2p-wrap { max-width: var(--p2p-maxw); margin-inline: auto; }
.p2p-skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--p2p-radius);
  background: var(--p2p-accent);
  color: var(--p2p-accent-ink);
  font-weight: 700;
}
.p2p-skip:focus { top: 12px; color: var(--p2p-accent-ink); }

.p2p-display {
  font-weight: var(--p2p-display-weight);
  font-style: var(--p2p-display-style);
  font-stretch: var(--p2p-display-stretch);
  text-transform: var(--p2p-display-transform);
  letter-spacing: -0.01em;
  line-height: var(--p2p-display-leading);
  text-wrap: balance;
}

/* ---------- Header and docking logo ---------- */
/* Without scroll-driven animation support (and without JS) the header simply scrolls away. */
.p2p-header { position: relative; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; height: var(--p2p-bar-h); }
.p2p-bar-bg {
  position: absolute;
  inset: 0;
  background: var(--p2p-dark);
  border-bottom: var(--p2p-bar-line, 2px solid var(--p2p-accent));
  opacity: 0;
}
.p2p-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--p2p-bar-h);
  max-width: var(--p2p-bar-maxw, 1280px);
  margin-inline: auto;
  padding: 0 var(--p2p-bar-pad, clamp(16px, 3vw, 32px));
}
.p2p-bar-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.p2p-bar-actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.p2p-nav {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--p2p-on-dark);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.p2p-nav:hover { color: var(--p2p-accent); }
.p2p-narrow { display: none; }

.p2p-logo {
  position: absolute;
  left: 50%;
  top: var(--p2p-logo-top);
  width: var(--p2p-logo-w);
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.65));
}
.p2p-logo img { width: 100%; }

@keyframes p2p-dock {
  from { width: var(--p2p-logo-w); top: var(--p2p-logo-top); }
  to { width: var(--p2p-logo-dock-w); top: var(--p2p-logo-dock-top); }
}
@keyframes p2p-bar-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@supports (animation-timeline: scroll()) {
  .p2p-header { position: sticky; }
  .p2p-logo {
    animation: p2p-dock linear both;
    animation-timeline: scroll(root);
    animation-range: 0px var(--p2p-dock-range);
  }
  .p2p-bar-bg {
    animation: p2p-bar-in linear both;
    animation-timeline: scroll(root);
    animation-range: 40px calc(var(--p2p-dock-range) * 0.8);
  }
}
/* Script fallback (store.js sets .p2p-js and --dock-p from 0 to 1) */
.p2p-js .p2p-header { position: sticky; }
.p2p-js .p2p-logo {
  width: calc(var(--p2p-logo-w) * (1 - var(--dock-p, 0)) + var(--p2p-logo-dock-w) * var(--dock-p, 0));
  top: calc(var(--p2p-logo-top) * (1 - var(--dock-p, 0)) + var(--p2p-logo-dock-top) * var(--dock-p, 0));
}
.p2p-js .p2p-bar-bg { opacity: var(--dock-p, 0); }

/* Every page except home starts docked: small logo, solid bar, no scroll effect. */
.p2p-docked .p2p-header { position: sticky; }
body.p2p-docked .p2p-logo { width: var(--p2p-logo-dock-w); top: var(--p2p-logo-dock-top); animation: none; }
body.p2p-docked .p2p-bar-bg { opacity: 1; animation: none; }

/* No logo image (or the child turned the hero logo off): the site name sits in the bar. */
body.p2p-no-hero-logo .p2p-header { position: sticky; }
body.p2p-no-hero-logo .p2p-bar-bg { opacity: 1; animation: none; }
body.p2p-no-hero-logo .p2p-logo { width: var(--p2p-logo-dock-w); top: var(--p2p-logo-dock-top); animation: none; }
.p2p-logo-text {
  top: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: auto !important;
  height: var(--p2p-bar-h);
  color: var(--p2p-on-dark);
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
  filter: none;
}
.p2p-logo-text:hover { color: var(--p2p-accent); }

/* Cart in the bar: icon with an accent count, hidden at zero. Rendered in two slots; one shows. */
.p2p-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--p2p-on-dark);
  text-decoration: none;
}
.p2p-cart:hover { color: var(--p2p-accent); }
.p2p-cart-ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p2p-cart-count {
  position: absolute;
  top: 2px;
  right: -1px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--p2p-accent);
  color: var(--p2p-accent-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 19px;
  text-align: center;
}
.p2p-cart-count.is-empty { display: none; }
.p2p-cart-slot { display: inline-flex; }
.p2p-cart-slot-left { display: none; }

/* ---------- Phone menu (860px and narrower) ----------
   The menu button sits left of the cart; it opens a full-height sheet under the bar
   (template-parts/menu-sheet.php). store.js sets html.p2p-menu-open; without JS, :target opens it. */
.p2p-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  color: var(--p2p-on-dark);
}
.p2p-menu-btn:hover { color: var(--p2p-accent); }
.p2p-menu-ico { position: relative; width: 22px; height: 16px; }
.p2p-menu-ico span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: top 0.2s ease, transform 0.2s ease, opacity 0.15s ease;
}
.p2p-menu-ico span:nth-child(1) { top: 0; }
.p2p-menu-ico span:nth-child(2) { top: 7px; }
.p2p-menu-ico span:nth-child(3) { top: 14px; }
:is(.p2p-menu-open, :has(#p2p-menu:target)) .p2p-menu-ico span:nth-child(1) { top: 7px; transform: rotate(45deg); }
:is(.p2p-menu-open, :has(#p2p-menu:target)) .p2p-menu-ico span:nth-child(2) { opacity: 0; }
:is(.p2p-menu-open, :has(#p2p-menu:target)) .p2p-menu-ico span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.p2p-menu {
  position: fixed;
  inset: var(--p2p-menu-top, calc(var(--p2p-bar-h) + var(--wp-admin--admin-bar--height, 0px))) 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--p2p-dark);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.p2p-menu.is-open, .p2p-menu:target { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
/* While open: the bar stays put, solid, with the logo docked (also from the top of the home page). */
html:is(.p2p-menu-open, :has(#p2p-menu:target)) { overflow: hidden; }
html:is(.p2p-menu-open, :has(#p2p-menu:target)) .p2p-header { position: sticky; }
html:is(.p2p-menu-open, :has(#p2p-menu:target)) .p2p-bar-bg { opacity: 1; animation: none; }
html:is(.p2p-menu-open, :has(#p2p-menu:target)) .p2p-logo { width: var(--p2p-logo-dock-w); top: var(--p2p-logo-dock-top); animation: none; }

.p2p-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 560px;
  margin-inline: auto;
  padding: 28px clamp(16px, 3vw, 32px) calc(32px + env(safe-area-inset-bottom, 0px));
}
.p2p-menu-inner:focus { outline: none; }
.p2p-menu-shop { width: 100%; }
.p2p-menu-title { margin-bottom: 10px; color: var(--p2p-muted); font-size: 14px; font-weight: 600; line-height: 1.3; }
.p2p-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.p2p-menu-head .p2p-menu-title { margin: 0; }
.p2p-menu-all {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  color: var(--p2p-accent);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.p2p-menu-all:hover { color: var(--p2p-accent-light); }
.p2p-menu-all .p2p-ico { width: 18px; height: 18px; margin: 0; stroke: currentColor; stroke-width: 2.2; }
.p2p-menu-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p2p-menu-tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.p2p-menu-tile {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: var(--p2p-radius);
  background: var(--p2p-label-bg);
  color: var(--p2p-accent-ink);
  font-weight: var(--p2p-display-weight);
  font-style: var(--p2p-display-style);
  font-stretch: var(--p2p-button-stretch);   /* tiles are actions: button width, not headline width */
  font-size: clamp(14px, 4.3vw, 16px);       /* one long word ("Warhammer") still fits a 320px phone */
  line-height: 1.05;
  overflow-wrap: break-word;
  hyphens: auto;
  letter-spacing: -0.01em;
  text-transform: var(--p2p-display-transform);
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.p2p-menu-tile:hover { color: var(--p2p-accent-ink); filter: brightness(1.07); transform: translateY(-2px); }
.p2p-menu-tile-alt { background: transparent; border-color: var(--p2p-accent); color: var(--p2p-accent); }
.p2p-menu-tile-alt:hover { color: var(--p2p-accent-light); border-color: var(--p2p-accent-light); filter: none; }
.p2p-menu-links {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--p2p-on-dark) 16%, transparent);
}
.p2p-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid color-mix(in srgb, var(--p2p-on-dark) 16%, transparent);
  color: var(--p2p-on-dark);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.p2p-menu-link:hover { color: var(--p2p-accent); }
.p2p-menu-link .p2p-ico { width: 20px; height: 20px; margin: 0; stroke-width: 2.2; }
.p2p-menu-visit { padding: 18px 18px 8px; border-radius: var(--p2p-card-radius); background: var(--p2p-feature); }
.p2p-menu-visit .p2p-menu-title { color: var(--p2p-on-dark-body); }
.p2p-menu-facts { margin: 0; padding: 0; list-style: none; }
.p2p-menu-fact {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 4px 0;
  color: var(--p2p-on-dark);
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
}
a.p2p-menu-fact:hover { color: var(--p2p-accent); }
.p2p-menu-fact .p2p-ico { margin: 0; }
.p2p-menu-message { margin-top: 2px; }
.p2p-menu-js .p2p-menu-close-nojs { display: none; }

/* ---------- Buttons and links ---------- */
.p2p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: var(--p2p-radius);
  font-family: inherit;
  font-weight: var(--p2p-button-weight);
  font-style: var(--p2p-display-style);
  font-stretch: var(--p2p-button-stretch);
  font-size: 16px;
  line-height: 1;
  text-transform: var(--p2p-display-transform);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.p2p-btn:hover { transform: translateY(-2px); }
.p2p-btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.p2p-btn-accent { background: var(--p2p-accent); color: var(--p2p-accent-ink); border-color: var(--p2p-accent-light) var(--p2p-accent-deep) var(--p2p-accent-deep) var(--p2p-accent-light); }
.p2p-btn-accent:hover { background: color-mix(in srgb, var(--p2p-accent) 82%, #fff); color: var(--p2p-accent-ink); }
.p2p-btn-ghost { background: transparent; color: var(--p2p-on-dark); border-color: color-mix(in srgb, var(--p2p-on-dark) 60%, transparent); }
.p2p-btn-ghost:hover { background: var(--p2p-on-dark); color: var(--p2p-dark); }
.p2p-btn-dark { background: var(--p2p-btn2-bg); color: var(--p2p-btn2-ink); border-color: var(--p2p-btn2-bg); }
.p2p-btn-dark:hover { background: color-mix(in srgb, var(--p2p-btn2-bg) 88%, #fff); color: var(--p2p-btn2-ink-hover); }
.p2p-btn-outline { background: transparent; color: var(--p2p-ink); border-color: color-mix(in srgb, var(--p2p-ink) 60%, transparent); }
.p2p-btn-outline:hover { background: var(--p2p-ink); color: var(--p2p-light); }
.p2p-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  color: var(--p2p-accent);
  font-weight: 800;
  font-style: var(--p2p-display-style);
  font-stretch: var(--p2p-button-stretch);
  font-size: 15px;
  text-transform: var(--p2p-display-transform);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.p2p-link:hover { color: var(--p2p-accent-light); }
.p2p-plain {
  display: inline-block;
  padding: 9px 0;
  color: var(--p2p-on-dark);
  font-size: 18px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--p2p-accent) 75%, transparent);
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.p2p-plain:hover { color: var(--p2p-accent); }
.p2p-plain-sm { color: var(--p2p-on-dark); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--p2p-accent) 75%, transparent); text-underline-offset: 4px; }
.p2p-plain-sm:hover { color: var(--p2p-accent); }

/* ---------- Bands ---------- */
/* Every band ends in a point (--p2p-point; 0 = straight) and overlaps the next band by that
   depth, so bands stack above the one that follows (front-page.php sets the z-index). */
.p2p-band { position: relative; margin-bottom: calc(-1 * var(--p2p-point)); }
.p2p-point { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--p2p-point)), 50% 100%, 0 calc(100% - var(--p2p-point))); }
/* A band with .p2p-edge shows --p2p-edge-w of its own background below its inner section: the edge line. */
.p2p-edge { padding-bottom: var(--p2p-edge-w); background: var(--p2p-edge-bg); }
.p2p-edge-dark { background: var(--p2p-dark); }
.p2p-band-hero { margin-top: calc(-1 * var(--p2p-bar-h)); }
.p2p-pad { padding: calc(var(--p2p-point) + 88px) var(--p2p-gutter) calc(var(--p2p-point) + 84px); }
.p2p-decor { position: absolute; inset: 0; pointer-events: none; }
.p2p-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: 44px;
}
.p2p-section-head h2 { font-size: clamp(30px, 4.2vw, 58px); }
.p2p-section-head p { max-width: 430px; }

/* ---------- Hero ---------- */
.p2p-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--p2p-logo-top) + var(--p2p-logo-w) * var(--p2p-logo-ratio, 0.71) + 28px) var(--p2p-gutter) calc(var(--p2p-point) + 72px);
  background: var(--p2p-dark);
  text-align: center;
}
body.p2p-no-hero-logo .p2p-hero { padding-top: calc(var(--p2p-bar-h) + 88px); }
.p2p-decor-hero { --p2p-decor-y: calc(var(--p2p-logo-top) + var(--p2p-logo-w) * var(--p2p-logo-ratio, 0.71) / 2); }  /* vertical centre of the logo */
.p2p-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 1080px;
  margin-inline: auto;
}
.p2p-hero h1 { font-size: clamp(30px, 4.4vw, 56px); color: var(--p2p-on-dark); }
.p2p-hero-lede { max-width: 640px; font-size: clamp(16px, 1.4vw, 19px); color: var(--p2p-on-dark-body); }
.p2p-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }
.p2p-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--p2p-on-dark);
  font-weight: 700;
  font-size: 16px;
}
.p2p-points li { display: flex; align-items: center; gap: 9px; }
.p2p-check { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--p2p-accent); stroke-width: 3; stroke-linecap: square; }

/* ---------- The card: a case, a label strip and a window ---------- */
/* Categories, products and the contact form all sit in one. */
.p2p-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: var(--p2p-dark);
  border: 2px solid var(--p2p-card-border);
  border-radius: var(--p2p-card-radius);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
}
.p2p-label {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: var(--p2p-radius);
  background: var(--p2p-label-bg);
  color: var(--p2p-accent-ink);
}
.p2p-label-text { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.p2p-label-kicker { font-size: 13px; font-weight: 600; line-height: 1.25; }
.p2p-label-name {
  font-weight: var(--p2p-display-weight);
  font-style: var(--p2p-display-style);
  font-stretch: var(--p2p-display-stretch);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: var(--p2p-display-transform);
}
.p2p-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 3px;
  min-width: 56px;
  padding-left: 12px;
  border-left: 2px solid color-mix(in srgb, var(--p2p-accent-ink) 32%, transparent);
  line-height: 1;
}
.p2p-badge-top { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.p2p-badge-main { font-size: 26px; font-weight: var(--p2p-display-weight); font-style: var(--p2p-display-style); font-stretch: var(--p2p-display-stretch); }
.p2p-badge-word { font-size: 16px; }
.p2p-window {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 8px;
  background: var(--p2p-window-bg);
}

/* ---------- Categories ---------- */
.p2p-categories { background: linear-gradient(180deg, var(--p2p-feature) 0%, var(--p2p-feature-deep) 100%); }
.p2p-categories .p2p-section-head h2 { color: var(--p2p-on-dark); }
.p2p-categories .p2p-section-head p { color: var(--p2p-on-dark-body); }
.p2p-cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.p2p-cat-main { grid-column: span 2; }
.p2p-cat-more { grid-column: span 3; }
.p2p-cat-window { height: 210px; }
.p2p-cat-more .p2p-cat-window { height: 150px; }
.p2p-cat-img { width: 100%; height: 100%; object-fit: cover; }
.p2p-cat-body { display: flex; flex-direction: column; flex-grow: 1; gap: 12px; padding: 16px 8px 4px; }
.p2p-cat-body p { font-size: 16px; line-height: 1.5; color: var(--p2p-on-dark-body); }
.p2p-cat-body .p2p-link { margin-top: auto; }

/* Fanned cards in a category window with no thumbnail. The child styles .p2p-face-{face}. */
.p2p-fan {
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 132px;
  margin-left: -66px;
  aspect-ratio: 5 / 7;
  border: 4px solid #F1F1F1;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--p2p-accent) 0%, var(--p2p-feature) 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 120%;
}
.p2p-fan-l { transform: rotate(-16deg); }
.p2p-fan-r { transform: rotate(16deg); }
.p2p-cat-more .p2p-fan { width: 104px; margin-left: -52px; }

/* ---------- Latest products ---------- */
.p2p-latest { background: var(--p2p-light); color: var(--p2p-ink); }
.p2p-latest .p2p-section-head p { color: var(--p2p-ink-soft); }
.p2p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.p2p-product { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.p2p-product:hover { transform: translateY(-6px); box-shadow: 0 28px 48px rgba(0, 0, 0, 0.38); }
.p2p-product .p2p-label { min-height: 100px; }
.p2p-product .p2p-label-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 19px; }
.p2p-product-link { color: inherit; text-decoration: none; }
.p2p-product-link:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.p2p-product-window { display: flex; align-items: center; justify-content: center; height: 280px; text-decoration: none; }
.p2p-product-window img { max-width: calc(100% - 28px); max-height: calc(100% - 28px); object-fit: contain; border-radius: var(--p2p-radius); }
.p2p-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  aspect-ratio: 5 / 7;
  padding: 14px;
  border: 2px dashed rgba(255, 255, 255, 0.42);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--p2p-on-dark-body);
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}
.p2p-stamp {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 12px 6px;
  border-radius: 4px;
  background: var(--p2p-alert);
  color: #fff;
  font-weight: 900;
  font-style: var(--p2p-display-style);
  font-stretch: var(--p2p-display-stretch);
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-5deg);
}
.p2p-sale { background: var(--p2p-accent); color: var(--p2p-accent-ink); }
.p2p-product-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-top: auto; padding: 14px 6px 4px; }
.p2p-price {
  color: var(--p2p-on-dark);
  font-weight: var(--p2p-display-weight);
  font-style: var(--p2p-display-style);
  font-stretch: var(--p2p-display-stretch);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.p2p-price del { margin-right: 6px; color: var(--p2p-muted); font-size: 0.62em; }
.p2p-price ins { text-decoration: none; }
.p2p-price-sold { color: var(--p2p-muted); text-decoration: line-through; }
.p2p-more { display: flex; justify-content: center; margin-top: 44px; }
.p2p-empty { max-width: 560px; font-size: 18px; }

/* ---------- Signup band ---------- */
.p2p-signup-band {
  padding: calc(var(--p2p-point) + 64px) var(--p2p-gutter) calc(var(--p2p-point) + 56px);
  background: var(--p2p-signup-bg);
  color: var(--p2p-accent-ink);
}
.p2p-signup-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; }
.p2p-signup-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; flex: 1 1 420px; min-width: 0; }
.p2p-signup-copy h2 { font-size: clamp(26px, 3.3vw, 46px); }
.p2p-signup-copy p { max-width: 560px; }
.p2p-signup-copy .p2p-btn { margin-top: 6px; }
.p2p-signup { display: flex; flex-direction: column; gap: 8px; flex: 1 1 340px; min-width: 0; max-width: 460px; }
.p2p-signup label { font-weight: 700; font-size: 16px; }
.p2p-signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.p2p-signup input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 2px solid var(--p2p-accent-ink);
  border-radius: var(--p2p-radius);
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 16px;
}
.p2p-signup-status { min-height: 1.4em; font-size: 15px; font-weight: 600; }

/* ---------- Visit + contact + map ---------- */
.p2p-visit { position: relative; padding: calc(var(--p2p-point) + 88px) var(--p2p-gutter) 96px; background: var(--p2p-dark); }
.p2p-visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px 56px; }
.p2p-visit-info { display: flex; flex-direction: column; gap: 18px; }
.p2p-visit-info h2 { font-size: clamp(30px, 3.6vw, 50px); color: var(--p2p-on-dark); }
.p2p-visit-info > p { max-width: 480px; color: var(--p2p-on-dark-body); }
.p2p-facts { display: flex; flex-direction: column; gap: 14px; margin: 10px 0 0; padding: 0; list-style: none; }
.p2p-fact { display: flex; align-items: flex-start; gap: 14px; }
.p2p-fact-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.p2p-fact-label { font-size: 14px; font-weight: 600; color: var(--p2p-muted); }
.p2p-fact-value { font-style: normal; font-size: 18px; line-height: 1.4; color: var(--p2p-on-dark); }
.p2p-ico { width: 24px; height: 24px; flex: none; margin-top: 3px; fill: none; stroke: var(--p2p-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p2p-visit-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.p2p-visit-form { min-width: 0; }
.p2p-map {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  margin-top: 48px;
  border: 2px solid var(--p2p-accent);
  border-radius: var(--p2p-card-radius);
  background: var(--p2p-dark-raised);
}
.p2p-map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  color: var(--p2p-on-dark-body);
  text-align: center;
}
.p2p-map-fallback .p2p-link { align-self: center; }
.p2p-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact form: a card with a label and a dark body */
.p2p-contact { position: relative; }
.p2p-contact-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 8px 6px; }
.p2p-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 14px; }
.p2p-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.p2p-field label { color: var(--p2p-on-dark); font-size: 15px; font-weight: 700; }
.p2p-optional { color: var(--p2p-muted); font-weight: 400; }
.p2p-field input,
.p2p-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid color-mix(in srgb, var(--p2p-dark) 75%, #fff);
  border-radius: var(--p2p-radius);
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.p2p-field textarea { min-height: 128px; resize: vertical; }
.p2p-field input::placeholder, .p2p-field textarea::placeholder { color: #6B7078; }
.p2p-contact-foot { padding-top: 2px; }
.p2p-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.p2p-notice { margin: 0; padding: 12px 14px; border-left: 4px solid var(--p2p-accent); border-radius: 4px; background: var(--p2p-dark-raised); color: var(--p2p-on-dark); font-weight: 600; }
.p2p-notice-error { border-left-color: var(--p2p-alert); }
.p2p-notice:focus { outline: none; }

/* ---------- Footer ---------- */
.p2p-footer { position: relative; padding: 48px var(--p2p-gutter) 40px; background: var(--p2p-dark); border-top: 2px solid var(--p2p-accent); }
.p2p-footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; }
.p2p-footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; flex: 1 1 340px; min-width: 0; }
.p2p-footer-brand img { width: 150px; }
.p2p-footer-name { color: var(--p2p-on-dark); font-size: 24px; }
.p2p-footer-about { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.p2p-footer-about p { max-width: 280px; color: var(--p2p-on-dark-body); }
.p2p-footer-about p.p2p-footer-contact { color: var(--p2p-muted); font-size: 15px; }
.p2p-footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 0 40px; flex: 1 1 340px; min-width: 0; max-width: 420px; }
.p2p-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--p2p-dark) 82%, #fff);
  color: var(--p2p-muted);
  font-size: 14px;
}
.p2p-legal-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.p2p-legal-link { color: var(--p2p-on-dark-body); text-decoration: underline; text-underline-offset: 3px; }
.p2p-legal-link:hover { color: var(--p2p-accent); }
.p2p-footer-note { flex-basis: 100%; }

/* ---------- Page head: the one header every non-home page wears ---------- */
.p2p-band-head { z-index: 5; }
.p2p-pagehead {
  position: relative;
  overflow: hidden;
  padding: 46px var(--p2p-gutter) calc(var(--p2p-point) + 46px);
  background: var(--p2p-dark);
}
.p2p-decor-head { --p2p-decor-y: -30px; }
.p2p-pagehead-inner { position: relative; display: flex; flex-direction: column; gap: 16px; }
.p2p-pagehead-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 48px; }
.p2p-pagehead-title { max-width: 18ch; color: var(--p2p-on-dark); font-size: clamp(34px, 5vw, 64px); }
.p2p-pagehead-long .p2p-pagehead-title { max-width: 30ch; font-size: clamp(26px, 3.3vw, 44px); line-height: 1.02; }
.p2p-pagehead-lede { max-width: 440px; color: var(--p2p-on-dark-body); }
.p2p-pagehead.p2p-pagehead-crumbs { padding-top: 22px; padding-bottom: calc(var(--p2p-point) + 18px); }
.p2p-buybox-title { margin: 4px 0 6px; color: var(--p2p-on-dark); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.06; }
.p2p-pagehead-lede p + p { margin-top: 0.6em; }
.p2p-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.p2p-crumbs li { display: inline-flex; align-items: center; min-width: 0; color: var(--p2p-muted); }
.p2p-crumbs li + li::before { content: "/"; margin: 0 10px; color: color-mix(in srgb, var(--p2p-muted) 60%, var(--p2p-dark)); }
.p2p-crumbs a { color: var(--p2p-on-dark-body); text-decoration: none; }
.p2p-crumbs a:hover { color: var(--p2p-accent); text-decoration: underline; text-underline-offset: 3px; }
.p2p-crumbs [aria-current] { overflow: hidden; max-width: 42ch; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Content area: the light ground under every page head ---------- */
/* The column's left edge always lines up with the page title above it. */
.p2p-body {
  position: relative;
  z-index: 1;
  padding: calc(var(--p2p-point) + 52px) var(--p2p-gutter) 96px;
  background: var(--p2p-light);
  color: var(--p2p-ink-soft);
}
.p2p-entry { font-size: 17px; }
.p2p-entry > * + * { margin-top: 1.05em; }
.p2p-entry > :first-child { margin-top: 0; }
.p2p-entry a:not(.p2p-btn):not(.wp-element-button):not(.button):not(.p2p-plain):not(.p2p-link):not(.p2p-product-link) {
  color: var(--p2p-ink);
  text-decoration: underline;
  text-decoration-color: var(--p2p-accent-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.p2p-entry a:not(.p2p-btn):not(.wp-element-button):not(.button):not(.p2p-plain):not(.p2p-link):not(.p2p-product-link):hover { color: var(--p2p-accent-deep); }
/* Reading styles apply to text pages only, never inside store screens or the contact block. */
.p2p-body-prose .p2p-entry { max-width: 72ch; }
.p2p-body-prose .p2p-entry h2,
.p2p-body-prose .p2p-entry h3,
.p2p-body-prose .p2p-entry h4 { color: var(--p2p-ink); }
.p2p-body-prose .p2p-entry h2 {
  margin-top: 1.7em;
  font-weight: var(--p2p-display-weight);
  font-style: var(--p2p-display-style);
  font-stretch: var(--p2p-display-stretch);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.02;
  text-transform: var(--p2p-display-transform);
}
.p2p-body-prose .p2p-entry h3 { margin-top: 1.5em; font-size: 20px; font-weight: 800; line-height: 1.25; }
.p2p-body-prose .p2p-entry ul, .p2p-body-prose .p2p-entry ol { padding-left: 1.3em; }
.p2p-body-prose .p2p-entry li + li { margin-top: 0.35em; }
.p2p-body-prose .p2p-entry blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--p2p-accent); }
.p2p-body-prose .p2p-entry img { border-radius: 8px; }
.p2p-body-prose .p2p-entry hr { border: 0; border-top: 1px solid var(--p2p-line); }
.p2p-body-prose .p2p-entry table { width: 100%; border-collapse: collapse; }
.p2p-body-prose .p2p-entry th, .p2p-body-prose .p2p-entry td { padding: 10px 12px; border-bottom: 1px solid var(--p2p-line); text-align: left; }
.p2p-meta { margin-bottom: 18px; color: var(--p2p-ink-soft); font-size: 15px; font-weight: 600; }
.alignwide, .alignfull { max-width: none; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text, figcaption { margin-top: 8px; color: var(--p2p-ink-soft); font-size: 14px; }

/* Light-ground versions of the visit block and ghost buttons */
.p2p-body .p2p-btn-ghost { color: var(--p2p-ink); border-color: color-mix(in srgb, var(--p2p-ink) 60%, transparent); }
.p2p-body .p2p-btn-ghost:hover { background: var(--p2p-ink); color: var(--p2p-light); }
.p2p-body .p2p-card .p2p-btn-ghost { color: var(--p2p-on-dark); border-color: color-mix(in srgb, var(--p2p-on-dark) 60%, transparent); }
.p2p-body .p2p-card .p2p-btn-ghost:hover { background: var(--p2p-on-dark); color: var(--p2p-dark); }
.p2p-body .p2p-visit-info h2 { color: var(--p2p-ink); font-size: clamp(28px, 3.2vw, 44px); }
.p2p-body .p2p-visit-info > p { color: var(--p2p-ink-soft); }
.p2p-body .p2p-fact-label { color: var(--p2p-ink-soft); }
.p2p-body .p2p-fact-value, .p2p-body .p2p-plain { color: var(--p2p-ink); }
.p2p-body .p2p-plain { text-decoration-color: var(--p2p-accent-deep); }
.p2p-body .p2p-plain:hover { color: var(--p2p-accent-deep); }
.p2p-body .p2p-ico { stroke: var(--p2p-accent-deep); }
.p2p-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Lists of posts and search results */
.p2p-results { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.p2p-result { padding: 20px 0; border-bottom: 1px solid var(--p2p-line); }
.p2p-result-title { margin-bottom: 6px; font-size: 21px; font-weight: 800; line-height: 1.25; }
.p2p-result-title a { color: var(--p2p-ink); text-decoration: none; }
.p2p-result-title a:hover { text-decoration: underline; text-decoration-color: var(--p2p-accent-deep); text-decoration-thickness: 2px; }
.p2p-pagination, .navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 2px solid var(--p2p-ink); border-radius: var(--p2p-radius); color: var(--p2p-ink); font-weight: 800; text-decoration: none; }
.page-numbers.current { background: var(--p2p-ink); color: var(--p2p-light); }
.page-numbers.dots { border-color: transparent; }

/* Search forms: WordPress and WooCommerce versions look the same */
.p2p-search-again { margin-bottom: 28px; }
.search-form, .woocommerce-product-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.search-form label { flex: 1 1 220px; min-width: 0; }
.search-field {
  flex: 1 1 220px;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 2px solid var(--p2p-ink);
  border-radius: var(--p2p-radius);
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 16px;
}
.search-submit, .woocommerce-product-search button {
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid var(--p2p-btn2-bg);
  border-radius: var(--p2p-radius);
  background: var(--p2p-btn2-bg);
  color: var(--p2p-btn2-ink);
  font: inherit;
  font-weight: var(--p2p-button-weight);
  font-style: var(--p2p-display-style);
  font-stretch: var(--p2p-button-stretch);
  text-transform: var(--p2p-display-transform);
  cursor: pointer;
}
.search-submit:hover, .woocommerce-product-search button:hover { color: var(--p2p-btn2-ink-hover); }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus { position: static !important; width: auto; height: auto; margin: 0; clip: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .p2p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .p2p-cat-main { grid-column: span 3; }
  .p2p-cat-main:first-child { grid-column: span 6; }
}
@media (min-width: 861px) {
  .p2p-menu { display: none; }
}
/* Phones and small tablets: menu button + cart left, logo centre, Shop right. The menu holds
   the nav links, so the bar keeps the same calm layout at every width down to 320px. */
@media (max-width: 860px) {
  .p2p-wide { display: none; }
  .p2p-narrow { display: inline; }
  .p2p-menu-btn { display: inline-flex; }
  .p2p-bar-nav { gap: 4px; }
  .p2p-bar-nav .p2p-nav { display: none; }
  .p2p-cart-slot-left { display: inline-flex; }
  .p2p-cart-slot-right { display: none; }
  .p2p-bar-shop { min-height: 40px; padding: 0 16px; }
}
@media (max-width: 760px) {
  :root { --p2p-logo-dock-w: 96px; --p2p-dock-range: 200px; }
}
@media (max-width: 640px) {
  .p2p-cat-main, .p2p-cat-main:first-child, .p2p-cat-more { grid-column: span 6; }
  .p2p-grid { grid-template-columns: minmax(0, 1fr); }
  .p2p-pagehead { padding-top: 34px; padding-bottom: calc(var(--p2p-point) + 34px); }
  .p2p-body { padding-top: calc(var(--p2p-point) + 36px); padding-bottom: 72px; }
}
/* Small phones: a slightly smaller docked logo keeps clear space on both sides of it. */
@media (max-width: 420px) {
  :root { --p2p-logo-dock-w: 84px; }
  .p2p-bar-shop { padding: 0 14px; }
}
@media (max-width: 340px) {
  :root { --p2p-logo-dock-w: 76px; }
}
/* The WordPress admin bar stops being fixed below 600px, so the sticky header returns to the top. */
@media (max-width: 600px) {
  .admin-bar .p2p-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .p2p-btn, .p2p-product, .p2p-menu, .p2p-menu.is-open, .p2p-menu-ico span, .p2p-menu-tile { transition: none; }
  .p2p-btn:hover, .p2p-product:hover, .p2p-menu-tile:hover { transform: none; }
  .p2p-menu { transform: none; }
}

/* ========== Optional looks (config) ==========
   Nothing below applies with the default config: each rule hangs off a body class that
   inc/setup.php adds only when a child turns the option on. */

/* Strip above the bar (copy 'strip') */
.p2p-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  padding: 7px var(--p2p-gutter);
  background: var(--p2p-dark);
  color: var(--p2p-on-dark);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: center;
}
.p2p-strip-more::before { content: "\00b7"; margin-right: 14px; color: var(--p2p-muted); }

/* Second line under a text logo (brand.logo_sub) */
.p2p-logo-sub,
.p2p-footer-mark .p2p-logo-sub {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.p2p-footer-mark { display: inline-flex; flex-direction: column; align-items: flex-start; }

/* Light frame (frame 'light'): the bar, hero, page heads and phone menu sit on the light ground.
   The dark tokens are remapped inside those areas, so every rule above keeps working. */
html:has(body.p2p-frame-light),
body.p2p-frame-light { background: var(--p2p-light); }
body.p2p-frame-light { color: var(--p2p-ink-soft); }
body.p2p-frame-light .p2p-footer { color: var(--p2p-on-dark-body); }
body.p2p-frame-light :is(.p2p-header, .p2p-band-hero, .p2p-band-head, .p2p-menu) {
  --p2p-dark: var(--p2p-light);
  --p2p-on-dark: var(--p2p-ink);
  --p2p-on-dark-body: var(--p2p-ink-soft);
  --p2p-muted: var(--p2p-ink-soft);
  --p2p-dark-raised: color-mix(in srgb, var(--p2p-light) 92%, var(--p2p-ink));
}
/* The phone menu's visit card stays on its feature colour, with light text. */
body.p2p-frame-light .p2p-menu-visit {
  --p2p-on-dark: var(--wp--preset--color--on-dark, #F4F5F6);
  --p2p-on-dark-body: var(--wp--preset--color--on-dark-body, #C9CDD2);
}
body.p2p-frame-light .p2p-logo-text { filter: none; }

/* Logo left, nav right (brand.header 'left'), desktop only; phones keep the centred logo. */
@media (min-width: 861px) {
  body.p2p-header-left .p2p-logo { left: max(var(--p2p-bar-pad, clamp(16px, 3vw, 32px)), calc((100% - var(--p2p-bar-maxw, 1280px)) / 2 + var(--p2p-bar-pad, clamp(16px, 3vw, 32px)))); transform: none; }
  body.p2p-header-left .p2p-logo-text { align-items: flex-start; }
  body.p2p-header-left .p2p-bar { justify-content: flex-end; }
  body.p2p-header-left .p2p-bar-actions { padding-left: clamp(14px, 2vw, 24px); border-left: 1px solid color-mix(in srgb, var(--p2p-on-dark) 28%, transparent); }
}

/* Print cards (card_style 'print'): a wall "window", the photo in its own shape inside it
   (in a frame, on deckled paper, or plain), and a gallery label below. Materials are tokens. */
.p2p-print { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.p2p-print.p2p-product:hover { transform: none; box-shadow: none; }
.p2p-print-window {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  background: var(--p2p-wall-bg, radial-gradient(ellipse 85% 75% at 50% 38%, color-mix(in srgb, var(--p2p-light) 60%, #fff) 0%, var(--p2p-light) 55%, color-mix(in srgb, var(--p2p-light) 92%, var(--p2p-ink)) 100%));
  text-decoration: none;
}
.p2p-print-in { position: absolute; inset: 11% 12% 13%; display: grid; place-items: center; container-type: size; }
.p2p-piece {
  --fw: 0px;   /* frame moulding */
  --mw: 0px;   /* mat, or the paper margin */
  display: block;
  width: min(100cqw, calc((100cqh - 2 * (var(--fw) + var(--mw))) * var(--ar, 0.8) + 2 * (var(--fw) + var(--mw))));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.p2p-piece img { display: block; width: 100%; height: auto; }
.is-photo .p2p-piece { box-shadow: 0 12px 18px -10px rgba(0, 0, 0, 0.4); }
.is-frame .p2p-piece {
  --fw: clamp(5px, 3.4cqw, 12px);
  --mw: clamp(7px, 7cqw, 22px);
  padding: var(--fw);
  background: var(--p2p-frame-bg, linear-gradient(135deg, #B27C45 0%, #8A5729 38%, #5A3716 100%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 0 3px rgba(0, 0, 0, 0.12), 0 22px 30px -16px rgba(50, 30, 10, 0.55), 0 4px 10px rgba(50, 30, 10, 0.16);
}
.p2p-mat {
  display: block;
  padding: var(--mw);
  background: var(--p2p-mat-bg, #F8F1E4);
  box-shadow: inset 1px 1px 3px rgba(60, 40, 20, 0.28), inset -1px -1px 0 rgba(255, 255, 255, 0.6);
}
.p2p-mat img { box-shadow: 0 0 0 2px #FFFBF3, 0 0 0 3px rgba(60, 40, 20, 0.14); }
.is-sheet .p2p-piece {
  --mw: clamp(7px, 5.5cqw, 18px);
  position: relative;
  padding: var(--mw);
  filter: drop-shadow(0 10px 9px rgba(60, 40, 20, 0.2)) drop-shadow(0 1px 1px rgba(60, 40, 20, 0.22));
}
.is-sheet .p2p-piece::before { content: ""; position: absolute; inset: 0; background: var(--p2p-paper-bg, #FCF8F0); filter: url(#p2p-deckle); }
.is-sheet .p2p-piece img { position: relative; }
.p2p-print:hover .p2p-piece { transform: translateY(-4px); }
.p2p-print.is-sold .p2p-piece img { filter: saturate(0.5); opacity: 0.8; }
.p2p-print .p2p-photo { width: 60%; border-color: color-mix(in srgb, var(--p2p-ink) 30%, transparent); background: transparent; color: var(--p2p-ink-soft); }
.p2p-print-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px 4px;
  border: 1px solid currentColor;
  background: var(--p2p-paper-bg, #FCF8F0);
  color: var(--p2p-alert);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.p2p-print-tag-sale { color: var(--p2p-ink); }
.p2p-print-label { padding-top: 14px; }
.p2p-print-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.p2p-print-name { margin: 0; color: var(--p2p-ink); font-size: 20px; font-weight: 600; line-height: 1.15; }
.p2p-print .p2p-price { color: var(--p2p-ink); font-size: 19px; font-weight: 500; font-style: normal; font-stretch: normal; letter-spacing: 0; white-space: nowrap; }
.p2p-print .p2p-price-sold { color: var(--p2p-ink-soft); }
.p2p-print-meta { margin-top: 4px; color: var(--p2p-ink-soft); font-size: 15.5px; line-height: 1.35; }
.p2p-print .p2p-product-link:hover { text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Sold, gallery style: a red dot and the word, in place of the price (print cards and the buy box). */
.p2p-sold-dot { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--p2p-ink); font-size: 16px; line-height: 1.2; white-space: nowrap; }
.p2p-sold-dot::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--p2p-alert);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.25), 0 1px 1px rgba(0, 0, 0, 0.15);
}
.p2p-print.is-sold .p2p-piece img { filter: saturate(0.7); opacity: 0.88; }

/* Print cards on the product page: the buy box opens with kicker + meta; a sold work hides the
   price and stock line (the red dot says it). */
.p2p-buybox-print { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.p2p-buybox-kicker { margin: 0; color: var(--p2p-ink); font-size: 13px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; }
.p2p-buybox-meta { margin: 0; color: var(--p2p-ink-soft); font-size: 17px; }
.p2p-buybox-print .p2p-sold-dot { margin-top: 10px; }
body.p2p-cards-print div.product.outofstock div.summary :is(p.price, .stock) { display: none; }

/* Product details as stacked sections (product_details 'stacked') */
.p2p-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 36px 72px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--p2p-line);
  color: var(--p2p-ink-soft);
}
.p2p-details-part { min-width: 0; }
.p2p-details-part > * + * { margin-top: 1em; }
.p2p-details-title { margin: 0 0 14px; color: var(--p2p-ink); font-size: 14px; font-weight: 700; font-style: normal; letter-spacing: 0.14em; line-height: 1.3; text-transform: uppercase; }
.woocommerce .p2p-details table.shop_attributes { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.woocommerce .p2p-details table.shop_attributes :is(th, td) {
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--p2p-line);
  background: none;
  font-style: normal;
  line-height: 1.4;
  text-align: left;
  vertical-align: top;
}
.woocommerce .p2p-details table.shop_attributes tr { display: table-row; }
.woocommerce .p2p-details table.shop_attributes :is(th, td) { display: table-cell; }
.woocommerce .p2p-details table.shop_attributes th { width: 42%; padding-right: 16px; color: var(--p2p-ink-soft); font-weight: 400; }
.woocommerce .p2p-details table.shop_attributes td { color: var(--p2p-ink); }
.woocommerce .p2p-details table.shop_attributes td p { margin: 0; padding: 0; }
.woocommerce .p2p-details table.shop_attributes tr:nth-child(even) :is(th, td) { background: none; }

/* Shop filter bar (shop_nav): category links left, count + sort right */
.p2p-shop-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.p2p-shop-nav-link { padding: 8px 0 6px; border-bottom: 2px solid transparent; color: var(--p2p-ink-soft); font-size: 17px; text-decoration: none; }
.p2p-shop-nav-link:hover { color: var(--p2p-ink); }
.p2p-shop-nav-link.is-current { border-bottom-color: var(--p2p-accent); color: var(--p2p-ink); }
.p2p-shop-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }

/* No price yet: "Price on request" in place of the price (card label and buy box) */
.p2p-price-request.p2p-price, .p2p-print .p2p-price-request { color: var(--p2p-ink-soft); font-size: 16px; font-style: italic; }
.p2p-buybox-request { margin: 4px 0 18px; color: var(--p2p-ink-soft); font-size: 19px; font-style: italic; }

/* Product grids swapped in for WooCommerce's block grids (cart "New in store" and the like) */
.p2p-block-grid { margin: 28px 0 8px; text-align: left; }

@media (max-width: 640px) {
  body.p2p-cards-print .p2p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .p2p-print-in { inset: 10% 9% 12%; }
  .p2p-print-name { font-size: 17px; }
  .p2p-print .p2p-price { font-size: 16px; }
  .p2p-print-meta { font-size: 14px; }
  .p2p-print-tag { top: 8px; left: 8px; font-size: 11px; }
}
@media (max-width: 560px) {
  .p2p-strip-more { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .p2p-piece { transition: none; }
  .p2p-print:hover .p2p-piece { transform: none; }
}
