/* ==========================================================================
   Catalog page - clean Shopify-style layout on the cosmic theme
   ========================================================================== */

:root {
    --ink: #ffffff;
    --ink-dim: rgba(255, 255, 255, 0.7);
    --ink-faint: rgba(255, 255, 255, 0.5);
    --surface: #0a0a1a;
    --surface-1: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.1);
    --accent: #b89eff;
    --accent-2: #7aa8ff;
    --card-radius: 14px;
    --gap: 1.5rem;
    --nav-height: 72px;
    --filter-height: 64px;
}

.catalog-page {
    background: var(--surface);
    color: var(--ink);
    min-height: 100vh;
}

/* --- Gold announcement marquee (top of every page) -------------------- */
.marquee {
    background: #E9C46A;
    color: #05010F;
    overflow: hidden;
    padding: 9px 0;
    border-bottom: 2px solid #05010F;
}
.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 40s linear infinite;
    font-family: 'IBM Plex Mono', 'Menlo', 'Consolas', monospace;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    width: max-content;
    will-change: transform;
}
/* Spacing lives on each span (not as flex `gap`), so the duplicated content
   is self-contained and translateX(-50%) lands on an exact repeat. */
.marquee-track span {
    flex: 0 0 auto;
    padding-right: 48px;
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- Review-quote variant (homepage testimonial scroll) --------------- */
.marquee--reviews { padding: 14px 0; }
.marquee--reviews .marquee-track {
    /* Bigger, bolder serif so the testimonials read like pull quotes. */
    font-family: 'Fraunces', 'Inter', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.marquee--reviews .marquee-quote {
    flex: 0 0 auto;
    /* Reserve space on the right for the absolute-positioned star separator. */
    padding-right: 76px;
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1.25;
}
/* Star separator: bigger, vertically centered between adjacent quotes. */
.marquee--reviews .marquee-quote::after {
    content: "★";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.75rem;
    line-height: 1;
    color: rgba(5, 1, 15, 0.55);
    font-weight: 400;
    letter-spacing: 0;
}
@media (max-width: 720px) {
    .marquee--reviews .marquee-track { font-size: 0.92rem; letter-spacing: 0.03em; }
    .marquee--reviews .marquee-quote { padding-right: 56px; }
    .marquee--reviews .marquee-quote::after { font-size: 1.4rem; right: 18px; }
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Site nav (shared across every page) ------------------------------ */
.mm-nav {
    position: sticky; top: 0; z-index: 40;
    background: rgba(5, 1, 15, 0.92);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid rgba(244, 238, 220, 0.08);
}
.mm-nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}
.mm-nav .mm-logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    color: #F4EEDC;
    text-decoration: none;
}
.mm-nav .mm-logo b { font-weight: 800; letter-spacing: 0.16em; color: #F4EEDC; }
.mm-nav .mm-logo sup { font-size: 0.5em; color: #E9C46A; margin-left: 2px; letter-spacing: 0; vertical-align: super; }
.mm-nav .mm-logo .mm-logo-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.mm-nav .mm-logo:hover b { color: #E9C46A; }

.mm-menu {
    display: flex; gap: 32px; justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700; font-size: 0.82rem;
    letter-spacing: 0.12em; text-transform: uppercase;
}
.mm-menu a {
    position: relative; padding: 8px 0;
    transition: color 0.18s ease;
    color: #F4EEDC;
    text-decoration: none;
}
.mm-menu a::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: #E9C46A;
    transform: scaleX(0); transform-origin: center;
    transition: transform 0.22s ease;
}
.mm-menu a:hover, .mm-menu a.is-active { color: #E9C46A; }
.mm-menu a:hover::after, .mm-menu a.is-active::after { transform: scaleX(1); }

.mm-nav-actions { display: inline-flex; align-items: center; gap: 8px; }
.mm-ico {
    width: 38px; height: 38px; border-radius: 50%;
    color: #F4EEDC;
    background: transparent;
    border: 0;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
    text-decoration: none;
}
.mm-ico:hover { color: #E9C46A; background: rgba(233, 196, 106, 0.08); }
.mm-bag {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    background: #E9C46A; color: #05010F;
    border: 0;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 800; font-size: 0.78rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    transition: transform 0.18s ease, background 0.18s ease;
    box-shadow: 0 3px 0 rgba(0,0,0,0.3);
    cursor: pointer;
    text-decoration: none;
}
.mm-bag:hover { transform: translateY(-1px); background: #F3D17A; }
.mm-bag:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(0,0,0,0.3); }
.mm-bag-count,
.mm-bag-count.cart-count {
    background: #FFFFFF;
    color: #1a1428;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0;
    border: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

@media (max-width: 960px) {
    .mm-menu { gap: 20px; font-size: 0.76rem; }
}
@media (max-width: 720px) {
    .mm-menu { display: none; }
    .mm-nav-inner { grid-template-columns: auto auto; gap: 16px; padding: 14px 20px; }
}

/* (Old .site-nav / .nav-link / .nav-icon-btn / .cart-icon styles removed -
   every page now uses the unified .mm-nav above.) */

/* --- Catalog hero -------------------------------------------------------- */
.catalog-hero {
    padding: clamp(2rem, 5vw, 3.25rem) 1.5rem clamp(1.5rem, 3vw, 2rem);
    text-align: center;
}
.catalog-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}
.catalog-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    color: var(--accent);
    margin: 0 0 0.65rem;
    font-weight: 600;
}
.catalog-title {
    font-family: 'Fraunces', 'Bebas Neue', serif;
    font-weight: 600;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.05;
    margin: 0 0 0.65rem;
    letter-spacing: -0.022em;
    color: var(--ink);
}
.catalog-lede {
    color: var(--ink-dim);
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 580px;
    margin: 0 auto;
}

/* --- Catalog hero CTA --------------------------------------------------- */
.catalog-hero-cta {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
}

/* --- Left-side filter sidebar ------------------------------------------- */
/* The sidebar tracks the grid row height so the sticky inner always has room
   to slide. Without align-self: stretch the grid item collapses to the inner's
   height and there's nowhere for `position: sticky` to actually stick to. */
.filter-sidebar {
    align-self: stretch;
    position: relative;
}
.filter-sidebar-inner {
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem;
    background: var(--surface-1);
    border: 1px solid var(--line);
    border-radius: 16px;
    max-height: calc(100vh - var(--nav-height) - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 158, 255, 0.4) transparent;
}
.filter-sidebar-inner::-webkit-scrollbar { width: 6px; }
.filter-sidebar-inner::-webkit-scrollbar-thumb {
    background: rgba(184, 158, 255, 0.4);
    border-radius: 3px;
}

/* Collapsible <details> sections. The summary is the always-visible heading
   with a chevron that rotates when open. */
.sidebar-section {
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.55rem;
}
.sidebar-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.sidebar-section > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0;
    user-select: none;
}
.sidebar-section > summary::-webkit-details-marker { display: none; }
.sidebar-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-faint);
    margin: 0;
    font-weight: 700;
    line-height: 1;
}
.sidebar-section[open] > summary .sidebar-heading,
.sidebar-section:hover > summary .sidebar-heading {
    color: var(--ink);
}
.sidebar-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
    color: var(--ink-faint);
    margin-left: 0.5rem;
}
.sidebar-section[open] > summary .sidebar-caret {
    transform: rotate(-135deg) translateY(-2px);
    color: var(--ink);
}
/* Inside-section body spacing */
.sidebar-section[open] > nav.category-tabs,
.sidebar-section[open] > .search-input,
.sidebar-section[open] > .sort-select {
    margin-top: 0.55rem;
}
.category-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.cat-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--ink-dim);
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: inherit;
    text-align: left;
    width: 100%;
}
.cat-tab:hover {
    background: rgba(184,158,255,0.08);
    color: var(--ink);
}
.cat-tab.active {
    background: var(--ink);
    color: #0a0a1a;
    border-color: var(--ink);
}
.cat-count {
    font-size: 0.72rem;
    opacity: 0.6;
    font-weight: 600;
    background: rgba(0,0,0,0.22);
    padding: 1px 7px;
    border-radius: 999px;
    color: inherit;
}
.cat-tab.active .cat-count {
    opacity: 0.85;
    background: rgba(255,255,255,0.22);
}

