/* Design tokens aligned with the theme's :root (fonts, colours, measure, spacing) so the parts pages
   match the rest of the site. Every variable carries a fallback and still works outside the theme.
*/
:root {
    /* colour palette (same as theme) */
    --pi-primary: var(--orange, #F0950A);
    --pi-primary-hover: var(--orange-d, #C97E06);
    --pi-ink: var(--ink, #14162A);
    --pi-muted: var(--muted, #6C6F7B);
    --pi-paper: var(--paper, #F3F1EA);
    --pi-paper-2: var(--paper-2, #E9E6DD);
    --pi-line: var(--line, rgba(20,22,42,.14));
    --pi-border: var(--pi-line);

    /* fonts (same as theme) */
    --pi-display: var(--display, 'Anton', Impact, sans-serif);
    --pi-sans: var(--sans, 'Archivo', -apple-system, 'Segoe UI', Roboto, sans-serif);
    --pi-mono: var(--mono, 'Space Mono', 'Courier New', monospace);

    /* measure and spacing (same as theme .wrap / .container) */
    --pi-container-max: var(--max, 1480px);
    --pi-pad: var(--pad, clamp(20px, 5vw, 72px));
    --pi-section-gap: clamp(72px, 9vw, 140px);

    --pi-border-radius: 0;          /* The design source uses hard right angles; every radius removed. */
    --pi-radius-sm: 0;
    --pi-shadow: none;
    --pi-shadow-hover: 0 10px 30px rgba(20,22,42,.10);
    --pi-gap: 24px;
    --pi-card-min: 280px;

    /* font-size ladder (aligned with the homepage's 16px body and .lead / .specs) */
    --pi-font-size-sm: 13px;
    --pi-font-size-base: 16px;
    --pi-font-size-lg: clamp(1.5rem, 2.4vw, 2rem);
}

body.single-part .entry-meta,
body.single-part .posted-on,
body.single-part .byline,
body.single-part .wp-block-post-author,
body.single-part .wp-block-post-author-name,
body.single-part .wp-block-post-author-biography,
body.single-part .wp-block-post-date,
body.single-part .wp-block-post-terms,
body.single-part .wp-block-group.has-small-font-size,
body.single-part .wp-block-group:has(.wp-block-post-author),
body.single-part .wp-block-group:has(.wp-block-post-date),

body.tax-part_category .entry-meta,
body.tax-part_category .posted-on,
body.tax-part_category .byline,
body.tax-part_category .wp-block-post-author,
body.tax-part_category .wp-block-post-date,
body.tax-part_category .wp-block-post-terms {
    display: none !important;
}

body.single-part .wp-site-blocks > .wp-block-group,
body.tax-part_category .wp-site-blocks > .wp-block-group {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
body.single-part .wp-block-post-title,
body.tax-part_category .wp-block-post-title,
body.single-part .entry-header,
body.tax-part_category .entry-header {
    display: none !important;
}

.pi-container {
    width: 100%;
    max-width: var(--pi-container-max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--pi-pad);
    box-sizing: border-box;
}

/* Breathing room under the header. The header is position:fixed, so it does not push content down and
   its height has to be added to the top padding: calc(var(--hh) + gap). The plain clamp alone left only
   17px of the 86.4px at 1440 (the 69px header ate the rest) and pinned the breadcrumb to it; --hh plus
   the clamp overshot to 91px. Actual clearance is now ~48 / 37 / 27px at 1440 / 1024 / 420. Logged in,
   the admin bar adds 32px, which --hh already covers.
*/
.pi-container > main,
main > .pi-container {
    padding: calc(var(--hh, 74px) + clamp(32px, 3vw, 44px)) var(--pi-pad) var(--pi-section-gap);
}

.pi-container > :first-child {
    margin-top: 0;
}

/* Page title follows the homepage .sec-title (Anton, uppercase, tight leading), scoped to the
   direct-child h1 of .pi-container - archive and search pages only. The detail page's h1 lives inside
   .pi-single-info and needs .pi-single-title. A descendant selector here would be (0,1,1) and beat
   .pi-single-title's (0,1,0), blowing the title up to full-measure size in a half-width column and
   wrapping it onto three lines. The block-rendered path takes the same hit.
*/
.pi-container > h1,
.pi-archive-title {
    font-family: var(--pi-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(2.1rem, 5.2vw, 4.4rem);
    line-height: .96;
    letter-spacing: .005em;
    color: var(--pi-ink);
    margin-top: 0;
    margin-bottom: 22px;
}
.pi-search-title {
    font-family: var(--pi-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1;
    margin: 0 0 24px;
}

/* ── Hide nav dropdown arrows ── */

/* ── Fixed header with scroll effect ── */
.wp-site-blocks {
    overflow: visible !important;
}
header.wp-block-template-part {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}
body.admin-bar header.wp-block-template-part {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar header.wp-block-template-part {
        top: 46px;
    }
}
@media screen and (max-width: 600px) {
    body.admin-bar header.wp-block-template-part {
        top: 0;
    }
}
header.wp-block-template-part > .wp-block-group {
    transition: padding .3s, box-shadow .3s;
}
header.wp-block-template-part.pi-header-shrink > .wp-block-group {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

/* ── Remove gaps between full-width sections on front page ── */
.home main > .alignfull {
    margin-top: 0 !important;
}

/* ── Remove gaps between header/main/footer on front page only ── */
.home .wp-site-blocks > main,
.home .wp-site-blocks > footer {
    margin-top: 0 !important;
}

/* ── Consistent top spacing on non-front pages ── */
body:not(.home) .wp-site-blocks > main {
    margin-top: var(--wp--preset--spacing--50) !important;
    padding-left: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--40);
}
/* standalone alignwide inside main (no constrained parent) */
.wp-site-blocks > main .alignwide {
    max-width: var(--wp--style--global--wide-size, 1280px);
    margin-left: auto;
    margin-right: auto;
}

/* ── Blog listing grid ── */
.page .wp-block-query .wp-block-post {
    display: flex;
    flex-direction: column;
}
.page .wp-block-query .wp-block-post .wp-block-post-featured-image {
    width: 100%;
}
.page .wp-block-query .wp-block-post .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.page .wp-block-query .wp-block-post .wp-block-post-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px;
    line-height: 1.4;
}
.page .wp-block-query .wp-block-post .wp-block-post-title a {
    text-decoration: none;
    color: var(--pi-ink);
}
.page .wp-block-query .wp-block-post .wp-block-post-title a:hover {
    color: var(--pi-primary);
}
.page .wp-block-query .wp-block-post .wp-block-post-date {
    font-size: 13px;
    color: var(--pi-muted);
    margin-bottom: 8px;
}
.page .wp-block-query .wp-block-post .wp-block-post-excerpt {
    font-size: 14px;
    color: var(--pi-muted);
    line-height: 1.6;
    margin-top: 0;
}
.page .wp-block-query .wp-block-post .wp-block-post-excerpt__more-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pi-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.page .wp-block-query .wp-block-post .wp-block-post-excerpt__more-link:hover {
    color: var(--pi-primary-hover);
}
/* ── Single post detail page ── */
.single .wp-block-post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
}
.single .wp-block-post-date {
    font-size: 14px;
    color: var(--pi-muted);
}
.single .wp-block-post-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: var(--wp--preset--spacing--40);
}
/* ── Blog category archive pages ── */
.blog .wp-block-query .wp-block-post,
.archive:not(.woocommerce) .wp-block-query .wp-block-post {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--wp--preset--spacing--50);
}
.blog .wp-block-query .wp-block-post .wp-block-post-featured-image,
.archive:not(.woocommerce) .wp-block-query .wp-block-post .wp-block-post-featured-image {
    width: 100%;
}
.blog .wp-block-query .wp-block-post .wp-block-post-featured-image img,
.archive:not(.woocommerce) .wp-block-query .wp-block-post .wp-block-post-featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}
.blog .wp-block-query .wp-block-post .wp-block-post-title a,
.archive:not(.woocommerce) .wp-block-query .wp-block-post .wp-block-post-title a {
    text-decoration: none;
    color: var(--pi-ink);
    font-size: 20px;
}
.blog .wp-block-query .wp-block-post .wp-block-post-excerpt__more-link,
.archive:not(.woocommerce) .wp-block-query .wp-block-post .wp-block-post-excerpt__more-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pi-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* ── Single post: More Posts grid ── */
.single .wp-block-query .wp-block-post {
    display: flex;
    flex-direction: column;
}
.single .wp-block-query .wp-block-post .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.single .wp-block-query .wp-block-post .wp-block-post-title a {
    text-decoration: none;
    color: var(--pi-ink);
    font-size: 16px;
    line-height: 1.4;
}
.single .wp-block-query .wp-block-post .wp-block-post-title a:hover {
    color: var(--pi-primary);
}
.single .wp-block-query .wp-block-post .wp-block-post-date {
    font-size: 13px;
    color: var(--pi-muted);
}
/* ── Single post: CTA section — force constrained width ── */
.single .has-contrast-background-color.alignfull {
    max-width: var(--wp--style--global--wide-size, 1280px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 8px;
}
.single .has-contrast-background-color.alignfull h3 {
    font-size: 24px;
    margin-bottom: 8px;
}
.single .has-contrast-background-color.alignwide p {
    font-size: 15px;
    opacity: 0.85;
}
body.page .wp-block-post-title {
    margin: 0 auto !important;
    padding: 8px 0 0;
    font-size: 22px;
    max-width: var(--pi-container-max);
}

/* Breadcrumb: mono, small, matching the homepage's mono labels.
   ⚠️ 与 product-showcase 的 .ps-breadcrumb / .ps-sep 必须像素一致（flex + gap 6px、sep 12px 无 margin）——
   产品详情页那边是靠 `body.single-product .ps-breadcrumb` 覆盖成同一套值的，改这里要同步改那边。 */
.pi-breadcrumb {
    font-family: var(--pi-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--pi-muted);
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.pi-breadcrumb a {
    color: var(--pi-muted);
    text-decoration: none;
    transition: color .2s;
}
.pi-breadcrumb a:hover {
    color: var(--pi-primary);
}
.pi-bc-current {
    color: var(--pi-ink);
}
.pi-bc-sep {
    /* 同 .ps-sep：12px（比正文大一档）、无 margin，间距交给父级 flex gap。 */
    font-size: 12px;
    color: var(--pi-line);
}
.pi-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--pi-gap);
    margin: 16px 0;
}

/* Parent category page, tiled and grouped by sub-category. Group headings reuse the homepage's mono
   kicker + Anton title pairing.
*/
.pi-group {
    margin: var(--pi-section-gap) 0 0;
}
.pi-group:first-of-type {
    margin-top: clamp(32px, 4vw, 56px);
}
.pi-group-title {
    position: relative;
    margin: 0 0 28px;
    padding: 0 0 16px;
    font-family: var(--pi-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    line-height: 1.02;
    letter-spacing: .01em;
    color: var(--pi-ink);
    border-bottom: 1px solid var(--pi-line);
}
/* The orange dash left of the heading (same as the homepage .eyebrow::before). */
.pi-group-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 2px;
    background: var(--pi-primary);
}
.pi-group .pi-grid {
    margin-top: 0;
}
@media (max-width: 640px) {
    .pi-group-title {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
}
.pi-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--pi-line);
    border-radius: 0;
    padding: 20px 12px 14px;
    background: var(--pi-paper);
    transition: box-shadow .25s, border-color .25s;
}
.pi-cat-card:hover {
    box-shadow: var(--pi-shadow-hover);
    border-color: var(--pi-primary);
}
.pi-cat-card-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--pi-paper-2);
    margin-bottom: 10px;
    display: block;
}
.pi-cat-card-name {
    font-family: var(--pi-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pi-ink);
    line-height: 1.3;
}

.pi-cat-desc {
    margin: 0 0 clamp(28px, 3.5vw, 48px);
    padding: 20px 24px;
    background: var(--pi-paper-2);
    border-left: 2px solid var(--pi-primary);
    border-radius: 0;
    line-height: 1.75;
    font-size: var(--pi-font-size-base);
    color: var(--pi-muted);
}
.pi-cat-desc p:last-child {
    margin-bottom: 0;
}

.pi-search {
    display: flex;
    gap: 0;
    margin: 0 0 clamp(32px, 4vw, 56px);
    max-width: 420px;
}
.pi-search input {
    flex: 1;
    padding: 14px 16px;
    background: var(--pi-paper-2);
    border: 1px solid var(--pi-line);
    border-radius: 0;
    font-family: var(--pi-sans);
    font-size: var(--pi-font-size-base);
    color: var(--pi-ink);
    outline: none;
    transition: border-color .25s;
}
.pi-search input:focus {
    border-color: var(--pi-primary);
}
.pi-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    border: 1px solid var(--pi-primary);
    background: var(--pi-primary);
    color: #fff;
    border-radius: 0;
    cursor: pointer;
    transition: background .25s, color .25s;
}
.pi-search button:hover {
    background: var(--pi-ink);
    border-color: var(--pi-ink);
}

