/* Wild Bill Productions — store + studio (admin) styles. Extends the brand tokens. */

/* Studio (admin) */
.studio { background: var(--black); }
.studio-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem clamp(1rem,4vw,2rem); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11,11,12,0.9); backdrop-filter: blur(10px); z-index: 20; }
.studio-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding: clamp(1.5rem,4vw,3rem) clamp(1rem,4vw,2rem); }
.studio-cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .studio-cols { grid-template-columns: 300px 1fr; align-items: start; } }
.panel { background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; }
.panel h3 { font-size: var(--step-1); margin-bottom: 1rem; }
.stack { display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }
.stack input { background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); color: var(--offwhite); padding: 0.7rem 0.8rem; font-family: inherit; }
.gallery-list { list-style: none; padding: 0; display: grid; gap: 2px; }
.gallery-list li { padding: 0.7rem 0.8rem; border-radius: var(--radius); cursor: pointer; color: var(--muted); font-weight: 600; }
.gallery-list li:hover { background: var(--black); color: var(--offwhite); }
.gallery-list li.active { background: var(--gold); color: #1a1204; }
.work-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.price-set { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.price-set input { width: 5rem; background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); color: var(--offwhite); padding: 0.4rem 0.5rem; margin-left: 0.3rem; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; text-align: center; padding: 2.5rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius-lg); cursor: pointer; transition: 0.2s; }
.dropzone:hover, .dropzone.over { border-color: var(--gold); background: rgba(200,135,43,0.06); }
.dropzone strong { font-size: 1.1rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 0.6rem; margin-top: 1.2rem; }
.photo-cell { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-cell .tag { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,0.7); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; }

/* Studio v1.1 */
.studio-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.studio-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-family: inherit; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; padding: 0.6rem 0.9rem; cursor: pointer; }
.studio-tab:hover { color: var(--offwhite); }
.studio-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.68rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.work-title-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.work-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }

.badge { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; padding: 3px 8px; border-radius: 100px; border: 1px solid var(--line); }
.badge-public { color: var(--gold); border-color: var(--gold); }
.badge-hidden { color: var(--muted); }

/* Per-photo overlay controls */
.cell-actions { position: absolute; left: 4px; top: 4px; right: 4px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.photo-cell:hover .cell-actions, .photo-cell:focus-within .cell-actions { opacity: 1; }
@media (hover: none) { .cell-actions { opacity: 1; } }
.cell-btn { flex: 1; min-height: 34px; font-family: inherit; font-weight: 700; font-size: 0.62rem; letter-spacing: 0.03em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.72); border: 1px solid rgba(255,255,255,0.25); border-radius: 3px; padding: 6px 4px; cursor: pointer; }
.cell-btn:hover { background: rgba(0,0,0,0.9); }
.cell-btn.danger:hover { background: var(--burnt); border-color: var(--burnt); }

/* Orders tab */
.orders-table { display: grid; gap: 2px; }
.orders-row { display: grid; grid-template-columns: 1fr 1.6fr 0.6fr 0.9fr; gap: 0.6rem; align-items: center; padding: 0.7rem 0.8rem; background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.85rem; }
.orders-row span:nth-child(2) { overflow-wrap: anywhere; }
.orders-row span:nth-child(3), .orders-row span:nth-child(4) { text-align: right; }
.orders-head { background: transparent; border: 0; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 0 0.8rem 0.2rem; }

/* Requests tab (Zelle) */
.zelle-settings { background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.zelle-settings label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 0.5rem; }
.zelle-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.zelle-row input { flex: 1; min-width: 200px; background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); color: var(--offwhite); padding: 0.6rem 0.7rem; font-family: inherit; min-height: 42px; }
.zelle-row .btn { min-height: 42px; }
.zelle-saved { display: inline-block; font-size: 0.8rem; margin-top: 0.5rem; min-height: 1em; color: var(--muted); }
.zelle-saved.ok { color: var(--gold); }
.zelle-saved.err { color: var(--burnt); }