.sidebar-quiz-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: linear-gradient(110deg, #b89eff 10%, #7aa8ff 60%, #ffb1d8 110%);
    color: #0a0a1a;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sidebar-quiz-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px -10px rgba(184, 158, 255, 0.55);
}

.search-input {
    position: relative;
}
.search-input i.fa-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-faint);
    font-size: 0.85rem;
}
.search-input input {
    width: 100%;
    background: var(--surface-1);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 0.65rem 2.5rem 0.65rem 2.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-family: inherit;
}
.search-input input::placeholder { color: var(--ink-faint); }
.search-input input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-2);
}
.clear-search {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--ink-faint);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    cursor: pointer;
}
.clear-search:hover { color: var(--ink); background: var(--surface-2); }

.sort-select select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface-1);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 0.65rem 2.25rem 0.65rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23ffffff' opacity='0.6' d='M6 8 0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px;
}
.sort-select select:focus { outline: none; border-color: var(--accent); }

/* --- Filter meta row (sits inside the sticky filter bar) ----------------- */
.filter-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255,255,255,0.08);
}
.result-count {
    margin: 0;
    color: var(--ink-faint);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}
/* Reset filters - now lives below the "Find my spirit shirt" CTA. Styled
   as a quieter secondary action (ghost button) so the primary CTA stays loud. */
