/* Peterson — the few rules theme.json cannot express. Tokens come from theme.json presets. */
:root {
	--ph-ink: var(--wp--preset--color--contrast);
	--ph-muted: var(--wp--preset--color--muted);
	--ph-line: var(--wp--preset--color--line);
	--ph-accent: var(--wp--preset--color--accent);
	--ph-brass: var(--wp--preset--color--accent-2);
	--ph-brass-text: var(--wp--preset--color--accent-3);
	--ph-surface: var(--wp--preset--color--surface);
	--ph-base: var(--wp--preset--color--base);
	--ph-ease: var(--wp--custom--transition);
	--ph-topbar-h: 2.25rem;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-optical-sizing: auto; }
img { height: auto; max-width: 100%; }
::selection { background: var(--ph-brass); color: var(--ph-ink); }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--ph-brass-text);
	outline-offset: 3px;
	border-radius: 1px;
}
.has-accent-background-color :where(a, button):focus-visible,
.ph-hero :where(a, button):focus-visible { outline-color: var(--ph-brass); }
.screen-reader-text:not(:focus) {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus { background: var(--ph-base); color: var(--ph-ink); z-index: 100000; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }
:where(.wp-site-blocks) > footer { margin-block-start: 0; }

.ph-eyebrow {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ph-brass-text);
	margin: 0;
}
.ph-eyebrow a { color: inherit; text-decoration: none; }
.ph-section-title { margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.ph-section__head { margin-bottom: var(--wp--preset--spacing--50); gap: 1rem; }
.ph-link-arrow { margin: 0; font-size: var(--wp--preset--font-size--small); font-weight: 500; }
.ph-link-arrow a { color: var(--ph-ink); text-decoration: none; border-bottom: 1px solid var(--ph-brass); padding-bottom: 2px; }
.ph-link-arrow a::after { content: " →"; }
.ph-link-arrow a:hover { color: var(--ph-accent); border-color: var(--ph-accent); }
.ph-show-sm { display: none; }
@media (max-width: 600px) {
	.ph-hide-sm { display: none; }
	.ph-show-sm { display: inline; }
}

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: background-color var(--ph-ease), color var(--ph-ease), border-color var(--ph-ease); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--ph-ink); border-color: var(--ph-ink); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--ph-ink); color: var(--ph-base); }
.wp-block-button.is-style-light > .wp-block-button__link { background: var(--ph-base); color: var(--ph-ink); border-color: var(--ph-base); }
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: var(--ph-brass); border-color: var(--ph-brass); color: var(--ph-ink); }
.wp-block-button.is-style-outline-light > .wp-block-button__link { background: transparent; color: var(--ph-base); border-color: rgba(247, 244, 238, 0.7); }
.wp-block-button.is-style-outline-light > .wp-block-button__link:hover { background: var(--ph-base); color: var(--ph-ink); border-color: var(--ph-base); }

/* ---------- Header ---------- */
.ph-header { position: relative; z-index: 50; background: var(--ph-base); }
.ph-topbar { padding-block: 0.5rem; }
.ph-topbar__text { margin: 0; letter-spacing: 0.02em; line-height: 1.35; }
.ph-topbar a { color: var(--ph-brass); text-decoration: underline; text-underline-offset: 0.2em; }
.ph-topbar a:hover { color: var(--ph-base); }
.ph-header__bar { border-bottom: 1px solid var(--ph-line); background: var(--ph-base); }
.ph-header .ph-header__inner { min-height: 4.25rem; gap: 1.25rem; }
.ph-logo { margin: 0; flex: none; line-height: 0; }
.ph-logo img { width: clamp(140px, 14vw, 180px) !important; height: auto; display: block; }
.ph-nav { flex: 1 1 auto; justify-content: center; }
.ph-nav .wp-block-navigation-item__content { padding-block: 0.5rem; color: var(--ph-ink); }
.ph-nav > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { position: relative; }
.ph-nav > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 1px; background: var(--ph-brass);
	transform: scaleX(0); transform-origin: left; transition: transform var(--ph-ease);
}
.ph-nav .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.ph-nav .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.ph-nav .ph-nav__trade > .wp-block-navigation-item__content { color: var(--ph-brass-text); }
.ph-nav .wp-block-navigation__submenu-container {
	background: var(--ph-surface) !important; border: 1px solid var(--ph-line) !important;
	box-shadow: var(--wp--preset--shadow--soft); padding: 0.5rem 0 !important; min-width: 15rem !important;
	font-weight: 400;
}
.ph-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.45rem 1.1rem !important; }
.ph-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--ph-base); color: var(--ph-accent); }
.ph-nav .wp-block-navigation__submenu-icon { margin-left: 0.3em; width: 0.6em; height: 0.6em; }
.ph-header__tools { flex: none; }
.ph-header__tools > * { margin: 0; }
.ph-header .wp-block-search__button {
	background: transparent !important; border: 0 !important; color: var(--ph-ink) !important; padding: 0.5rem !important; margin: 0;
}
.ph-header .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
.ph-header .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.ph-header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper { border-bottom: 1px solid var(--ph-ink); }
.ph-header .wp-block-search__input { background: transparent; border: 0; font-size: 0.9375rem; min-width: 12rem; }
.ph-header .wc-block-customer-account a { padding: 0.5rem; color: var(--ph-ink); display: inline-flex; }
.ph-header .wc-block-customer-account svg { width: 22px; height: 22px; }
.ph-header .wc-block-mini-cart__button { padding: 0.5rem; color: var(--ph-ink); }
.ph-header .wc-block-mini-cart__icon { width: 24px; height: 24px; }
.ph-header .wc-block-mini-cart__badge { background: var(--ph-accent) !important; color: var(--ph-base) !important; border: 0; font-size: 0.6875rem; font-weight: 600; }