/* Card grid matches the homepage cards: right angles, hairline border, paper ground. */
.pi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--pi-card-min), 1fr));
    gap: var(--pi-gap);
    margin: clamp(24px, 3vw, 40px) 0 0;
}
.pi-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pi-line);
    border-radius: 0;
    overflow: hidden;
    background: var(--pi-paper);
    transition: box-shadow .25s, border-color .25s, transform .25s;
}
.pi-card:hover {
    box-shadow: var(--pi-shadow-hover);
    border-color: var(--pi-primary);
    transform: translateY(-2px);
}
/* Image area: almost all part photos are 1:1, so aspect-ratio locks the box square and every card's
   image area is the same height. The images are contained, so the few non-square ones are not cropped.
*/
.pi-card-image-link {
    display: block;
    position: relative;
    background: var(--pi-paper-2);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.pi-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
    transition: transform .35s;
}
.pi-card:hover .pi-card-image img {
    transform: scale(1.04);
}
/* Title: Archivo bold, matching the homepage label tone. */
.pi-card h3 {
    margin: 16px 16px 6px;
    font-family: var(--pi-sans);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .01em;
    color: var(--pi-ink);
}
.pi-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: color .2s;
}
.pi-card h3 a:hover {
    color: var(--pi-primary);
}
/* Model / price: mono small text, same as the homepage .specs div span. */
.pi-model, .pi-price {
    margin: 0 16px 4px;
    font-family: var(--pi-mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pi-muted);
}
.pi-price {
    color: var(--pi-ink);
}
.pi-excerpt {
    margin: 8px 16px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pi-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pi-excerpt p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Add to Inquiry is the primary button (orange, same as the homepage .btn-primary). At 12.5px and
   1.25 letter-spacing it needs 104.5px while a half-width button has only 97px of inner width
   (131 - 16*2) and wrapped to two lines, so it is nowrap with tighter size, spacing and padding.
*/
.pi-add-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 16px;
    padding: 13px 12px;
    background: var(--pi-primary);
    color: #fff;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    font-family: var(--pi-sans);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .25s, color .25s, border-color .25s;
    box-sizing: border-box;
}
.pi-add-btn:hover {
    background: var(--pi-ink);
    color: #fff;
}
.pi-add-btn:disabled {
    background: var(--pi-muted);
    border-color: var(--pi-muted);
    cursor: not-allowed;
}
.pi-add-btn.added {
    background: var(--pi-ink);
    border-color: var(--pi-ink);
}