.reset-link {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--ink-dim);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    margin-top: 0.55rem;
    border-radius: 10px;
    width: 100%;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}
.reset-link:hover { color: var(--ink); background: rgba(184,158,255,0.12); }

/* --- Grid --------------------------------------------------------------- */
.catalog-main {
    padding: 1.5rem 0 4rem;
}
.catalog-main-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.75rem;
    align-items: start;
}
.catalog-grid-wrap { min-width: 0; }

/* --- Catalog toolbar (Search + Sort, aligned with sidebar top edge) ---- */
.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    margin: 0 0 1.1rem;
}
.catalog-toolbar-search {
    /* uses the existing .search-input shell - just widen it */
    max-width: none;
}
.catalog-toolbar-sort {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.catalog-toolbar-sort .sort-select-label {
    color: var(--ink-faint);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    white-space: nowrap;
}

/* Custom-styled native <select> that matches the dark theme. The label is
   the visible chrome; the actual <select> is opacity 0 but still receives
   pointer events so the native picker still opens. */
.sort-select--toolbar {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--surface-1);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.6rem 2.2rem 0.6rem 0.95rem;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 200px;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.sort-select--toolbar:hover {
    border-color: rgba(184, 158, 255, 0.55);
    background: rgba(184, 158, 255, 0.06);
}
.sort-select--toolbar .sort-select-label {
    color: var(--ink-faint);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
}
.sort-select--toolbar select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    padding: 0;
    margin: 0;
    cursor: pointer;
    flex: 1;
    /* Ensures the select takes its computed value width, not max-content */
    width: auto;
    outline: none;
}
/* Dark-themed <option> elements (Chromium / Firefox honor these on Win/Mac) */
.sort-select--toolbar select option {
    background: #18142a;
    color: #f4eedc;
    padding: 0.5rem;
}
.sort-select-caret {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-faint);
    pointer-events: none;
    font-size: 0.85rem;
}
.sort-select--toolbar select:focus-visible + .sort-select-caret,
.sort-select--toolbar:hover .sort-select-caret { color: var(--ink); }
@media (max-width: 760px) {
    .catalog-toolbar { grid-template-columns: 1fr; }
    .sort-select--toolbar { min-width: 0; width: 100%; }
}

/* --- Custom <select> (matches the dark site theme) -------------------- */
/* The native <select> is kept in the DOM but visually hidden; click events
   on the custom trigger fire its `change` event so existing JS still works. */
.custom-select-native {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    border: 0 !important;
}
.custom-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}
.custom-select-trigger {
    appearance: none;
    background: var(--surface-1);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0.62rem 2.4rem 0.62rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-width: 160px;
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease;
    position: relative;
}
.custom-select-trigger:hover,
.custom-select-trigger:focus-visible,
.custom-select-wrap.is-open .custom-select-trigger {
    border-color: rgba(184, 158, 255, 0.6);
    background: rgba(184, 158, 255, 0.06);
    outline: none;
}
.custom-select-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.custom-select-caret {
    position: absolute;
    right: 0.95rem;
    top: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    color: var(--ink-faint);
    pointer-events: none;
    transition: transform 0.18s ease, color 0.18s ease;
}
.custom-select-wrap.is-open .custom-select-caret {
    transform: translateY(-30%) rotate(-135deg);
    color: var(--ink);
}

/* Listbox: positioned absolutely below (or above) the trigger */
.custom-select-listbox {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    background: linear-gradient(180deg, #1a1530 0%, #14102a 100%);
    border: 1px solid rgba(184, 158, 255, 0.4);
    border-radius: 12px;
    box-shadow:
        0 22px 48px -16px rgba(0, 0, 0, 0.7),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
    max-height: 260px;
    overflow-y: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 158, 255, 0.45) transparent;
}
.custom-select-listbox.flips-up {
    top: auto;
    bottom: calc(100% + 6px);
}
.custom-select-listbox::-webkit-scrollbar { width: 6px; }
.custom-select-listbox::-webkit-scrollbar-thumb {
    background: rgba(184, 158, 255, 0.45);
    border-radius: 3px;
}
.custom-select-option {
    padding: 0.55rem 0.8rem 0.55rem 2rem;
    margin: 0;
    color: var(--ink-dim);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background 0.12s ease, color 0.12s ease;
    user-select: none;
}
.custom-select-option:hover,
.custom-select-option.is-highlighted {
    background: rgba(184, 158, 255, 0.12);
    color: var(--ink);
}
.custom-select-option.is-selected {
    color: var(--ink);
}
.custom-select-option.is-selected::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    top: 50%;
    width: 6px; height: 11px;
    border-right: 2px solid #b89eff;
    border-bottom: 2px solid #b89eff;
    transform: translateY(-65%) rotate(45deg);
}
.custom-select-option[aria-disabled="true"] {
    opacity: 0.4;
    cursor: default;
}