/* Mobile menu (core navigation overlay, always collapsed) */
.ph-mobile-menu { display: none; }
.ph-mnav .wp-block-navigation__responsive-container-open { padding: 0.5rem; margin-left: -0.5rem; color: var(--ph-ink); }
.ph-mnav .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }
.ph-mnav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 2.5rem; }
.ph-mnav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3rem; gap: 0; align-items: stretch; }
.ph-mnav .is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; align-items: stretch; }
.ph-mnav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { border-bottom: 1px solid var(--ph-line); padding-block: 0.85rem; width: 100%; align-items: flex-start; }
.ph-mnav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.2;
}
.ph-mnav .is-menu-open .wp-block-navigation__submenu-container {
	display: grid !important; grid-template-columns: 1fr 1fr; gap: 0.1rem 1rem; padding: 0.5rem 0 0 !important; width: 100%;
}
.ph-mnav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 0.9375rem; color: var(--ph-muted); padding-block: 0.35rem; }
.ph-mnav .is-menu-open .ph-mnav__secondary > .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--sans) !important; font-size: 1rem !important; }
.ph-mnav .is-menu-open .ph-mnav__search { width: 100%; margin-bottom: 1rem; }
.ph-mnav .is-menu-open .ph-mnav__social { margin-top: 1.5rem; }
.ph-mnav .wp-block-search__inside-wrapper { border: 1px solid var(--ph-line); background: var(--ph-surface); padding: 0; }
.ph-mnav .wp-block-search__input { border: 0; padding: 0.75rem; font-size: 1rem; background: transparent; }
.ph-mnav .wp-block-search__button { margin: 0; border: 0; border-radius: 0; }

@media (max-width: 1079px) {
	.ph-nav { display: none !important; }
	.ph-mobile-menu { display: block; }
	.ph-header .ph-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5rem; min-height: 3.75rem; }
	.ph-header .ph-header__tools { justify-self: end; gap: 0; }
	.ph-header .ph-logo { justify-self: center; }
}
@media (max-width: 600px) {
	.ph-header .ph-header__search { display: none; }
	.ph-logo img { width: 140px !important; }
}
@media (min-width: 1080px) {
	.ph-header { position: sticky; top: calc(-1 * var(--ph-topbar-h)); }
	.ph-topbar { height: var(--ph-topbar-h); padding-block: 0; display: flex; align-items: center; justify-content: center; }
	.admin-bar .ph-header { top: calc(32px - var(--ph-topbar-h)); }
}
.ph-checkout-header .ph-header__inner, .ph-checkout-header > .alignwide { min-height: 4.25rem; }
.ph-secure { margin: 0; color: var(--ph-muted); }
.ph-secure a { color: var(--ph-ink); }
.ph-secure__lock::before { content: "\1F512\FE0E"; margin-right: 0.4em; font-size: 0.9em; }