.pi-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 12px 16px;
    margin-top: auto;   /* Keeps the button on the card's bottom edge when content heights differ. */
}
.pi-card-actions .pi-add-btn {
    width: 50%;
    margin: 0;
    padding-left: 8px;
    padding-right: 8px;
    letter-spacing: .04em;
}
.pi-card-actions .pi-add-btn,
.pi-card-actions .pi-inquire-now {
    width: 50%;
    margin: 0;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px;
    letter-spacing: .04em;
    white-space: nowrap;
}

/* Inquiry button (secondary): outlined, in the spirit of the homepage .btn-arrow's square outline. */
.pi-inquire-now {
    padding: 13px 16px;
    background: transparent;
    color: var(--pi-ink);
    border: 1px solid var(--pi-ink);
    border-radius: 0;
    cursor: pointer;
    font-family: var(--pi-sans);
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .25s, color .25s, border-color .25s;
    box-sizing: border-box;
}
.pi-inquire-now:hover {
    background: var(--pi-primary);
    border-color: var(--pi-primary);
    color: #fff;
}

.pi-single-actions {
    display: flex;
    gap: 12px;
    margin: 24px 0 0;
    align-items: center;
    flex-wrap: wrap;
}
.pi-inquire-now-large {
    padding: 16px 32px;
    font-size: 13.5px;
    margin: 20px 0 0;
}