/* When wrapped by .sort-select--toolbar, the trigger replaces the old chrome */
.sort-select--toolbar .custom-select-wrap {
    width: auto;
}
.sort-select--toolbar .custom-select-trigger {
    min-width: 180px;
}

/* Bundle page now uses the catalog sidebar layout (filters on left,
   grid in middle, bundle dock on right at desktop widths). The old
   sticky-top filter-bar styles were removed when the bundle markup
   adopted the .filter-sidebar / .catalog-grid-wrap pattern. */

/* --- Cart-added toast (global, all add-to-cart paths) ------------------- */
.mm-cart-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(160deg, #1a1438, #0a0a1a);
    border: 1px solid rgba(184, 158, 255, 0.4);
    border-radius: 14px;
    box-shadow: 0 18px 50px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(184,158,255,0.08);
    color: var(--ink, #fff);
    max-width: min(420px, calc(100vw - 40px));
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.mm-cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.mm-cart-toast-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 64px;
}
.mm-cart-toast-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mm-cart-toast-body { min-width: 0; }
.mm-cart-toast-title {
    margin: 0 0 0.15rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent, #b89eff);
    letter-spacing: 0.02em;
}
.mm-cart-toast-title i { margin-right: 0.35rem; }
.mm-cart-toast-item {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ink-dim, rgba(255,255,255,0.78));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mm-cart-toast-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}
.mm-cart-toast-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(110deg, #b89eff 10%, #7aa8ff 60%, #ffb1d8 110%);
    color: #0a0a1a;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mm-cart-toast-checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -10px rgba(184, 158, 255, 0.6);
}
.mm-cart-toast-view {
    font-size: 0.72rem;
    color: var(--ink-faint, rgba(255,255,255,0.55));
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.04em;
}
.mm-cart-toast-view:hover { color: var(--ink, #fff); }
.mm-cart-toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: 0;
    color: var(--ink-faint, rgba(255,255,255,0.55));
    width: 22px;
    height: 22px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1;
}
.mm-cart-toast-close:hover { color: var(--ink, #fff); background: rgba(255,255,255,0.08); }
@media (max-width: 480px) {
    .mm-cart-toast { right: 10px; left: 10px; bottom: 10px; max-width: none; }
}
.design-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}
@media (max-width: 900px) {
    .catalog-main-inner { grid-template-columns: 1fr; }
    .filter-sidebar-inner { position: static; max-height: none; }
    .category-tabs { flex-direction: row; flex-wrap: wrap; }
    .cat-tab { width: auto; padding: 0.4rem 0.8rem; }
}
/* Catalog grid stays at 3 columns down to small screens; collapses on narrow phones. */
@media (max-width: 720px) {
    .design-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 420px) {
    .design-grid { grid-template-columns: 1fr; }
}

.design-card {
    position: relative;
    background: var(--surface-1);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.design-card:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 158, 255, 0.4);
    box-shadow: 0 16px 40px -16px rgba(184, 158, 255, 0.3);
}
.design-card .card-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 100%;
}
.card-thumb {
    aspect-ratio: 3 / 4;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
/* Hover zoom: shirt image scales 10% with a smooth ease-in-out. The
   .card-thumb has overflow:hidden so the zoom is cleanly clipped to the
   card's edges. */
.card-thumb img {
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.1s ease-in-out;
    will-change: transform;
}
.design-card:hover .card-thumb img,
.card-link:hover .card-thumb img,
.card-link:focus-visible .card-thumb img { transform: scale(1.10); }
@media (prefers-reduced-motion: reduce) {
    .card-thumb img { transition: none; }
    .design-card:hover .card-thumb img,
    .card-link:hover .card-thumb img { transform: scale(1); }
}
/* Kill the starfield behind product cards (hero-tee + modal-art keep theirs). */
.card-thumb::before,
.card-thumb::after { content: none; display: none; background: none; animation: none; }

/* ==========================================================================
   Starfield - stars zoom toward camera (warp speed feel) behind shirt cards
   ========================================================================== */
.card-thumb::before,
.card-thumb::after,
.hero-tee::before,
.hero-tee::after,
.modal-art::before,
.modal-art::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
}

