:root {
    --ink: #0a0a0a;
    --ink-2: #1f1f1f;
    --text: #2a2a2a;
    --muted: #6b6b6b;
    --line: #e5e5e5;
    --bg: #fafafa;
    --accent: #1428a0;
    --hot: #ff2bd6;
    --t: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    color: var(--text); background: var(--bg);
    line-height: 1.6; min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.vm-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 80;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; padding: 0 24px;
    background: rgba(10,10,10,0.94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.vm-back {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; letter-spacing: 0.5px;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s var(--t);
}
.vm-back:hover { color: #fff; }
.vm-store-title { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vm-store-title .label {
    font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
    color: rgba(255,255,255,0.5);
}
.vm-store-title .name { font-size: 14px; font-weight: 800; letter-spacing: -0.2px; }
.vm-cart-btn {
    position: relative;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    color: #fff; background: var(--accent);
    border-radius: 6px;
    font-size: 13px; font-weight: 700;
    transition: transform 0.2s var(--t), background 0.2s var(--t);
}
.vm-cart-btn:hover { background: #0e1e85; transform: translateY(-1px); }
.vm-cart-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    background: var(--hot); color: #fff; border-radius: 10px;
    font-size: 11px; font-weight: 900;
}

.vm-stage {
    position: relative; padding-top: 64px; min-height: 100vh;
    background:
        radial-gradient(600px 300px at 50% 100%, rgba(20,40,160,0.08), transparent 60%),
        linear-gradient(180deg, #0a0a14 0%, #11121f 100%);
    color: #fff; overflow: hidden;
}
.vm-store-canvas {
    position: relative; width: 100%;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 64px);
    margin: 0 auto;
}
.vm-store-svg { width: 100%; height: 100%; display: block; }

.vm-instructions {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%); z-index: 5;
    background: rgba(255,255,255,0.92); color: var(--ink);
    padding: 10px 20px; border-radius: 999px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    white-space: nowrap;
}
.vm-instructions .dot {
    display: inline-block; width: 8px; height: 8px;
    background: var(--hot); border-radius: 50%;
    margin-right: 6px; vertical-align: middle;
    animation: vmPulse 1.5s infinite;
}
@keyframes vmPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.3); }
}

.vm-hotspot {
    position: absolute;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--hot);
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(255, 43, 214, 0.7);
    animation: hotspotPulse 2s infinite;
    transition: transform 0.2s var(--t);
    z-index: 4;
}
.vm-hotspot::before {
    content: ''; position: absolute;
    inset: 8px; background: #fff; border-radius: 50%;
}
.vm-hotspot:hover { transform: translate(-50%, -50%) scale(1.25); }
@keyframes hotspotPulse {
    0%   { box-shadow: 0 0 0 0   rgba(255, 43, 214, 0.7); }
    70%  { box-shadow: 0 0 0 16px rgba(255, 43, 214, 0); }
    100% { box-shadow: 0 0 0 0   rgba(255, 43, 214, 0); }
}
.vm-tooltip {
    position: absolute;
    bottom: calc(100% + 12px); left: 50%;
    transform: translateX(-50%);
    background: var(--ink); color: #fff;
    padding: 8px 14px; border-radius: 6px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
    pointer-events: none;
    opacity: 0; transition: opacity 0.2s var(--t);
}
.vm-tooltip::after {
    content: ''; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--ink);
}
.vm-hotspot:hover .vm-tooltip { opacity: 1; }