.pi-single-detail {
    display: flex;
    gap: clamp(32px, 4vw, 64px);
    margin: clamp(24px, 3vw, 40px) 0 0;
}
/* Detail page two columns, image / info split evenly. Trap: single-part.php uses .pi-single-image
   (singular) while the block-rendered path in class-frontend.php uses .pi-single-images (plural) - both
   have to be written, or that path's image column has no width constraint and a 1000px photo squeezes
   the info column to 238px at 1440 and to 0px at 1024. flex:1 1 0 splits evenly; flex-basis:50% means
   50% each plus the gap, which always overflows.
*/
.pi-single-image,
.pi-single-images {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    position: relative;   /* anchor for the exploded-diagram badge */
}
/* Exploded-diagram item number ("No." in the drawing), shown as #N on the image's
   top-right so buyers can cross-reference the part against the diagram. Mono + hard
   angles to match the rest of the parts pages; --pi-ink on --pi-paper stays readable
   on both light photos and the paper-2 empty state. */
.pi-diagram-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    background: var(--pi-ink);
    color: var(--pi-paper);
    font-family: var(--pi-mono);
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.04em;
}
.pi-main-img-wrap {
    position: relative;
    background: var(--pi-paper-2);
    border: 1px solid var(--pi-line);
}
.pi-main-img-wrap img {
    width: 100%;
    border-radius: 0;
    display: block;
    mix-blend-mode: multiply;
}
.pi-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 0;
    background: var(--pi-ink);
    color: var(--pi-paper);
    font-size: 20px;
    cursor: pointer;
    line-height: 40px;
    text-align: center;
    opacity: 0;
    transition: opacity .25s, background .25s;
    z-index: 2;
    padding: 0;
}
.pi-main-img-wrap:hover .pi-nav {
    opacity: 1;
}
.pi-nav:hover {
    background: var(--pi-primary);
}
.pi-nav-left { left: 0; }
.pi-nav-right { right: 0; }
/* Part gallery: a vertical thumbnail rail left of the main image, 4 visible at a time.
   The same feature and structure as the product page's .ps-gallery (product-showcase), restyled
   with the parts pages' hard-angle tokens. The rail's height has to equal the main image's, which
   varies with the viewport, so script.js syncPiRailHeight() writes it into --pi-gallery-h and the
   per-cell size is derived from it. Nav arrows overlay the track ends and show on hover, which is
   why the end cells keep no extra gap. */
