/* Psychodium Design System — Catalog page v1.14.1
 *
 * Structure: H1 + short lead -> subcategory tags -> product listing -> plain SEO
 * copy -> FAQ. No category-card layer, no visible breadcrumb duplication, no
 * decorative/image blocks below the listing.
 */

/* ------------------------------------------------------------ host reset */

.pd-catalog-v1-active #content,
.pd-catalog-v1-active .site-content { background: #101113; }

.pd-catalog-v1-active .site-content > .ast-container {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
}

.pd-catalog-v1-active #primary,
.pd-catalog-v1-active .content-area,
.pd-catalog-v1-active .site-main,
.pd-catalog-v1-active .ast-article-single,
.pd-catalog-v1-active .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.pd-catalog-v1-active .entry-content > * { margin-block: 0; }

/* The catalogue component owns hierarchy through JSON-LD. Hide visible trails
 * from common theme/SEO-plugin renderers so a page never shows two breadcrumbs. */
.pd-catalog-v1-active .ast-breadcrumbs-wrapper,
.pd-catalog-v1-active .ast-breadcrumb,
.pd-catalog-v1-active .yoast-breadcrumb,
.pd-catalog-v1-active .rank-math-breadcrumb,
.pd-catalog-v1-active .breadcrumb,
.pd-catalog-v1-active .breadcrumbs,
.pd-catalog-v1-active .breadcrumb-trail { display: none !important; }

/* ---------------------------------------------------------------- tokens */

.pd-catalog-v1 {
    --pd-bg: #101113;
    --pd-surface: #17181b;
    --pd-surface-2: #1d1e22;
    --pd-text: #f0f0ed;
    --pd-muted: #b4b4ae;
    --pd-subtle: #878781;
    --pd-line: #2d2f34;
    --pd-line-strong: #414349;
    --pd-accent: #f2f2ee;
    --pd-accent-ink: #111214;
    --pd-shell: 1220px;
    --pd-read: 760px;
    --pd-gutter: clamp(20px, 4vw, 44px);
    --pd-space-1: 8px;
    --pd-space-2: 12px;
    --pd-space-3: 16px;
    --pd-space-4: 24px;
    --pd-space-5: 32px;
    --pd-space-6: 48px;
    --pd-space-7: 64px;
    --pd-space-8: 88px;
    --pd-r-sm: 8px;
    --pd-r: 12px;
    --pd-mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    width: 100%;
    background:
        radial-gradient(70% 28% at 80% 0%, rgba(255,255,255,.045), rgba(255,255,255,0) 58%),
        var(--pd-bg);
    color: var(--pd-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}

.pd-catalog-v1,
.pd-catalog-v1 *,
.pd-catalog-v1 *::before,
.pd-catalog-v1 *::after { box-sizing: border-box; }

.pd-catalog-v1 a { color: inherit; text-decoration: none; }
.pd-catalog-v1 img { display: block; max-width: 100%; height: auto; }
.pd-catalog-v1 h1,
.pd-catalog-v1 h2,
.pd-catalog-v1 h3,
.pd-catalog-v1 p { color: inherit; font-family: inherit; }
.pd-catalog-v1 h1,
.pd-catalog-v1 h2 { text-wrap: balance; }
.pd-catalog-v1 p { text-wrap: pretty; }

.pd-cat-shell {
    width: 100%;
    max-width: calc(var(--pd-shell) + var(--pd-gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--pd-gutter);
}

.pd-catalog-v1 a:focus-visible,
.pd-catalog-v1 summary:focus-visible,
.pd-catalog-v1 input:focus-visible {
    outline: 2px solid var(--pd-accent);
    outline-offset: 3px;
}

/* ------------------------------------------------------------------- hero */

.pd-cat-hero { padding: var(--pd-space-8) 0 var(--pd-space-5); }

/* Direction pages sit directly under the site header: no artificial hero gap. */
.pd-catalog-v1--collection .pd-cat-hero { padding-top: 0; }

.pd-cat-hero__inner {
    display: block;
    max-width: calc(var(--pd-shell) + var(--pd-gutter) * 2);
    margin-inline: auto;
}

.pd-cat-hero__copy { max-width: 940px; }

.pd-cat-eyebrow {
    display: block;
    margin: 0 0 var(--pd-space-3);
    color: var(--pd-subtle);
    font-family: var(--pd-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.pd-cat-hero h1 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(42px, 6.2vw, 76px);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: .98;
}

.pd-cat-lead {
    max-width: 66ch;
    margin-top: var(--pd-space-4);
    color: var(--pd-muted);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.7;
}

.pd-cat-lead > *:first-child { margin-top: 0; }
.pd-cat-lead > *:last-child { margin-bottom: 0; }

/* ------------------------------------------------------ subcategory tags */

.pd-cat-tags { padding: 0 0 var(--pd-space-6); }

.pd-cat-tags__inner {
    display: grid;
    gap: var(--pd-space-3);
}

.pd-cat-tags__label {
    margin: 0;
    color: var(--pd-subtle);
    font-family: var(--pd-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.pd-cat-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pd-cat-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid var(--pd-line-strong);
    border-radius: var(--pd-r-sm);
    background: transparent;
    color: var(--pd-muted);
    font-size: 14px;
    line-height: 1;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}

.pd-cat-tag:hover,
.pd-cat-tag:focus-visible {
    border-color: #62646b;
    color: var(--pd-text);
}

.pd-cat-tag.is-active {
    border-color: var(--pd-accent);
    background: var(--pd-accent);
    color: var(--pd-accent-ink);
}

/* -------------------------------------------------------------- listing */

.pd-cat-collection { padding: 0 0 var(--pd-space-8); }

.pd-cat-collection__head {
    display: block;
    max-width: 880px;
    margin-bottom: var(--pd-space-4);
}


.pd-cat-label {
    margin: 0 0 var(--pd-space-2);
    color: var(--pd-subtle);
    font-family: var(--pd-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.pd-cat-collection__head h2 {
    margin: 0;
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.05;
}

.pd-cat-collection__intro {
    margin: 0;
    color: var(--pd-muted);
    font-size: 15px;
    line-height: 1.62;
}

.pd-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--pd-space-3);
}

.pd-cat-card {
    grid-column: span 2;
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-r);
    background: var(--pd-surface);
    transition: border-color .14s ease, transform .14s ease;
}

.pd-cat-card:hover,
.pd-cat-card:focus-within {
    border-color: var(--pd-line-strong);
    transform: translateY(-2px);
}

.pd-cat-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #1a1b1e;
}

.pd-cat-card__media img,
.pd-cat-card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-cat-card__placeholder {
    display: block;
    background: linear-gradient(145deg, #242529, #18191c 68%, #212226);
}

.pd-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(16,17,19,.9);
    color: var(--pd-text);
    font-family: var(--pd-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

.pd-cat-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--pd-space-3);
    padding: var(--pd-space-3);
}

.pd-cat-card__title,
.pd-cat-card__price,
.pd-cat-card__sizes { margin: 0; }

.pd-cat-card__title {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.1;
}

.pd-cat-card__title a:hover,
.pd-cat-card__title a:focus-visible { color: #fff; }

.pd-cat-card__price {
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.pd-cat-card__sizes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--pd-muted);
    font-size: 13px;
}

.pd-cat-card__sizes-label { color: var(--pd-subtle); }

.pd-cat-size {
    padding: 5px 7px;
    border: 1px solid var(--pd-line-strong);
    border-radius: 7px;
    color: var(--pd-text);
    line-height: 1;
}

.pd-cat-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: auto;
}

.pd-cat-button,
.pd-cat-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 15px;
    border-radius: var(--pd-r-sm);
    font-family: var(--pd-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .11em;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}

.pd-cat-button {
    border: 1px solid var(--pd-accent);
    background: var(--pd-accent);
    color: var(--pd-accent-ink);
}

.pd-catalog-v1 a.pd-cat-button { color: var(--pd-accent-ink); }

.pd-cat-button:hover,
.pd-cat-button:focus-visible { background: #fff; border-color: #fff; }

.pd-cat-link {
    border: 1px solid var(--pd-line-strong);
    color: var(--pd-text);
}

.pd-cat-link:hover,
.pd-cat-link:focus-visible { border-color: #66686f; }

.pd-cat-grid.is-count-1 > .pd-cat-card { grid-column: 3 / span 2; }
.pd-cat-grid.is-count-2 > .pd-cat-card:first-child,
.pd-cat-grid.is-tail-2 > .pd-cat-card:nth-last-child(2) { grid-column: 2 / span 2; }
.pd-cat-grid.is-count-2 > .pd-cat-card:last-child,
.pd-cat-grid.is-tail-2 > .pd-cat-card:last-child { grid-column: 4 / span 2; }
.pd-cat-grid.is-tail-1 > .pd-cat-card:last-child { grid-column: 3 / span 2; }

.pd-cat-empty {
    margin: 0;
    padding: var(--pd-space-4) 0;
    border-top: 1px solid var(--pd-line);
    border-bottom: 1px solid var(--pd-line);
    color: var(--pd-muted);
}

/* ---------------------------------------------------------- pure SEO copy */

.pd-cat-seo { padding: 0 0 var(--pd-space-8); }

.pd-cat-seo__inner { max-width: calc(var(--pd-shell) + var(--pd-gutter) * 2); }
.pd-cat-seo__section { max-width: var(--pd-read); }

.pd-cat-seo__section + .pd-cat-seo__section {
    margin-top: var(--pd-space-6);
}

.pd-cat-seo__section h2 {
    margin: 0 0 var(--pd-space-3);
    font-size: clamp(27px, 2.8vw, 36px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.12;
}

.pd-cat-prose > *:first-child { margin-top: 0; }
.pd-cat-prose > *:last-child { margin-bottom: 0; }

.pd-cat-prose p,
.pd-cat-prose li {
    color: var(--pd-muted);
    font-size: 16px;
    line-height: 1.78;
}

.pd-cat-prose p { margin: 0 0 var(--pd-space-3); }

.pd-cat-prose h3 {
    margin: var(--pd-space-4) 0 10px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.2;
}

.pd-cat-prose a {
    color: var(--pd-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

.pd-cat-prose strong { color: var(--pd-text); font-weight: 600; }

/* -------------------------------------------------------------------- FAQ */

.pd-cat-faq { padding: 0 0 var(--pd-space-8); }

.pd-cat-faq__inner { max-width: calc(var(--pd-shell) + var(--pd-gutter) * 2); }
.pd-cat-faq__inner > h2,
.pd-cat-faq__list { max-width: var(--pd-read); }

.pd-cat-faq h2 {
    margin: 0 0 var(--pd-space-4);
    font-size: clamp(27px, 2.8vw, 36px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.12;
}

.pd-cat-faq__list { border-top: 1px solid var(--pd-line-strong); }

.pd-cat-faq__list details { border-bottom: 1px solid var(--pd-line); }

.pd-cat-faq__list summary {
    position: relative;
    padding: 19px 42px 19px 0;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.pd-cat-faq__list summary::-webkit-details-marker { display: none; }

.pd-cat-faq__list summary::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    color: var(--pd-subtle);
    content: "+";
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
}

.pd-cat-faq__list details[open] summary::after { content: "−"; }

.pd-cat-faq__answer { padding: 0 0 19px; }
.pd-cat-faq__answer > *:first-child { margin-top: 0; }
.pd-cat-faq__answer > *:last-child { margin-bottom: 0; }
.pd-cat-faq__answer p { color: var(--pd-muted); line-height: 1.72; }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
    .pd-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .pd-cat-card,
    .pd-cat-grid.is-count-2 > .pd-cat-card:first-child,
    .pd-cat-grid.is-count-2 > .pd-cat-card:last-child,
    .pd-cat-grid.is-tail-2 > .pd-cat-card:nth-last-child(2),
    .pd-cat-grid.is-tail-2 > .pd-cat-card:last-child,
    .pd-cat-grid.is-tail-1 > .pd-cat-card:last-child { grid-column: span 1; }

    .pd-cat-grid.is-count-1 > .pd-cat-card,
    .pd-cat-grid.is-odd > .pd-cat-card:last-child {
        grid-column: 1 / -1;
        width: calc((100% - var(--pd-space-3)) / 2);
        justify-self: center;
    }
}

@media (max-width: 760px) {
    .pd-cat-hero { padding: var(--pd-space-7) 0 var(--pd-space-4); }
    .pd-catalog-v1--collection .pd-cat-hero { padding-top: 0; }

    .pd-cat-hero h1 {
        max-width: 100%;
        font-size: clamp(36px, 11vw, 54px);
    }

    .pd-cat-tags { padding-bottom: var(--pd-space-5); }

    .pd-cat-tags__list {
        flex-wrap: nowrap;
        margin-inline: calc(-1 * var(--pd-gutter));
        padding-inline: var(--pd-gutter);
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .pd-cat-tags__list::-webkit-scrollbar { display: none; }
    .pd-cat-tag { white-space: nowrap; }

    .pd-cat-collection__head {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--pd-space-3);
    }

    .pd-cat-grid { grid-template-columns: minmax(0, 1fr); }
     .pd-cat-card,
    .pd-cat-grid.is-count-1 > .pd-cat-card,
    .pd-cat-grid.is-count-2 > .pd-cat-card:first-child,
    .pd-cat-grid.is-count-2 > .pd-cat-card:last-child,
    .pd-cat-grid.is-tail-2 > .pd-cat-card:nth-last-child(2),
    .pd-cat-grid.is-tail-2 > .pd-cat-card:last-child,
    .pd-cat-grid.is-tail-1 > .pd-cat-card:last-child,
    .pd-cat-grid.is-odd > .pd-cat-card:last-child {
        grid-column: 1;
        width: 100%;
        justify-self: stretch;
    }
    .pd-cat-collection { padding-bottom: var(--pd-space-7); }
    .pd-cat-seo,
    .pd-cat-faq { padding-bottom: var(--pd-space-7); }

    .pd-cat-card__body { padding: var(--pd-space-3); }
}

@media (max-width: 420px) {
    .pd-cat-card__actions { display: grid; grid-template-columns: 1fr; }
    .pd-cat-button,
    .pd-cat-link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .pd-catalog-v1 *,
    .pd-catalog-v1 *::before,
    .pd-catalog-v1 *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