/* ---------- Home ---------- */
.ph-home > * { margin-block-start: 0; }
.ph-hero { padding-block: var(--wp--preset--spacing--70); }
.ph-hero.ph-hero { padding-inline: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2.5rem)); }
.ph-hero.ph-hero .wp-block-cover__inner-container { width: 100%; max-width: none; padding: 0; }
.ph-hero.ph-hero .ph-hero__content { margin-inline: auto !important; width: 100%; }
.ph-hero__content > * + * { margin-block-start: 1.25rem; }
.ph-hero h1 { line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
.ph-hero__lede { max-width: 34rem; opacity: 0.92; }
.ph-hero__ctas { margin-top: 2rem !important; gap: 0.75rem; }
@media (max-width: 781px) {
	.ph-hero { min-height: min(88svh, 720px) !important; align-items: flex-end !important; padding-block: 2.5rem; }
	.ph-hero .wp-block-cover__background {
		background: linear-gradient(0deg, rgba(14, 24, 21, 0.92) 0%, rgba(14, 24, 21, 0.78) 55%, rgba(14, 24, 21, 0.25) 100%) !important;
	}
	.ph-hero__ctas .wp-block-button { flex: 1 1 100%; }
	.ph-hero__ctas .wp-block-button__link { width: 100%; }
}

.ph-props .ph-props__grid { grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
.ph-props { border-bottom: 1px solid var(--ph-line); }
.ph-prop { padding-left: 1rem; border-left: 1px solid var(--ph-brass); }
.ph-prop p { margin: 0; }
.ph-prop__title { font-weight: 600; }
@media (max-width: 600px) {
	.ph-props .ph-props__grid { grid-template-columns: 1fr 1fr !important; gap: 1.25rem 1rem; }
	.ph-prop { padding-left: 0.75rem; }
}

.ph-tiles .ph-tiles__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 781px) { .ph-tiles .ph-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.5rem 1rem; } }
.ph-tile { position: relative; }
.ph-tile .wp-block-image { margin: 0; overflow: hidden; background: var(--ph-surface); }
.ph-tile .wp-block-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 600ms cubic-bezier(.2, .6, .2, 1); }
.ph-tile:hover .wp-block-image img { transform: scale(1.04); }
.ph-tile__title { margin: 0; font-size: var(--wp--preset--font-size--large); }
.ph-tile__title a { color: var(--ph-ink); text-decoration: none; }
.ph-tile__title a::after { content: ""; position: absolute; inset: 0; }
.ph-tile__title a:focus-visible { outline: none; }
.ph-tile:has(a:focus-visible) { outline: 2px solid var(--ph-brass-text); outline-offset: 4px; }
.ph-tile__title a::before { content: "→"; float: right; font-family: var(--wp--preset--font-family--sans); font-size: 0.9em; color: var(--ph-brass-text); transition: transform var(--ph-ease); }
.ph-tile:hover .ph-tile__title a::before { transform: translateX(3px); }

.ph-clocks__img { margin: 0 0 var(--wp--preset--spacing--40); }
.ph-clocks__img img { width: 100%; aspect-ratio: 4/5 !important; object-fit: cover; }
@media (min-width: 782px) { .ph-clocks__img img { aspect-ratio: 5/4 !important; } }

.ph-trade .ph-benefits { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(247, 244, 238, 0.18); }
.ph-benefits li { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: 0.25rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(247, 244, 238, 0.18); }
.ph-benefits strong { font-family: var(--wp--preset--font-family--serif); font-weight: 400; font-size: var(--wp--preset--font-size--large); color: var(--ph-base); line-height: 1.25; }
.ph-benefits span { color: var(--wp--preset--color--sage); font-size: var(--wp--preset--font-size--small); align-self: center; }
@media (max-width: 600px) { .ph-benefits li { grid-template-columns: 1fr; } }

.ph-quotes .ph-quotes__grid { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.ph-quote { margin: 0; padding: var(--wp--preset--spacing--50); background: var(--ph-surface); border: 1px solid var(--ph-line); display: flex; flex-direction: column; }
.ph-quote p { margin: 0 0 1rem; }
.ph-quote cite { margin-top: auto; font-family: var(--wp--preset--font-family--sans); font-style: normal; font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--ph-ink); }
.ph-quote cite::before { content: "— "; color: var(--ph-brass-text); }
.ph-stars { color: var(--ph-brass-text); letter-spacing: 0.15em; font-family: var(--wp--preset--font-family--sans) !important; }