.vm-modal-backdrop {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.vm-modal-backdrop.open { display: flex; animation: vmFadeIn 0.25s var(--t); }
@keyframes vmFadeIn { from { opacity: 0; } to { opacity: 1; } }
.vm-modal {
    background: #fff; color: var(--ink);
    width: 100%; max-width: 880px;
    max-height: calc(100vh - 48px);
    border-radius: 12px;
    display: grid; grid-template-columns: 1fr 1fr;
    overflow: hidden;
    animation: vmSlideUp 0.35s var(--t);
}
@keyframes vmSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.vm-modal-img {
    background: linear-gradient(135deg, var(--g1, #1f2937), var(--g2, #374151));
    min-height: 360px;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
.vm-modal-img svg { width: 100%; max-width: 280px; height: auto; }
.vm-modal-body {
    padding: 40px;
    display: flex; flex-direction: column;
    overflow-y: auto;
    position: relative;
}
.vm-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px;
    background: rgba(0,0,0,0.06); color: var(--ink);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
    z-index: 2;
    transition: background 0.2s var(--t);
}
.vm-modal-close:hover { background: rgba(0,0,0,0.12); }
.vm-modal-cat {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    color: var(--accent); text-transform: uppercase;
    margin-bottom: 12px;
}
.vm-modal-title {
    font-size: 26px; font-weight: 900; letter-spacing: -0.5px;
    color: var(--ink); margin-bottom: 8px; line-height: 1.2;
}
.vm-modal-sku {
    font-size: 12px; color: var(--muted); margin-bottom: 24px;
    font-family: 'Inter', monospace;
}
.vm-modal-desc {
    font-size: 14px; color: var(--text); line-height: 1.7;
    margin-bottom: 24px;
}
.vm-spec-list {
    list-style: none; margin-bottom: 28px;
    border-top: 1px solid var(--line);
}
.vm-spec-list li {
    display: flex; padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.vm-spec-list li .k {
    min-width: 100px; font-weight: 700; color: var(--ink);
}
.vm-spec-list li .v { color: var(--text); }
.vm-price-row {
    display: flex; align-items: baseline; gap: 10px;
    margin-bottom: 20px;
}
.vm-price { font-size: 30px; font-weight: 900; color: var(--ink); letter-spacing: -0.8px; }
.vm-price-unit { font-size: 14px; color: var(--muted); font-weight: 600; }
.vm-modal-actions { display: flex; gap: 10px; margin-top: auto; }
.vm-qty {
    display: flex; align-items: center; gap: 0;
    border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.vm-qty button {
    width: 40px; height: 44px;
    background: #fff; color: var(--ink);
    font-size: 18px; font-weight: 700;
    transition: background 0.15s var(--t);
}
.vm-qty button:hover { background: var(--bg); }
.vm-qty input {
    width: 50px; height: 44px;
    border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
    text-align: center; font-size: 15px; font-weight: 700;
    -moz-appearance: textfield;
}
.vm-qty input::-webkit-outer-spin-button,
.vm-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vm-add-cart {
    flex: 1; height: 44px;
    background: var(--ink); color: #fff;
    font-size: 14px; font-weight: 800; letter-spacing: 0.5px;
    border-radius: 6px;
    transition: transform 0.15s var(--t), background 0.15s var(--t);
}
.vm-add-cart:hover { background: var(--accent); transform: translateY(-1px); }
.vm-add-cart:active { transform: translateY(0); }

.vm-cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 420px; max-width: 100vw;
    background: #fff; color: var(--ink);
    z-index: 90;
    transform: translateX(100%);
    transition: transform 0.35s var(--t);
    display: flex; flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,0.25);
}
.vm-cart-drawer.open { transform: translateX(0); }
.vm-cart-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--line);
}
.vm-cart-head h2 { font-size: 18px; font-weight: 900; letter-spacing: -0.3px; }
.vm-cart-close {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); font-size: 18px;
    display: inline-flex; align-items: center; justify-content: center;
}
.vm-cart-list { flex: 1; overflow-y: auto; padding: 8px 24px; }
.vm-cart-empty {
    text-align: center; padding: 60px 24px;
    color: var(--muted); font-size: 14px;
}
.vm-cart-item {
    display: flex; gap: 14px; padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.vm-cart-thumb {
    width: 60px; height: 60px; border-radius: 6px;
    background: linear-gradient(135deg, var(--g1, #1f2937), var(--g2, #374151));
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.vm-cart-thumb svg { width: 36px; height: 36px; }
.vm-cart-meta { flex: 1; min-width: 0; }
.vm-cart-meta .nm { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.3; }
.vm-cart-meta .pr { font-size: 12px; color: var(--muted); }
.vm-cart-meta .pr strong { color: var(--ink); font-weight: 800; }
.vm-cart-rm { color: var(--muted); font-size: 18px; align-self: flex-start; }
.vm-cart-rm:hover { color: var(--hot); }
.vm-cart-foot {
    padding: 24px; border-top: 1px solid var(--line);
    background: var(--bg);
}
.vm-cart-total {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 18px;
}
.vm-cart-total .lbl { font-size: 13px; color: var(--muted); font-weight: 700; }
.vm-cart-total .amt { font-size: 24px; font-weight: 900; color: var(--ink); letter-spacing: -0.5px; }
.vm-checkout {
    width: 100%; height: 52px;
    background: var(--ink); color: #fff;
    font-size: 14px; font-weight: 800; letter-spacing: 1px;
    border-radius: 8px;
    transition: background 0.15s var(--t);
}
.vm-checkout:hover { background: var(--accent); }
.vm-checkout:disabled { opacity: 0.4; cursor: not-allowed; }

.vm-toast {
    position: fixed; bottom: 28px; left: 50%;
    transform: translate(-50%, 80px); z-index: 110;
    background: var(--ink); color: #fff;
    padding: 14px 24px; border-radius: 999px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
    opacity: 0;
    transition: transform 0.35s var(--t), opacity 0.35s var(--t);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.vm-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 768px) {
    .vm-modal { grid-template-columns: 1fr; max-height: calc(100vh - 24px); }
    .vm-modal-img { min-height: 200px; padding: 24px; }
    .vm-modal-img svg { max-width: 160px; }
    .vm-modal-body { padding: 24px; }
    .vm-modal-title { font-size: 20px; }
    .vm-store-canvas { aspect-ratio: 4 / 3; }
    .vm-hotspot { width: 22px; height: 22px; }
    .vm-hotspot::before { inset: 6px; }
    .vm-tooltip { font-size: 11px; padding: 6px 10px; }
    .vm-cart-drawer { width: 100vw; }
    .vm-instructions { font-size: 11px; padding: 8px 16px; }
}

/* ============================================================
   CATEGORY TABS — 3D pushbutton booth divider
   ============================================================ */
.vm-tabs {
    position: absolute;
    top: 16px; left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    display: flex; gap: 12px;
    padding: 0;
    background: transparent;
    max-width: calc(100% - 20px);
    overflow-x: auto;
}
.vm-tab {
    position: relative;
    padding: 11px 22px 13px;
    font-family: inherit;
    font-size: 12px; font-weight: 900; letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(180deg, #3a3a44 0%, #1f1f26 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 -2px 0 rgba(0, 0, 0, 0.3) inset,
        0 4px 0 rgba(0, 0, 0, 0.4),
        0 8px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.12s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.12s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.18s ease;
    text-transform: uppercase;
}
.vm-tab:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #44444f 0%, #28282f 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 -2px 0 rgba(0, 0, 0, 0.3) inset,
        0 6px 0 rgba(0, 0, 0, 0.4),
        0 12px 22px rgba(0, 0, 0, 0.55);
}
.vm-tab:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6) inset,
        0 1px 0 rgba(0, 0, 0, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.4);
}
.vm-tab.is-active {
    color: #fff;
    background: linear-gradient(180deg, var(--accent, #1428a0) 0%, color-mix(in srgb, var(--accent, #1428a0) 65%, #000) 100%);
    border-color: color-mix(in srgb, var(--accent, #1428a0) 80%, #fff);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 -2px 0 rgba(0, 0, 0, 0.25) inset,
        0 4px 0 color-mix(in srgb, var(--accent, #1428a0) 50%, #000),
        0 0 20px color-mix(in srgb, var(--accent, #1428a0) 60%, transparent),
        0 10px 22px rgba(0, 0, 0, 0.55);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 6px rgba(255, 255, 255, 0.25);
}
.vm-tab .count {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 10px; font-weight: 900;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    vertical-align: 1px;
}
.vm-tab.is-active .count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.vm-empty-banner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    padding: 16px 28px;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.85);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    font-size: 14px; font-weight: 700; letter-spacing: 0.3px;
    text-align: center;
    pointer-events: none;
    display: none;
}
.vm-empty-banner.is-shown { display: block; }
.vm-empty-banner .sub {
    display: block; margin-top: 6px;
    font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 768px) {
    .vm-tabs { padding: 4px; gap: 4px; top: 8px; }
    .vm-tab { padding: 6px 11px; font-size: 11px; }
}