/* Two layers, offset by half the cycle, so warp feels continuous */
.card-thumb::before,
.hero-tee::before,
.modal-art::before {
    background-image:
        radial-gradient(1.2px 1.2px at 48% 51%, rgba(255,255,255,0.95), transparent 60%),
        radial-gradient(1px 1px at 30% 38%, rgba(255,255,255,0.9), transparent 60%),
        radial-gradient(1px 1px at 70% 35%, rgba(255,255,255,0.9), transparent 60%),
        radial-gradient(1px 1px at 32% 70%, rgba(255,255,255,0.9), transparent 60%),
        radial-gradient(1px 1px at 68% 72%, rgba(255,255,255,0.9), transparent 60%),
        radial-gradient(0.8px 0.8px at 52% 28%, rgba(255,255,255,0.85), transparent 60%),
        radial-gradient(0.8px 0.8px at 28% 55%, rgba(255,255,255,0.85), transparent 60%),
        radial-gradient(0.8px 0.8px at 72% 58%, rgba(255,255,255,0.85), transparent 60%),
        radial-gradient(0.8px 0.8px at 47% 75%, rgba(255,255,255,0.85), transparent 60%),
        radial-gradient(0.7px 0.7px at 40% 45%, rgba(255,255,255,0.8), transparent 60%),
        radial-gradient(0.7px 0.7px at 60% 50%, rgba(255,255,255,0.8), transparent 60%),
        radial-gradient(0.7px 0.7px at 50% 60%, rgba(255,255,255,0.8), transparent 60%);
    animation: warp-zoom 6s linear infinite;
}
.card-thumb::after,
.hero-tee::after,
.modal-art::after {
    background-image:
        radial-gradient(1.1px 1.1px at 46% 53%, rgba(255,255,255,0.95), transparent 60%),
        radial-gradient(1px 1px at 35% 42%, rgba(255,255,255,0.9), transparent 60%),
        radial-gradient(1px 1px at 64% 41%, rgba(255,255,255,0.9), transparent 60%),
        radial-gradient(1px 1px at 38% 64%, rgba(255,255,255,0.9), transparent 60%),
        radial-gradient(1px 1px at 62% 66%, rgba(255,255,255,0.9), transparent 60%),
        radial-gradient(0.8px 0.8px at 55% 32%, rgba(255,255,255,0.85), transparent 60%),
        radial-gradient(0.8px 0.8px at 33% 50%, rgba(255,255,255,0.85), transparent 60%),
        radial-gradient(0.8px 0.8px at 67% 52%, rgba(255,255,255,0.85), transparent 60%),
        radial-gradient(0.8px 0.8px at 50% 70%, rgba(255,255,255,0.85), transparent 60%),
        radial-gradient(0.7px 0.7px at 42% 48%, rgba(255,255,255,0.8), transparent 60%),
        radial-gradient(0.7px 0.7px at 58% 55%, rgba(255,255,255,0.8), transparent 60%),
        radial-gradient(0.7px 0.7px at 50% 42%, rgba(255,255,255,0.8), transparent 60%);
    animation: warp-zoom 6s linear infinite;
    animation-delay: -3s;
}

/* Stars start tiny at the centre and zoom past the camera, fading at the edges */
@keyframes warp-zoom {
    0%   { transform: scale(0.05); opacity: 0; }
    10%  { opacity: 0.9; }
    80%  { opacity: 0.7; }
    100% { transform: scale(7); opacity: 0; }
}

/* Make sure shirt mockup sits in front of the starfield */
.card-thumb > *,
.hero-tee > *,
.modal-art > * {
    position: relative;
    z-index: 1;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .card-thumb::before, .card-thumb::after,
    .hero-tee::before, .hero-tee::after,
    .modal-art::before, .modal-art::after {
        animation: none;
        opacity: 0.5;
        transform: scale(1);
    }
}
.card-thumb-placeholder {
    width: 88%;
    height: 88%;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border-radius: 12px;
}

/* --- Per-card star rating - centered single-line row ------------------- */
.card-rating {
    margin: 0.1rem 0 0.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--ink-dim, rgba(255,255,255,0.72));
    line-height: 1;
    white-space: nowrap;
    /* Hover affordance — clicking the rating jumps to the design's
       reviews section on its product page. */
    cursor: pointer;
    padding: 2px 6px;
    margin: 0.1rem -6px 0.4rem;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}