.pi-gallery {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.pi-gallery .pi-main-img-wrap {
    flex: 1 1 auto;
    min-width: 0;
}
.pi-thumb-strip {
    --pi-thumb-size: 80px;
    --pi-thumb-gap: 10px;
    --pi-thumb-visible: 4;

    /* Main image height lands here from script.js; the fallback is the old 4x80 algorithm.
       Three gaps are subtracted and the remainder split into four cells. */
    --pi-thumb-auto: calc(
        (var(--pi-gallery-h, calc(var(--pi-thumb-visible) * var(--pi-thumb-size) + (var(--pi-thumb-visible) - 1) * var(--pi-thumb-gap)))
         - (var(--pi-thumb-visible) - 1) * var(--pi-thumb-gap)) / var(--pi-thumb-visible));

    position: relative;                 /* positioning context for the arrows */
    flex: 0 0 auto;
    width: var(--pi-thumb-auto, var(--pi-thumb-size));
}
.pi-thumb-viewport {
    overflow: hidden;
    /* 4 cells + 3 gaps exactly fill the main image height */
    height: calc(var(--pi-thumb-visible) * var(--pi-thumb-auto, var(--pi-thumb-size)) + (var(--pi-thumb-visible) - 1) * var(--pi-thumb-gap));
}
.pi-thumb-track {
    display: flex;
    flex-direction: column;
    gap: var(--pi-thumb-gap);
    transition: transform .42s cubic-bezier(.33, 0, .2, 1);
    will-change: transform;
}
.pi-thumb {
    /* flex-shrink:0 or the viewport's height squashes the cells */
    flex: 0 0 auto;
    width: var(--pi-thumb-auto, var(--pi-thumb-size));
    height: var(--pi-thumb-auto, var(--pi-thumb-size));
    object-fit: contain;
    cursor: pointer;
    border: 1px solid var(--pi-line);
    background: var(--pi-paper-2);
    box-sizing: border-box;
    opacity: .7;
    transition: opacity .2s, border-color .2s;
}
.pi-thumb.active,
.pi-thumb:hover {
    border-color: var(--pi-primary);
    opacity: 1;
}
/* Up/down arrows, treated like the main image's .pi-nav: solid ground, overlay the end cells. */
.pi-thumb-nav {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    height: 30px;
    padding: 0;
    border: none;
    background: var(--pi-ink);
    color: var(--pi-paper);
    font-size: 12px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s, background .25s;
}
.pi-thumb-up   { top: 0; }
.pi-thumb-down { bottom: 0; }
.pi-thumb-strip:hover .pi-thumb-nav,
.pi-thumb-nav:focus-visible {
    opacity: 1;
}
.pi-thumb-nav:hover {
    background: var(--pi-primary);
}
/* Cross-fade: the ghost sits over #pi-main-image, fades in while the main fades out, and only
   then is src written — writing it directly flashes white for a frame. */
.pi-main-ghost {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity .42s ease;
}
.pi-main-ghost.is-active {
    opacity: 1;
}
#pi-main-image {
    transition: opacity .42s ease;
}
#pi-main-image.is-fading {
    opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
    .pi-main-ghost,
    #pi-main-image,
    .pi-thumb-track {
        transition: none;
    }
}
.pi-single-info {
    flex: 1 1 0;
    min-width: 0;
    /* When the columns sit side by side the title needs air above it (when stacked, the flex gap covers
       it, and the <=768px media query zeroes this out).
    */
    padding-top: 50px;
    /* Stacked in the column so the share bar can be pushed to the bottom with margin-top:auto. */
    display: flex;
    flex-direction: column;
}
/* The share bar is pushed to the column's bottom because the detail image is a 619px square while the
   copy runs ~450px, leaving the right column top-heavy; pushed down, its hairline rule lines up with the
   image's bottom edge. auto collapses it back when the description is longer than the image.
*/
.pi-single-info > .pi-share { margin-top: auto; }
/* Part title: same as the page title but one step smaller. */
.pi-single-title {
    margin: 0 0 16px;
    font-family: var(--pi-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1;
    letter-spacing: .01em;
    color: var(--pi-ink);
}
.pi-single-summary {
    font-size: var(--pi-font-size-base);
    color: var(--pi-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 0;
}
/* Part number: the metadata line between title and body. Its top margin is 0 so it collapses with the
   title's margin-bottom; the bottom margin has to be enough or the line reads as part of the paragraph.
*/
.pi-single-model, .pi-single-price {
    font-family: var(--pi-mono);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pi-muted);
    margin: 0 0 18px;
}
.pi-add-btn-large {
    padding: 16px 32px;
    font-size: 13.5px;
    width: auto;
    display: inline-block;
    margin: 20px 0 0;
}

/* ── Share buttons ── */
.pi-share {
    display: flex;
    align-items: center;
    /* Narrow screens (the <=320px tier): label plus five icons wrap instead of overflowing. */
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--pi-line);
}
.pi-share-label {
    font-family: var(--pi-mono);
    font-size: 11px;
    color: var(--pi-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    margin-right: 6px;
}
.pi-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0;
    color: var(--pi-muted);
    background: var(--pi-paper-2);
    text-decoration: none;
    transition: background .2s, color .2s;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}
