/*
Theme Name: PAP Modern Archive
Description: Swiss editorial WooCommerce theme for Patent Art Posters.
Version: 0.3.2
Text Domain: pap-modern-archive
Requires at least: 6.3
Requires PHP: 7.4
WPVibe: yes
*/

/* Foundation. Tokens live in theme.css; all components use the same scale. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--color-background); color: var(--color-neutral); font: 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
img { max-width: 100%; height: auto; }
figure { margin: 0 0 32px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; letter-spacing: -.04em; margin: 0 0 24px; }
h1 { font-size: clamp(36px, 4.8vw, 68px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 24px; }
button, input, select, textarea { font: inherit; }
input:not([type='checkbox']):not([type='radio']):not([type='submit']), select, textarea { max-width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--color-line); border-radius: 0; background: #fff; color: var(--color-neutral); }
textarea { width: 100%; }
:focus-visible { outline: 2px solid var(--color-neutral); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { clip-path: none; width: auto; height: auto; margin: 0; padding: 12px 24px; top: 8px; left: 8px; background: #fff; z-index: 100; }
.pap-header, .pap-footer, .pap-section, .pap-content, .pap-shop { width: 100%; max-width: var(--pap-width); margin-inline: auto; padding-inline: var(--pap-gutter); }
.pap-content, .pap-shop { padding-block: var(--pap-space); min-height: 55vh; }
.pap-content > .pap-article { max-width: 800px; margin-inline: auto; }
.woocommerce-cart .pap-content > .pap-article, .woocommerce-checkout .pap-content > .pap-article, .woocommerce-account .pap-content > .pap-article { max-width: none; }
.pap-content-inner, .pap-page-heading { max-width: 800px; margin-inline: auto; }
.pap-page-heading { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--color-line); }
.pap-entry { padding-block: 32px; border-bottom: 1px solid var(--color-line); }
.pap-entry h2 a { text-decoration: none; }
.pap-meta { font-size: 13px; color: var(--color-secondary); }
/* Editorial pages preserve native content, blocks, shortcodes and plugin forms. */
.pap-article-heading { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--color-line); }
.pap-article-heading h1 { margin-bottom: 0; text-wrap: balance; }
.pap-article-heading .pap-meta { margin: 20px 0 0; }
.pap-prose { overflow-wrap: anywhere; }
.pap-reader .pap-prose, .pap-post .pap-prose { font-size: 17px; }
.pap-prose :is(h2, h3, h4) { line-height: 1.25; }
.pap-prose :is(ul, ol) { padding-left: 24px; margin-bottom: 28px; }
.pap-prose li + li { margin-top: 8px; }
.pap-reader .pap-prose p:has(> strong:only-child) { font-size: 19px; line-height: 1.4; margin-top: 32px; margin-bottom: 16px; }
.pap-prose :is(img, video, iframe) { max-width: 100%; }
.pap-prose .wp-block-embed__wrapper iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--color-paper); }
.pap-prose .wp-block-table { overflow-x: auto; margin-block: 32px; }
.pap-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pap-prose :is(td, th) { padding: 16px; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
.pap-reader .wp-block-table td:first-child { width: 28%; overflow-wrap: normal; }
.pap-reader .wp-block-table td:empty { padding: 0; width: 0; }
.pap-prose figcaption { font-size: 13px; color: var(--color-secondary); margin-top: 12px; }
.pap-journal { max-width: 800px; }
.pap-reader .wp-block-latest-posts.is-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; padding: 0; list-style: none; }
.pap-reader .wp-block-latest-posts.is-grid li { width: auto; margin: 0; padding-bottom: 32px; border-bottom: 1px solid var(--color-line); }
.pap-reader .wp-block-latest-posts.is-grid li:only-child { grid-column: 1 / -1; }
.pap-reader .wp-block-latest-posts__featured-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 24px; }
.pap-reader .wp-block-latest-posts__post-title { display: block; font-size: clamp(24px, 3vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -.04em; margin-bottom: 20px; text-decoration: none; }
.pap-reader .wp-block-latest-posts__post-title:hover { text-decoration: underline; }
.pap-reader .wp-block-latest-posts__post-excerpt { color: var(--color-secondary); }
.pap-reader .wp-block-latest-posts__read-more { display: inline-block; padding-block: 12px; color: var(--color-neutral); }
.pap-entry-image { display: block; margin-bottom: 28px; }
.pap-entry-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pap-entry h2 { line-height: 1.2; }
.pap-entry h2 a:hover { text-decoration: underline; }
.pap-prose :is(.wpcf7, .wpforms-container, .gform_wrapper) { margin-block: 32px; }
.pap-prose :is(.wpcf7-form, .wpforms-form, .gform_wrapper) label { display: block; font-size: 14px; line-height: 1.5; }
.pap-prose .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.pap-prose :is(.wpcf7, .wpforms-container, .gform_wrapper) :is(input[type='text'], input[type='email'], input[type='tel'], input[type='url'], select, textarea) { width: 100%; min-width: 0; font-size: 16px; }
.pap-prose .wpcf7 textarea { height: 220px; min-height: 180px; resize: vertical; }
.pap-prose .wpcf7-not-valid-tip { display: block; font-size: 13px; margin-top: 8px; }
.pap-prose .wpcf7 .wpcf7-response-output { margin: 24px 0; padding: 16px; }
.pap-prose .wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pap-prose :is(p, ul, ol) { line-height: 1.75; }
.pap-prose h2, .pap-prose h3 { margin-top: 40px; }
.pap-prose .alignwide { max-width: 100%; }
.pap-prose .alignfull { width: 100%; margin-inline: 0; }
.pap-pagination, .navigation.pagination { margin-block: 40px; display: flex; gap: 24px; justify-content: space-between; }
.pap-prose table { max-width: 100%; }
.pap-prose pre { overflow: auto; padding: 20px; background: var(--color-paper); }
blockquote { margin: 32px 0; border-left: 1px solid; padding-left: 24px; }

/* Shared header and navigation. Native disclosures provide a no-JS menu. */
/* Consistent horizontal primary navigation for the approved PAP header. */
.pap-header .pap-nav { display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; justify-content:center; gap:clamp(18px,2.4vw,36px); margin:0 auto; width:auto; }
.pap-header .pap-nav > a { display:inline-flex; align-items:center; white-space:nowrap; font:600 12px/1.4 Inter,Arial,sans-serif; letter-spacing:.035em; text-decoration:none; }
.pap-header .pap-tools { flex-shrink:0; }
@media(max-width:800px) { .pap-header .pap-nav { flex-wrap:wrap; width:100%; justify-content:center; gap:12px 22px; } }
/* Related product card reviews belong below their own title, centered. */
.woocommerce .related.products ul.products li.product .star-rating,
.woocommerce .up-sells.products ul.products li.product .star-rating,
.pap-shop .related.products ul.products li.product .star-rating { float:none!important; clear:both; display:block; margin:8px auto 6px!important; }
.woocommerce .related.products ul.products li.product,
.woocommerce .up-sells.products ul.products li.product { text-align:center; }
.woocommerce .related.products ul.products li.product .woocommerce-loop-product__title,
.woocommerce .up-sells.products ul.products li.product .woocommerce-loop-product__title { clear:both; }

.pap-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--color-line); position: relative; z-index: 20; }
.pap-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.pap-brand .pap-logo { display: block; flex: 0 0 32px; width: 32px; height: 40px; object-fit: contain; }
.pap-menu { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.pap-menu > li { position: relative; }
.pap-menu a { display: block; padding-block: 12px; font-size: 13px; text-decoration: none; }
.pap-menu a:hover, .pap-menu .current-menu-item > a { text-decoration: underline; }
.pap-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; width: 230px; padding: 16px; margin: 0; background: #fff; border: 1px solid var(--color-line); list-style: none; }
.pap-menu li:hover > .sub-menu, .pap-menu li:focus-within > .sub-menu { display: block; }
.pap-tools { display: flex; align-items: center; gap: 12px; }
.pap-tools summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.pap-tools summary::-webkit-details-marker { display: none; }
.pap-tools svg { display: block; }
.pap-cart { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; position: relative; text-decoration: none; }
.pap-cart-count { position: absolute; top: 2px; right: 2px; min-width: 18px; padding: 0 4px; background: var(--color-neutral); color: #fff; font-size: 10px; line-height: 18px; border-radius: 50%; text-align: center; }
.pap-search-panel { position: absolute; top: 100%; right: var(--pap-gutter); width: min(420px, calc(100vw - 40px)); padding: 24px; border: 1px solid var(--color-line); background: #fff; box-shadow: 0 12px 24px #0000000a; }
.search-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.search-form label { flex: 1 1 180px; }
.search-form input[type='search'] { width: 100%; }
.pap-mobile-menu { display: none; }

/* Actions: explicit WooCommerce selectors override plugin colors, not behavior. */
.pap-btn, .search-submit, .wp-block-button__link, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .wc-block-components-button:not(.is-link), #submit, .pap-prose input[type='submit'], .pap-prose button[type='submit'] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; max-width: 100%; padding: 14px 24px; border: 1px solid var(--color-neutral); border-radius: 0; background: var(--color-neutral); color: #fff; font: 600 12px/1.4 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; text-align: center; transition: background .18s, color .18s;
}
.pap-btn:hover, .search-submit:hover, .wp-block-button__link:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .wc-block-components-button:not(.is-link):hover, #submit:hover, .pap-prose input[type='submit']:hover, .pap-prose button[type='submit']:hover { background: #fff; color: var(--color-neutral); }
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled], .woocommerce button.button.alt.disabled, .wc-block-components-button:disabled { background: var(--color-neutral); color: #fff; opacity: .5; cursor: not-allowed; }

/* Homepage: oversized type, considered whitespace, quiet image surfaces. */
.pap-hero { max-width: var(--pap-width); margin-inline: auto; display: grid; grid-template-columns: 1fr 1.2fr; min-height: 640px; background: var(--color-paper); }
.pap-hero-copy { padding: var(--pap-space) var(--pap-gutter) 40px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow, .pap-section-head, .pap-intro-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.pap-hero h1 { font-size: clamp(48px, 5.5vw, 80px); line-height: .98; letter-spacing: -.06em; margin-block: 32px 24px; }
.pap-hero-copy > p { max-width: 380px; color: var(--color-secondary); }
.pap-hero .pap-btn { align-self: start; margin-block: 8px 40px; }
.pap-hero-artwork { display: flex; flex-direction: column; min-width: 0; padding: 40px; background: #e9e9e6; text-decoration: none; }
.pap-hero-caption { text-decoration: none; }
.pap-hero-caption:hover b { text-decoration: underline; }
.pap-hero-image picture { display: block; width: 100%; }
.pap-hero-no-artwork .pap-hero-copy { grid-column: 1 / -1; }
.pap-hero-image { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.pap-hero-image img { display: block; width: 100%; max-height: 620px; height: auto; object-fit: contain; box-shadow: 0 12px 32px #00000012; }
.pap-hero-caption { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 24px; }
.pap-hero-caption small { display: block; text-transform: uppercase; font-size: 10px; letter-spacing: .12em; color: var(--color-secondary); margin-bottom: 8px; }
.pap-hero-caption b { font-size: 14px; font-weight: 500; }
.pap-benefits { border-top: 1px solid var(--color-line); padding-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pap-benefits div { display: grid; font-size: 20px; }
.pap-benefits b { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.pap-benefits small { font-size: 11px; color: var(--color-secondary); }
.pap-hero-benefits { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 24px var(--pap-gutter); }
.pap-section { padding-block: 48px 64px; }
.pap-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.pap-section-head h2 { font: inherit; letter-spacing: inherit; margin: 0; }
.pap-section-head a { padding-block: 10px; text-decoration: none; }
.pap-section-head a:hover { text-decoration: underline; }
.pap-category-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: repeat(2, 170px); gap: 16px; }
.pap-category-grid a { position: relative; overflow: hidden; background: var(--color-paper); color: var(--color-primary); padding: 16px 16px 56px; }
.pap-category-grid a:nth-child(-n+2) { grid-row: span 2; }
.pap-category-grid img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.pap-category-grid a:hover img { transform: scale(1.025); }
.pap-category-grid b, .pap-category-grid span { position: absolute; bottom: 20px; z-index: 1; font-size: 11px; letter-spacing: .08em; }
.pap-category-grid b { left: 20px; right: 40px; text-transform: uppercase; }
.pap-category-grid span { right: 20px; }
.pap-products { border-top: 1px solid var(--color-line); }
.pap-intro { display: grid; grid-template-columns: 1fr 1.5fr; gap: 6vw; padding-block: var(--pap-space); border-top: 1px solid var(--color-line); }
.pap-intro-copy h2 { font-size: clamp(32px, 3.6vw, 52px); }
.pap-intro-copy p { max-width: 650px; color: var(--color-secondary); }
.pap-intro-links { text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: 11px; font-weight: 600; letter-spacing: .04em; }

/* Footer: same page width and typographic hierarchy. */
.pap-footer { border-top: 1px solid var(--color-line); background: var(--color-paper); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-block: 56px 24px; font-size: 13px; }
.pap-footer nav { display: flex; flex-direction: column; align-items: start; gap: 10px; }
.pap-footer h2 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.pap-footer a { text-decoration: none; }
.pap-footer a:hover { text-decoration: underline; }
.pap-footer p { margin-top: 16px; margin-bottom: 0; color: var(--color-secondary); }
.pap-footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pap-footer nav a { display: inline-flex; align-items: center; min-height: 40px; }
.pap-copy .pap-policy-links { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
.pap-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; grid-column: 1 / -1; border-top: 1px solid var(--color-line); padding-top: 24px; font-size: 11px; color: var(--color-secondary); }

/* WooCommerce archives and native product loop. No controls are hidden. */
.pap-shop .woocommerce-breadcrumb { margin-bottom: 32px; font-size: 12px; color: var(--color-secondary); }
.pap-shop .woocommerce-breadcrumb a { color: inherit; }
.pap-shop .term-description, .pap-shop .page-description { max-width: 780px; margin-bottom: 40px; color: var(--color-secondary); }
.pap-shop .woocommerce-result-count { font-size: 13px; padding-top: 12px; }
.pap-shop .woocommerce-ordering { margin-bottom: 32px; }
.pap-shop .woocommerce-ordering select { font-size: 13px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; list-style: none; padding: 0; margin: 0 0 48px; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none; }
.woocommerce ul.products li.product, .woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products li.product, .woocommerce-page ul.products[class*="columns-"] li.product { float: none; clear: none; width: auto; min-width: 0; margin: 0; }
.woocommerce ul.products li.product a img { display: block; aspect-ratio: 1 / 1.15; width: 100%; object-fit: contain; background: var(--color-paper); margin-bottom: 18px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .woocommerce-loop-category__title { font-size: 15px; line-height: 1.4; letter-spacing: 0; padding: 0; margin-bottom: 8px; }
.woocommerce ul.products li.product .price { color: var(--color-secondary); font-size: 14px; }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { display: block; text-decoration: none; }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link:hover .woocommerce-loop-product__title { text-decoration: underline; }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link:focus-visible { outline-offset: 6px; }
/* Client-rendered recommendations stay purchase-free too; product forms are untouched. */
.wc-block-grid__product-add-to-cart, .wc-block-product-template .wp-block-woocommerce-product-button { display: none; }
.woocommerce ul.products li.product .added_to_cart { display: block; font-size: 13px; }
.woocommerce ul.products li.product-category mark { background: transparent; color: var(--color-secondary); font-size: 12px; }
.woocommerce span.onsale { min-height: 32px; min-width: 48px; padding: 0 8px; line-height: 32px; border-radius: 0; background: var(--color-neutral); font-weight: 500; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 4px; }
.woocommerce nav.woocommerce-pagination ul li :is(a, span) { padding: 14px; background: var(--color-paper); color: var(--color-neutral); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--color-neutral); color: #fff; }

/* Product gallery/summary retain WooCommerce gallery, variation and tab JS. */
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images { width: 54%; margin-bottom: 56px; }
.woocommerce div.product div.summary { width: 40%; margin-bottom: 56px; }
.woocommerce div.product .product_title { font-size: clamp(32px, 3.5vw, 52px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--color-neutral); font-size: 22px; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--color-secondary); }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { display: block; padding: 0; text-align: left; }
.woocommerce div.product form.cart .variations { width: 100%; margin-bottom: 16px; }
.woocommerce div.product form.cart .variations label { font-size: 14px; font-weight: 600; line-height: 1.5; }
.woocommerce div.product form.cart .variations select { width: 100%; max-width: 100%; min-height: 52px; font-size: 16px; margin: 8px 0 20px; padding: 12px; }
.woocommerce div.product form.cart .reset_variations { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.woocommerce .quantity .qty { width: 80px; min-height: 48px; }
.pap-product-information { clear: both; border-top: 1px solid var(--color-line); padding-top: 12px; margin-top: 24px; }
.pap-product-information summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-size: 14px; font-weight: 600; }
.woocommerce div.product .product_meta { font-size: 13px; line-height: 1.8; color: var(--color-secondary); overflow-wrap: anywhere; padding-block: 12px; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 12px; }
.woocommerce div.product .product_meta a { display: inline-block; padding-block: 4px; }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { float: none; width: auto; }
.woocommerce div.product div.images .flex-control-thumbs img { aspect-ratio: 1; object-fit: contain; }
.woocommerce div.product .woocommerce-tabs { clear: both; border-top: 1px solid var(--color-line); padding-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { content: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-size: 13px; padding-block: 12px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 1px solid var(--color-neutral); }
.woocommerce div.product .woocommerce-tabs .panel { line-height: 1.75; }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-size: 24px; }
.woocommerce .related.products, .woocommerce .up-sells.products { clear: both; margin-top: 56px; }
.pap-product-details { clear: both; margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--color-line); }
.pap-detail-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pap-detail-columns > div { min-width: 0; background: var(--color-paper); padding: 24px; }
.pap-detail-columns h3 { font-size: 20px; }
.pap-detail-columns p, .pap-detail-columns li { font-size: 14px; color: var(--color-secondary); }
.pap-detail-columns ul { padding-left: 18px; }
.pap-format-photo { display: block; width: 100%; aspect-ratio: 1.7; object-fit: cover; margin-bottom: 24px; filter: grayscale(1); }

/* Notices and common form surfaces: plugin validation and loading states stay intact. */
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error { background: var(--color-paper); color: var(--color-neutral); border-top-color: var(--color-neutral); }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before, .woocommerce .woocommerce-error::before { color: var(--color-neutral); }
.woocommerce form .form-row { padding: 0; margin-bottom: 20px; }
.woocommerce form .form-row label { font-size: 13px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { border: 1px solid var(--color-line); padding: 12px; min-height: 48px; }
.select2-container--default .select2-selection--single { min-height: 48px; border-radius: 0; border-color: var(--color-line); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.woocommerce table.shop_table { width: 100%; border: 0; border-collapse: collapse; border-radius: 0; font-size: 14px; }
.woocommerce table.shop_table :is(th, td) { padding: 18px 12px; border-top: 1px solid var(--color-line); }
.woocommerce table.shop_table th { font-weight: 600; }
.woocommerce table.shop_table thead th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.woocommerce a.remove { color: var(--color-neutral) !important; }
.woocommerce a.remove:hover { color: #fff !important; background: var(--color-neutral); }

/* Classic cart. Grid activates only for the populated cart, never empty carts. */
.woocommerce-cart .pap-prose > .woocommerce:has(> .woocommerce-cart-form) { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
.woocommerce-cart .woocommerce > .woocommerce-cart-form { grid-column: 1; grid-row: 2; min-width: 0; }
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper, .woocommerce-cart .woocommerce > :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) { grid-column: 1 / -1; }
.woocommerce-cart .woocommerce > .cart-collaterals { display: contents; }
.woocommerce-cart .cart-collaterals .cart_totals { grid-column: 2; grid-row: 2; float: none; width: 100%; padding: 28px; background: var(--color-paper); }
.woocommerce-cart .cart-collaterals .cross-sells { grid-column: 1 / -1; grid-row: 3; float: none; width: 100%; margin-top: 24px; }
.woocommerce-cart .woocommerce-cart-form td.product-thumbnail img { width: 96px; height: 112px; object-fit: contain; background: var(--color-paper); }
.woocommerce-cart .woocommerce-cart-form td { vertical-align: top; padding-block: 20px; }
.woocommerce-cart .woocommerce-cart-form td.product-name a { text-decoration: none; font-weight: 600; }
.woocommerce-cart .cart-collaterals .cart_totals h2 { font-size: 24px; margin-top: 0; }
.woocommerce-cart .wc-proceed-to-checkout { padding-bottom: 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: flex; width: 100%; min-height: 56px; margin-bottom: 0; font-size: 12px; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 150px; padding: 12px; min-height: 48px; }
.woocommerce-cart .woocommerce-cart-form .coupon { display: flex; flex-wrap: wrap; gap: 8px; }

/* Block cart and checkout: override proportions, retain React's responsive item UI. */
.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout, .woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
.woocommerce-cart .wc-block-cart .wc-block-components-main, .woocommerce-checkout .wc-block-checkout .wc-block-components-main { grid-column: 1; width: 100%; min-width: 0; padding: 0; margin: 0; }
.woocommerce-cart .wc-block-cart .wc-block-components-sidebar, .woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar { grid-column: 2; width: 100%; min-width: 0; padding: 28px; margin: 0; background: var(--color-paper); }
.wc-block-components-sidebar-layout > .wc-block-components-notices { grid-column: 1 / -1; }
.woocommerce-cart .wc-block-cart table.wc-block-cart-items { width: 100%; table-layout: fixed; border-collapse: collapse; }
.wc-block-components-title, .wc-block-cart .wc-block-cart__totals-title { font-size: 24px; font-weight: 600; letter-spacing: -.025em; text-transform: none; }
.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-components-product-name { font-size: 16px; font-weight: 600; }
.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image { padding-right: 20px; vertical-align: top; }
.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__product { vertical-align: top; }
@media (min-width: 801px) {
  .woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout table.wc-block-cart-items .wc-block-cart-items__header-image,
  .woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image { width: 116px; padding-right: 20px; }
  .woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img { width: 96px; height: 112px; object-fit: contain; }
}
.pap-content .wc-block-product-template { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.pap-content .wc-block-product-template > li { min-width: 0; text-align: left; }
.pap-content .wc-block-product-template .wp-block-post-title { font-size: 15px !important; line-height: 1.4; letter-spacing: 0; margin-bottom: 8px; text-align: left; }
.pap-content .wc-block-product-template .wc-block-components-product-price { font-size: 14px !important; color: var(--color-secondary); text-align: left; }
.pap-content .wc-block-product-template .wc-block-components-product-button { align-items: flex-start; }
.pap-content .wc-block-product-template .wc-block-components-product-button__button { min-height: 44px; padding: 10px 14px; font-size: 10px !important; }
/* These narrowly scoped overrides replace WooCommerce's generated inline image crop
   and WordPress's important preset font sizes; no plugin controls are suppressed. */
.pap-content .wc-block-product-template .wc-block-components-product-image img { aspect-ratio: 1 / 1.15 !important; object-fit: contain !important; }
.wc-block-components-product-name { color: var(--color-neutral); font-weight: 600; text-decoration: none; }
.wc-block-components-quantity-selector { border-radius: 0; min-height: 44px; }
.wc-block-cart .wc-block-cart__submit-button, .wc-block-checkout .wc-block-components-checkout-place-order-button { width: 100%; min-height: 56px; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input { border-radius: 0; }
.wc-block-components-totals-item, .wc-block-components-product-metadata { font-size: 14px; }
.wc-block-components-sidebar .wc-block-components-panel { border-color: var(--color-line); }

/* Classic checkout: native customer fields, shipping, payment, and hooks. */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); column-gap: 40px; align-items: start; }
.woocommerce-checkout form.checkout > #customer_details { grid-column: 1; min-width: 0; }
.woocommerce-checkout .pap-checkout-summary { grid-column: 2; min-width: 0; background: var(--color-paper); padding: 28px; }
.woocommerce-checkout .pap-checkout-summary #order_review_heading { font-size: 24px; margin-top: 0; }
.woocommerce-checkout .pap-checkout-summary #order_review { min-width: 0; }
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce-checkout .col2-set h3 { font-size: 24px; margin-top: 32px; }
.woocommerce-checkout .col2-set .col-1 h3:first-child { margin-top: 0; }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment div.payment_box { background: #e9e9e5; color: var(--color-neutral); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #e9e9e5; }
.woocommerce-checkout #payment #place_order { width: 100%; min-height: 56px; float: none; }
.woocommerce-checkout #payment ul.payment_methods { padding: 0 0 24px; }
.woocommerce-checkout #payment div.form-row { padding: 24px 0 0; }

/* Tablet and mobile: one breakpoint for shared structure, two-column art grids. */
@media (max-width: 1000px) {
  .pap-nav { display: none; }
  .pap-mobile-menu { display: block; }
  .pap-mobile-menu summary { font-size: 12px; text-transform: uppercase; }
  .pap-mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; padding: 20px var(--pap-gutter); background: #fff; border-bottom: 1px solid var(--color-line); }
  .pap-mobile-menu .pap-menu { display: block; }
  .pap-mobile-menu .sub-menu { display: block; position: static; width: auto; border: 0; padding: 0 0 0 20px; }
  .pap-hero { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .pap-hero-copy { padding-top: 48px; }
  .pap-hero h1 { font-size: 52px; }
  .pap-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .pap-category-grid a:nth-child(-n+2) { grid-row: auto; }
  .pap-category-grid a { aspect-ratio: 1.4; }
  .woocommerce ul.products, .pap-content .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100%; float: none; }
  .pap-detail-columns { grid-template-columns: 1fr; }
  .pap-format-photo { max-height: 280px; }
}
@media (max-width: 800px) {
  .pap-reader .wp-block-latest-posts.is-grid { grid-template-columns: minmax(0, 1fr); }
  .pap-article-heading { padding-bottom: 24px; margin-bottom: 32px; }
  .pap-reader .pap-prose, .pap-post .pap-prose { font-size: 16px; }
  .pap-prose :is(td, th) { padding: 12px 8px; font-size: 14px; }
  .pap-header { min-height: 76px; gap: 12px; }
  .pap-brand { font-size: 11px; gap: 8px; }
  .pap-tools { gap: 8px; flex-shrink: 0; }
  .pap-tools summary, .pap-cart { min-width: 44px; min-height: 44px; }
  .pap-mobile-menu summary { min-width: 52px; padding-inline: 4px; }
  .woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image { padding-right: 0; }
  .pap-hero { grid-template-columns: 1fr; }
  .pap-hero-copy { padding-block: 32px 24px; }
  .pap-hero .pap-btn { margin-bottom: 0; }
  .pap-hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pap-hero-artwork { padding: 0; }
  .pap-hero-image { aspect-ratio: 1.4; overflow: hidden; }
  .pap-hero-image picture, .pap-hero-image img { height: 100%; }
  .pap-hero-image img { max-height: none; object-fit: cover; object-position: center 44%; box-shadow: none; }
  .pap-hero-caption { display: none; }
  .pap-hero h1 { font-size: clamp(40px, 10.8vw, 64px); margin-block: 24px 16px; }
  .pap-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pap-intro { grid-template-columns: 1fr; gap: 28px; }
  .pap-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .pap-footer-brand { grid-column: 1 / -1; }
  .woocommerce-cart .pap-prose > .woocommerce:has(> .woocommerce-cart-form), .woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout, .woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout, .woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-cart .woocommerce > .woocommerce-cart-form, .woocommerce-cart .cart-collaterals .cross-sells, .woocommerce-cart .wc-block-cart .wc-block-components-main, .woocommerce-cart .wc-block-cart .wc-block-components-sidebar, .woocommerce-checkout .wc-block-checkout .wc-block-components-main, .woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar, .woocommerce-checkout form.checkout > #customer_details, .woocommerce-checkout .pap-checkout-summary { grid-column: 1; grid-row: auto; }
  .woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-cart .wc-block-cart .wc-block-components-sidebar, .woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar { padding: 20px; }
  .woocommerce-cart .woocommerce-cart-form td.product-thumbnail img { width: 64px; height: 80px; }
  .woocommerce-cart table.cart td.actions .coupon .input-text { flex: 1; min-width: 0; }
  .woocommerce-cart table.cart td.actions .coupon .button { float: none; width: auto; }
  .woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { float: none; }
}
@media (max-width: 480px) {
  /* Explicit tracks prevent WooCommerce's implicit mobile table columns overflowing. */
  .woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; }
  .woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__product { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
  .woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total { grid-column: 2; grid-row: 2; justify-content: flex-end; margin-top: 12px; }
  .pap-header { padding-inline: 16px; gap: 8px; }
  .pap-header .pap-brand { min-width: 0; font-size: 10px; }
  .pap-header .pap-brand span { max-width: 76px; line-height: 1.3; }
  .pap-header .pap-brand .pap-logo { width: 28px; flex-basis: 28px; }
  .pap-tools summary, .pap-cart { min-width: 44px; width: 44px; }
  .pap-tools .pap-mobile-menu summary { min-width: 52px; width: 52px; }
  .pap-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce ul.products { gap: 32px 14px; }
  .pap-category-grid { gap: 12px; }
  .pap-category-grid a { aspect-ratio: 1; }
  .pap-category-grid b { left: 12px; bottom: 12px; font-size: 11px; letter-spacing: .04em; }
  .pap-category-grid span { right: 12px; bottom: 12px; }
  .pap-section-head { font-size: 10px; letter-spacing: .04em; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Navigation dropdown accessibility and small-screen layout. */
.pap-menu > li > a { white-space: nowrap; }
.pap-menu .sub-menu { z-index: 30; max-height: min(70vh, 560px); overflow-y: auto; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
@media (max-width: 1100px) and (min-width: 801px) { .pap-menu { gap: 14px; } .pap-menu a { font-size: 11px; } }
@media (max-width: 800px) { .pap-mobile-menu .pap-menu > li { border-bottom: 1px solid var(--color-line); } .pap-mobile-menu .pap-menu > li > a { padding: 13px 0; } .pap-mobile-menu .sub-menu { max-height: none; overflow: visible; box-shadow: none; } }

/* Staging repair: restore design tokens and align shared templates. */
:root {
 --pap-width: 1320px; --pap-gutter: clamp(20px, 4vw, 64px);
 --pap-space: clamp(48px, 6vw, 96px);
 --color-line: #e7e7e7; --color-paper: #f7f7f5;
 --color-background: #fff; --color-neutral: #171717;
 --color-secondary: #666; --font-sans: Inter, system-ui, sans-serif;
}
.pap-header .pap-nav-links { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:clamp(14px,2vw,30px); }
.pap-header .pap-nav-links a { display:inline-block; font-size:12px; font-weight:600; text-decoration:none; white-space:nowrap; letter-spacing:.04em; }
.pap-header .pap-nav-links a:hover { text-decoration:underline; }
.pap-header .pap-brand { flex-shrink:0; }
.pap-footer { grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); }
.pap-footer > div:nth-child(2), .pap-footer > div:nth-child(3) { display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.pap-footer > div:nth-child(2) > span, .pap-footer > div:nth-child(3) > span { font-weight:700; font-size:11px; letter-spacing:.08em; }
.pap-footer > .pap-copy { grid-column:1/-1; }
@media(max-width:800px) { .pap-header { flex-wrap:wrap; padding-block:16px; } .pap-header .pap-nav { order:3; flex-basis:100%; } .pap-header .pap-nav-links { justify-content:flex-start; } .pap-footer { grid-template-columns:repeat(2,minmax(0,1fr)); } .pap-footer > div:first-child { grid-column:1/-1; } }
@media(max-width:480px) { .pap-footer { grid-template-columns:1fr; } .pap-footer > div:first-child { grid-column:auto; } }

/* PAP collection navigation and staging landing pages */
.pap-header .pap-nav-links{gap:clamp(9px,1.3vw,22px)}
.pap-header .pap-nav-links a{font-size:clamp(10px,.72vw,12px)}
.pap-footer .pap-footer-group{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.pap-footer .pap-footer-group>span{font-weight:700;font-size:11px;letter-spacing:.08em}
.pap-footer-links{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.pap-footer-links li{margin:0;padding:0}
.pap-footer .pap-footer-group a{display:block;text-decoration:none}
.pap-collection{max-width:var(--pap-width,1200px);margin:0 auto;padding:clamp(48px,7vw,100px) var(--pap-gutter,24px) 110px}
.pap-collection-kicker,.pap-collection-number{font-size:10px;font-weight:700;letter-spacing:.13em;color:#777}
.pap-collection h1{font-size:clamp(38px,5vw,72px);line-height:1.05;letter-spacing:-.045em;margin:24px 0}
.pap-collection-lede{max-width:560px;color:#666;font-size:16px;line-height:1.7;margin-bottom:56px}
.pap-collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.pap-collection-card{min-height:210px;border:1px solid #ddd;background:#f7f7f6;padding:28px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;color:#111;text-decoration:none;transition:background .2s}
.pap-collection-card:hover{background:#ededeb}
.pap-collection-card h2{font-size:clamp(22px,2.2vw,32px);line-height:1.12;letter-spacing:-.03em;margin:16px 0}
.pap-collection-card>span:last-child{font-size:11px;font-weight:700;letter-spacing:.08em}
.pap-collection-note{margin-top:32px;font-size:12px;color:#777}
@media(max-width:1100px){.pap-header{padding-block:12px}.pap-header .pap-nav-links{justify-content:center}}
@media(min-width:801px){.pap-header{flex-wrap:nowrap!important}.pap-header .pap-nav{order:initial!important;flex-basis:auto!important;width:auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important}.pap-header .pap-nav>a{white-space:nowrap!important}}
@media(max-width:750px){.pap-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.pap-collection-grid{grid-template-columns:1fr}.pap-collection-card{min-height:170px}.pap-header .pap-nav-links{gap:12px}}

/* PAP editorial discovery — isolated from product and homepage templates */
.pap-editorial-collection{max-width:1240px;padding-top:clamp(54px,7vw,96px)}
.pap-editorial-collection .pap-collection-lede{margin-bottom:48px}
.pap-editorial-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:22px;row-gap:54px}
.pap-editorial-card{grid-column:span 4;display:block;min-width:0;text-decoration:none!important;color:#111!important}
.pap-editorial-card--1,.pap-editorial-card--2{grid-column:span 6}
.pap-editorial-image{overflow:hidden;background:#eeece9;aspect-ratio:1.23}
.pap-editorial-card--1 .pap-editorial-image,.pap-editorial-card--2 .pap-editorial-image{aspect-ratio:1.34}
.pap-editorial-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.pap-editorial-card:hover .pap-editorial-image img{transform:scale(1.035)}
.pap-editorial-caption{display:flex;justify-content:space-between;gap:20px;padding-top:17px;border-top:1px solid #161616;margin-top:12px}
.pap-editorial-eyebrow{font-size:10px;letter-spacing:.12em;font-weight:700;color:#777}
.pap-editorial-caption h2{font-size:clamp(20px,2vw,30px);line-height:1.16;letter-spacing:-.035em;margin:10px 0 7px;font-weight:650}
.pap-editorial-caption p{font-size:13px;color:#666;line-height:1.5;margin:0}
.pap-editorial-arrow{font-size:21px;flex:none}
@media(max-width:800px){.pap-editorial-card,.pap-editorial-card--1,.pap-editorial-card--2{grid-column:span 6}.pap-editorial-grid{gap:34px 15px}}
@media(max-width:520px){.pap-editorial-card,.pap-editorial-card--1,.pap-editorial-card--2{grid-column:span 12}.pap-editorial-grid{row-gap:35px}.pap-editorial-image,.pap-editorial-card--1 .pap-editorial-image,.pap-editorial-card--2 .pap-editorial-image{aspect-ratio:1.3}}

