/* ═══════════════════════════════════════════════════════════════════════
   EDITORIAL PASS — custom catalog, not a WooCommerce template
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --ink: #0c1220;
    --paper: #f4f5f7;
    --rule: rgba(12, 18, 32, 0.1);
}

body.prc-editorial {
    background: var(--paper);
}

/* ── Header: quieter, less SaaS ───────────────────────────────────────── */

.prc-editorial .promo-strip {
    justify-content: center;
    gap: 2rem;
    padding: 0.35rem 1rem;
    background: var(--ink);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
}

.prc-editorial .promo-strip span + span::before {
    content: "·";
    margin-right: 2rem;
    color: rgba(255, 255, 255, 0.35);
}

.prc-editorial .header-inner {
    min-height: 76px;
    width: min(1280px, calc(100% - 48px));
}

.prc-editorial .brand-text {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.prc-editorial .product-search {
    max-width: 220px;
    border-color: var(--rule);
}

.home-mobile-search {
    display: none;
}

.prc-editorial .menu a {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* ── Homepage masthead ────────────────────────────────────────────────── */

.home-editorial .masthead-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.masthead-hero__ruo {
    margin: 0 0 1rem;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.masthead-hero h1 {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.masthead-hero__lede {
    max-width: 42ch;
    margin: 1.35rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.65;
}

.masthead-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.button-ghost {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 0 1.1rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font-weight: 800;
}

.button-ghost:hover {
    border-color: rgba(0, 87, 217, 0.35);
    color: var(--blue);
}

.masthead-hero__figure {
    margin: 0;
    padding: 0;
}

.masthead-hero__figure img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 28px 48px rgba(12, 18, 32, 0.14));
}

/* ── Standards band ─────────────────────────────────────────────────── */

.standards-band {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: #ffffff;
}

.standards-band ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.standards-band li {
    padding: 1.1rem 1.25rem;
    border-right: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.standards-band li:last-child {
    border-right: 0;
}

.standards-band strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text);
    font-size: 0.88rem;
}

/* ── Category chips ─────────────────────────────────────────────────── */

.catalog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: min(1280px, calc(100% - 48px));
    margin: 1.5rem auto 0;
    padding: 0;
}

.catalog-chips--home {
    margin-bottom: 0.5rem;
}

.catalog-chips__item {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 0.95rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.catalog-chips__item:hover,
.catalog-chips__item.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #ffffff;
}

/* ── Catalog index (homepage + shop) ──────────────────────────────────── */

.catalog-index {
    width: min(1280px, calc(100% - 48px));
    margin: 2.5rem auto 4rem;
}

.catalog-index__head {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
}

.catalog-index__head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.catalog-index__head p {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.catalog-index__grid,
.catalog-stage__main ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    border: 1px solid var(--rule);
    background: #ffffff;
}

/* ── Catalog tiles (shared) ───────────────────────────────────────────── */

.catalog-tile,
.catalog-tile-wrap {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.catalog-tile__link,
.catalog-tile-wrap a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    border: 0 !important;
    border-right: 1px solid var(--rule) !important;
    border-bottom: 1px solid var(--rule) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    text-decoration: none !important;
    transition: background 0.18s ease !important;
    min-height: 0 !important;
    transform: none !important;
}

.catalog-index__grid .catalog-tile:nth-child(3n) .catalog-tile__link,
.catalog-stage__main ul.products li:nth-child(3n) a.woocommerce-LoopProduct-link {
    border-right: 0 !important;
}

.catalog-index__grid .catalog-tile:nth-last-child(-n+3) .catalog-tile__link,
.catalog-stage__main ul.products li:nth-last-child(-n+3) a.woocommerce-LoopProduct-link {
    border-bottom: 0 !important;
}

.catalog-tile__link:hover,
.catalog-tile-wrap a.woocommerce-LoopProduct-link:hover {
    background: #fafbfd !important;
    transform: none !important;
    box-shadow: none !important;
}

.catalog-tile__image,
.catalog-tile-wrap img {
    width: 100% !important;
    height: auto !important;
    padding: 1.25rem 1.25rem 0 !important;
    object-fit: contain !important;
    background: transparent !important;
    filter: none !important;
    aspect-ratio: unset !important;
}

.catalog-tile__body,
.catalog-tile-wrap .catalog-tile__body {
    padding: 0.85rem 1.15rem 1.15rem;
}

.catalog-tile__title,
.catalog-tile-wrap .catalog-tile__title,
.catalog-tile-wrap .woocommerce-loop-product__title {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--text) !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

.catalog-tile__meta,
.catalog-tile-wrap .catalog-tile__meta {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
}

/* Card CTA button stays hidden (cards are link surfaces); meta line is
   re-enabled in site-craft.css so mg · purity · stock reads on every card. */
.prc-vial-card__cta {
    display: none !important;
}