.pi-share-link:hover {
    color: #fff;
}
.pi-share-facebook:hover { background: #1877f2; }
.pi-share-twitter:hover { background: #000; }
.pi-share-linkedin:hover { background: #0a66c2; }
.pi-share-whatsapp:hover { background: #25d366; }
.pi-share-copy:hover { background: #666; }
.pi-share-copy.copied { background: #22c55e; color: #fff; }
.pi-share-copy-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.pi-share-copy.copied .pi-share-copy-tooltip {
    opacity: 1;
}

/* ── Section (long description) ── */
.pi-section {
    margin: clamp(40px, 5vw, 72px) 0 0;
}
.pi-section-title {
    font-family: var(--pi-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    line-height: 1.05;
    color: var(--pi-ink);
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pi-line);
}
.pi-long-desc {
    line-height: 1.75;
    font-size: var(--pi-font-size-base);
    color: var(--pi-muted);
}

/* ── Lightbox ── */
.pi-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.pi-lb-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
}
.pi-lb-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: .7;
}
.pi-lb-close:hover { opacity: 1; }
.pi-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 40px;
    width: 50px;
    height: 60px;
    cursor: pointer;
    border-radius: 6px;
    line-height: 60px;
    text-align: center;
    transition: background .2s;
    padding: 0;
}
.pi-lb-nav:hover { background: rgba(255,255,255,.3); }
.pi-lb-prev { left: 16px; }
.pi-lb-next { right: 16px; }

#pi-floating-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}
#pi-floating-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--pi-primary);
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    transition: transform .2s;
}
#pi-floating-toggle:hover {
    transform: scale(1.05);
}
#pi-floating-count {
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    display: none;
}
#pi-floating-toggle.has-items #pi-floating-count {
    display: inline-block;
}

#pi-floating-dropdown {
    display: none;
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 360px;
    background: var(--pi-paper);
    border: 1px solid var(--pi-line);
    border-radius: 0;
    box-shadow: 0 18px 40px rgba(20,22,42,.22);
    overflow: hidden;
}
#pi-floating-dropdown.open {
    display: block;
}
.pi-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pi-line);
    background: var(--pi-paper-2);
    font-family: var(--pi-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.pi-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--pi-muted);
    padding: 0 4px;
}
.pi-close-btn:hover {
    color: var(--pi-primary);
}
#pi-dropdown-items {
    max-height: 320px;
    overflow-y: auto;
}
.pi-dropdown-item {
    display: grid;
    grid-template-columns: 36px 1fr auto 28px;
    gap: 8px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--pi-line);
}
.pi-dropdown-item:last-child {
    border-bottom: none;
}
.pi-item-img {
    width: 36px;
    height: 36px;
    border-radius: 0;
    object-fit: contain;
    background: var(--pi-paper-2);
    mix-blend-mode: multiply;
}
.pi-item-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.pi-item-model {
    font-family: var(--pi-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pi-muted);
}
.pi-item-qty {
    font-size: 13px;
    color: #666;
    text-align: center;
}
.pi-remove-item {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    text-align: center;
    line-height: 1;
}
.pi-remove-item:hover {
    color: #c0392b;
    background: var(--pi-paper-2);
}
.pi-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.pi-qty-minus,
.pi-qty-plus {
    width: 22px;
    height: 22px;
    border: 1px solid var(--pi-line);
    border-radius: 0;
    background: var(--pi-paper);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    padding: 0;
    transition: background .15s;
}
.pi-qty-minus:hover,
.pi-qty-plus:hover {
    background: #f0f0f0;
    border-color: #bbb;
}
.pi-qty-input {
    width: 36px;
    height: 22px;
    text-align: center;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 13px;
    padding: 0;
    color: #222;
    font-weight: 600;
    -moz-appearance: textfield;
}
.pi-qty-input::-webkit-outer-spin-button,
.pi-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#pi-modal-form .pi-qty-control .pi-qty-minus,
#pi-modal-form .pi-qty-control .pi-qty-plus {
    width: 20px;
    height: 20px;
    font-size: 12px;
}
#pi-modal-form .pi-qty-control .pi-qty-input {
    width: 30px;
    height: 20px;
    font-size: 11px;
    color: #222;
    font-weight: 600;
}

