/* InstantNode merch (static store) - matches the dark public theme. */
.merch-wrap{max-width:1100px;margin:0 auto;padding:120px 20px 64px}
.merch-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:36px}
.merch-head h1{font-size:2.6rem;font-weight:900;color:#fff;margin:0}
.merch-head p{color:#94a3b8;margin:8px 0 0;max-width:34rem}
.merch-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.merch-cartbtn{display:inline-flex;align-items:center;gap:8px;border:1px solid #1e293b;border-radius:999px;padding:9px 16px;color:#e2e8f0;text-decoration:none;font-weight:600;font-size:.9rem}
.merch-cartbtn:hover{border-color:#3b82f6}
.merch-cartbtn.primary{border-color:rgba(59,130,246,.5);color:#93c5fd}
.merch-cartbtn.primary:hover{border-color:#3b82f6;background:rgba(59,130,246,.12)}

.merch-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
@media(min-width:640px){.merch-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:900px){.merch-grid{grid-template-columns:repeat(4,1fr)}}
.merch-card{display:block;overflow:hidden;border:1px solid #1e293b;border-radius:14px;background:#0f172a;text-decoration:none;transition:border-color .2s}
.merch-card:hover{border-color:rgba(59,130,246,.55)}
.merch-thumb{position:relative;aspect-ratio:1;background:#0b1220;overflow:hidden}
.merch-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.merch-card:hover .merch-thumb img{transform:scale(1.05)}
.merch-thumb-hover{position:absolute;inset:0;opacity:0;transition:opacity .35s ease}
.merch-card.has-hover:hover .merch-thumb-hover{opacity:1}
.merch-meta{padding:14px}
.merch-name{font-size:.9rem;font-weight:700;color:#f1f5f9;margin:0}
.merch-tag{font-size:.78rem;color:#94a3b8;margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.merch-price{font-size:.9rem;font-weight:800;color:#3b82f6;margin:8px 0 0}

.merch-back{display:inline-block;color:#94a3b8;text-decoration:none;font-size:.9rem;margin-bottom:22px}
.merch-back:hover{color:#e2e8f0}
.merch-detail{display:grid;gap:32px}
@media(min-width:768px){.merch-detail{grid-template-columns:1fr 1fr}}
.merch-detail-img{aspect-ratio:1;border:1px solid #1e293b;border-radius:14px;overflow:hidden;background:#0b1220}
.merch-detail-img img{width:100%;height:100%;object-fit:cover}
.merch-detail-info h1{font-size:2rem;font-weight:900;color:#fff;margin:0}
.merch-detail-price{font-size:1.6rem;font-weight:900;color:#3b82f6;margin:16px 0 0}
.merch-gallery{display:flex;flex-direction:column;gap:12px}
.merch-thumbs{display:flex;gap:10px;flex-wrap:wrap}
.merch-thumb-btn{width:64px;height:64px;padding:0;border:1px solid #1e293b;border-radius:10px;overflow:hidden;background:#0b1220;cursor:pointer;transition:border-color .2s}
.merch-thumb-btn img{width:100%;height:100%;object-fit:cover}
.merch-thumb-btn.active,.merch-thumb-btn:hover{border-color:#3b82f6}
.merch-desc{color:#94a3b8;font-size:.92rem;line-height:1.6;margin:18px 0 0}
.merch-desc p{margin:0 0 10px}
.merch-desc ul,.merch-desc ol{margin:0 0 12px;padding-left:20px}
.merch-desc li{margin:3px 0}
.merch-desc strong,.merch-desc b{color:#e2e8f0;font-weight:700}
.merch-desc h3,.merch-desc h4,.merch-desc h5{color:#f1f5f9;font-size:.95rem;margin:14px 0 6px;font-weight:800}
.merch-desc table{border-collapse:collapse;width:100%;font-size:.8rem;margin:14px 0;display:block;overflow-x:auto}
.merch-desc th,.merch-desc td{border:1px solid #1e293b;padding:6px 10px;text-align:left;color:#cbd5e1;white-space:nowrap}
.merch-desc th{background:#0f172a;color:#f1f5f9;font-weight:700}
.merch-desc caption{color:#94a3b8;font-size:.8rem;text-align:left;margin-bottom:6px}
.merch-lbl{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8;margin:22px 0 8px}
.merch-sizes{display:flex;flex-wrap:wrap;gap:8px}
.merch-size{border:1px solid #1e293b;background:transparent;color:#e2e8f0;border-radius:10px;padding:8px 16px;font-weight:600;font-size:.9rem;cursor:pointer}
.merch-size.active{border-color:#3b82f6;background:rgba(59,130,246,.14);color:#3b82f6}
.merch-buy{display:flex;align-items:center;gap:12px;margin-top:24px}
.merch-qty{display:flex;align-items:center;border:1px solid #1e293b;border-radius:10px}
.merch-qty button{background:none;border:0;color:#94a3b8;padding:9px 12px;cursor:pointer;font-size:1rem}
.merch-qty span{min-width:34px;text-align:center;font-weight:600;color:#f1f5f9}
.merch-add{flex:1;background:#3b82f6;color:#ffffff;border:0;border-radius:999px;padding:13px 22px;font-weight:800;font-size:.9rem;cursor:pointer;text-decoration:none;text-align:center}
.merch-add:hover{opacity:.9}
.merch-ghost{border:1px solid #1e293b;color:#e2e8f0;border-radius:999px;padding:11px 22px;font-weight:600;text-decoration:none}
.merch-note{color:#94a3b8;font-size:.78rem;margin:16px 0 0}

.merch-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:640px}
/* checkout form: two fields side-by-side get too cramped on phones -> stack */
@media(max-width:640px){.merch-form{grid-template-columns:1fr}}
.merch-fld{display:block}
.merch-fld span{display:block;font-size:.72rem;color:#94a3b8;margin-bottom:6px}
.merch-fld input{width:100%;background:#0f172a;border:1px solid #1e293b;border-radius:10px;color:#f1f5f9;padding:10px 13px;font-size:.9rem}
.merch-fld input:focus{outline:none;border-color:#3b82f6}
.sm\:col-span-2{grid-column:1/-1}
.merch-summary{border:1px solid #1e293b;border-radius:12px;padding:16px}
.merch-summary .row{display:flex;justify-content:space-between;font-size:.88rem;color:#94a3b8;margin-top:4px}
.merch-summary .row.total{font-weight:800;color:#f1f5f9;border-top:1px solid #1e293b;margin-top:10px;padding-top:10px}
.merch-paysel{display:flex;gap:10px;flex-wrap:wrap}
.merch-payopt{flex:1;min-width:150px;display:flex;align-items:center;gap:10px;border:1px solid #1e293b;border-radius:12px;padding:12px 14px;cursor:pointer;background:#0f172a;color:#f1f5f9;font-size:.86rem;font-weight:700}
.merch-payopt:hover{border-color:#3b82f6}
.merch-payopt input{accent-color:#3b82f6;margin:0}
.merch-payopt:has(input:checked){border-color:#3b82f6;background:rgba(59,130,246,.12)}
.merch-pay{background:#ffc439;color:#0b1220;border:0;border-radius:999px;padding:14px;font-weight:900;font-size:.92rem;cursor:pointer}
.merch-pay.card{background:#3b82f6;color:#ffffff}
.merch-pay:disabled{opacity:.6}
.merch-login{border:1px solid #1e293b;border-radius:14px;padding:40px;text-align:center;max-width:520px;margin:0 auto}

.merch-result{max-width:520px;margin:40px auto;text-align:center}
.merch-result .ico{width:64px;height:64px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-size:1.8rem;margin:0 auto 20px}
.merch-result .ico.ok{background:rgba(59,130,246,.15);color:#3b82f6}
.merch-result .ico.err{background:rgba(239,68,68,.15);color:#ef4444}
.merch-result h1{font-size:1.6rem;font-weight:900;color:#fff;margin:0}
.merch-result p{color:#94a3b8;margin:10px 0 0}
.merch-result .acts{display:flex;gap:12px;justify-content:center;margin-top:24px}

.merch-order{border:1px solid #1e293b;border-radius:14px;padding:20px;margin-bottom:16px;background:#0f172a}
.merch-order .oh{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:flex-start}
.merch-order-no{font-weight:800;color:#f1f5f9;margin:0;font-size:.95rem}
.merch-order-date{color:#94a3b8;font-size:.78rem;margin:3px 0 0}
.merch-badge{display:inline-block;border:1px solid;border-radius:999px;padding:4px 12px;font-size:.72rem;font-weight:800;white-space:nowrap}

/* status progress: Paid -> In production -> Shipped */
.merch-prog{display:flex;align-items:flex-start;margin:18px 0 6px;padding:0 6px}
.merch-prog-step{flex:1;display:flex;flex-direction:column;align-items:center;position:relative;text-align:center;min-width:0}
.merch-prog-step::before,.merch-prog-step::after{content:"";position:absolute;top:7px;height:2px;background:#1e293b}
.merch-prog-step::before{left:0;right:50%}
.merch-prog-step::after{left:50%;right:0}
.merch-prog-step:first-child::before{display:none}
.merch-prog-step:last-child::after{display:none}
.merch-prog-dot{box-sizing:border-box;width:16px;height:16px;border-radius:999px;background:#1e293b;border:2px solid #1e293b;position:relative;z-index:1}
.merch-prog-lbl{font-size:.7rem;color:#64748b;margin-top:7px;font-weight:600;line-height:1.2}
.merch-prog-step.done .merch-prog-dot,.merch-prog-step.current .merch-prog-dot{background:#3b82f6;border-color:#3b82f6}
.merch-prog-step.done::before,.merch-prog-step.current::before{background:#3b82f6}
.merch-prog-step.done::after{background:#3b82f6}
.merch-prog-step.done .merch-prog-lbl,.merch-prog-step.current .merch-prog-lbl{color:#e2e8f0}
.merch-prog-step.current .merch-prog-dot{box-shadow:0 0 0 4px rgba(59,130,246,.18)}

.merch-order-items{margin:16px 0 0;display:flex;flex-direction:column;gap:10px}
.merch-order-item{display:flex;align-items:center;gap:12px}
.merch-order-thumb{width:44px;height:44px;border-radius:8px;object-fit:cover;background:#0b1220;border:1px solid #1e293b;flex-shrink:0}
.merch-order-item-name{flex:1;color:#e2e8f0;font-size:.86rem;line-height:1.4}
.merch-order-size{color:#94a3b8}
.merch-order-item-price{color:#f1f5f9;font-weight:700;font-size:.86rem;white-space:nowrap}
.merch-order-tot{margin-top:16px}
.merch-order-block{margin-top:16px}
.merch-order-block-h{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8;margin:0 0 6px;font-weight:700}
.merch-order-addr{color:#cbd5e1;font-size:.84rem;line-height:1.6;margin:0}
.merch-order ul{margin:12px 0 0;padding:0;list-style:none;color:#94a3b8;font-size:.88rem}
.merch-order ul li{margin:2px 0}
.merch-track{display:inline-block;background:#f1f5f9;color:#0b1220;border-radius:999px;padding:7px 16px;font-size:.75rem;font-weight:800;text-decoration:none;margin-top:16px}
.merch-track:hover{background:#fff}
.merch-loading{color:#94a3b8;text-align:center;padding:60px 0}