/* ---------- Product cards (Product Collection) ---------- */
.ph-collection .wc-block-product-template { row-gap: var(--wp--preset--spacing--50) !important; column-gap: var(--wp--preset--spacing--40) !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.ph-collection .wc-block-product-template.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 1080px) { .ph-collection .wc-block-product-template.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.ph-collection .wc-block-product { text-align: left; display: flex; flex-direction: column; position: relative; }
.ph-collection .wc-block-components-product-image { margin: 0 0 0.85rem !important; background: var(--ph-surface); overflow: hidden; }
.ph-collection .wc-block-components-product-image img { aspect-ratio: 3/4 !important; width: 100%; object-fit: cover !important; object-position: center; transition: transform 600ms cubic-bezier(.2, .6, .2, 1); }
.ph-collection .wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.03); }
.ph-card__title { margin: 0 0 0.3rem !important; font-family: var(--wp--preset--font-family--sans); font-size: 0.9375rem !important; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.ph-card__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ph-ink); }
.ph-card__title a:hover { color: var(--ph-accent); text-decoration: underline; }
.ph-collection .wc-block-components-product-price { margin: 0 0 0.85rem; font-size: 0.9375rem; text-align: left; }
.ph-card__button { margin-top: auto !important; text-align: left; }
.ph-collection .wc-block-components-product-button { justify-content: flex-start; align-items: stretch; margin-top: auto; }
.ph-collection .wc-block-components-product-button .wp-block-button__link {
	background: transparent; color: var(--ph-ink); border: 1px solid var(--ph-line); width: 100%;
	font-size: 0.8125rem; padding: 0.7em 1em; justify-content: center;
}
.ph-collection .wc-block-components-product-button .wp-block-button__link:hover { background: var(--ph-accent); border-color: var(--ph-accent); color: var(--ph-base); }
.ph-collection .wc-block-components-product-button .added_to_cart { font-size: 0.8125rem; margin-top: 0.4rem; }
.wc-block-components-product-sale-badge, .wc-block-components-product-sale-badge:where(*) {
	background: var(--wp--preset--color--sale) !important; color: #fff !important; border: 0 !important; border-radius: 0 !important;
	font-size: 0.6875rem !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3em 0.6em !important;
}
.wc-block-components-product-image .wc-block-components-product-sale-badge { top: 0.6rem; left: 0.6rem; right: auto; }
.ph-clocks__products .ph-collection { margin: 0; }
@media (max-width: 600px) {
	.ph-collection .wc-block-product-template { column-gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.ph-card__title { font-size: 0.875rem !important; }
}

/* ---------- Prices (incl. Peterson trade pricing plugin output) ---------- */
.wc-block-components-product-price, .price { color: var(--ph-ink); font-variant-numeric: tabular-nums; }
.wc-block-components-product-price del, .price del { color: var(--ph-muted); font-weight: 400; margin-right: 0.35em; }
.wc-block-components-product-price ins, .price ins { text-decoration: none; color: var(--wp--preset--color--sale); }
body .ph-trade-price { display: inline-flex; flex-wrap: wrap; gap: 0.3em 0.55em; align-items: baseline; }
body .ph-trade-label {
	font-size: 0.625rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 1;
	color: var(--ph-base); background: var(--ph-accent); padding: 0.25em 0.55em; border-radius: 2px; align-self: center;
}
body .ph-rrp { opacity: 1; color: var(--ph-muted); font-size: 0.8em; font-weight: 400; }
body .ph-rrp .amount { text-decoration: line-through; }
body .ph-trade-box { margin: 1.25rem 0; padding: 1rem 1.25rem; background: var(--ph-surface); border: 1px solid var(--ph-line); border-left: 3px solid var(--ph-brass); }
body .ph-moq { margin: 0 0 0.6rem; font-size: var(--wp--preset--font-size--small); color: var(--ph-ink); }
body table.ph-breaks { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; margin: 0; }
body .ph-breaks caption { text-align: left; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ph-brass-text); margin-bottom: 0.4rem; }
body .ph-breaks th { font-size: 0.8125rem; font-weight: 500; color: var(--ph-muted); text-align: left; padding: 0.4rem 0; border-bottom: 1px solid var(--ph-line); }
body .ph-breaks td { padding: 0.5rem 0; border-bottom: 1px solid var(--ph-line); text-align: left; }
body .ph-breaks tr:last-child td { border-bottom: 0; }
body .ph-breaks th:last-child, body .ph-breaks td:last-child { text-align: right; }
body .ph-trade-invite { font-size: var(--wp--preset--font-size--small); margin: 1rem 0; padding: 0.75rem 1rem; background: var(--wp--preset--color--base-2); color: var(--ph-ink); }
body .ph-trade-invite a { color: var(--ph-accent); font-weight: 600; }