.pi-dropdown-empty,
.pi-modal-empty {
    padding: 40px 16px;
    text-align: center;
    color: #999;
    font-size: 13px;
}
.pi-dropdown-footer {
    display: flex;
    padding: 12px 16px;
    gap: 10px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.pi-btn-link {
    flex: 1;
    padding: 8px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    font-size: 13px;
}
.pi-btn-link:hover {
    background: #f5f5f5;
}
.pi-btn-primary {
    flex: 1;
    padding: 8px;
    background: var(--pi-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.pi-btn-primary:hover {
    background: #1a5a8c;
}
.pi-btn-primary:disabled,
.pi-btn-link:disabled {
    opacity: .5;
    cursor: not-allowed;
}

#pi-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    overflow-y: auto;
    padding: 40px 16px;
}
#pi-modal {
    background: #fff;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,.2);
}
.pi-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.pi-modal-header h3 {
    margin: 0;
    font-size: 18px;
}
.pi-modal-body {
    padding: 20px;
}

#pi-modal-form .pi-modal-cart-list {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}
#pi-modal-form .pi-modal-list-header {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
#pi-modal-form .pi-modal-item {
    display: grid;
    grid-template-columns: 28px 1fr auto 28px;
    gap: 10px;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px solid #f0f0f0;
}
#pi-modal-form .pi-modal-item:last-child {
    border-bottom: none;
}
#pi-modal-form .pi-modal-item-img {
    width: 28px;
    height: 28px;
    border-radius: 3px;
    object-fit: cover;
}
#pi-modal-form .pi-modal-item-title {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
#pi-modal-form .pi-modal-item-model {
    font-size: 11px;
    color: #888;
}
#pi-modal-form .wpforms-container {
    margin: 0;
}
#pi-modal-form .wpforms-head-container {
    display: none;
}
#pi-modal-form .wpforms-submit-container {
    text-align: right;
}

/* Accordion of same-model parts at the foot of the detail page: every system category for that model in
   one table, collapsed by category. Native <details>/<summary> so it works without JS; the browser's
   default triangle is removed and a +/- drawn with ::before/::after.
*/
.pi-acc-section {
    margin-top: clamp(48px, 6vw, 80px);
}
.pi-acc-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 4px;
    font-family: var(--pi-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.02;
    letter-spacing: .01em;
    color: var(--pi-ink);
}
.pi-acc-total {
    font-family: var(--pi-mono);
    font-size: 12px;
    letter-spacing: .1em;
    color: var(--pi-muted);
}
.pi-acc {
    margin-top: 18px;
    border-top: 1px solid var(--pi-line);
}
.pi-acc-item {
    border-bottom: 1px solid var(--pi-line);
}
.pi-acc-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 2px;
    cursor: pointer;
    list-style: none;
    transition: color .2s;
}
.pi-acc-head::-webkit-details-marker { display: none; }
.pi-acc-head:hover { color: var(--pi-primary); }
.pi-acc-name {
    font-family: var(--pi-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: inherit;
}
.pi-acc-count {
    font-family: var(--pi-mono);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--pi-muted);
}
/* +/-: two 1px lines, the vertical one hidden when open. */
.pi-acc-mark {
    position: relative;
    width: 12px;
    height: 12px;
    margin-left: auto;
    flex: 0 0 12px;
    color: var(--pi-primary);
}
.pi-acc-mark::before,
.pi-acc-mark::after {
    content: "";
    position: absolute;
    background: currentColor;
}
.pi-acc-mark::before { left: 0; right: 0; top: 50%; height: 1px; }
.pi-acc-mark::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.pi-acc-item[open] .pi-acc-mark::after { display: none; }

