/* ==================================================
   TRADING POST - FIELD OFFICE DRESSING  (v4)

   Loads AFTER style.css. Delete the link tag in
   trading-post.html and the old look returns.

   This file is now only the SHOP'S OWN LAYOUT:
   the index column on the left, the product
   drawer on the right, and their small-screen
   rules.

   The cards themselves and the full-card modal
   live in the SHARED files, cards.css and
   cards.js, the same coat the artist pages
   (joe-edward.html, bill-curno.html) wear. Edit
   a card's look or the modal there, once, and
   every card page updates.
================================================== */


/* --------------------------------------------------
   THE SECTION
-------------------------------------------------- */

.tp-section {
    padding: 0;

    background: transparent;

    border: none;

    box-shadow: none;

    text-align: left;
}


/* --------------------------------------------------
   THE LAYOUT

   Index column on the left, drawer on the right.
-------------------------------------------------- */

.tp-layout {
    display: grid;

    grid-template-columns: 200px minmax(0, 1fr);

    gap: 26px;

    align-items: start;
}


/* --------------------------------------------------
   THE INDEX  (category filters)

   A ruled vertical list, like the labels on the
   front of a filing drawer.
-------------------------------------------------- */

.tp-side-label {
    display: block;

    margin-bottom: 8px;

    color: var(--text-soft);

    font-family: var(--font-mono);

    font-size: 0.6rem;

    letter-spacing: 0.22em;

    text-transform: uppercase;
}


.tp-side .filter-bar {
    flex-direction: column;

    align-items: stretch;

    gap: 0;

    margin-bottom: 0;

    border-top: 1px solid var(--border);
}


.tp-side .filter-btn {
    padding: 11px 6px;

    background: transparent;

    border: none;

    border-bottom: 1px solid var(--border);

    border-radius: 0;

    color: var(--green-dark);

    font-size: 0.62rem;

    letter-spacing: 0.14em;

    text-align: left;

    transition:
        background 0.2s ease,
        padding-left 0.2s ease;
}


.tp-side .filter-btn:hover {
    padding-left: 12px;

    background: rgba(243, 238, 228, 0.6);

    color: var(--green-dark);

    transform: none;
}


.tp-side .filter-btn.active {
    padding-left: 12px;

    background: var(--green-dark);

    border-bottom-color: var(--green-dark);

    color: var(--paper-light);
}


/* --------------------------------------------------
   THE DRAWER  (the product grid)
-------------------------------------------------- */

.tp-grid {
    padding: 26px;

    background: rgba(243, 238, 228, 0.55);

    border: 1px solid var(--border);

    border-radius: var(--radius);
}


/* --------------------------------------------------
   SMALL SCREENS

   The index becomes a row of chips above the
   drawer; the folder stacks, picture first, and
   scrolls inside.
-------------------------------------------------- */

@media (max-width: 850px) {

    .tp-layout {
        grid-template-columns: minmax(0, 1fr);

        gap: 18px;
    }

    .tp-side-label {
        margin-bottom: 5px;
    }

    .tp-side .filter-bar {
        flex-direction: row;

        flex-wrap: wrap;

        gap: 6px;

        border-top: none;
    }

    .tp-side .filter-btn {
        padding: 7px 11px;

        border: 1px solid var(--border);

        border-radius: 3px;

        transition: background 0.2s ease;
    }

    .tp-side .filter-btn:hover {
        padding-left: 11px;

        background: rgba(243, 238, 228, 0.9);
    }

    .tp-side .filter-btn.active {
        padding-left: 11px;

        background: var(--green-dark);

        border-color: var(--green-dark);
    }

    .tp-grid {
        padding: 14px;

        gap: 16px;
    }

}
