/* Editorial product catalog */

.products-body {
    background: #f7f7f6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.products-main {
    position: relative;
    width: min(calc(100% - 24rem), 78rem);
    margin: 0 auto;
    padding: clamp(3rem, 5vw, 4.5rem) 1.5rem 5rem;
}

.products-main h1,
.products-main h2,
.products-main h3 {
    text-wrap: balance;
}

.products-main p,
.products-main small {
    text-wrap: pretty;
}

.catalog-heading {
    display: grid;
    grid-template-columns: auto minmax(3rem, 1fr) auto;
    gap: clamp(1rem, 2vw, 2rem);
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.products-main .page-title {
    margin: 0 0 clamp(2rem, 4vw, 3.25rem);
    color: var(--brand-dark);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.06em;
    line-height: 0.9;
    text-transform: none;
}

.catalog-heading .page-title {
    margin-bottom: 0;
    white-space: nowrap;
}

.catalog-heading-action:empty {
    display: none;
}

.catalog-download {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--magenta);
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition-property: color, border-color;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.catalog-download:hover,
.catalog-download:focus-visible {
    border-color: var(--brand-dark);
    color: var(--magenta);
}

.catalog-download:focus-visible {
    outline: 2px solid var(--magenta);
    outline-offset: 4px;
}

/* Live product search */
.catalog-search {
    position: relative;
    z-index: 20;
    display: grid;
    width: 48px;
    min-width: 48px;
    grid-template-columns: 48px minmax(0, 1fr);
    justify-self: start;
    transition: width 220ms cubic-bezier(0.2, 0, 0, 1);
}

.catalog-search.is-open {
    width: 100%;
}

.catalog-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.catalog-sidebar-eyebrow { display: none; }

.catalog-search-toggle,
.catalog-search-control {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(var(--brand-dark-rgb), 0.34);
    background: rgba(var(--white-rgb), 0.76);
    transition-property: border-color, box-shadow, background-color;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.catalog-search-toggle {
    z-index: 2;
    display: grid;
    width: 48px;
    min-height: 48px;
    place-items: center;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(var(--brand-dark-rgb), 0.34);
    background: transparent;
    color: var(--magenta);
    cursor: pointer;
    transition-property: color, border-color, background-color;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.catalog-search-toggle:hover,
.catalog-search-toggle:focus-visible,
.catalog-search.is-open .catalog-search-toggle {
    border-color: var(--magenta);
    outline: 0;
    background: var(--white);
}

.catalog-search-control {
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition-property: border-color, box-shadow, background-color, opacity;
}

.catalog-search.is-open .catalog-search-control {
    opacity: 1;
    pointer-events: auto;
}

.catalog-search-control:focus-within {
    border-color: var(--magenta);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(var(--brand-dark-rgb), 0.07);
}

.catalog-search-input {
    width: 100%;
    min-height: 54px;
    min-width: 0;
    padding: 0.72rem 3.4rem 0.72rem 0.35rem;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--brand-dark);
    font: inherit;
    font-size: 1rem;
}

.catalog-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.catalog-search-input::-webkit-search-cancel-button {
    display: none;
}

.catalog-search-clear {
    position: absolute;
    right: 0.35rem;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 120ms ease-out;
}

.catalog-search-clear[hidden] {
    display: none;
}

.catalog-search-clear:hover,
.catalog-search-clear:focus-visible {
    color: var(--magenta);
}

.catalog-search-clear:focus-visible {
    outline: 2px solid var(--magenta);
    outline-offset: -4px;
}

.catalog-search-popover {
    position: absolute;
    top: 100%;
    right: 0;
    left: 48px;
    z-index: 30;
    max-height: min(31rem, 68vh);
    overflow-y: auto;
    border-top: 2px solid var(--magenta);
    background: var(--white);
    box-shadow: 0 22px 48px rgba(var(--brand-dark-rgb), 0.15);
}

.catalog-search-status {
    padding: 0.8rem 1rem 0.65rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog-search-result {
    display: grid;
    min-height: 62px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(var(--brand-dark-rgb), 0.1);
    color: var(--brand-dark);
    text-decoration: none;
    transition-property: color, background-color, padding-left;
    transition-duration: 120ms;
    transition-timing-function: ease-out;
}

.catalog-search-result:hover,
.catalog-search-result:focus-visible,
.catalog-search-result.is-active {
    padding-left: 1.35rem;
    outline: 0;
    background: rgba(var(--shadow-rgb-magenta), 0.06);
    color: var(--magenta);
}

.catalog-search-result-copy {
    min-width: 0;
}

.catalog-search-result-copy strong,
.catalog-search-result-copy small {
    display: block;
}

.catalog-search-result-copy strong {
    margin-bottom: 0.2rem;
    font-size: 1rem;
    font-weight: 500;
}

.catalog-search-result-copy small {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-search-result-category {
    color: var(--text-muted);
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-align: right;
    text-transform: uppercase;
}

/* Product grid */
.catalog-layout {
    position: relative;
}

.catalog-products {
    min-width: 0;
}

.catalog-sidebar {
    position: absolute;
    top: 0;
    right: calc(100% + clamp(1rem, 2vw, 2rem));
    bottom: 0;
    width: 11rem;
}

.catalog-sidebar-sticky {
    position: sticky;
    top: 7.5rem;
    padding: 0.25rem 1.5rem 1rem 0;
}

.catalog-sidebar-eyebrow {
    margin-bottom: 1rem;
}

.catalog-toc-group {
    margin-bottom: 0.58rem;
}

.catalog-toc-category {
    position: relative;
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    color: var(--brand-dark);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    line-height: 1.15;
    text-decoration: none;
    transition: color 150ms ease-out;
}

.catalog-toc-group.is-current .catalog-toc-category,
.catalog-toc-category:hover,
.catalog-toc-category:focus-visible {
    color: var(--magenta);
}

.catalog-toc-category:focus-visible,
.catalog-toc-product:focus-visible {
    outline: 2px solid var(--magenta);
    outline-offset: 2px;
}

.catalog-toc-products {
    display: flex;
    flex-direction: column;
}

.catalog-toc-product {
    position: relative;
    display: flex;
    min-height: 24px;
    align-items: center;
    padding: 0.18rem 0.45rem 0.18rem 0.5rem;
    border-left: 1px solid rgba(var(--brand-dark-rgb), 0.18);
    color: #555d6b;
    border-radius: 2px;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 550;
    letter-spacing: 0.025em;
    line-height: 1.05;
    opacity: 1;
    text-decoration: none;
    white-space: nowrap;
    transform: none;
    transform-origin: left center;
    transition-property: color, border-color, background-color, opacity, transform;
    transition-duration: 110ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.catalog-toc-product:hover,
.catalog-toc-product:focus-visible {
    border-color: var(--magenta);
    background: rgba(var(--shadow-rgb-magenta), 0.075);
    color: var(--magenta);
    transform: translateX(0.12rem) scale(1.03);
}

.category-block {
    margin-bottom: 5rem;
}

.category-h {
    margin-bottom: 1.5rem;
    color: var(--magenta);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.4vw, 1.15rem);
    padding: 0;
    background: transparent;
}

.p-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 12.25rem;
    flex-direction: column;
    overflow: hidden;
    padding: 1.1rem clamp(1.25rem, 1.8vw, 1.5rem);
    border: 1px solid rgba(var(--brand-dark-rgb), 0.28);
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
    transition-property: background-color, box-shadow;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.p-card:not(:nth-child(3n + 1)) {
    border-left: 0;
}

.p-card:hover,
.p-card:has(.p-card-link:focus-visible) {
    background: var(--white);
    box-shadow: inset 0 3px 0 var(--magenta);
}

.p-card-link {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    outline: none;
}

.p-card-link:focus-visible {
    box-shadow: inset 0 0 0 2px var(--magenta);
}

.p-header {
    margin-bottom: 0.7rem;
    padding-right: 2.5rem;
}

.p-card .p-header > span {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--brand-dark);
    font-size: clamp(1.3rem, 1.65vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    transition: color 150ms ease-out;
}

.p-card:hover .p-header > span,
.p-card:has(.p-card-link:focus-visible) .p-header > span {
    color: var(--magenta);
}

.p-card small {
    display: block;
    max-width: 29rem;
    color: var(--text-main);
    font-size: 0.94rem;
    line-height: 1.4;
}

.more-link {
    position: relative;
    width: fit-content;
    margin-top: auto;
    padding-top: 0.55rem;
    color: var(--magenta);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 150ms ease-out;
}

.more-link::after {
    position: absolute;
    right: 0;
    bottom: -0.35rem;
    left: 0;
    height: 1px;
    background: var(--magenta);
    content: "";
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 180ms ease-out;
}

.p-card:hover .more-link,
.p-card:has(.p-card-link:focus-visible) .more-link {
    color: var(--magenta);
}

.p-card:hover .more-link::after,
.p-card:has(.p-card-link:focus-visible) .more-link::after {
    transform: scaleX(1);
}

.catalog-new-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0.45rem 0.65rem 0.4rem;
    background: var(--magenta);
    color: var(--white);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
}

.catalog-new-badge::before {
    content: none;
}

.catalog-coming-soon {
    display: flex;
    min-height: 16rem;
    grid-column: 1 / -1;
    align-items: flex-end;
    padding: clamp(1.4rem, 2.5vw, 2rem);
    background: #eeedeb;
}

.catalog-coming-soon span {
    display: flex;
    align-items: center;
    color: var(--brand-dark);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.045em;
    line-height: 0.95;
}

.catalog-coming-soon span::before {
    content: none;
}

/* Product action */
.quick-buy-trigger {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.65rem;
    padding: 0.5rem 0 0;
    border: 0;
    border-top: 1px solid rgba(var(--brand-dark-rgb), 0.22);
    border-radius: 0;
    background: transparent;
    color: var(--brand-dark);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.075em;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    transition-property: color, border-color;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.quick-buy-trigger:hover,
.quick-buy-trigger:focus-visible,
.p-card:hover .quick-buy-trigger {
    border-color: var(--magenta);
    background: transparent;
    color: var(--magenta);
}

.quick-buy-trigger:focus-visible {
    outline: 2px solid var(--magenta);
    outline-offset: 3px;
}

.quick-buy-trigger.is-external {
    justify-content: flex-start;
}

.catalog-development-card {
    background: rgba(var(--white-rgb), 0.62);
}

.catalog-development-card:hover {
    background: rgba(var(--white-rgb), 0.62);
    box-shadow: none;
}

.catalog-development-card .p-card-link {
    cursor: default;
}

.catalog-development-card:hover .p-header > span {
    color: var(--brand-dark);
}

.catalog-development-card .more-link {
    color: #626875;
}

.catalog-development-card .more-link::after {
    content: none;
}

.catalog-development-card .quick-buy-trigger.disabled,
.catalog-development-card:hover .quick-buy-trigger.disabled {
    min-height: 44px;
    border-color: rgba(var(--brand-dark-rgb), 0.18);
    color: #626875;
    cursor: not-allowed;
}

/* Packaging panel */
.quick-buy-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    padding: 1.15rem clamp(1.4rem, 2.5vw, 2rem);
    border-top: 1px solid var(--magenta);
    border-radius: 0;
    background: var(--white);
    box-shadow: 0 -12px 30px rgba(var(--brand-dark-rgb), 0.1);
    opacity: 0;
    transform: translateY(100%);
    visibility: hidden;
    transition-property: transform, opacity, visibility;
    transition-duration: 200ms;
    transition-timing-function: ease-out;
}

.quick-buy-panel.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.qb-panel-header {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--brand-dark);
    font-size: 1rem;
    font-weight: 500;
}

.qb-close {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 150ms ease-out;
}

.qb-close:hover,
.qb-close:focus-visible {
    color: var(--magenta);
}

.qb-row {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(var(--brand-dark-rgb), 0.12) !important;
}

.qb-row:last-child {
    border-bottom: 0 !important;
}

.qb-size {
    flex: 1;
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.3;
}

.qb-catalog-number {
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.2;
}

.qb-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.qb-price {
    margin: 0 0.8rem;
    color: var(--brand-dark);
    font-size: 0.98rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600 !important;
    white-space: nowrap;
}

.qb-add-btn {
    display: flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--brand-dark-rgb), 0.22);
    border-radius: 50%;
    background: transparent;
    color: var(--magenta);
    cursor: pointer;
    font-size: 1rem;
    transition-property: background-color, border-color, color;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.qb-add-btn:hover,
.qb-add-btn:focus-visible {
    border-color: var(--magenta);
    background: var(--magenta);
    color: var(--white);
}

/* Side return control, when present */
.back-to-cats-btn {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 1000;
    display: flex;
    min-width: 44px;
    min-height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.4rem 0.8rem;
    border: 1px solid rgba(var(--brand-dark-rgb), 0.22);
    border-right: 0;
    border-radius: 0;
    background: var(--white);
    color: var(--brand-dark);
    box-shadow: -6px 0 18px rgba(var(--brand-dark-rgb), 0.06);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%) translateX(100%);
    visibility: hidden;
    transition-property: color, border-color, opacity, transform, visibility;
    transition-duration: 180ms;
    transition-timing-function: ease-out;
}