.pi-acc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    margin: 0;
    padding: 2px 0 16px;
    list-style: none;
}
/* Grid items default to min-width:auto and get pushed wider than their track by the nowrap button
   inside, which overflows the screen at one column. The li has to have that floor released.
*/
.pi-acc-li { min-width: 0; }
/* One row = thumbnail + name + part number + (Current tag) + Add to Inquiry. .pi-acc-link is only the
   clickable part of the row: a <button> cannot be nested inside an <a>, so link and button are siblings.
*/
.pi-acc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 2px;
    border-top: 1px solid transparent;
    font-size: 14px;
    line-height: 1.35;
    transition: border-color .2s;
}
.pi-acc-row:hover { border-top-color: var(--pi-line); }
.pi-acc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    color: var(--pi-ink);
    text-decoration: none;
    transition: color .2s;
}
.pi-acc-link:hover { color: var(--pi-primary); }
.pi-acc-row-name { flex: 1; min-width: 0; }
.pi-acc-thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: block;
    background: var(--pi-paper-2);
    border: 1px solid var(--pi-line);
}
.pi-acc-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pi-acc-row-model {
    font-family: var(--pi-mono);
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--pi-muted);
    white-space: nowrap;
}
/* The current part: marked, and its name is not a link (clicking would only reload the page). */
.pi-acc-row.is-current .pi-acc-row-name { color: var(--pi-primary); }
.pi-acc-row.is-current .pi-acc-thumb { border-color: var(--pi-primary); }
.pi-acc-flag {
    flex: 0 0 auto;
    padding: 3px 8px;
    border: 1px solid var(--pi-primary);
    color: var(--pi-primary);
    font-family: var(--pi-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
}
/* The in-row add button: the .pi-add-btn card sizing (block / full width / 16px margin) reduced to a small button. */
.pi-acc-add {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 0;
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: .08em;
}

.pi-pagination {
    margin: 10px 0 16px;
    text-align: center;
}
.pi-pagination ul {
    display: inline-flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pi-pagination li {
    margin: 0;
}
.pi-pagination a,
.pi-pagination span {
    display: block;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    color: #555;
    min-width: 28px;
    box-sizing: border-box;
}
.pi-pagination a:hover {
    background: #f0f6fc;
    border-color: var(--pi-primary);
    color: var(--pi-primary);
}
.pi-pagination .current {
    background: var(--pi-primary);
    color: #fff;
    border-color: var(--pi-primary);
}
.pi-pagination .dots {
    border: none;
    color: #999;
}

/* Accordion goes to one column at <=1024px. At two columns each row is (measure - gap)/2 wide, and a
   row needs a fixed ~275px (44 thumbnail + 62 tail + 133 button + 36 spacing); narrower squeezes the
   part name to a few pixels or overflows. 1024 matches the theme's own breakpoint.
*/
@media (max-width: 1024px) {
    .pi-acc-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}

@media (max-width: 768px) {
    .pi-single-detail {
        flex-direction: column;
    }
    /* Once stacked, flex-basis:0 resolves against height (each taking half the height), so all three need
       resetting. Previously only the plural class was written, so it never applied.
    */
    .pi-single-image,
    .pi-single-images,
    .pi-single-info {
        flex: none;
    }
    /* When stacked, the gap between image and text already comes from .pi-single-detail's gap; adding top
       padding to the info column would stack the two.
    */
    .pi-single-info { padding-top: 0; }
    .pi-lb-prev { left: 4px; }
    .pi-lb-next { right: 4px; }
    .pi-lb-nav {
        font-size: 28px;
        width: 36px;
        height: 50px;
        line-height: 50px;
    }
    .pi-lightbox { padding: 10px; }
    /* Narrow screens get a tighter rail, same ratios as the product page at this width. */
    .pi-gallery { gap: 10px; }
    .pi-thumb-strip {
        --pi-thumb-gap: 8px;
        --pi-thumb-size: 68px;
    }
    .pi-thumb-nav {
        height: 26px;
        line-height: 26px;
        font-size: 10px;
    }
    #pi-floating-dropdown {
        width: 300px;
        right: 0;
    }
    #pi-modal {
        margin: 0;
        border-radius: 0;
    }
    #pi-modal-overlay {
        padding: 0;
    }
}

/* Very narrow screens (~360px): rather than cramming thumbnail + name + part number + button into one
   row, the button wraps to a second line. The part number stays nowrap, the name takes the wrapping.
*/
@media (max-width: 400px) {
    .pi-acc-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .pi-acc-link {
        flex: 1 1 100%;
    }
    .pi-acc-add {
        margin-left: auto;
    }
}

.pi-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    color: #fff;
    background: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}
.pi-toast-error {
    background: #d63638;
}
.pi-toast-info {
    background: #2271b1;
}

/* ── Full-screen Search Overlay ── */
.pi-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}
.pi-search-overlay.open {
    display: flex;
}
.pi-search-overlay-inner {
    width: 100%;
    max-width: 640px;
    padding: 0 24px;
    position: relative;
}
.pi-search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    opacity: .7;
    padding: 4px 8px;
    line-height: 1;
}
.pi-search-close:hover {
    opacity: 1;
}
.pi-search-form {
    display: flex;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    transition: border-color .2s;
}
.pi-search-form:focus-within {
    border-color: #fff;
}
.pi-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 28px;
    padding: 12px 0;
    font-weight: 300;
}
.pi-search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

