
/* ── Shared primitives ──────────────────────────────────────── */
/* Only declare these globally if not already in your stylesheet */
 
.pd-label {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--netco-gold);
    margin: 0 0 0.625rem;
}
 
.pd-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--netco-dark);
    margin: 0 0 0.625rem;
}
 
.pd-heading em {
    font-style: italic;
    color: var(--netco-gold);
}
 
.pd-subtext {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    line-height: 1.8;
    color: var(--netco-muted);
    max-width: 480px;
    margin: 0;
}
 
.pd-link {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--netco-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--netco-gold);
    padding-bottom: 2px;
    white-space: nowrap;
    transition: color 0.2s ease;
}
 
.pd-link:hover,
.pd-link:focus-visible {
    color: var(--netco-gold);
    text-decoration: none;
}
 
.pd-btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--netco-cream);
    background: var(--netco-dark);
    text-decoration: none;
    padding: 0.8125rem 1.75rem;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}
 
.pd-btn:hover,
.pd-btn:focus-visible {
    background: var(--netco-gold);
    color: var(--netco-dark);
}
 
/* ── Section shell ──────────────────────────────────────────── */
.pd {
    background: var(--netco-cream);
    padding: 4.5rem 0;
    border-top: 1px solid var(--netco-border);
    border-bottom: 1px solid var(--netco-border);
}
 
.pd__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
}
 
/* ── Header ─────────────────────────────────────────────────── */
.pd__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
 
.pd__header-text {
    flex: 1;
    min-width: 0;
}
 
.pd__header-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    padding-bottom: 5px; /* optical: align with heading descenders */
}
 
/* ── Card grid ──────────────────────────────────────────────── */
/*
   The gap is achieved by setting background on the grid and
   a tiny gap value — the grid bg colour (--netco-border) shows
   through as hairline rules between cards, giving the editorial
   joint-line look without extra markup.
 
   Desktop:  3 × 2  (always even rows, no orphans)
   Tablet:   2 × 3  (≤ 860px)
   Mobile:   1 × 6  (≤ 520px) — horizontal swipe or stack
*/
.pd__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--netco-border);
    list-style: none;
    margin: 0;
    padding: 0;
}
 
/* ── Card ───────────────────────────────────────────────────── */
.pd__card {
    background: var(--netco-cream);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
 
/* Image wrapper ― controls aspect ratio via padding-top trick */
.pd__img-wrap {
    position: relative;
    display: block;
    padding-top: 74%;               /* ~4:3 — consistent across all cards */
    overflow: hidden;
    background: #C2B5A0;            /* warm fallback while loading */
    text-decoration: none;
}
 
.pd__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
 
.pd__card:hover .pd__img,
.pd__card:focus-within .pd__img {
    transform: scale(1.04);
}
 
/* Style badge */
.pd__tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.5625rem;           /* 9px */
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--netco-cream);
    background: rgba(26, 23, 20, 0.70);
    padding: 0.25rem 0.625rem;
    pointer-events: none;
    /* No border-radius — intentionally sharp, editorial */
}
 
/* Card body */
.pd__body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--netco-border);
    flex: 1;
}
 
.pd__body-left {
    flex: 1;
    min-width: 0;
}
 
.pd__name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--netco-dark);
    margin: 0 0 0.3rem;
    /* Prevent overflow on narrow cards before wrap kicks in */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
 
.pd__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
 
.pd__name a:hover,
.pd__name a:focus-visible {
    color: var(--netco-gold);
}
 
.pd__wood {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--netco-gold);
    margin: 0;
}
 
.pd__price {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    color: var(--netco-muted);
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
    padding-bottom: 2px;            /* align with name baseline */
}
 
/* ── Footer ─────────────────────────────────────────────────── */
.pd__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--netco-border);
}
 
.pd__footer-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--netco-muted);
    margin: 0;
}
 
.pd__footer-ctas {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}
 
/* ── Responsive ─────────────────────────────────────────────── */
 
/* Tablet — 2-column grid */
@media (max-width: 860px) {
 
    .pd {
        padding: 3.5rem 0;
    }
 
    .pd__inner {
        padding: 0 1.5rem;
    }
 
    .pd__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
 
    .pd__header-links {
        padding-bottom: 0;
    }
 
    .pd__grid {
        grid-template-columns: repeat(2, 1fr);
    }
 
    /* With 6 cards in 2-col, rows are even — no orphan handling needed */
 
    .pd__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
 
    .pd__footer-ctas {
        gap: 1.25rem;
    }
}
 
/* Mobile — single column stacked cards */
@media (max-width: 520px) {
 
    .pd {
        padding: 2.5rem 0;
    }
 
    .pd__inner {
        padding: 0 1rem;
    }
 
    .pd__grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }
 
    /* Slightly wider crop on narrow screens — fills the viewport better */
    .pd__img-wrap {
        padding-top: 66%;
    }
 
    .pd__body {
        padding: 0.875rem 1rem 1rem;
        /* Stack name/wood above price on very narrow screens */
        flex-wrap: wrap;
    }
 
    .pd__name {
        font-size: 1.25rem;         /* bigger tap target */
        white-space: normal;        /* allow wrap — names are short but safe */
    }
 
    /* Full-width CTA button — easier thumb tap */
    .pd-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
 
    .pd__footer-ctas {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
 
    .pd-link {
        font-size: 0.75rem;
    }
}
 
/* Accessibility — honour reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .pd__img {
        transition: none;
    }
    .pd-btn,
    .pd-link,
    .pd__name a {
        transition: none;
    }
}