.back-to-cats-btn.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    visibility: visible;
}

.back-to-cats-btn:hover {
    border-color: var(--magenta);
    color: var(--magenta);
}

@media (max-width: 1180px) {
    .mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .p-card:nth-child(odd) {
        border-left: 0;
    }

    .p-card:nth-child(even) {
        border-left: 0;
    }
}

@media (max-width: 1180px) {
    .products-main {
        width: min(100%, 78rem);
    }

    .catalog-layout {
        display: block;
    }

    .catalog-sidebar {
        display: none;
    }

    .mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .products-main {
        padding: 2.75rem 1.25rem 4rem;
    }

    .catalog-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .products-main .page-title {
        margin-bottom: 2.25rem;
        font-size: clamp(2.8rem, 13vw, 4.2rem);
    }

    .catalog-heading .page-title {
        margin-bottom: 0;
        white-space: normal;
    }

    .catalog-download {
        width: fit-content;
    }

    .catalog-search {
        grid-row: 3;
        margin-bottom: 0;
    }

    .catalog-search.is-open {
        width: 100%;
    }

    .catalog-search-result {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.35rem;
    }

    .catalog-search-result-category {
        text-align: left;
    }

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

    .p-card,
    .p-card:nth-child(even),
    .p-card:not(:nth-child(3n + 1)) {
        min-height: 12.25rem;
        padding: 1.2rem 1.25rem;
        border-left: 0;
    }

    .catalog-new-badge {
        top: 0;
        right: 0;
    }

    .quick-buy-panel {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (max-width: 620px) {
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .catalog-coming-soon {
        grid-column: span 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .products-main *,
    .products-main *::before,
    .products-main *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* Header, index and product field are distinct reading surfaces. */
body.modules-page.modules-system.modules-products .catalog-heading{margin-bottom:clamp(1.25rem,2vw,1.75rem);padding:0 0 1.25rem;border:0;border-bottom:1px solid var(--modules-line-strong);background:transparent}
body.modules-page.modules-system.modules-products .catalog-layout{gap:clamp(1rem,1.8vw,1.5rem);border:0;background:transparent}
body.modules-page.modules-system.modules-products .catalog-sidebar{padding:1rem;border:1px solid var(--modules-line-strong);border-radius:8px;background:#fffefa}
body.modules-page.modules-system.modules-products .catalog-sidebar-sticky{padding-right:1.25rem;overflow-x:hidden}
body.modules-page.modules-system.modules-products .catalog-products{border:1px solid var(--modules-line-strong);border-radius:8px}
body.modules-page.modules-system.modules-products .catalog-toc-product{min-height:36px;padding-block:7px;font-size:15px;line-height:1.2}
@media (max-width:1100px){body.modules-page.modules-system.modules-products .catalog-sidebar{border:1px solid var(--modules-line-strong)}}