/* ---------- Shop archive ---------- */
.ph-shop__head { margin-top: var(--wp--preset--spacing--40); }
.ph-shop__head h1 { margin: 0; }
.ph-shop__desc { color: var(--ph-muted); max-width: 46rem; margin-top: 0.75rem; }
.ph-chips { margin-top: var(--wp--preset--spacing--40) !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.ph-chips::-webkit-scrollbar { display: none; }
.ph-chips ul { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0 0 2px; }
.ph-chips a {
	display: inline-block; white-space: nowrap; padding: 0.45rem 0.95rem; border: 1px solid var(--ph-line); border-radius: 999px;
	font-size: 0.8125rem; font-weight: 500; color: var(--ph-ink); text-decoration: none; background: var(--ph-surface);
}
.ph-chips a:hover, .ph-chips a[aria-current="page"] { background: var(--ph-accent); border-color: var(--ph-accent); color: var(--ph-base); }
.ph-shop__bar { padding-block: 1rem; border-bottom: 1px solid var(--ph-line); margin-bottom: var(--wp--preset--spacing--50); font-size: var(--wp--preset--font-size--small); color: var(--ph-muted); }
.ph-shop__bar .woocommerce-result-count, .ph-shop__bar .woocommerce-ordering { margin: 0; }
.ph-shop__bar select { font: inherit; color: var(--ph-ink); border: 1px solid var(--ph-line); background: var(--ph-surface); padding: 0.45rem 0.75rem; border-radius: 2px; }
.ph-pagination { margin-top: var(--wp--preset--spacing--60); gap: 0.25rem; font-size: var(--wp--preset--font-size--small); }
.ph-pagination a, .ph-pagination .page-numbers { min-width: 2.5rem; padding: 0.5rem 0.75rem; text-align: center; text-decoration: none; color: var(--ph-ink); border: 1px solid transparent; }
.ph-pagination .page-numbers.current { border-color: var(--ph-ink); }
.ph-pagination a:hover { border-color: var(--ph-line); }
.wp-block-woocommerce-breadcrumbs, .woocommerce-breadcrumb { margin-bottom: 0; }
.woocommerce-breadcrumb a { color: var(--ph-muted); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--ph-ink); text-decoration: underline; }

.ph-search-wide .wp-block-search__inside-wrapper { border: 1px solid var(--ph-line); background: var(--ph-surface); padding: 0.25rem; }
.ph-search-wide .wp-block-search__input { border: 0; background: transparent; padding: 0.6rem 0.75rem; }