.card-rating:hover {
    background: rgba(255, 210, 92, 0.10);
    color: var(--ink, #fff);
}
.card-rating:hover .card-rating-count { color: rgba(255, 255, 255, 0.85); }
.card-stars {
    color: #ffd25c;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
}
.card-rating-text { line-height: 1; }
.card-rating-text strong { color: var(--ink, #fff); font-weight: 700; }
.card-rating-count {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}
/* Themed card variant: shown when ?theme= is in the catalog URL */
.card-thumb--plate { background: #000; }
.card-thumb--plate .tee-plate {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.card-theme-chip {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.55rem;
    background: rgba(233, 196, 106, 0.15);
    border: 1px solid rgba(233, 196, 106, 0.45);
    border-radius: 999px;
    color: #E9C46A;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Smart-filter banner: appears at the top of the grid when ?similar= or
   ?theme= is in the URL. One-click clear escape hatch. */
.smart-filter-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0.85rem 1.1rem;
    background: linear-gradient(180deg, rgba(233, 196, 106, 0.1), rgba(233, 196, 106, 0.04));
    border: 1px solid rgba(233, 196, 106, 0.35);
    border-radius: 12px;
    color: #F4EEDC;
    font-size: 0.92rem;
}
.smart-filter-banner strong {
    color: #E9C46A;
    font-weight: 700;
}
.smart-filter-banner-clear {
    appearance: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(244, 238, 220, 0.04);
    border: 1px solid rgba(244, 238, 220, 0.18);
    color: rgba(244, 238, 220, 0.85);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.smart-filter-banner-clear:hover {
    background: rgba(244, 238, 220, 0.1);
    border-color: rgba(244, 238, 220, 0.45);
    color: #F4EEDC;
}

/* --- Pre-rendered composite (single image, fits the 3:4 card thumb) ---- */
.tee-composite {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: none;
    transition: transform 0.35s ease;
    position: relative;
    z-index: 1;
}
.design-card:hover .tee-composite {
    transform: translateY(-2px) scale(1.02);
}
.modal-composite {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 22px 36px rgba(0,0,0,0.55));
}

/* --- Shared tee mockup wrapper ----------------------------------------- */
.tee-mockup {
    position: relative;
    display: block;
    width: 92%;
    height: 92%;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.5));
    transition: transform 0.35s ease;
}
.tee-mockup .tee-base,
.tee-mockup .tee-print {
    pointer-events: none;
    user-select: none;
    display: block;
}
.tee-mockup .tee-base {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.tee-mockup .tee-print {
    position: absolute;
    top: 25%;
    left: 28%;
    width: 43%;
    aspect-ratio: 820 / 1020;
    object-fit: contain;
    object-position: top center;
    opacity: 0.94;
    filter: contrast(0.95) saturate(0.9) brightness(0.95) drop-shadow(0 1px 2px rgba(0,0,0,0.45));
}
.design-card:hover .tee-mockup {
    transform: translateY(-2px) scale(1.02);
}
.bestseller-rank {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    background: #E9C46A;
    color: #05010F;
    font-family: 'IBM Plex Mono', 'Menlo', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.06em;
    z-index: 2;
}
.card-variants {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(0,0,0,0.55);
    color: var(--ink);
    font-size: 0.7rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.card-cat {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: rgba(255,255,255,0.08);
    color: var(--ink-dim);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
}
.card-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}
.card-name {
    font-family: 'Fraunces', 'Inter', system-ui, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.05rem;
    letter-spacing: -0.012em;
    line-height: 1.25;
    /* Cap at 2 lines so "Three [Long Animal] Moon" doesn't push cards out of grid */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-body .jdgm-preview-badge { margin: 0; line-height: 1; }
.card-price {
    color: var(--ink-dim);
    font-size: 0.85rem;
    margin: 0;
}
.card-price strong {
    color: var(--ink);
    font-weight: 700;
}
.card-activates {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.005em;
}
.card-activates-label {
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.66rem;
    font-weight: 700;
    margin-right: 0.3rem;
}

/* --- Inline card add row -----------------------------------------------
   Size on the left, qty on the right (top row); full-width Add to Cart
   button along the bottom of each card. Shared by catalog + bundle. */
.card-add-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    width: 100%;
}
/* Catalog-page layout puts .card-add-row OUTSIDE the .card-link, so the
   card-body's padding doesn't reach it — apply our own.
   On bundle.html the row sits INSIDE .card-body and inherits that
   padding; the > selector keeps this rule off the bundle path. */
.design-card > .card-add-row {
    padding: 0 0.85rem 0.95rem;
}
.card-controls-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}
.card-controls-row .size-select,
.card-controls-row .qty-stepper {
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
}
.card-controls-row .size-select select {
    height: 40px;
    width: 100%;
    padding: 0 1.6rem 0 0.7rem;
    font-size: 0.85rem;
    background-position: right 0.55rem center;
}
.card-controls-row .qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-controls-row .qty-stepper .qty-btn,
.card-controls-row .qty-stepper .qty-input {
    height: 40px;
    line-height: 1;
}
.card-controls-row .qty-stepper .qty-btn { width: 32px; padding: 0; }
.card-controls-row .qty-stepper .qty-input {
    flex: 1; width: auto; padding: 0; text-align: center;
}
.card-add-row .pick-add-btn {
    width: 100%;
    height: 44px;
    padding: 0 0.8rem;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 8px;
}
.card-add-row .pick-add-btn.is-added {
    background: #6dd86d;
    color: #05010F;
}
.card-add-row .pick-add-btn:disabled {
    cursor: default;
    opacity: 1;
}

/* --- Empty state -------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 5rem 1rem;
}
.empty-state-art {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.empty-state h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: var(--ink);
}
.empty-state p {
    color: var(--ink-dim);
    margin: 0 0 1.5rem;
}

.grid-status {
    text-align: center;
    color: var(--ink-faint);
    padding: 1.5rem;
    font-size: 0.85rem;
}
.grid-sentinel {
    height: 1px;
}

/* --- Buttons (shared) --------------------------------------------------- */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    font-family: inherit;
}
.btn-primary {
    background: var(--ink);
    color: #0a0a1a;
}
.btn-primary:hover {
    background: var(--accent);
}
.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-secondary:hover {
    border-color: var(--ink);
}

/* --- Newsletter strip --------------------------------------------------- */
.newsletter-strip {
    background: linear-gradient(135deg, #131330, #0a0a1a);
    border-top: 1px solid var(--line);
    padding: 3rem 1.5rem;
}
.newsletter-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.newsletter-copy h2 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.8rem;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}
.newsletter-copy p {
    color: var(--ink-dim);
    margin: 0;
    font-size: 0.95rem;
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 480px;
    min-width: 280px;
}
.newsletter-form input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-family: inherit;
}
.newsletter-form input::placeholder { color: var(--ink-faint); }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
    background: #050511;
    border-top: 1px solid var(--line);
    padding: 3rem 1.5rem 1.5rem;
    color: var(--ink-dim);
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}
/* Force every child of .footer-col (h4, ul, li, a) to share the same
   left edge so SHOP / HELP / STORY headers align with the link list
   below them. Reset UL/LI's default indentation that browsers add. */
