/*
 * The Music Man shop: home, Parts and Vault listings (docs/features/mm-shop.md).
 * Cards and grid come from catalog.css; this is the shop's own furniture.
 * Contrast measured against the real backgrounds: white on #141414 is 18.1:1,
 * gold #c8a84e on #141414 is 8.9:1, #595959 on white is 7.0:1.
 */

.mm-shop-hero {
    background: #141414;
    color: #fff;
    padding: 56px 0 48px;
}

.mm-shop-hero__eyebrow {
    margin: 0 0 8px;
    color: var(--brand-primary, #c8a84e);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mm-shop-hero__title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
}

.mm-shop-hero__lede {
    max-width: 40rem;
    margin: 12px 0 32px;
    color: #e6e6e6;
    font-size: 1.0625rem;
}

.mm-shop-hero__doors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
}

.mm-shop-door {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 180px;
    padding: 24px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #1e1e1e;
    color: #fff;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.mm-shop-door:hover,
.mm-shop-door:focus-visible {
    border-color: var(--brand-primary, #c8a84e);
    background: #262626;
    color: #fff;
}

.mm-shop-door:focus-visible {
    outline: 2px solid var(--brand-primary, #c8a84e);
    outline-offset: 3px;
}

.mm-shop-door__name {
    font-size: 1.75rem;
    font-weight: 700;
}

.mm-shop-door__name::after {
    content: " \2192";
    color: var(--brand-primary, #c8a84e);
}

.mm-shop-door__detail {
    margin-top: 4px;
    color: #d9d9d9;
}

.mm-shop-section {
    margin: 48px 0;
}

.mm-shop-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 20px;
}

.mm-shop-section__title {
    margin: 0;
    font-size: 1.5rem;
}

.mm-shop-section__more {
    color: var(--brand-link, #8a6d1f);
    font-weight: 600;
}

.mm-shop-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mm-shop-types a {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #1a1a1a;
    text-decoration: none;
}

.mm-shop-types a:hover,
.mm-shop-types a:focus-visible {
    border-color: var(--brand-primary-dark, #a07f2e);
}

.mm-shop-types a:focus-visible {
    outline: 2px solid var(--brand-accent-text, #8a6d1f);
    outline-offset: 2px;
}

.mm-shop-types__name {
    font-weight: 700;
}

.mm-shop-types__count {
    color: #595959;
    font-size: 0.875rem;
}

/* Filters */

.mm-shop-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    margin: 8px 0 12px;
    padding: 16px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fafafa;
}

.mm-shop-filters__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: min(100%, 200px);
}

.mm-shop-filters__field label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1a1a1a;
}

.mm-shop-filters__field select {
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #767676;
    border-radius: 4px;
    background: #fff;
    color: #1a1a1a;
    font: inherit;
}

.mm-shop-filters__field--check {
    flex-direction: row;
    align-items: center;
    min-height: 44px;
    gap: 8px;
}

.mm-shop-filters__field--check input {
    width: 20px;
    height: 20px;
}

.mm-shop-filters__field--check label {
    font-weight: 400;
    font-size: 0.9375rem;
}

.mm-shop-filters__apply {
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 4px;
    background: var(--brand-primary-fill, #c8a84e);
    color: var(--brand-on-primary, #1a1a1a);
    font-weight: 700;
    cursor: pointer;
}

.mm-shop-filters__apply:hover {
    background: var(--brand-primary-fill-hover, #b8963e);
}

.mm-shop-filters__apply:focus-visible {
    outline: 2px solid var(--brand-accent-text, #8a6d1f);
    outline-offset: 2px;
}

.mm-shop-count {
    margin: 0 0 16px;
    color: #595959;
}

.mm-shop-count a {
    color: var(--brand-link, #8a6d1f);
}

/* A Vault instrument that has sold: a dark badge, not the brand fill. */
.catalog-card__flag--sold,
.catalog-card__flag--reserved {
    background: #1a1a1a;
    color: #fff;
}

/* A Vault instrument on the shelf now, not built to order (2026-10-06). The
   PDP's in-stock green; white on it is 8.2:1. */
.catalog-card__flag--in-stock {
    background: #046236;
    color: #fff;
}

/* Listing pages. #595959 on white is 7.0:1; the current page is dark ink on
   the gold fill (7.6:1). Targets are 44px. */
.mm-shop-pages {
    margin: 32px 0 48px;
}

.mm-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mm-pager__num,
.mm-pager__step,
.mm-pager__gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
}

a.mm-pager__num:hover,
a.mm-pager__step:hover {
    border-color: var(--brand-primary-dark, #a07f2e);
}

a.mm-pager__num:focus-visible,
a.mm-pager__step:focus-visible {
    outline: 2px solid var(--brand-accent-text, #8a6d1f);
    outline-offset: 2px;
}

.mm-pager__num--current {
    border-color: var(--brand-primary-fill, #c8a84e);
    background: var(--brand-primary-fill, #c8a84e);
    color: var(--brand-on-primary, #1a1a1a);
}

.mm-pager__step[aria-disabled="true"] {
    color: #595959;
    background: #f5f5f5;
}

.mm-pager__gap {
    border-color: transparent;
    min-width: 24px;
    padding: 0;
}

/* ==========================================================================
   Filtered listings (filtered.blade.php: The Vault, Parts) — filters in a
   sidebar, every one a link (Javi, 2026-09-25); the chosen option is marked
   by a gold rule. #595959 on white is 7.0:1; #6b6b6b counts are 5.3:1, and
   4.8:1 on the hover and chosen grounds (#767676 fell to 4.2:1 on the chosen
   one: WAVE, 2026-10-29).
   Every target is 44px tall.
   ========================================================================== */

.mm-filter-set {
    --mm-filter-cond: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}


/* --- The bar: tally and sort ------------------------------------------ */
.mm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 28px;
    margin: 8px 0 20px;
}

.mm-filter-bar__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 28px;
}

.mm-filter-tally {
    color: #595959;
}

.mm-filter-tally a,
.mm-filter-state a {
    color: var(--brand-link, #8a6d1f);
}

.mm-filter-links {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.mm-filter-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #595959;
    text-decoration: none;
}

.mm-filter-links a:hover {
    color: #1a1a1a;
}

.mm-filter-links a[aria-current] {
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 #1a1a1a;
}




.mm-filter-sold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #1a1a1a;
    text-decoration: none;
}

.mm-filter-sold__box {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #595959;
    border-radius: 3px;
    background: #fff;
}

.mm-filter-sold[data-on] .mm-filter-sold__box {
    border-color: #1a1a1a;
    background: #1a1a1a;
}

.mm-filter-sold[data-on] .mm-filter-sold__box::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 5px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mm-filter-links a:focus-visible,
.mm-filter-sold:focus-visible,
.mm-filter-set a:focus-visible,
.mm-filter-state a:focus-visible,
.mm-filter-side summary:focus-visible {
    outline: 3px solid var(--brand-accent-text, #8a6d1f);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- Search (Parts) ---------------------------------------------------- */
.mm-filter-search {
    display: flex;
    align-items: stretch;
    min-width: min(100%, 300px);
}

.mm-filter-search__field {
    flex: 1;
    margin: 0;
}

.mm-filter-search input[type="search"] {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #767676;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    background: #fff;
    color: #1a1a1a;
    font: inherit;
}

.mm-filter-search button {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #1a1a1a;
    border-radius: 0 4px 4px 0;
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.mm-filter-search input[type="search"]:focus-visible,
.mm-filter-search button:focus-visible {
    outline: 3px solid var(--brand-accent-text, #8a6d1f);
    outline-offset: 2px;
}

.mm-filter-set .mm-filter-search {
    min-width: 0;
}

/* --- Sidebar layout ---------------------------------------------------- */
.mm-filter-sidebar-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 24px;
}

.mm-filter-side--narrow {
    display: none;
}

.mm-filter-set {
    padding: 10px 0 20px;
    border-top: 2px solid #1a1a1a;
}

.mm-filter-set h2 {
    margin: 0 0 4px;
    font: 700 1.125rem/1.2 var(--mm-filter-cond);
    font-stretch: condensed;
}

.mm-filter-set a:not(.mm-filter-sold) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin: 0 -10px 0 -12px;
    padding: 0 10px 0 12px;
    border-left: 3px solid transparent;
    color: #595959;
    text-decoration: none;
}

.mm-filter-set a:not(.mm-filter-sold) span:last-child {
    color: #6b6b6b;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.mm-filter-set a:not(.mm-filter-sold):hover {
    background: #f3f3f1;
    color: #1a1a1a;
}

.mm-filter-set a[aria-current] {
    border-left-color: var(--brand-primary-fill, #c8a84e);
    background: #faf7ee;
    color: #1a1a1a;
    font-weight: 700;
}

/* The results' heading ("127 parts"): an <h2>, so the sentence the page is
   about sits in the outline rather than reading as a stray big paragraph. */
.mm-filter-state {
    margin: 0 0 4px;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
}

/* A chosen term reads as a removable tag inside the sentence. */
.mm-filter-state a {
    color: #1a1a1a;
    text-decoration: underline;
    text-decoration-color: var(--brand-primary-fill, #c8a84e);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.mm-filter-state a::after {
    content: "\00d7";
    display: inline-block; /* an inline-block pseudo does not inherit the underline */
    margin-left: 4px;
    color: #767676;
    font-weight: 400;
}

.mm-filter-state a:hover {
    color: var(--brand-link, #8a6d1f);
}

.mm-filter-bar--sidebar {
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #d9d9d6;
}

.mm-filter-sidebar-layout .catalog-grid__items {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991.98px) {
    .mm-filter-sidebar-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .mm-filter-side--wide {
        display: none;
    }

    .mm-filter-side--narrow {
        display: block;
        margin-bottom: 16px;
    }

    .mm-filter-side--narrow summary {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 18px;
        border: 2px solid #1a1a1a;
        border-radius: 4px;
        font-weight: 700;
        cursor: pointer;
    }

    .mm-filter-side--narrow[open] summary {
        margin-bottom: 12px;
    }

    .mm-filter-state {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .mm-filter-sidebar-layout .catalog-grid__items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* A shop listing's description, as a tagline under the banner title (Javi,
   2026-09-25) rather than a paragraph between the breadcrumb and the
   filters. #d9d9d6 on the #111 banner is 13:1. */
.catalog-hero__tagline {
    max-width: 60ch;
    margin: 0.75rem auto 0;
    color: #d9d9d6;
    font-size: 1.0625rem;
    line-height: 1.5;
}

@media (max-width: 575.98px) {
    .catalog-hero__tagline {
        font-size: 0.9375rem;
    }
}

/* The price on a shop card, larger than the catalog's 14px (Jesse,
   2026-10-06): on an instrument listing it is the number people scan for. */
.catalog-card__price {
    font-size: 1.125rem;
}

/* A part's number under its name on a shop card. Tabular figures so a row of
   cards lines up; #595959 on white is 7.0:1. */
.catalog-card__part-number {
    margin: 4px 0 6px;
    color: #595959;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* A part's colors on its card (Shelly, 2026-09-28), in place of "7 part
   numbers". The ring keeps white and pearl chips visible on the white card
   (#8a8a8a on white is 3.5:1, over the 3:1 a graphic needs). */
.catalog-card__swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

/* The color is drawn by the hidden-from-readers chip; the item holds only
   the color's name for screen readers, on the card's own ground, so no
   checker measures that text against a black or maroon dot. */
.catalog-card__swatch {
    display: flex;
}

.catalog-card__swatch-chip {
    width: 18px;
    height: 18px;
    border: 1px solid #8a8a8a;
    border-radius: 50%;
}

.catalog-card__swatch-word,
.catalog-card__swatch-more {
    padding: 1px 6px;
    border: 1px solid #c9c9d4;
    border-radius: 9px;
    color: #4e4e58;
    font-size: 11px;
    line-height: 1.4;
}
