/* TCA Shopper */
.shop-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.shop-aud { display: flex; gap: 6px; flex-wrap: wrap; }
.tca .pill { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tca .pill.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.shop-field select, .shop-field input { min-height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0 14px; font: inherit; font-size: 15px; }
.shop-search { flex: 1 1 220px; } .shop-search input { width: 100%; }
.shop-count { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.shop-card { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; color: var(--text); font: inherit; transition: border-color .15s, transform .15s; }
.shop-card:hover, .shop-card:focus-visible { border-color: var(--red); transform: translateY(-2px); }
.shop-art { display: block; background: radial-gradient(circle at 50% 40%, #2a2c30, #17191b); border-radius: 12px; padding: 10px; margin-bottom: 6px; }
.shop-art svg { display: block; width: 100%; height: auto; max-height: 230px; }
.shop-badge { position: absolute; top: 22px; left: 22px; z-index: 1; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }
.shop-code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #f2c14e; }
.shop-name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.shop-meta { color: var(--muted); font-size: 13px; }
.shop-price { margin-top: auto; padding-top: 6px; font-size: 22px; font-weight: 900; }
.shop-price small { font-size: 12px; font-weight: 700; color: var(--muted); }

.shop-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.shop-modal[hidden] { display: none; }
.shop-dialog { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg, #101112); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.shop-x { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 26px; cursor: pointer; }
.sd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 820px) { .sd-grid { grid-template-columns: 1fr; } }
.sd-views { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.sd-svg { background: radial-gradient(circle at 50% 40%, #2a2c30, #121315); border-radius: 14px; padding: 14px; }
.sd-svg svg { display: block; width: 100%; height: auto; max-height: 460px; }
.sd-panel h2 { margin: 4px 0 6px; font-size: 26px; }
.sd-panel .eyebrow { font-family: ui-monospace, Menlo, monospace; color: #f2c14e; letter-spacing: .04em; }
.sd-meta { color: var(--muted); font-size: 15px; }
.sd-panel .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 14px 0 6px; }
.sd-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 34px; height: 34px; border-radius: 999px; border: 2px solid rgba(255,255,255,.25); cursor: pointer; }
.sw.is-on { outline: 3px solid var(--red); outline-offset: 2px; }
.sd-areas { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-upload { cursor: pointer; }
.sd-range { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-top: 8px; }
.sd-est { display: grid; gap: 10px; }
.sd-est label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.sd-est input[type=number], .sd-est select { min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0 10px; font: inherit; }
.sd-est input[type=number] { width: 90px; }
.sd-est input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--red); }
.sd-total { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.sd-total div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.sd-total .grand { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; font-size: 19px; }
.sd-total small { color: var(--muted); }
.sd-est select { max-width: 100%; } .sd-est label { min-width: 0; }

/* Real product photos (Media Library, named by Reference Title) */
.shop-art.has-photo { padding: 0; overflow: hidden; background: #f2f2f0; }
.shop-art img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sd-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.sd-photos img { width: 100%; border-radius: 10px; background: #f2f2f0; aspect-ratio: 4 / 5; object-fit: cover; }
.tca .pill[hidden] { display: none !important; }
