/* Equipment Inventory Page Template — 3thingsMedia */
:root { --brand: #ea580c; --brand-dark: #c2410c; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg: #f1f5f9; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
img { max-width: 100%; display: block; }
button { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header + hero */
.top { background: #0f172a; color: #fff; }
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 18px; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.brand img { height: 36px; width: auto; }
.phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; text-decoration: none; background: var(--brand); padding: 9px 14px; border-radius: 10px; font-size: 15px; }
.phone svg { width: 16px; height: 16px; }
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff; padding: 36px 0 84px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 35%, transparent), transparent 65%); }
.hero h1 { position: relative; z-index: 1; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 10px; max-width: 760px; }
.hero p { position: relative; z-index: 1; color: #cbd5e1; font-size: 18px; margin: 0; max-width: 640px; }

/* Toolbar */
.tools { position: relative; z-index: 2; margin-top: -52px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px rgba(15, 23, 42, .1); padding: 14px; display: grid; gap: 10px; }
@media (min-width: 900px) { .tools { grid-template-columns: 2fr repeat(4, 1fr); align-items: end; } }
.tools label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.tools input, .tools select { width: 100%; font: inherit; font-size: 15px; padding: 11px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.tools input:focus, .tools select:focus { outline: none; border-color: var(--brand); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.chip { appearance: none; cursor: pointer; border: 1px solid var(--line); background: #fff; color: #334155; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.chip span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: #94a3b8; }
.chip:focus-visible, .card button:focus-visible, .btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.meta-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 14px; font-size: 14px; color: var(--muted); }
.meta-row button { appearance: none; border: 0; background: none; color: var(--brand-dark); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Grid */
.grid { display: grid; gap: 16px; padding-bottom: 56px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 40px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.card--sold { opacity: .7; }
.pic { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e2e8f0, #f8fafc); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic svg { width: 72%; height: auto; color: #94a3b8; }
.pic svg .accent { fill: var(--brand); opacity: .85; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.badge--new { background: #16a34a; color: #fff; }
.badge--feat { background: var(--brand); color: #fff; }
.badge--pending { background: #f59e0b; color: #fff; }
.badge--sold { background: #475569; color: #fff; }
.card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 2px; }
.card__title { font-size: 18px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.01em; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #475569; margin: 0 0 14px; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 4px; }
.facts svg { width: 14px; height: 14px; color: var(--muted); }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.price--call { font-size: 16px; color: var(--brand-dark); }
.card__foot button { appearance: none; cursor: pointer; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 10px; }
.card__foot button:hover { background: #334155; }
.empty { grid-column: 1 / -1; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 48px 16px; color: var(--muted); }

/* Modal */
.modal { width: min(960px, calc(100% - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 30px 80px rgba(15, 23, 42, .35); }
.modal::backdrop { background: rgba(15, 23, 42, .6); }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; appearance: none; border: 0; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); font-size: 22px; line-height: 1; color: var(--ink); }
.modal__grid { display: grid; }
@media (min-width: 860px) { .modal__grid { grid-template-columns: 1.2fr 1fr; } }
.modal__media .pic { aspect-ratio: 4 / 3; }
.thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.thumbs button { appearance: none; border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 72px; height: 54px; flex-shrink: 0; cursor: pointer; background: var(--bg); }
.thumbs button[aria-current="true"] { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal__info { padding: 22px; }
.modal__info h2 { font-size: 24px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -.02em; }
.modal__info h2:focus { outline: none; }
.modal__stock { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.modal__stock .price { color: var(--ink); font-size: 20px; margin-left: 2px; }
.modal__stock .price--call { color: var(--brand-dark); font-size: 16px; }
.modal__desc { color: #334155; margin: 0 0 14px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 18px; }
.specs th, .specs td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 46%; }
.inq { background: var(--bg); border-radius: 14px; padding: 16px; }
.inq h3 { margin: 0 0 4px; font-size: 17px; }
.inq p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.inq .row { display: grid; gap: 8px; }
@media (min-width: 520px) { .inq .row--2 { grid-template-columns: 1fr 1fr; } }
.inq input, .inq textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.inq textarea { resize: vertical; margin-top: 8px; }
.inq input:focus, .inq textarea:focus { outline: none; border-color: var(--brand); }
.inq input[aria-invalid="true"] { border-color: #dc2626; }
.inq .err { color: #dc2626; font-size: 13px; margin: 6px 0 0; }
.btn { appearance: none; border: 0; cursor: pointer; width: 100%; margin-top: 10px; font-weight: 800; font-size: 16px; color: #fff; background: var(--brand); border-radius: 10px; padding: 13px; }
.btn:hover { background: var(--brand-dark); }
.ok { background: #dcfce7; color: #166534; font-weight: 700; padding: 14px; border-radius: 12px; margin: 0; }
.call-line { font-size: 14px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.call-line a { color: var(--brand-dark); font-weight: 700; }

.foot { background: #0f172a; color: #94a3b8; text-align: center; font-size: 13px; padding: 28px 0 34px; }
.foot p { margin: 4px 0; }
.foot a { color: #cbd5e1; }