/* ---------- Single product ---------- */
.ph-product__top { margin-top: var(--wp--preset--spacing--40); }
.ph-product__summary > * { margin-block: 0; }
.ph-product__summary > * + * { margin-top: 1rem; }
.ph-product__cats a { color: var(--ph-brass-text); text-decoration: none; }
.ph-product__title { line-height: 1.12; text-wrap: balance; }
.ph-product__price { font-weight: 500; }
.ph-product__price .ph-trade-price { font-size: 1em; }
.ph-product__excerpt { color: var(--ph-muted); }
.ph-product .wc-block-product-gallery-large-image, .ph-product .wc-block-components-product-image { background: var(--ph-surface); }
.ph-product__media .wp-block-woocommerce-product-gallery { position: sticky; top: 6rem; }
.ph-product .wp-block-woocommerce-product-gallery { flex-direction: column-reverse !important; flex-wrap: nowrap !important; align-items: stretch !important; gap: 0.75rem !important; }
.ph-product .wc-block-product-gallery-large-image { width: 100% !important; flex: none !important; background: var(--ph-surface); }
.ph-product .wc-block-product-gallery-large-image img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.ph-product .wc-block-product-gallery-thumbnails { width: 100% !important; flex: none !important; }
.ph-product .wc-block-product-gallery-thumbnails__scrollable { flex-direction: row !important; gap: 0.5rem; overflow-x: auto; scrollbar-width: thin; }
.ph-product .wc-block-product-gallery-thumbnails__thumbnail { flex: 0 0 5.25rem !important; width: 5.25rem !important; height: 5.25rem !important; }
.ph-product .wc-block-product-gallery-thumbnails img { border: 1px solid var(--ph-line); background: var(--ph-surface); object-fit: cover; width: 100%; height: 100%; }
.ph-product__atc form.cart { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; margin: 0.5rem 0 0; }
.ph-product__atc .quantity { display: flex; }
.ph-product__atc .quantity .qty, .ph-product__atc input.qty {
	width: 5rem; min-height: 3.25rem; text-align: center; font: inherit; border: 1px solid var(--ph-line); background: var(--ph-surface); border-radius: 2px;
}
.ph-product__atc .single_add_to_cart_button { flex: 1 1 12rem; min-height: 3.25rem; font-size: 0.9375rem !important; }
.ph-product__atc .stock { font-size: var(--wp--preset--font-size--small); color: var(--ph-accent); margin: 0 0 0.5rem; }
.ph-product__atc .stock.out-of-stock { color: var(--wp--preset--color--sale); }
.ph-assurances { list-style: none; padding: 1rem 0 0 !important; border-top: 1px solid var(--ph-line); font-size: var(--wp--preset--font-size--small); color: var(--ph-muted); }
.ph-assurances li { padding-left: 1.5rem; position: relative; margin: 0.35rem 0; }
.ph-assurances li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.6rem; height: 0.35rem; border-left: 1.5px solid var(--ph-accent); border-bottom: 1.5px solid var(--ph-accent); transform: rotate(-45deg); }
.ph-product__meta { font-size: var(--wp--preset--font-size--x-small); color: var(--ph-muted); }
.ph-product__meta a { color: var(--ph-muted); }
.ph-product__details { margin-top: var(--wp--preset--spacing--70) !important; }
.ph-product__details .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 0 2rem; list-style: none; padding: 0; margin: 0 0 1.5rem; border-bottom: 1px solid var(--ph-line); }
.ph-product__details .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; }
.ph-product__details .woocommerce-tabs ul.tabs li a { display: block; padding: 0.85rem 0; text-decoration: none; color: var(--ph-muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ph-product__details .woocommerce-tabs ul.tabs li.active a { color: var(--ph-ink); border-bottom-color: var(--ph-ink); }
.ph-product__details .woocommerce-Tabs-panel { max-width: 46rem; }
.ph-product__details .woocommerce-Tabs-panel > h2:first-child { display: none; }
.ph-product__details table.shop_attributes { border-collapse: collapse; width: 100%; }
.ph-product__details table.shop_attributes th, .ph-product__details table.shop_attributes td { border-bottom: 1px solid var(--ph-line); padding: 0.6rem 0; text-align: left; font-style: normal; }
@media (max-width: 781px) {
	.ph-product__media .wp-block-woocommerce-product-gallery { position: static; }
	.ph-product__top { gap: 1.5rem !important; }
}

/* ---------- Cart / checkout / account ---------- */
.ph-page-title { margin-bottom: var(--wp--preset--spacing--40); }
.wc-block-components-button:not(.is-link) { border-radius: var(--wp--custom--radius); }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--ph-accent) !important; color: var(--ph-base) !important; min-height: 3.25rem; }
.wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover { background: var(--ph-ink) !important; }
.wc-block-components-totals-wrapper, .wc-block-components-sidebar-layout .wc-block-components-main { border-color: var(--ph-line); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ph-line); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--ph-line); text-decoration: none; color: var(--ph-ink); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--ph-accent); font-weight: 600; }
.woocommerce :where(input.input-text, select, textarea), .wp-block-post-content :where(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], input[type="date"], select, textarea) {
	border: 1px solid #cfc8bb; background-color: var(--ph-surface); color: var(--ph-ink); padding: 0.7rem 0.8rem; border-radius: 2px; font: inherit; line-height: 1.4; max-width: 100%; box-shadow: none;
}
.woocommerce :where(input.input-text, select, textarea):focus, .wp-block-post-content :where(input, select, textarea):focus { border-color: var(--ph-accent); outline: 2px solid transparent; box-shadow: 0 0 0 1px var(--ph-accent); }
.wp-block-post-content :where(select), .woocommerce :where(select) {
	-webkit-appearance: none; appearance: none; padding-right: 2.4rem; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231f1d1a' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 12px 8px;
}
.wp-block-post-content :where(textarea) { min-height: 8rem; resize: vertical; }

