.customer-catalog-view {
 --catalog-panel: var(--t-panel, #fff);
 --catalog-input: var(--t-input, #fff);
 --catalog-soft: var(--t-soft, #eff4eb);
 --catalog-line: var(--t-line, #dce5d6);
 --catalog-muted: var(--t-muted, #536454);
 --catalog-accent: var(--t-accent, #246144);
 --catalog-hero: linear-gradient(112deg, #101b33, #1c3054 64%, #312c5b);
 --catalog-warm: #ffc189;
 --catalog-live: #a4efc9;
 --catalog-live-bg: #183b36;
 --catalog-upcoming: #c5ddff;
 --catalog-upcoming-bg: #253c61;
 --catalog-ended: #d3daeb;
 --catalog-ended-bg: #353d51;
}

.customer-catalog-view[data-template="classic"] {
 --catalog-hero: linear-gradient(112deg, #112e28, #1e4a40 65%, #2a5c51);
 --catalog-warm: #884320;
 --catalog-live: #145739;
 --catalog-live-bg: #e3f4e9;
 --catalog-upcoming: #244c84;
 --catalog-upcoming-bg: #e2edfb;
 --catalog-ended: #404c4a;
 --catalog-ended-bg: #e7eceb;
}

.customer-catalog-view[data-template="gold"] {
 --catalog-hero: linear-gradient(112deg, #211a15, #483722 70%, #614826);
 --catalog-warm: #efd099;
}

.customer-catalog-view .workspace { padding-top: 23px; }
.customer-catalog-view .market-tabs { margin-bottom: 16px; }
.customer-catalog-view #preview-note,
.customer-catalog-view .auction-sidebar,
.customer-catalog-view:not(.catalog-detail-view) .desk,
.customer-catalog-view.catalog-detail-view .heading-row { display: none; }
.customer-catalog-view.catalog-detail-view .desk {
 grid-template-columns: minmax(0, 1fr);
 max-width: 1080px;
 margin: 0 auto;
}

.customer-catalog-view .heading-row {
 position: relative;
 isolation: isolate;
 overflow: hidden;
 min-height: 140px;
 align-items: center;
 gap: 20px;
 margin-bottom: 18px;
 padding: 19px 28px;
 border: 1px solid #6885c044;
 border-radius: 18px;
 background: var(--catalog-hero);
 color: #f5f7ff;
}
.customer-catalog-view .heading-row::before,
.customer-catalog-view .heading-row::after {
 position: absolute;
 z-index: -1;
 content: '';
 width: 152px;
 height: 213px;
 right: 75px;
 top: -45px;
 transform: rotate(20deg);
 border: 1px solid #b5ceff55;
 border-radius: 14px;
 background: linear-gradient(145deg, #aac7f229, #779af106 55%, #e2b56526);
 box-shadow: inset 0 0 0 7px #b6b9ff0c, 0 20px 35px #08102e5c;
}
.customer-catalog-view .heading-row::after { right: 178px; top: 0; transform: rotate(-14deg); opacity: .64; }
.customer-catalog-view .heading-row > div:first-child { max-width: 760px; min-width: 0; }
.customer-catalog-view .heading-row #view-eyebrow { color: #abd9ff; font-size: .69rem; letter-spacing: .16em; }
.customer-catalog-view[data-template="gold"] .heading-row #view-eyebrow { color: #f3d091; }
.customer-catalog-view .heading-row #view-title {
 color: #f5f7ff;
 font-size: clamp(1.9rem, 3.4vw, 3rem);
 line-height: 1.06;
 letter-spacing: -.045em;
 margin: 9px 0;
 overflow-wrap: anywhere;
}
.customer-catalog-view .heading-row #view-description { color: #c8d5ed; font-size: .9rem; line-height: 1.55; margin: 0; }
.catalog-hero-stats { display: flex; gap: 8px; flex: 0 0 auto; align-self: end; }
.catalog-hero-stats > div {
 min-width: 86px;
 padding: 8px 12px;
 border: 1px solid #b9d1ff44;
 border-radius: 10px;
 background: #0a1529ad;
 backdrop-filter: blur(8px);
}
.catalog-hero-stats strong, .catalog-hero-stats span { display: block; }
.catalog-hero-stats strong { font-size: 1.45rem; line-height: 1.2; color: #f5f7ff; }
.catalog-hero-stats span { font-size: .7rem; color: #c8d5ed; }

.auction-catalog { min-width: 0; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.catalog-heading h2 { margin: 0; font-size: 1.42rem; line-height: 1.25; letter-spacing: -.025em; }
.catalog-heading p { margin: 4px 0 0; color: var(--catalog-muted); font-size: .84rem; }
.catalog-count { padding: 5px 10px; background: var(--catalog-soft); border: 1px solid var(--catalog-line); border-radius: 30px; font-size: .78rem; color: var(--catalog-muted); white-space: nowrap; }
.catalog-toolbar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 10px 16px;
 margin-bottom: 17px;
 padding: 9px;
 background: var(--catalog-panel);
 border: 1px solid var(--catalog-line);
 border-radius: 13px;
}
.catalog-status, .catalog-filters { display: flex; align-items: center; gap: 5px; }
.catalog-status { flex: 0 0 auto; }
.catalog-status button {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 6px;
 min-height: 42px;
 padding: 7px 12px;
 border: 1px solid transparent;
 border-radius: 8px;
 background: transparent;
 color: var(--catalog-muted);
 font-size: .82rem;
 font-weight: 700;
 white-space: nowrap;
}
.catalog-status button[aria-pressed="true"], .catalog-status button:hover { color: var(--catalog-accent); background: var(--catalog-soft); }
.catalog-status button[aria-pressed="true"] { border-color: var(--catalog-line); }
.catalog-status .dot { background: #41a976; width: 6px; height: 6px; }
.catalog-filters { flex: 1; justify-content: flex-end; min-width: 0; gap: 8px; }
.catalog-filters input, .catalog-filters select {
 width: 100%;
 min-width: 0;
 height: 42px;
 padding: 7px 10px;
 border: 1px solid var(--catalog-line);
 border-radius: 8px;
 background: var(--catalog-input);
 color: var(--ink);
 font-size: .82rem;
}
.customer-catalog-view:not([data-template="classic"]) .catalog-filters { color-scheme: dark; }
.catalog-filters input::placeholder { color: var(--catalog-muted); }
.catalog-search { display: block; position: relative; width: min(100%, 258px); min-width: 110px; }
.catalog-search .icon { position: absolute; left: 11px; top: 13px; width: 16px; height: 16px; color: var(--catalog-muted); pointer-events: none; }
.catalog-filters .catalog-search input { padding-left: 34px; }
.catalog-filters select { width: auto; max-width: 156px; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.catalog-card {
 display: flex;
 flex-direction: column;
 min-width: 0;
 background: var(--catalog-panel);
 border: 1px solid var(--catalog-line);
 border-radius: 15px;
 box-shadow: 0 10px 27px #00000012;
 transition: border-color .18s, box-shadow .18s;
}
.catalog-card:focus-within, .catalog-card:hover { border-color: var(--catalog-accent); box-shadow: 0 12px 28px #00000024; }
.catalog-media {
 position: relative;
 display: grid;
 grid-template-columns: minmax(0, 1fr);
 align-items: stretch;
 gap: 6px;
 height: clamp(155px, 13vw, 203px);
 min-width: 0;
 margin: 8px 8px 0;
 padding: 0;
 overflow: hidden;
 border: 1px solid var(--catalog-line);
 border-radius: 10px;
 background: radial-gradient(ellipse at 50% 30%, var(--catalog-soft), var(--catalog-input));
}
.catalog-media-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; }
.catalog-photo { display: grid; place-items: center; overflow: hidden; min-width: 0; min-height: 0; border-radius: 6px; background: var(--catalog-input); }
.catalog-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.catalog-placeholder { display: grid; place-items: center; align-content: center; gap: 9px; padding: 9px; }
.catalog-placeholder .card-design {
 width: 78px;
 height: 110px;
 transform: rotate(-9deg);
 border-width: 3px;
 box-shadow: 0 9px 20px #0006, 8px 1px 0 -1px var(--catalog-line);
}
.catalog-placeholder .card-design::after { font-size: 4px; letter-spacing: .13em; }
.catalog-placeholder > span { font-size: .68rem; color: var(--catalog-muted); }
.catalog-badge, .catalog-photo-count {
 position: absolute;
 display: inline-flex;
 align-items: center;
 gap: 5px;
 padding: 4px 8px;
 border-radius: 6px;
 font-size: .7rem;
 font-weight: 750;
 line-height: 1.4;
 box-shadow: 0 2px 10px #0003;
}
.catalog-badge { top: 8px; left: 8px; }
.catalog-badge.catalog-live { color: var(--catalog-live); background: var(--catalog-live-bg); }
.catalog-badge.catalog-scheduled { color: var(--catalog-upcoming); background: var(--catalog-upcoming-bg); }
.catalog-badge.catalog-ended { color: var(--catalog-ended); background: var(--catalog-ended-bg); }
.catalog-badge .dot { width: 6px; height: 6px; background: currentColor; }
.catalog-photo-count { top: 8px; right: 8px; background: #101a29e8; color: #ecf4ff; }
.catalog-photo-count .icon { width: 12px; height: 12px; }
.catalog-card-body { display: flex; flex: 1; flex-direction: column; padding: 12px 14px 13px; }
.catalog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--catalog-muted); font-size: .69rem; line-height: 1.2; }
.catalog-card-meta span:first-child { color: var(--catalog-accent); font-weight: 750; }
.catalog-card h3 { font-size: 1.12rem; line-height: 1.25; letter-spacing: -.02em; margin: 6px 0 3px; overflow-wrap: anywhere; }
.catalog-card-set { color: var(--catalog-muted); margin: 0 0 11px; font-size: .76rem; overflow-wrap: anywhere; }
.catalog-condition { display: inline-block; padding: 1px 5px; margin-left: 3px; border: 1px solid var(--catalog-line); border-radius: 4px; font-size: .65rem; }
.catalog-price-row { display: flex; align-items: end; justify-content: space-between; gap: 6px; margin-top: auto; margin-bottom: 9px; }
.catalog-price-row span, .catalog-price-row strong { display: block; }
.catalog-price-row span, .catalog-price-row small { color: var(--catalog-muted); font-size: .71rem; }
.catalog-price-row strong { font-size: clamp(1.05rem, 1.9vw, 1.38rem); line-height: 1.3; }
.catalog-price-row small { white-space: nowrap; }
.catalog-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding-top: 9px; border-top: 1px solid var(--catalog-line); }
.catalog-timing { display: flex; align-items: center; gap: 6px; color: var(--catalog-muted); }
.catalog-timing.catalog-live { color: var(--catalog-warm); }
.catalog-timing .icon { width: 17px; height: 17px; }
.catalog-timing span, .catalog-timing strong { display: block; }
.catalog-timing span { font-size: .64rem; line-height: 1.2; }
.catalog-timing strong { font-size: .8rem; white-space: nowrap; }
.catalog-card .catalog-card-action { min-height: 41px; padding: 7px 11px; font-size: .79rem; white-space: nowrap; }
.catalog-card-action .icon { width: 14px; height: 14px; }

.catalog-empty {
 display: grid;
 justify-items: center;
 padding: 34px 18px;
 text-align: center;
 border: 1px dashed var(--catalog-line);
 border-radius: 14px;
 background: var(--catalog-panel);
}
.catalog-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--catalog-soft); color: var(--catalog-accent); }
.catalog-empty-icon .icon { width: 23px; height: 23px; }
.catalog-empty h3 { margin: 10px 0 3px; font-size: 1.12rem; }
.catalog-empty p { margin: 0 0 13px; color: var(--catalog-muted); }
.catalog-back-row { max-width: 1080px; margin: 0 auto 12px; }
.catalog-back-row .icon { transform: rotate(180deg); }

@media (max-width: 990px) {
 .catalog-toolbar { align-items: stretch; flex-direction: column; }
 .catalog-filters { justify-content: flex-start; }
 .catalog-search { width: 100%; }
}
@media (max-width: 790px) {
 .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
 .catalog-media { height: clamp(153px, 26vw, 208px); }
 .catalog-hero-stats > div { min-width: 66px; padding: 7px 8px; }
}
@media (max-width: 560px) {
 .customer-catalog-view .heading-row { align-items: flex-start; flex-direction: column; gap: 10px; min-height: auto; padding: 18px; margin-bottom: 18px; border-radius: 13px; }
 .customer-catalog-view .heading-row::before { right: -38px; top: -46px; opacity: .62; }
 .customer-catalog-view .heading-row::after { right: 19px; top: -10px; opacity: .48; }
 .catalog-hero-stats { align-self: auto; }
 .catalog-hero-stats > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
 .catalog-hero-stats strong { font-size: .95rem; }
 .catalog-toolbar { gap: 7px; padding: 7px; }
 .catalog-status { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 2px; }
 .catalog-status button { padding: 5px; font-size: .72rem; min-height: 42px; }
 .catalog-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .catalog-filters select { width: 100%; max-width: none; }
 .catalog-search { grid-column: span 2; }
 .catalog-grid { grid-template-columns: minmax(0, 1fr); }
 .catalog-media { height: clamp(160px, 46vw, 223px); }
}
@media (prefers-reduced-motion: reduce) { .catalog-card { transition: none; } }