/* ── Editorial split ────────────────────────────────────────────────── */

.editorial-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 2.5rem;
    align-items: center;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto 4rem;
    padding: 3rem 0;
    border-top: 1px solid var(--rule);
}

.editorial-split h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.editorial-split p {
    max-width: 46ch;
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.text-link {
    display: inline-flex;
    margin-top: 1.25rem;
    color: var(--blue);
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: none;
}

.editorial-split__media {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
}

.editorial-split__media img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Catalog CTA ──────────────────────────────────────────────────────── */

.catalog-cta {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto 4.5rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    background: var(--ink);
    color: #ffffff;
}

.catalog-cta__eyebrow {
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.catalog-cta h2 {
    margin: 0;
    max-width: 16ch;
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.catalog-cta .button-primary {
    margin-top: 1.75rem;
    background: #ffffff;
    color: var(--ink);
    box-shadow: none;
}

/* ── Shop page ────────────────────────────────────────────────────────── */

.prc-shop-archive .commerce-shell {
    width: min(1280px, calc(100% - 48px));
    padding-top: 0;
}

.catalog-masthead {
    padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
    border-bottom: 1px solid var(--rule);
}

.catalog-masthead__ruo {
    margin: 0 0 0.65rem;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.catalog-masthead h1 {
    margin: 0;
    max-width: 14ch;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.catalog-masthead__lede {
    max-width: 52ch;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.catalog-stage {
    width: 100%;
}

.catalog-stage__main {
    width: 100%;
}

.prc-shop-archive .shop-rail,
.prc-shop-archive .shop-catalog-layout aside {
    display: none !important;
}

.shop-toolbar-premium {
    display: none !important;
}

/* ── Single product ───────────────────────────────────────────────────── */

.prc-single-product .woocommerce div.product {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.prc-single-product .woocommerce div.product div.images {
    position: sticky;
    top: 108px;
    padding: 1.5rem;
    /* Stage comes from site-craft.css — do not force sticker-white */
    background: transparent;
    border: 0;
}

.prc-single-product .woocommerce div.product div.images img {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.prc-single-product .product_title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.prc-single-product .ruo-notice {
    background: #ffffff;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--blue);
}

.prc-single-product .product-availability--waitlist {
    background: #ffffff;
    border: 1px solid var(--rule);
    color: var(--text);
}

.prc-single-product .product-specs-block--premium,
.prc-single-product .product-coa-block {
    border: 1px solid var(--rule);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.prc-single-product .product-coa-block {
    background: #fafbfd;
}

.prc-single-product .notify-me-block--premium {
    border-radius: 0;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.prc-editorial .site-footer {
    border-top: 1px solid var(--rule);
    background: #ffffff;
}

.prc-editorial .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
}

.prc-editorial .footer-disclaimer {
    border-top: 0;
    padding-top: 0;
    max-width: 72ch;
}

/* ── Hide old template sections if any remain ─────────────────────────── */

.home-editorial .hero-section,
.home-editorial .category-section,
.home-editorial .visual-merch-section,
.home-editorial .trust-section,
.home-editorial .featured-products,
.home-editorial .workflow-section,
.home-editorial .checkout-section,
.home-editorial .proof-strip {
    display: none !important;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 980px) {
    .masthead-hero,
    .editorial-split {
        grid-template-columns: 1fr;
    }

    .masthead-hero__figure {
        order: -1;
        max-width: 320px;
    }

    .standards-band ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .standards-band li:nth-child(2) {
        border-right: 0;
    }

    .catalog-index__grid,
    .catalog-stage__main ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .catalog-index__grid .catalog-tile:nth-child(3n) .catalog-tile__link,
    .catalog-stage__main ul.products li:nth-child(3n) a.woocommerce-LoopProduct-link {
        border-right: 1px solid var(--rule) !important;
    }

    .catalog-index__grid .catalog-tile:nth-child(2n) .catalog-tile__link,
    .catalog-stage__main ul.products li:nth-child(2n) a.woocommerce-LoopProduct-link {
        border-right: 0 !important;
    }

    .prc-single-product .woocommerce div.product div.images {
        position: static;
    }
}

@media (max-width: 600px) {
    .standards-band ul {
        grid-template-columns: 1fr;
    }

    .standards-band li {
        border-right: 0;
        border-bottom: 1px solid var(--rule);
    }

    .catalog-index__grid,
    .catalog-stage__main ul.products {
        grid-template-columns: 1fr !important;
    }

    .catalog-tile__link,
    .catalog-tile-wrap a.woocommerce-LoopProduct-link {
        border-right: 0 !important;
    }

    .prc-editorial .header-inner {
        width: min(100% - 28px, 1280px);
    }

    .catalog-index,
    .catalog-chips,
    .catalog-masthead,
    .masthead-hero,
    .editorial-split,
    .catalog-cta {
        width: min(100% - 28px, 1280px);
    }
}