/* Site forms ([peterson_contact_form], trade application, retail sign-up) */
.ph-form { margin-top: 1.5rem; }
.ph-form :where(input.input-text, select, textarea) { width: 100%; min-height: 3rem; }
.ph-form label { font-size: var(--wp--preset--font-size--small); }
.ph-form .required { color: var(--ph-accent); text-decoration: none; }
.ph-form button[type="submit"] { min-height: 3.25rem; min-width: 12rem; cursor: pointer; }
@media (max-width: 640px) { .ph-form button[type="submit"] { width: 100%; } }
.ph-form-intro, .ph-form-foot { color: var(--ph-muted); font-size: var(--wp--preset--font-size--small); }
.ph-form-foot { margin-top: 1.5rem; }
.ph-section > .ph-note + .ph-section-title { margin-top: var(--wp--preset--spacing--60); }
.ph-note .ph-checklist { margin: 0.5rem 0 0; }
.ph-note h2 { margin: 0; }
.ph-contact__item { margin-top: 1.5rem !important; }
.ph-contact__item h3 { margin: 0 0 0.35rem; font-family: var(--wp--preset--font-family--sans); font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ph-muted); }
.ph-contact__item p { margin: 0; line-height: 1.6; }
.ph-contact__form .ph-panel > .ph-section-title { margin-top: 0; }

/* Account page (/login/): the page title is the heading — drop WooCommerce's duplicate "Login" h2 */
.woocommerce-account:not(.logged-in) .wp-block-post-content .woocommerce > h2 { display: none; }
.woocommerce-account:not(.logged-in) .woocommerce-form-login { max-width: 30rem; margin: 0 0 2rem !important; border: 1px solid var(--ph-line) !important; border-radius: 0 !important; padding: clamp(1.25rem, 4vw, 2rem) !important; background: var(--ph-surface); }
.woocommerce-form-login .input-text { width: 100%; }
body.woocommerce-account .woocommerce button.button:not(.wc-block-components-button), body.woocommerce-account .woocommerce a.button:not(.wc-block-components-button), body.woocommerce-account .woocommerce input.button,
body .ph-form button.button {
	background: var(--ph-accent); color: var(--ph-base); border: 1px solid var(--ph-accent); border-radius: var(--wp--custom--radius);
	padding: 0.85em 1.6em; font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--small); font-weight: 500; letter-spacing: 0.02em; line-height: 1.2; text-decoration: none;
}
body.woocommerce-account .woocommerce button.button:not(.wc-block-components-button):hover, body.woocommerce-account .woocommerce a.button:not(.wc-block-components-button):hover, body.woocommerce-account .woocommerce input.button:hover,
body .ph-form button.button:hover { background: var(--ph-ink); border-color: var(--ph-ink); color: var(--ph-base); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-left: 3px solid var(--ph-accent); background: var(--ph-surface); padding: 1rem 1.25rem; list-style: none; }

/* ---------- Footer ---------- */
.ph-footer a { color: var(--ph-base); text-decoration: none; }
.ph-footer a:hover { color: var(--ph-brass); text-decoration: underline; }
.ph-footer .ph-footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); }
.ph-footer__logo { margin: 0 0 1.25rem; }
.ph-footer__logo img { width: min(300px, 100%) !important; height: auto; }
.ph-footer__heading { font-family: var(--wp--preset--font-family--sans); font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 1rem; }
.ph-footer__links { list-style: none; padding: 0; margin: 0; font-size: var(--wp--preset--font-size--small); }
.ph-footer__links li { margin: 0 0 0.55rem; }
.ph-footer__contact p { margin: 0 0 1rem; line-height: 1.55; }
.ph-footer__bottom { border-top: 1px solid rgba(247, 244, 238, 0.16); }
.ph-footer__bottom p { margin: 0; }
.ph-footer__social { margin-top: 1.25rem; }
@media (max-width: 1079px) {
	.ph-footer .ph-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.ph-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.ph-footer .ph-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 2rem 1rem; }
	.ph-footer__contact { grid-column: 1 / -1; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.ph-tile:hover .wp-block-image img, .ph-collection .wc-block-product:hover .wc-block-components-product-image img { transform: none; }
}

/* Woo classic-CSS overrides on the single product */
.ph-product__atc .quantity { margin: 0 !important; }
.ph-product__excerpt { font-size: var(--wp--preset--font-size--small); }
.ph-product__details .woocommerce-tabs ul.tabs li { border: 0 !important; background: none !important; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; }
.ph-product__details .woocommerce-tabs ul.tabs li::before, .ph-product__details .woocommerce-tabs ul.tabs li::after, .ph-product__details .woocommerce-tabs ul.tabs::before { display: none !important; }
.ph-product__details .woocommerce-tabs ul.tabs { padding: 0 !important; }

