:root{
  /* màu theo Hùng Sản xuất: nâu gỗ #734522 + be #DED0C3 */
  --ink:#2a211b; --text:#2a2420; --muted:#6b625a; --line:#e8e1da; --soft:#f7f4f1;
  --brand:#734522; --brand-2:#5a3519; --brand-bright:#8d5a33; --brand-soft:#f4ede6; --brand-line:#dccbbb;
  --blue:#734522; --blue-soft:#f4ede6;
  --mono:'JetBrains Mono',ui-monospace,Consolas,monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:84px}
body{font-family:'Be Vietnam Pro',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--text);background:#fff;line-height:1.6;font-size:16px;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
.wrap{width:min(960px,100% - 32px);margin-inline:auto}

/* ---------- nút ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-weight:700;font-size:15px;line-height:1.25;padding:12px 18px;border-radius:11px;text-decoration:none;border:1.5px solid transparent;cursor:pointer;transition:background-color .15s,border-color .15s,transform .15s;text-align:center}
.btn svg{width:18px;height:18px;flex:none}
.btn:active{transform:translateY(1px)}
.btn:focus-visible,.ct-close:focus-visible,.menu a:focus-visible,.thumb:focus-visible{outline:3px solid #7ab3ff;outline-offset:2px}
.btn-brand{background:var(--brand);color:#fff}
.btn-brand:hover{background:var(--brand-2)}
.btn-zalo{background:#fff;color:var(--brand);border-color:var(--brand-line)}
.btn-zalo:hover{background:var(--brand-soft);border-color:var(--brand-bright)}
.btn-line{background:#fff;color:var(--text);border-color:var(--line)}
.btn-line:hover{border-color:#cbbfb4}
.btn-outline{background:#fff;color:var(--brand);border-color:var(--brand-line)}
.btn-outline:hover{background:var(--brand-soft)}
.btn-sm{padding:9px 14px;font-size:14px}

/* ---------- đầu trang ---------- */
.top{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;gap:16px;height:66px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none}
.brand img{width:38px;height:38px;border-radius:9px}
.brand b{display:block;font-weight:800;letter-spacing:.05em;font-size:17px;line-height:1.15}
.brand small{display:block;font-size:12px;color:var(--muted);line-height:1.2}
.menu{display:flex;gap:4px;margin-left:auto}
.menu a{text-decoration:none;font-weight:600;font-size:15px;color:#4d4540;padding:8px 14px;border-radius:9px;transition:background-color .15s,color .15s}
.menu a:hover{background:var(--soft);color:var(--text)}
.menu a.on{color:var(--brand);background:var(--brand-soft)}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sec.sec-first{padding-top:56px}
/* đầu trang: Hùng CNC / Đào tạo nội thất / Plugin SketchUp */
.dau{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:40px;align-items:center;margin:0 0 52px}
.dau-chu{text-align:left}
/* ảnh tách nền: vòng tròn be sáng phía sau, đầu nhô lên khỏi vòng tròn */
.dau-anh{position:relative;width:300px;height:362px;margin:0}
.dau-anh::before{content:"";position:absolute;left:0;right:0;bottom:0;height:300px;border-radius:50%;background:radial-gradient(circle at 50% 30%,#fdfaf6 0%,#f3e9df 70%,#ecdfd2 100%);box-shadow:inset 0 0 0 1px #efe4d9}
.dau-anh .khung{position:absolute;left:0;right:0;bottom:0;height:362px;overflow:hidden;border-radius:0 0 150px 150px}
.dau-anh img{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:300px;height:auto;display:block}
.dau h1{font-size:clamp(34px,5vw,48px);font-weight:800;letter-spacing:-.02em;line-height:1.1;color:var(--brand)}
.dau-1{margin-top:14px;font-size:clamp(17px,2.2vw,20px);font-weight:600;color:var(--text)}
.dau-2{margin-top:4px;font-size:clamp(15px,1.8vw,17px);color:var(--muted)}
/* số điện thoại: ô bo góc nền nâu, chữ trắng */
.dau-sdt{display:inline-flex;align-items:center;gap:7px;margin-top:18px;padding:7px 14px;border-radius:10px;background:var(--brand);color:#fff;font-weight:600;font-size:15px;letter-spacing:.02em;text-decoration:none;transition:background-color .15s}
.dau-sdt:hover{background:var(--brand-2)}
.dau-sdt:focus-visible{outline:3px solid #7ab3ff;outline-offset:2px}
.dau-sdt svg{width:15px;height:15px}
/* máy tính: giống kiểu điện thoại (vòng tròn be, đầu nhô lên), phóng to + chữ to.
   Mẫu A (mặc định): chữ sát mép trái, ảnh sát mép phải. Mẫu B (.dau.giua): cả cụm nằm giữa. */
@media (min-width:641px){
  .dau{grid-template-columns:minmax(0,1fr) 380px;gap:40px;align-items:center}
  .dau.giua{grid-template-columns:auto 340px;justify-content:center;gap:64px}
  .dau h1{font-size:clamp(44px,5.6vw,68px)}
  .dau-1{margin-top:16px;font-size:clamp(19px,2.2vw,24px)}
  .dau-2{font-size:clamp(16px,1.8vw,19px)}
  .dau-sdt{margin-top:20px;font-size:16px}
  .dau-anh{width:380px;height:458px}
  .dau-anh::before{height:380px}
  .dau-anh .khung{height:458px;border-radius:0 0 190px 190px}
  .dau-anh img{width:380px}
  .dau.giua .dau-anh{width:340px;height:410px}
  .dau.giua .dau-anh::before{height:340px}
  .dau.giua .dau-anh .khung{height:410px;border-radius:0 0 170px 170px}
  .dau.giua .dau-anh img{width:340px}
}
@media (min-width:641px) and (max-width:900px){
  .dau,.dau.giua{grid-template-columns:minmax(0,1fr) 260px;gap:24px;justify-content:stretch}
  .dau-anh,.dau.giua .dau-anh{width:260px;height:314px}
  .dau-anh::before,.dau.giua .dau-anh::before{height:260px}
  .dau-anh .khung,.dau.giua .dau-anh .khung{height:314px;border-radius:0 0 130px 130px}
  .dau-anh img,.dau.giua .dau-anh img{width:260px}
}

/* ---------- tiêu đề mục ---------- */
.sec{padding:8px 0 56px}
.sec-head{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;margin-bottom:18px}
.sec-head h2{font-size:24px;font-weight:800;letter-spacing:-.01em;display:flex;align-items:center;gap:12px;line-height:1.25}
.sec-head h2::before{content:"";width:10px;height:10px;border-radius:2px;background:var(--brand-bright);transform:rotate(45deg);flex:none}
.sec-head p{color:var(--muted);font-size:15px}

/* ---------- plugin bản quyền ---------- */
/* bảng chi tiết bật nổi */
dialog.ct{border:0;padding:0;width:min(820px,94vw);max-width:94vw;max-height:90vh;margin:auto;border-radius:20px;background:#fff;color:inherit;overflow:auto;overscroll-behavior:contain;box-shadow:0 30px 80px rgba(15,16,20,.28)}
dialog.ct::backdrop{background:rgba(15,16,20,.55)}
body:has(dialog.ct[open]){overflow:hidden}
.ct-bar{position:sticky;top:0;z-index:2;display:flex;justify-content:flex-end;padding:12px 12px 0;pointer-events:none}
.ct-close{pointer-events:auto;width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--text);font-size:24px;line-height:1;cursor:pointer;box-shadow:0 4px 12px rgba(20,22,30,.1)}
.ct-close:hover{background:var(--soft)}
.detail{padding:0 28px 28px;margin-top:-30px}
.d-head{display:flex;align-items:center;gap:16px}
.d-ico{width:62px;height:62px;border-radius:15px;border:1px solid var(--line);padding:6px;background:#fff;flex:none}
.d-kicker{font-family:var(--mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--brand);font-weight:700}
.d-head h2{font-size:clamp(24px,3vw,32px);font-weight:800;letter-spacing:-.015em;line-height:1.15}
.d-mota{margin-top:14px;font-size:17px;color:#3d3530}
.points{list-style:none;margin-top:12px;display:grid;gap:6px}
.points li{position:relative;padding-left:20px;font-size:15px;color:var(--muted)}
.points li::before{content:"";position:absolute;left:2px;top:.62em;width:7px;height:7px;border-radius:1.5px;background:var(--brand-bright);transform:rotate(45deg)}
.tools{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:8px;margin-top:18px}
.tool{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;border:1px solid var(--line);border-radius:10px;padding:6px 10px 6px 6px;line-height:1.3;background:#fff}
.tool img{width:32px;height:32px;border-radius:7px;flex:none}
.thumbs{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}
.thumb{width:124px;border:1px solid var(--line);border-radius:10px;overflow:hidden;padding:0;cursor:zoom-in;background:#fff;transition:box-shadow .15s}
.thumb:hover{box-shadow:0 8px 20px rgba(20,22,30,.1)}
.thumb img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:top left}
.d-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.spec{display:grid;grid-template-columns:150px 150px minmax(0,1fr);gap:10px;margin-top:18px}
.spec div{background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:10px 14px}
.spec dt{font-size:12px;color:var(--muted);font-weight:600}
.spec dd{font-family:var(--mono);font-weight:700;font-size:14px;margin-top:2px;line-height:1.45}
.spec dd.txt{font-family:inherit;font-weight:600}

/* ---------- lưới thẻ plugin ---------- */
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden;scroll-margin-top:96px;transition:box-shadow .2s,transform .2s,border-color .2s}
.card:hover{box-shadow:0 14px 34px rgba(20,22,30,.08);transform:translateY(-2px);border-color:var(--brand-line)}
.c-top{height:156px;display:flex;align-items:center;justify-content:center;padding:24px;background:#ece2d6;border-bottom:1px solid #e0d2c3;cursor:pointer}
.c-icons{display:flex;flex-wrap:wrap;justify-content:center;gap:16px 20px;max-width:180px}
.c-icons img{width:44px;height:44px;border-radius:11px;background:#fff;padding:4px;box-shadow:0 2px 6px rgba(42,33,27,.14)}
.c-icons.n4{max-width:112px}
/* thẻ hiện đủ icon: xếp 3 hàng, số cột theo số icon (HSX 18 = 6 cột, HÙNG 2027 21 = 7 cột) */
.c-icons.du{display:grid;justify-content:center;max-width:none;gap:9px 10px}
.c-icons.du.c6{grid-template-columns:repeat(6,32px)}
.c-icons.du.c7{grid-template-columns:repeat(7,30px);gap:8px 7px}
.c-icons.du.c8{grid-template-columns:repeat(8,26px);gap:8px 5px}
.c-icons.du img{width:32px;height:32px;border-radius:8px;padding:3px}
.c-icons.du.c7 img{width:30px;height:30px;border-radius:7px}
.c-icons.du.c8 img{width:26px;height:26px;border-radius:6px;padding:2px}
.c-big{width:76px;height:76px;border-radius:18px;background:#fff;padding:6px;box-shadow:0 2px 8px rgba(42,33,27,.16)}
.c-body{display:flex;flex-direction:column;flex:1;padding:20px}
.c-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.c-head h3{font-size:19px;font-weight:800;line-height:1.25}
.c-head h3 a{color:inherit;text-decoration:none}
.c-head h3 a:hover{color:var(--brand)}
.ver{font-family:var(--mono);font-size:12px;font-weight:700;color:var(--blue);background:var(--blue-soft);padding:2px 9px;border-radius:999px;white-space:nowrap}
.c-mota{color:var(--muted);font-size:14.5px;margin-top:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.c-meta{font-size:12.5px;color:var(--muted);margin-top:10px;line-height:1.5}
.c-price{margin-top:12px;font-weight:800;font-size:16px;color:var(--brand)}
.c-price.free{color:var(--brand)}
.c-price.thu{color:var(--muted)}
/* plugin "Trải nghiệm": nút mờ, bấm vào không có gì */
.btn.is-off{opacity:.4;cursor:default;pointer-events:none}
.card.is-thu .c-top{cursor:default}
.card.is-thu:hover{transform:none;box-shadow:none;border-color:var(--line)}
.c-act{display:flex;gap:8px;margin-top:auto;padding-top:16px}
.c-act .btn{flex:1 1 auto;padding:10px 8px;font-size:13.5px;gap:5px;white-space:nowrap}
.c-act .btn svg{width:15px;height:15px}
.c-hd{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin-top:12px;padding-top:11px;border-top:1px dashed var(--line);font-size:13.5px;line-height:1.5}
.c-hd span{color:var(--muted);font-weight:600}
.c-hd a{display:inline-flex;align-items:center;gap:5px;color:var(--blue);font-weight:600;text-decoration:none}
.c-hd a:hover{text-decoration:underline}
.c-hd svg{width:15px;height:15px;flex:none}
.detail .c-hd{font-size:15px;margin-top:16px}

/* ---------- tiện ích ---------- */
.util{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ucard{border:1px solid var(--line);border-radius:16px;padding:20px;background:var(--soft)}
.ucard .n{font-family:var(--mono);font-size:12.5px;font-weight:700;letter-spacing:.1em;color:var(--brand)}
.ucard h3{font-size:18px;margin:4px 0 6px;line-height:1.3}
.ucard p{color:var(--muted);font-size:15px}
.path{display:inline-block;font-family:var(--mono);font-size:12.5px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:5px 9px;margin:8px 0 2px;color:var(--text);line-height:1.5}

/* ---------- chân trang ---------- */
footer{border-top:1px solid var(--line);color:var(--muted);font-size:14px}
footer .wrap{display:flex;justify-content:space-between;gap:6px 20px;flex-wrap:wrap;padding:20px 0}
footer a{color:var(--text);font-weight:600;text-decoration:none}

/* ---------- xem ảnh to ---------- */
dialog.lb{border:0;padding:0;background:transparent;max-width:min(1200px,94vw);max-height:92vh;margin:auto}
dialog.lb::backdrop{background:rgba(15,16,20,.82)}
dialog.lb img{max-width:100%;max-height:88vh;border-radius:12px;margin:auto}
dialog.lb button{position:fixed;top:14px;right:14px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:#111;font-size:24px;line-height:1;cursor:pointer}

/* ---------- máy tính bảng ---------- */
@media (max-width:900px){
  .util{grid-template-columns:1fr}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* ---------- điện thoại ---------- */
@media (max-width:640px){
  html{scroll-padding-top:116px}
  .top .wrap{flex-wrap:wrap;height:auto;padding-top:10px;gap:4px}
  .brand img{width:34px;height:34px}
  .menu{width:100%;margin:0;display:grid;grid-template-columns:repeat(4,1fr);gap:0}
  .menu a{text-align:center;padding:9px 2px 11px;border-radius:0;font-size:14px;background:none!important;border-bottom:2.5px solid transparent}
  .menu a.on{border-bottom-color:var(--brand)}
  .sec{padding:4px 0 44px}
  .sec.sec-first{padding-top:36px}
  /* điện thoại: vẫn chia 2 bên - chữ trái, ảnh phải (ảnh thu nhỏ) */
  .dau{grid-template-columns:minmax(0,1fr) 140px;gap:14px;justify-content:stretch;margin-bottom:30px}
  .dau h1{font-size:30px}
  .dau-1{margin-top:8px;font-size:16px}
  .dau-2{margin-top:2px;font-size:14px}
  .dau-sdt{margin-top:12px;padding:6px 11px;border-radius:9px;font-size:14px}
  .dau-anh{width:140px;height:169px}
  .dau-anh::before{height:140px}
  .dau-anh .khung{height:169px;border-radius:0 0 70px 70px}
  .dau-anh img{width:140px}
  .sec-head h2{font-size:21px}
  dialog.ct{width:100vw;max-width:100vw;height:100%;max-height:100%;border-radius:0}
  .detail{padding:0 18px 28px}
  .d-ico{width:52px;height:52px}
  .d-mota{font-size:16px}
  .tools{grid-template-columns:1fr 1fr;gap:6px}
  .tool{font-size:13px;gap:8px}
  .tool img{width:26px;height:26px}
  .thumb{width:calc(33.33% - 7px)}
  .d-actions .btn{flex:1 1 100%}
  .spec{grid-template-columns:1fr 1fr}
  .spec div:last-child{grid-column:1 / -1}
  .grid{grid-template-columns:1fr;gap:14px}
  .c-top{height:150px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
