/* ===== EzeeLab Lab Machines (list + detail + compare) ===== */
.mc-page { --ink:#0f172a; --mut:#64748b; --line:#e6ebf2; --blue:#2563eb; --bg:#f6f8fb; background:var(--bg); padding:150px 0 70px; color:var(--ink); }   /* 150px = header height, adjust if needed */
.mc-page *, .mc-page *::before, .mc-page *::after { box-sizing:border-box; }
.mc-wrap { max-width:1260px; margin:0 auto; padding:0 20px; }
.mc-crumb { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:.88rem; margin-bottom:18px; color:var(--mut); }
.mc-crumb a { color:var(--blue); text-decoration:none; font-weight:500; } .mc-crumb a:hover { text-decoration:underline; }
.mc-crumb i { font-size:.7rem; }

/* hero */
.mc-hero { position:relative; overflow:hidden; border-radius:22px; padding:34px 36px; color:#fff; margin-bottom:20px;
  background:radial-gradient(1000px 360px at 90% -20%, rgba(124,58,237,.55), transparent 60%), linear-gradient(115deg,#0b1b4d,#1d4ed8 60%,#2f6df6); box-shadow:0 18px 40px -20px rgba(29,78,216,.6); }
.mc-hero::before { content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.2px); background-size:22px 22px; -webkit-mask-image:linear-gradient(90deg,transparent 30%,#000); mask-image:linear-gradient(90deg,transparent 30%,#000); }
.mc-hero > div { position:relative; display:flex; flex-wrap:wrap; gap:22px; justify-content:space-between; align-items:center; }
.mc-hero h1 { font-size:1.8rem; font-weight:800; letter-spacing:-.02em; margin:0 0 6px; }
.mc-hero p { margin:0; opacity:.85; max-width:560px; line-height:1.5; }
.mc-stats { display:flex; gap:12px; flex-wrap:wrap; }
.mc-stat { min-width:112px; padding:12px 16px; border-radius:14px; background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.24); }
.mc-stat b { display:block; font-size:1.5rem; line-height:1.1; font-weight:800; } .mc-stat span { font-size:.74rem; opacity:.85; }

/* toolbar */
.mc-bar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:18px; padding:12px; margin-bottom:14px; box-shadow:0 10px 30px -20px rgba(15,23,42,.3); }
.mc-search { position:relative; flex:1 1 300px; }
.mc-search i { position:absolute; left:15px; top:50%; transform:translateY(-50%); color:#94a3b8; }
.mc-search input, .mc-select { height:46px; border:1px solid var(--line); border-radius:13px; background:#f8fafc; font-size:.93rem; color:var(--ink); outline:0; transition:.15s; }
.mc-search input { width:100%; padding:0 14px 0 42px; }
.mc-select { padding:0 36px 0 14px; appearance:none; -webkit-appearance:none; cursor:pointer; min-width:150px;
  background:#f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 5.4a.75.75 0 0 1 1.06 0L8 10.7l5.34-5.3a.75.75 0 1 1 1.06 1.06l-5.87 5.83a.75.75 0 0 1-1.06 0L1.6 6.46a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E") no-repeat right 14px center; }
.mc-search input:focus, .mc-select:focus { border-color:#93b4fb; box-shadow:0 0 0 4px rgba(37,99,235,.12); background-color:#fff; }
.mc-count { margin-left:auto; color:var(--mut); font-size:.86rem; } .mc-count b { color:var(--ink); }
.mc-chips { display:flex; gap:8px; overflow-x:auto; padding:2px 2px 14px; }
.mc-chip { flex:0 0 auto; border:1px solid var(--line); background:#fff; border-radius:99px; padding:8px 15px; font-size:.86rem; font-weight:500; cursor:pointer; color:#334155; transition:.15s; }
.mc-chip:hover { border-color:var(--blue); color:var(--blue); } .mc-chip.on { background:var(--blue); border-color:var(--blue); color:#fff; box-shadow:0 8px 18px -8px var(--blue); }

/* machine card */
.mc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; }
.mc-card { position:relative; display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:20px; overflow:hidden; transition:transform .25s, box-shadow .25s, border-color .25s; box-shadow:0 8px 24px -16px rgba(15,23,42,.25); animation:mcIn .5s both; }
.mc-card:hover { transform:translateY(-5px); border-color:#b7cdfb; box-shadow:0 24px 44px -22px rgba(37,99,235,.5); }
@keyframes mcIn { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
.mc-img { position:relative; height:200px; display:flex; align-items:center; justify-content:center; padding:18px; background:radial-gradient(90% 80% at 50% 0, #eaf1ff, #fff 75%); }
.mc-img img { max-width:100%; max-height:100%; object-fit:contain; transition:transform .35s; } .mc-card:hover .mc-img img { transform:scale(1.07); }
.mc-brand { position:absolute; left:12px; top:12px; background:#fff; border:1px solid var(--line); border-radius:99px; padding:4px 11px; font-size:.72rem; font-weight:700; color:#334155; box-shadow:0 4px 12px -6px rgba(15,23,42,.3); }
.mc-type { position:absolute; right:12px; top:12px; background:#0f172a; color:#fff; border-radius:99px; padding:4px 11px; font-size:.72rem; font-weight:700; }
.mc-body { padding:14px 18px 6px; flex:1; }
.mc-body h3 { font-size:1.08rem; font-weight:750; margin:0 0 3px; letter-spacing:-.01em; } .mc-body h3 a { color:inherit; text-decoration:none; }
.mc-sub { color:var(--mut); font-size:.84rem; margin-bottom:8px; }
.mc-price { color:var(--blue); font-weight:800; font-size:1.05rem; margin-bottom:10px; }
.mc-facts { list-style:none; margin:0; padding:0; display:grid; gap:5px; font-size:.84rem; color:#334155; }
.mc-facts i { color:#16a34a; margin-right:7px; }
.mc-foot { display:flex; gap:8px; padding:14px 18px 18px; align-items:center; }
.mc-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:42px; padding:0 16px; border-radius:12px; font-weight:650; font-size:.88rem; text-decoration:none; cursor:pointer; border:1px solid var(--line); background:#fff; color:#334155; transition:.15s; }
.mc-btn:hover { border-color:#b9c4d4; background:#f8fafc; color:#0f172a; transform:translateY(-1px); }
.mc-btn.main { background:var(--blue); border-color:var(--blue); color:#fff; box-shadow:0 10px 20px -10px var(--blue); } .mc-btn.main:hover { filter:brightness(1.08); color:#fff; }
.mc-btn.wide { flex:1; }
.mc-cmp { display:inline-flex; align-items:center; gap:7px; font-size:.8rem; font-weight:600; color:#475569; cursor:pointer; user-select:none; white-space:nowrap; }
.mc-cmp input { width:17px; height:17px; accent-color:var(--blue); cursor:pointer; }
.mc-card.picked { border-color:var(--blue); box-shadow:0 0 0 3px rgba(37,99,235,.18), 0 24px 44px -22px rgba(37,99,235,.5); }
.mc-empty { text-align:center; padding:70px 20px; color:var(--mut); display:none; } .mc-empty i { font-size:3rem; color:#cbd5e1; display:block; margin-bottom:8px; }

/* compare tray */
.mc-tray { position:fixed; left:50%; bottom:22px; transform:translate(-50%,140%); z-index:1500; background:#0f172a; color:#fff; border-radius:18px; padding:12px 14px 12px 20px; display:flex; align-items:center; gap:14px; box-shadow:0 24px 50px -10px rgba(0,0,0,.5); transition:transform .3s; max-width:94vw; }
.mc-tray.show { transform:translate(-50%,0); } .mc-tray span { font-size:.9rem; } .mc-tray b { color:#93c5fd; }
.mc-tray a { background:var(--blue); color:#fff; border-radius:12px; padding:9px 16px; font-weight:700; font-size:.88rem; text-decoration:none; } .mc-tray a.dis { opacity:.4; pointer-events:none; }
.mc-tray button { background:transparent; border:0; color:#cbd5e1; font-size:1.2rem; cursor:pointer; }

/* detail layout */
.md-layout { display:grid; grid-template-columns:330px minmax(0,1fr) 300px; gap:28px; align-items:start; }
.md-card { background:#fff; border:1px solid var(--line); border-radius:18px; padding:16px; box-shadow:0 8px 24px -18px rgba(15,23,42,.25); }
.md-gal { position:sticky; top:130px; }
.md-main { position:relative; border-radius:14px; background:#fff; border:1px solid #eef1f6; height:260px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.md-main img { max-width:100%; max-height:100%; object-fit:contain; }
.md-arrow { position:absolute; top:50%; transform:translateY(-50%); width:34px; height:34px; border-radius:50%; border:0; background:rgba(255,255,255,.92); box-shadow:0 4px 14px rgba(15,23,42,.25); cursor:pointer; display:flex; align-items:center; justify-content:center; }
.md-arrow.l { left:8px; } .md-arrow.r { right:8px; }
.md-thumbs { display:flex; gap:8px; margin:12px 0; justify-content:center; flex-wrap:wrap; }
.md-thumbs button { width:62px; height:50px; padding:3px; border:2px solid transparent; border-radius:8px; background:#fff; cursor:pointer; opacity:.7; } .md-thumbs button.on { border-color:var(--blue); opacity:1; }
.md-thumbs img { width:100%; height:100%; object-fit:contain; }
.md-title { font-size:1.9rem; font-weight:800; letter-spacing:-.02em; line-height:1.2; margin:0 0 6px; }
.md-price { font-size:1.25rem; color:#334155; margin-bottom:14px; } .md-price b { color:var(--blue); }
.md-h { font-size:1.05rem; font-weight:750; margin:24px 0 0; padding-bottom:8px; border-bottom:1px solid var(--line); }
.md-sub { font-weight:700; font-size:.95rem; margin:18px 0 6px; }
.md-row { display:grid; grid-template-columns:42% 1fr; gap:14px; padding:7px 0; font-size:.92rem; border-bottom:1px dashed #eef1f6; }
.md-row div:first-child { color:#334155; } .md-row div:last-child { white-space:pre-line; color:#1e293b; }
.md-desc h2, .md-sec h2 { font-size:1.3rem; font-weight:800; margin:34px 0 10px; letter-spacing:-.01em; }
.md-desc p { color:#475569; line-height:1.7; }
.md-side { display:grid; gap:18px; position:sticky; top:130px; }
.md-cta { background:linear-gradient(135deg,#3b2ff0,#5b3df5 55%,#7c3aed); color:#fff; border:0; padding:22px; border-radius:18px; position:relative; overflow:hidden; }
.md-cta::after { content:""; position:absolute; right:-30px; bottom:-30px; width:120px; height:120px; border-radius:50%; background:rgba(255,255,255,.12); }
.md-cta h4 { font-size:1.25rem; font-weight:800; line-height:1.3; margin:0 0 16px; position:relative; z-index:1; }
.md-cta a { position:relative; z-index:1; display:inline-block; background:#fff; color:#1e1b4b; font-weight:700; padding:10px 18px; border-radius:10px; text-decoration:none; font-size:.9rem; }
.md-list h4 { font-size:1.05rem; font-weight:800; margin:0 0 10px; } .md-list a { display:block; padding:5px 0; font-size:.88rem; font-weight:600; color:var(--blue); text-decoration:none; } .md-list a:hover { text-decoration:underline; }
.md-list p { font-size:.86rem; color:#475569; line-height:1.55; margin:0 0 8px; }

/* video */
.md-video { position:relative; aspect-ratio:16/9; border-radius:16px; overflow:hidden; background:#000 center/cover no-repeat; border:1px solid var(--line); }
.md-video button { position:absolute; inset:0; width:100%; border:0; background:rgba(15,23,42,.25); cursor:pointer; display:flex; align-items:center; justify-content:center; }
.md-video button i { font-size:4.2rem; color:#fff; filter:drop-shadow(0 6px 16px rgba(0,0,0,.5)); transition:.2s; } .md-video button:hover i { transform:scale(1.1); }
.md-video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }

/* carousels */
.md-carh { display:flex; align-items:center; justify-content:space-between; margin:36px 0 14px; } .md-carh h2 { margin:0; font-size:1.3rem; font-weight:800; }
.md-nav { display:flex; gap:8px; } .md-nav button { width:38px; height:38px; border-radius:10px; border:1px solid var(--line); background:#fff; cursor:pointer; } .md-nav button:hover { background:#f1f5f9; }
.md-track { display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 2px 14px; scrollbar-width:thin; }
.md-track > * { scroll-snap-align:start; flex:0 0 auto; }
.md-vs { width:340px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px; }
.md-vs h5 { font-size:1rem; font-weight:700; margin:0 0 12px; }
.md-vs .two { display:grid; grid-template-columns:1fr 34px 1fr; align-items:center; gap:6px; text-align:center; }
.md-vs .two img { width:92px; height:78px; object-fit:contain; margin:0 auto 6px; display:block; } .md-vs small { display:block; font-weight:600; font-size:.78rem; color:#334155; } .md-vs em { font-style:normal; display:block; color:var(--blue); font-weight:800; font-size:.86rem; }
.md-vs .v { font-weight:800; color:#64748b; } .md-vs ul { list-style:none; padding:0; margin:12px 0; display:grid; grid-template-columns:1fr 1fr; gap:4px 10px; font-size:.78rem; color:#475569; } .md-vs ul i { color:#16a34a; margin-right:5px; }
.md-oth { width:215px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px; display:flex; flex-direction:column; transition:.2s; } .md-oth:hover { box-shadow:0 16px 32px -18px rgba(37,99,235,.5); border-color:#b7cdfb; }
.md-oth .im { height:110px; display:flex; align-items:center; justify-content:center; margin-bottom:10px; } .md-oth .im img { max-width:100%; max-height:100%; object-fit:contain; }
.md-oth h5 { font-size:1rem; font-weight:750; margin:0 0 2px; } .md-oth .s { font-size:.8rem; color:#475569; margin-bottom:6px; } .md-oth .p { color:var(--blue); font-weight:800; font-size:.9rem; margin-bottom:8px; }
.md-oth ul { list-style:none; padding:0; margin:0 0 12px; font-size:.78rem; color:#475569; display:grid; gap:3px; } .md-oth ul i { color:#16a34a; margin-right:5px; } .md-oth .mc-btn { margin-top:auto; }

/* compare page */
.cp-head { display:grid; grid-template-columns:1fr 56px 1fr; gap:14px; align-items:stretch; margin-bottom:18px; }
.cp-m { background:#fff; border:1px solid var(--line); border-radius:20px; padding:20px; text-align:center; } .cp-m img { height:130px; max-width:100%; object-fit:contain; } .cp-m h2 { font-size:1.25rem; font-weight:800; margin:8px 0 2px; } .cp-m .p { color:var(--blue); font-weight:800; }
.cp-vs { display:flex; align-items:center; justify-content:center; } .cp-vs span { width:48px; height:48px; border-radius:50%; background:#0f172a; color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; }
.cp-t { width:100%; border-collapse:separate; border-spacing:0; background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.cp-t th, .cp-t td { padding:11px 16px; font-size:.92rem; vertical-align:top; border-bottom:1px solid #eef1f6; white-space:pre-line; }
.cp-t th.g { background:#eef3fb; font-weight:800; letter-spacing:.02em; font-size:.82rem; text-transform:uppercase; color:#334155; }
.cp-t td:first-child { width:24%; color:#334155; font-weight:600; } .cp-t tr.diff td:not(:first-child) { background:#fffbeb; } .cp-t tr:last-child td { border-bottom:0; }
.cp-note { font-size:.82rem; color:var(--mut); margin-top:10px; } .cp-note i { color:#f59e0b; }

@media (max-width:1100px) { .md-layout { grid-template-columns:320px minmax(0,1fr); } .md-side { grid-column:1 / -1; position:static; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); } }
@media (max-width:760px) { .mc-page { padding-top:120px; } .md-layout { grid-template-columns:1fr; } .md-gal { position:static; } .mc-hero { padding:24px 20px; } .md-title { font-size:1.5rem; } .md-row { grid-template-columns:1fr; gap:2px; } .cp-head { grid-template-columns:1fr; } .cp-vs { display:none; } .cp-t td:first-child { width:30%; } }
@media (prefers-reduced-motion:reduce) { .mc-card { animation:none; } .mc-card, .mc-img img, .mc-tray { transition:none; } }