.order-card { background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 0.6rem; }
.order-card.paid { border-color: rgba(200,135,43,0.4); }
.order-card.delivered { border-color: var(--gold); }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.order-code { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.05em; color: var(--gold); }
.order-pill.pill-wait { color: var(--offwhite); border-color: var(--line); }
.order-pill.pill-paid { color: var(--gold); border-color: var(--gold); }
.order-pill.pill-done { color: #1a1204; background: var(--gold); border-color: var(--gold); }
.order-buyer { margin-top: 0.5rem; color: var(--offwhite); }
.order-email { display: inline-block; margin-top: 0.2rem; color: var(--gold); font-weight: 600; font-size: 0.85rem; overflow-wrap: anywhere; }
.order-meta { color: var(--muted); font-size: 0.82rem; margin-top: 0.4rem; }
.order-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.order-actions .btn { min-height: 40px; }
.order-links:not(:empty) { margin-top: 0.7rem; }
.dl-list { display: grid; gap: 0.4rem; }
.dl-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 0.6rem; row-gap: 0.15rem; padding: 0.5rem 0.6rem; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.8rem; }
.dl-row span { grid-column: 1; color: var(--offwhite); font-weight: 600; }
.dl-row a { grid-column: 1; color: var(--gold); overflow-wrap: anywhere; font-size: 0.76rem; }
.dl-row .dl-copy { grid-column: 2; grid-row: 1 / span 2; min-height: 40px; align-self: center; }
.dl-row.err span:last-child { font-weight: 400; }
.order-err { color: var(--burnt); font-size: 0.82rem; margin-top: 0.5rem; }
.order-sent { color: var(--gold); font-weight: 600; font-size: 0.88rem; }
.order-note { color: var(--offwhite); font-size: 0.82rem; margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.order-done { margin-top: 0.6rem; min-height: 40px; }

/* Messages tab */
.msg-card { background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 0.6rem; }
.msg-card.unread { border-color: var(--gold); background: rgba(200,135,43,0.06); cursor: pointer; }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.msg-who { display: flex; align-items: center; gap: 0.5rem; }
.msg-date { color: var(--muted); font-size: 0.78rem; }
.badge.msg-new { color: var(--gold); border-color: var(--gold); }
.msg-email { display: inline-block; margin-top: 0.3rem; color: var(--gold); font-weight: 600; font-size: 0.88rem; overflow-wrap: anywhere; }
.msg-company, .msg-phone { color: var(--offwhite); font-size: 0.85rem; margin-top: 0.2rem; }
.msg-meta { color: var(--muted); font-size: 0.8rem; margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
.msg-body { color: var(--offwhite); font-size: 0.9rem; margin-top: 0.6rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-read { margin-top: 0.8rem; }

/* Public shop */
.shop-search-wrap { margin-bottom: clamp(1.5rem,4vw,2.5rem); }
.shop-search { width: 100%; box-sizing: border-box; min-height: 48px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); color: var(--offwhite); font-family: inherit; font-size: 1rem; padding: 0.85rem 1rem; }
.shop-search::placeholder { color: var(--muted); }
.shop-search:focus { outline: none; border-color: var(--gold); }
.shop-noresults { color: var(--muted); font-size: 0.95rem; margin: 0 0 clamp(2rem,5vw,3.5rem); }

/* Bundle CTA (buy whole gallery) */
.bundle-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; width: 100%; text-align: left; margin: 0 0 1.1rem; padding: 0.85rem 1.1rem; min-height: 48px; background: var(--gold); border: 1px solid var(--gold); border-radius: var(--radius); color: #1a1204; font-family: inherit; cursor: pointer; transition: filter 0.2s var(--ease); }
.bundle-cta:hover { filter: brightness(1.06); }
.bundle-cta:focus-visible { outline: 3px solid var(--burnt); outline-offset: 2px; }
.bundle-cta-label { font-weight: 700; font-size: 1.02rem; }
.bundle-cta-sub { font-size: 0.8rem; font-weight: 600; opacity: 0.75; }

.shop-gallery { margin-bottom: clamp(2rem,5vw,3.5rem); }
.shop-gallery h2 { font-size: var(--step-3); }
.shop-gallery .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 0.7rem; }
.shop-item { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
.shop-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease); }
.shop-item:hover img { transform: scale(1.04); }
.shop-item .price { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,0.65); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.shop-item .check { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(198,85,31,0.55); font-family: var(--font-display); font-size: 2rem; color: #fff; }
.shop-item.selected .check { display: flex; }
.shop-item.selected { outline: 3px solid var(--burnt); outline-offset: -3px; }

/* Cart bar */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem clamp(1rem,4vw,2rem); background: rgba(11,11,12,0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.cart-bar.show { display: flex; }
.cart-bar .summary { font-weight: 700; }
.cart-bar .summary span { color: var(--gold); }

/* Request modal (Zelle) */
.req-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1.2rem; background: rgba(0,0,0,0.72); backdrop-filter: blur(4px); }
.req-overlay[hidden] { display: none; }
.req-modal { position: relative; width: 100%; max-width: 420px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.4rem; max-height: 90vh; overflow-y: auto; }
.req-close { position: absolute; right: 0.7rem; top: 0.5rem; width: 40px; height: 40px; background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.req-close:hover { color: var(--offwhite); }
.req-form { display: grid; gap: 0.9rem; }
.req-form .field { display: grid; gap: 0.35rem; }
.req-form label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.req-form input { background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); color: var(--offwhite); padding: 0.7rem 0.8rem; font-family: inherit; min-height: 44px; }
.req-form input:focus { outline: none; border-color: var(--gold); }
.req-error { color: var(--burnt); font-size: 0.82rem; min-height: 1em; margin: 0; }
.req-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 0.4rem; }
.req-actions .btn { min-height: 44px; }
.req-amount { font-family: var(--font-display); font-size: 1.4rem; color: var(--offwhite); margin: 0.4rem 0 0.9rem; }
.req-code { display: inline-block; font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.06em; color: var(--gold); background: var(--black); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 0.5rem 1rem; cursor: pointer; margin-bottom: 0.9rem; }
.req-code::after { content: attr(data-label); display: block; font-family: var(--font-body, inherit); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.req-code.copied { border-style: solid; }
.req-instr { color: var(--offwhite); font-size: 0.92rem; line-height: 1.5; margin: 0 0 1.1rem; overflow-wrap: anywhere; }

.download-list { display: grid; gap: 0.6rem; max-width: 640px; }
.download-list a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); color: var(--offwhite); font-weight: 600; }
.download-list a:hover { border-color: var(--gold); }

