/* ══════════════════════════════════════════════════════════════════════════════
   The Plush Maker — Products Page Styles
   ══════════════════════════════════════════════════════════════════════════════
   Page-specific styles for products.php
   Requires: css/styles.css (loaded first)
══════════════════════════════════════════════════════════════════════════════ */


/* ── Page background ────────────────────────────────────────────────────── */
body {
    background: #FAF6EF;
}


/* ══════════════════════════════════════════════════════════════════════════════
   HERO — Products Overview
══════════════════════════════════════════════════════════════════════════════ */
.ow-hero {
    padding: 56px 0 60px;
    background: #FAF6EF;
    position: relative;
    overflow: hidden;
    text-align: left;
}
.ow-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .55;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 92% 15%, rgb(212 162 76 / .12) 0%, transparent 62%),
        radial-gradient(ellipse 55% 45% at 6% 95%, rgb(47 74 61 / .08) 0%, transparent 62%);
}
.ow-hero .wrap {
    position: relative;
    z-index: 1;
}
.ow-hero .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    gap: 42px;
    align-items: center;
}
.ow-hero .lede {
    max-width: 650px;
    margin: 0;
}
.ow-hero .eyebrow::after {
    left: 0;
    transform: none;
}


/* ── Hero Photo ─────────────────────────────────────────────────────────── */
.ow-hero-photo {
    position: relative;
    border: 1px solid var(--brd);
    border-radius: 26px;
    overflow: hidden;
    background: var(--cream);
    box-shadow: 0 16px 32px -14px rgba(20, 15, 10, .18);
}
.ow-hero-photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3/1.9;
    object-fit: cover;
}
.ow-hero-note {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: rgb(255 255 255 / .92);
    border: 1px solid rgb(232 221 200 / .9);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* ══════════════════════════════════════════════════════════════════════════════
   FILTER BUTTONS
══════════════════════════════════════════════════════════════════════════════ */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 26px;
}
.filters a {
    padding: 9px 18px;
    background: #fff;
    border: 1px solid var(--brd);
    color: var(--txt);
    border-radius: 999px;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: .15s;
}
.filters a:hover,
.filters a.on {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}


/* ══════════════════════════════════════════════════════════════════════════════
   GROUP HEADINGS (01, 02, 03…)
══════════════════════════════════════════════════════════════════════════════ */
.group-head {
    margin: 44px 0 20px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--brd);
}
.group-head .gh-num {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 1.7rem;
    color: var(--primary);
    line-height: 1;
    letter-spacing: .02em;
    flex-shrink: 0;
    min-width: 36px;
}
.group-head h2 {
    margin: 0 0 2px !important;
    font-size: 1.3rem !important;
    letter-spacing: -.005em;
    text-align: left !important;
    line-height: 1.25;
}
.group-head p {
    margin: 0;
    color: var(--mut);
    font-size: .9rem;
}
.group-head .gh-body {
    flex: 1;
}


/* ══════════════════════════════════════════════════════════════════════════════
   CATEGORY CARDS GRID
══════════════════════════════════════════════════════════════════════════════ */
#tpm-products-root .cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}


/* ── Individual Category Card ───────────────────────────────────────────── */
#tpm-products-root .cat {
    position: relative;
    background: #fff;
    border: 1px solid var(--brd);
    border-radius: 18px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: .2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}
#tpm-products-root .cat:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -14px rgba(20, 15, 10, .18);
    border-color: var(--accent);
}


/* ── Category Card Image ────────────────────────────────────────────────── */
.cat-ico {
    width: 100%;
    height: 142px;
    border-radius: 14px;
    background: var(--cream);
    border: 1px solid var(--brd);
    display: block;
    color: var(--primary);
    flex-shrink: 0;
    transition: .2s;
    overflow: hidden;
}
#tpm-products-root .cat:hover .cat-ico {
    background: var(--cream);
    color: var(--primary);
    border-color: var(--brd);
}
.cat-ico img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}
#tpm-products-root .cat:hover .cat-ico img {
    transform: scale(1.035);
}


/* ── Category Card Text ─────────────────────────────────────────────────── */
#tpm-products-root .cat h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
}
#tpm-products-root .cat p {
    color: var(--mut);
    font-size: .86rem;
    margin: 0;
    line-height: 1.45;
}


/* ── Category Card Arrow ────────────────────────────────────────────────── */
.cat-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--primary);
    transition: .2s;
    background: rgb(255 255 255 / .92);
    border: 1px solid rgb(232 221 200 / .9);
    border-radius: 999px;
    padding: 7px;
    box-shadow: 0 8px 20px -16px rgb(20 15 10 / .35);
}
#tpm-products-root .cat:hover .cat-arrow {
    color: var(--primary);
    transform: translateX(3px);
}
.cat-arrow svg {
    width: 16px;
    height: 16px;
}


/* ══════════════════════════════════════════════════════════════════════════════
   FEATURED BLOCK ("Can't decide?")
══════════════════════════════════════════════════════════════════════════════ */
.featured {
    background: var(--cream);
    border: 1px solid var(--brd);
    border-radius: 22px;
    padding: 40px 44px;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
    align-items: center;
}
.featured .f-body h2 {
    font-size: 1.45rem !important;
    margin: 6px 0 10px !important;
    letter-spacing: -.01em;
    text-align: left !important;
    line-height: 1.2;
}
.featured p {
    color: var(--mut);
    margin: 0 0 18px;
}
.featured .f-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.featured .f-photo {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--brd);
    background: #fff;
    box-shadow: 0 4px 14px -10px rgba(20, 15, 10, .18);
}
.featured .f-photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}


/* ══════════════════════════════════════════════════════════════════════════════
   CTA STRIP (Products page variant — green background)
══════════════════════════════════════════════════════════════════════════════ */
#tpm-products-root .cta-strip {
    background: var(--secondary);
    color: #fff;
    border-radius: 20px;
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}
#tpm-products-root .cta-strip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(0 0 0 / .18) 0%, transparent 55%, rgb(0 0 0 / .15) 100%);
    pointer-events: none;
}
#tpm-products-root .cta-strip > * {
    position: relative;
    z-index: 1;
}
#tpm-products-root .cta-strip h3 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    color: #fff;
}
#tpm-products-root .cta-strip p {
    margin: 0;
    color: rgb(255 255 255 / .85);
}
#tpm-products-root .cta-strip .btn {
    background: var(--accent);
    color: var(--txt);
    box-shadow: 0 8px 22px -10px rgb(0 0 0 / .35);
}
#tpm-products-root .cta-strip .btn:hover {
    background: #e7b764;
    color: var(--txt);
}


/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1000px) {
    #tpm-products-root .cats {
        grid-template-columns: repeat(3, 1fr);
    }
    .ow-hero .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    #tpm-products-root .cats {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 32px 28px;
    }
    .featured .f-body h2 {
        text-align: center !important;
    }
    .featured .f-ctas {
        justify-content: center;
    }
    .featured .f-photo {
        order: -1;
    }
    .ow-hero {
        text-align: center;
    }
    .ow-hero .lede {
        margin: 0 auto;
    }
    .ow-hero .eyebrow::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .filters {
        justify-content: center;
    }
    #tpm-products-root .cta-strip {
        padding: 28px;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #tpm-products-root .cats {
        grid-template-columns: 1fr;
    }
    .cat-ico {
        height: 170px;
    }
}