/* ---------- Content pages (landing, about, trade, shipping) ---------- */
.ph-lede { font-size: var(--wp--preset--font-size--medium); color: var(--ph-muted); max-width: 46rem; }
.ph-landing-hero h1 { margin-block: 0.4rem 1rem; text-wrap: balance; }
.ph-landing-hero .wp-block-buttons { margin-top: 1.75rem; }
.ph-landing-img { margin: 0; }
.ph-landing-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--ph-surface); }
.ph-checklist { list-style: none; padding: 0 !important; margin: 1.25rem 0; }
.ph-checklist li { position: relative; padding: 0.7rem 0 0.7rem 1.75rem; border-bottom: 1px solid var(--ph-line); }
.ph-checklist li:last-child { border-bottom: 0; }
.ph-checklist li::before { content: ""; position: absolute; left: 0.1rem; top: 1.15em; width: 0.65rem; height: 0.35rem; border-left: 1.5px solid var(--ph-accent); border-bottom: 1.5px solid var(--ph-accent); transform: rotate(-45deg); }
.ph-checklist--light li { border-color: rgba(247, 244, 238, 0.18); color: var(--wp--preset--color--sage); }
.ph-checklist--light li strong { color: var(--ph-base); font-weight: 600; }
.ph-checklist--light li::before { border-color: var(--ph-brass); }
.ph-trade__sub { margin-top: var(--wp--preset--spacing--50) !important; font-size: var(--wp--preset--font-size--large); }
.ph-trade h2, .ph-trade h3 { color: var(--ph-base); }
.ph-note { background: var(--ph-surface); border-left: 3px solid var(--ph-brass); padding: 1rem 1.25rem; }
.ph-note p { margin: 0; }
.ph-panel { background: var(--ph-surface); border: 1px solid var(--ph-line); padding: var(--wp--preset--spacing--50); }
.ph-statement { font-family: var(--wp--preset--font-family--serif); line-height: 1.3; text-wrap: balance; }
.ph-benefit { border-top: 1px solid var(--ph-brass); padding-top: 1.1rem; }
.ph-benefit h3 { margin: 0 0 0.4rem; }
.ph-benefit p { margin: 0; }
.ph-step__num { font-family: var(--wp--preset--font-family--serif); font-size: 2.75rem; line-height: 1; color: var(--ph-brass-text); margin: 0 0 0.5rem; }
.ph-step h3 { margin: 0 0 0.4rem; }
.ph-step p { margin: 0; }
.ph-faq { border-bottom: 1px solid var(--ph-line); padding: 0; margin-block: 0 !important; }
.ph-faq:first-of-type { border-top: 1px solid var(--ph-line); }
.ph-faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 500; list-style: none; position: relative; }
.ph-faq summary::-webkit-details-marker { display: none; }
.ph-faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.9rem; font-size: 1.4rem; line-height: 1; color: var(--ph-brass-text); transition: transform var(--ph-ease); }
.ph-faq[open] summary::after { transform: rotate(45deg); }
.ph-faq > p { margin: 0 0 1.25rem; color: var(--ph-muted); }
.ph-table table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; background: var(--ph-surface); }
.ph-table th, .ph-table td { border: 0; border-bottom: 1px solid var(--ph-line); padding: 0.75rem 1rem; text-align: left; }
.ph-table thead th { font-size: var(--wp--preset--font-size--x-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ph-muted); border-bottom: 1px solid var(--ph-ink); }
.ph-table figcaption { text-align: left; }
.ph-landing-cta .wp-block-buttons { margin-top: 1.5rem; }

.ph-collection .wc-block-components-product-image img[data-ph-fit="ph-img-cutout"] { object-fit: contain !important; padding: 4%; box-sizing: border-box; }

.ph-section > .ph-section-title:not(:first-child), .ph-section > .ph-eyebrow:not(:first-child) { margin-top: var(--wp--preset--spacing--60); }
.ph-section > .ph-eyebrow + .ph-section-title { margin-top: 0.4rem; }
.ph-section > .ph-section-title + * { margin-top: 1rem; }
.ph-section > .ph-faq:first-of-type, .ph-section > .ph-section-title + .ph-faq { margin-top: 1.5rem !important; }

.ph-product__atc input.qty, .ph-product__atc .quantity input { margin: 0 !important; }

/* Account page (/login/): content column as wide as the page title, so heading and form share one left edge */
body.woocommerce-account main > .wp-block-post-content, body.woocommerce-account main > .wp-block-post-title { max-width: 1000px; }