/* Public portfolio (portfolio.html) */
.pf-section { margin-bottom: clamp(2.5rem,6vw,4rem); }
.pf-section > h2 { font-size: var(--step-4); margin-bottom: 1rem; }
.pf-video-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (min-width: 720px) { .pf-video-grid { grid-template-columns: repeat(2, 1fr); } }
.pf-video { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--charcoal); }
.pf-embed { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000; }
.pf-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-embed video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pf-video-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; text-align: center; min-height: 200px; padding: 1.5rem; color: var(--offwhite); background:
    radial-gradient(120% 90% at 70% 10%, rgba(200,135,43,0.16), transparent 55%),
    linear-gradient(160deg, #212327 0%, #101113 60%, #17130e 100%); }
.pf-video-link:hover { color: var(--gold); }
.pf-play { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 100px; border: 1.5px solid currentColor; color: var(--gold); }
.pf-video-label { font-weight: 700; letter-spacing: 0.02em; font-size: 0.95rem; }

/* Studio portfolio tab */
.pf-add { background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; margin-bottom: 1.5rem; }
.pf-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--black); border: 1px solid var(--line); border-radius: 100px; margin-bottom: 1rem; }
.pf-seg-btn { min-height: 40px; padding: 0.4rem 1rem; border: 0; border-radius: 100px; background: transparent; color: var(--muted); font-family: inherit; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; }
.pf-seg-btn.active { background: var(--gold); color: #1a1204; }
.pf-field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.pf-field label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.pf-field select, .pf-field input { background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); color: var(--offwhite); padding: 0.65rem 0.75rem; font-family: inherit; min-height: 44px; }
.pf-field select:focus, .pf-field input:focus { outline: none; border-color: var(--gold); }
#pf-add-video { min-height: 42px; }
#pf-video-drop { margin-bottom: 0.9rem; }
.pf-or { display: flex; align-items: center; gap: 0.7rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin: 0.9rem 0; }
.pf-or::before, .pf-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pf-status.err { color: var(--burnt); }

.pf-list { display: grid; gap: 0.4rem; }
.pf-sec-head { font-size: var(--step-1); margin: 1.2rem 0 0.4rem; }
.pf-cat-head { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin: 0.8rem 0 0.3rem; }
.pf-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.7rem; background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); }
.pf-row.hidden-item { opacity: 0.55; }
.pf-thumb { flex: none; width: 64px; height: 64px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--charcoal); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-thumb-video { display: grid; place-items: center; color: var(--gold); }
.pf-info { flex: 1; min-width: 0; }
.pf-info .pf-title { color: var(--offwhite); font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; }
.pf-info .pf-meta { color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; }
.pf-row-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-end; }
.pf-row-actions .btn { min-height: 40px; }
.pf-row-actions .danger { color: var(--burnt); border-color: rgba(198,85,31,0.5); }
.pf-row-actions .danger:hover { background: var(--burnt); border-color: var(--burnt); color: #fff; }
@media (max-width: 560px) { .pf-row { flex-wrap: wrap; } .pf-row-actions { width: 100%; justify-content: flex-start; } }

/* Portfolio polish (scoped, does not affect the shop) */
#portfolio-root .tile { background: var(--charcoal); }
@media (max-width: 640px) { #portfolio-root .gallery { grid-template-columns: repeat(2, 1fr); } }