.footer-col > * { margin-left: 0; padding-left: 0; }
.footer-col ul, .footer-col li { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-left: 0; padding-left: 0; }
.footer-col ul li a { padding-left: 0; }
@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
    .footer-inner > .footer-col:first-child { grid-column: 1 / -1; max-width: 480px; }
}
@media (max-width: 640px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-inner > .footer-col:first-child { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 420px) {
    .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
    .footer-inner > .footer-col:first-child { grid-column: auto; }
}
/* Footer brand mirrors the .mm-logo in the header so the wordmark is consistent. */
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f4eedc;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}
.footer-brand .mm-logo-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.footer-brand b { font-weight: 800; letter-spacing: 0.16em; color: #ffffff; }
.footer-brand sup {
    font-size: 0.5em;
    color: #E9C46A;
    margin-left: 2px;
    letter-spacing: 0;
    vertical-align: super;
}
.footer-brand:hover b { color: #E9C46A; }
.footer-col p { margin: 0; font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 {
    color: var(--ink);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    /* SHOP / HELP / STORY sit flush at the left edge of their column,
       directly above their link list (no padding-top offset to the
       brand wordmark — the link list anchors the column, not the brand). */
    margin: 0 0 0.85rem;
    padding: 0;
    font-weight: 700;
    line-height: 1.4;
    text-indent: 0;
    text-align: left;
    text-shadow: none;
    width: auto;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-col a {
    color: var(--ink-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
    max-width: 1400px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-size: 0.8rem;
    color: var(--ink-faint);
    gap: 1rem;
}
.footer-bottom > *:first-child { justify-self: start; }
.footer-bottom .jdgm-all-reviews-text {
    justify-self: center;
    font-size: 0.8rem;
    opacity: 0.75;
    white-space: nowrap;
    text-align: center;
}
.footer-payments { justify-self: end; }
.footer-socials {
    display: flex;
    gap: 1rem;
}
.footer-socials a {
    color: var(--ink-dim);
    font-size: 1.1rem;
    transition: color 0.15s ease;
}
.footer-socials a:hover { color: var(--accent); }

/* Accepted payment-method logos row in the .footer-bottom.
   Inline SVGs render at credit-card aspect ratio (38:24 ≈ 1.58:1).
   Uses !important to win against the global "ul, li" resets some
   pages apply, and explicit flex-direction:row so they NEVER stack. */
.footer-payments {
    list-style: none !important;
    margin: 0 0 0 auto !important;  /* auto-left pushes the row to the right edge */
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    order: 99;  /* sit last in .footer-bottom so it's right-most */
}
.footer-payments li {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.footer-payments .pay-svg {
    width: 38px;
    height: 24px;
    display: block;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    opacity: 0.92;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.footer-payments li:hover .pay-svg { opacity: 1; transform: translateY(-1px); }
@media (max-width: 540px) {
    .footer-payments .pay-svg { width: 32px; height: 20px; }
    .footer-payments { gap: 0.4rem; }
}

/* --- Card-link button (the whole card is a button) --------------------- */
.design-card .card-link {
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* --- Design preview modal ---------------------------------------------- */
.design-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modal-fade 0.18s ease-out;
}
.design-modal[hidden] { display: none !important; }
@keyframes modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 17, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 0;
    cursor: pointer;
}
.modal-card {
    position: relative;
    background: linear-gradient(160deg, #16163a, #0a0a1a);
    border: 1px solid var(--line);
    border-radius: 22px;
    width: 100%;
    max-width: 920px;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.modal-card::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (max-width: 720px) {
    .modal-card { grid-template-columns: 1fr; max-height: calc(100vh - 1rem); }
}
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    background: rgba(255,255,255,0.08);
    color: var(--ink);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--line);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { background: var(--surface-2); }
.modal-art {
    position: relative;
    background:
        radial-gradient(circle at 50% 35%, rgba(184, 158, 255, 0.15), transparent 65%),
        #0b0b1f;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-right: 1px solid var(--line);
}
@media (max-width: 720px) {
    .modal-art { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; }
}
.modal-tee {
    width: 90%;
    height: 90%;
}
.modal-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
}
.modal-cat {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
    color: var(--accent);
    margin: 0;
    font-weight: 600;
}
.modal-name {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--ink);
}
.modal-price {
    color: var(--ink-dim);
    margin: 0;
    font-size: 0.95rem;
}
.modal-price strong { color: var(--ink); font-weight: 600; font-size: 1.1rem; }
.modal-variants .variant-label {
    color: var(--ink-faint);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0.5rem 0 0.5rem;
}
.variant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.variant-chip {
    background: var(--surface-1);
    border: 1px solid var(--line);
    color: var(--ink-dim);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}
.variant-chip:hover { color: var(--ink); border-color: rgba(255,255,255,0.3); }
.variant-chip.active {
    background: var(--ink);
    color: #0a0a1a;
    border-color: var(--ink);
}
.modal-cta {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.modal-meta {
    color: var(--ink-faint);
    font-size: 0.8rem;
    margin: 0.5rem 0 0;
}
.modal-meta i { color: var(--accent); }

/* --- Size chip row + Qty stepper (used in modal + bundle picker) ------ */
.picker-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.picker-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-faint);
    font-weight: 600;
}
.size-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
/* Inside a picker-row, lay sizes out in a 9-up evenly-spaced grid */
.picker-row .size-chips {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
}
@media (max-width: 720px) {
    .picker-row .size-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .picker-row .size-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Qty stepper stays compact (doesn't need the full row) */
.picker-row > .qty-stepper { align-self: flex-start; }

/* --- Size dropdown (collapsed selector) -------------------------------- */
.size-select {
    display: inline-block;
    position: relative;
}
.size-select select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface-1);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 0.55rem 2.25rem 0.55rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23ffffff' opacity='0.6' d='M6 8 0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
}
.size-select select:focus {
    outline: none;
    border-color: var(--accent);
}
.size-select select option {
    background: #0a0a1a;
    color: var(--ink);
}
.size-select--full {
    display: block;
    width: 100%;
}
.size-select--full select { width: 100%; }
.size-chip {
    background: var(--surface-1);
    border: 1px solid var(--line);
    color: var(--ink-dim);
    width: 100%;
    height: 38px;
    padding: 0 0.4rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.size-chip:hover {
    color: var(--ink);
    border-color: rgba(255,255,255,0.25);
}
.size-chip.active {
    background: var(--ink);
    color: #0a0a1a;
    border-color: var(--ink);
}
.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-1);
}
.qty-stepper .qty-btn {
    background: transparent;
    color: var(--ink);
    border: 0;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}
.qty-stepper .qty-btn:hover { background: rgba(255,255,255,0.06); }
.qty-stepper .qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-stepper .qty-input {
    background: transparent;
    border: 0;
    color: var(--ink);
    width: 44px;
    text-align: center;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    /* hide number-input arrows */
    -moz-appearance: textfield;
}
.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 480px) {
    .picker-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .picker-label { min-width: 0; }
}
