(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,56634,a=>{"use strict";var e=a.i(43476);a.s(["default",0,function({size:a=36,className:s="",style:i={}}){return(0,e.jsxs)("svg",{viewBox:"0 0 512 512",width:a,height:a,className:`xiaomi-logo-icon ${s}`,style:{display:"inline-block",verticalAlign:"middle",borderRadius:`${Math.round(.27*a)}px`,flexShrink:0,boxShadow:"0 4px 12px rgba(255, 105, 0, 0.35)",...i},xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("rect",{width:"512",height:"512",rx:"138",fill:"#FF6900"}),(0,e.jsx)("path",{fill:"#FFFFFF",d:"M 125 142 L 315 142 A 40 40 0 0 1 355 182 L 355 370 L 312 370 L 312 225 A 18 18 0 0 0 294 207 L 243 207 L 243 370 L 200 370 L 200 207 L 168 207 L 168 370 L 125 370 Z M 327 248 L 355 248 L 355 370 L 327 370 Z M 387 142 L 430 142 L 430 370 L 387 370 Z"})]})}])},2971,a=>{"use strict";var e=a.i(43476),s=a.i(71645),i=a.i(22016),n=a.i(18566),c=a.i(25194),l=a.i(56634);let r=[{name:"Khóa Cửa Thông Minh",slug:"/khoa-cua-thong-minh",icon:"fa-shield-halved",desc:"Lockin, Aqara, Face ID 3D"},{name:"Điều Hòa Xiaomi",slug:"/dieu-hoa-xiaomi",icon:"fa-wind",desc:"Treo tường, tủ đứng Inverter"},{name:"Robot Hút Bụi Thông Minh",slug:"/robot-hut-bui-thong-minh",icon:"fa-robot",desc:"Ecovacs, Dreame, Roborock"},{name:"Thiết Bị Nhà Thông Minh",slug:"/thiet-bi-nha-thong-minh",icon:"fa-house-signal",desc:"Công tắc Zigbee, Cảm biến"},{name:"Tivi Xiaomi",slug:"/tivi-xiaomi",icon:"fa-tv",desc:"Tivi 4K 120Hz, QLED, OLED"},{name:"Máy Lọc Không Khí",slug:"/may-loc-khong-khi-xiaomi",icon:"fa-fan",desc:"Air Purifier Pro H, Bụi PM2.5"},{name:"Thiết Bị Bếp & Gia Dụng",slug:"/thiet-bi-nha-bep-ve-sinh",icon:"fa-kitchen-set",desc:"Máy rửa bát, máy giặt sấy"},{name:"Camera Quan Sát",slug:"/camera-quan-sat",icon:"fa-video",desc:"Camera 360° 2K, đàm thoại"},{name:"Máy Hút Bụi Cầm Tay",slug:"/may-hut-bui-thong-minh-cam-tay",icon:"fa-broom",desc:"Wet & Dry, Hút ga đệm UV"},{name:"Quạt Thông Minh",slug:"/quat-thong-minh",icon:"fa-note-sticky",desc:"Smartmi Gen 3, Quạt tản gió"},{name:"Két Sắt Xiaomi",slug:"/ket-sat-xiaomi",icon:"fa-vault",desc:"Khóa vân tay, Thép Class C"},{name:"Máy Nạp Thức Ăn Pet",slug:"/bo-nap-thuc-an-cho-pet",icon:"fa-paw",desc:"Máy cho ăn, đài phun nước"}];function t({isOpen:a,onClose:s}){return a?(0,e.jsx)("div",{className:"mobile-drawer-overlay active",onClick:s,children:(0,e.jsxs)("aside",{className:"mobile-drawer-sidebar",onClick:a=>a.stopPropagation(),children:[(0,e.jsxs)("div",{className:"drawer-header",children:[(0,e.jsxs)(i.default,{href:"/",onClick:s,className:"drawer-logo",children:[(0,e.jsx)(l.default,{size:32}),(0,e.jsxs)("span",{className:"logo-text",children:["XIAOMI",(0,e.jsx)("span",{children:"PREMIUM"})]})]}),(0,e.jsx)("button",{className:"drawer-close-btn",onClick:s,"aria-label":"Đóng Menu",children:(0,e.jsx)("i",{className:"fa-solid fa-xmark"})})]}),(0,e.jsxs)("div",{className:"drawer-content",children:[(0,e.jsxs)("div",{className:"drawer-quick-links",children:[(0,e.jsxs)(i.default,{href:"/ban-chay",onClick:s,className:"quick-chip red",children:[(0,e.jsx)("i",{className:"fa-solid fa-fire"})," 🔥 Bán Chạy"]}),(0,e.jsxs)(i.default,{href:"/flash-sale",onClick:s,className:"quick-chip orange",children:[(0,e.jsx)("i",{className:"fa-solid fa-bolt"})," ⚡ Flash Sale"]}),(0,e.jsxs)(i.default,{href:"/noi-bat-2026",onClick:s,className:"quick-chip purple",children:[(0,e.jsx)("i",{className:"fa-solid fa-sparkles"})," ⭐ Nổi Bật"]}),(0,e.jsxs)(i.default,{href:"/uu-dai-combo",onClick:s,className:"quick-chip blue",children:[(0,e.jsx)("i",{className:"fa-solid fa-gift"})," 🎁 Combo"]}),(0,e.jsxs)(i.default,{href:"/cam-nang-xiaomi",onClick:s,className:"quick-chip green",children:[(0,e.jsx)("i",{className:"fa-solid fa-book-open"})," 📖 Cẩm Nang"]})]}),(0,e.jsxs)("div",{className:"drawer-categories-section",children:[(0,e.jsxs)("h4",{className:"drawer-section-title",children:[(0,e.jsx)("i",{className:"fa-solid fa-list"})," 12 Danh Mục Sản Phẩm"]}),(0,e.jsx)("div",{className:"drawer-cat-list",children:r.map(a=>(0,e.jsxs)(i.default,{href:a.slug,onClick:s,className:"drawer-cat-item",children:[(0,e.jsxs)("div",{className:"cat-item-left",children:[(0,e.jsx)("span",{className:"cat-icon-box",children:(0,e.jsx)("i",{className:`fa-solid ${a.icon}`})}),(0,e.jsxs)("div",{className:"cat-item-text",children:[(0,e.jsx)("div",{className:"cat-name",children:a.name}),(0,e.jsx)("div",{className:"cat-subdesc",children:a.desc})]})]}),(0,e.jsx)("i",{className:"fa-solid fa-chevron-right cat-arrow"})]},a.slug))})]}),(0,e.jsxs)("div",{className:"drawer-expert-box",children:[(0,e.jsxs)("div",{className:"expert-header",children:[(0,e.jsx)("i",{className:"fa-solid fa-user-tie expert-icon"}),(0,e.jsxs)("div",{children:[(0,e.jsx)("strong",{children:"Cố vấn Kỹ thuật E-E-A-T"}),(0,e.jsx)("div",{children:"Chuyên gia IoT Phạm Quang Thụ"})]})]}),(0,e.jsx)("p",{className:"expert-desc",children:"Tư vấn lắp đặt chuẩn kích thước đố cửa, công suất điều hòa BTU chính xác 100%."}),(0,e.jsxs)("a",{href:"tel:0927558111",className:"drawer-call-btn",children:[(0,e.jsx)("i",{className:"fa-solid fa-headset"})," Hotline: 0927.558.111 (24/7)"]})]}),(0,e.jsxs)("div",{className:"drawer-showrooms",children:[(0,e.jsxs)("h5",{children:[(0,e.jsx)("i",{className:"fa-solid fa-location-dot"})," Hệ Thống Showroom"]}),(0,e.jsxs)("div",{className:"showroom-item",children:[(0,e.jsx)("strong",{children:"Hà Nội:"})," 30 ngõ 116 Nguyễn Xiển, Thanh Liệt"]}),(0,e.jsxs)("div",{className:"showroom-item",children:[(0,e.jsx)("strong",{children:"TP.HCM:"})," 09 Đường Số 01, KDC CityLand, Gò Vấp"]})]})]})]})}):null}function o({onOpenDrawer:a}){let{cart:s,setIsCartOpen:n}=(0,c.useCart)(),l=s.reduce((a,e)=>a+e.quantity,0);return(0,e.jsxs)("nav",{className:"mobile-bottom-nav",children:[(0,e.jsxs)(i.default,{href:"/",className:"mobile-nav-item",children:[(0,e.jsx)("i",{className:"fa-solid fa-house"}),(0,e.jsx)("span",{children:"Trang chủ"})]}),(0,e.jsxs)("button",{className:"mobile-nav-item",onClick:a,children:[(0,e.jsx)("i",{className:"fa-solid fa-layer-group"}),(0,e.jsx)("span",{children:"Danh mục"})]}),(0,e.jsxs)(i.default,{href:"/#smart-finder",className:"mobile-nav-item highlight-finder",children:[(0,e.jsx)("div",{className:"finder-badge-icon",children:(0,e.jsx)("i",{className:"fa-solid fa-wand-magic-sparkles"})}),(0,e.jsx)("span",{children:"Smart Finder"})]}),(0,e.jsxs)("a",{href:"tel:0927558111",className:"mobile-nav-item call-action",children:[(0,e.jsx)("i",{className:"fa-solid fa-phone-volume"}),(0,e.jsx)("span",{children:"Tư vấn 24/7"})]}),(0,e.jsxs)("button",{className:"mobile-nav-item",onClick:()=>n(!0),children:[(0,e.jsxs)("div",{className:"cart-icon-relative",children:[(0,e.jsx)("i",{className:"fa-solid fa-bag-shopping"}),l>0&&(0,e.jsx)("span",{className:"mobile-cart-badge",children:l})]}),(0,e.jsx)("span",{children:"Giỏ hàng"})]})]})}a.s(["default",0,function(){let a=(0,n.useRouter)(),{cart:r,isCartOpen:d,setIsCartOpen:h,removeFromCart:m}=(0,c.useCart)(),[x,g]=(0,s.useState)("locks"),[p,u]=(0,s.useState)(!1),[j,f]=(0,s.useState)(!1),[N,b]=(0,s.useState)(""),[v,y]=(0,s.useState)({categories:[],products:[],articles:[]}),[k,C]=(0,s.useState)(!1),[w,T]=(0,s.useState)(!1),S=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!N.trim()){y({categories:[],products:[],articles:[]}),T(!1);return}let a=setTimeout(async()=>{C(!0);try{let a=await fetch(`/api/search?q=${encodeURIComponent(N.trim())}`),e=await a.json();y({categories:e.categories||[],products:e.products||[],articles:e.articles||[]}),T(!0)}catch(a){console.error("Search fetch error:",a)}finally{C(!1)}},200);return()=>clearTimeout(a)},[N]),(0,s.useEffect)(()=>{let a=a=>{S.current&&!S.current.contains(a.target)&&T(!1)};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]);let M=e=>{if(e.preventDefault(),!N.trim())return;if(T(!1),v.categories.length>0)return void a.push(`/${v.categories[0].url}`);if(v.products.length>0)return void a.push(`/${v.products[0].url}`);let s=N.toLowerCase();s.includes("quạt")||s.includes("quat")?a.push("/quat-thong-minh"):s.includes("điều hòa")||s.includes("dieu hoa")||s.includes("máy lạnh")?a.push("/dieu-hoa-xiaomi"):s.includes("robot")||s.includes("hút bụi")||s.includes("hut bui")?a.push("/robot-hut-bui-thong-minh"):s.includes("khóa")||s.includes("khoa")||s.includes("vân tay")?a.push("/khoa-cua-thong-minh"):s.includes("tivi")||s.includes("tv")?a.push("/tivi-xiaomi"):s.includes("lọc không khí")||s.includes("loc khong khi")?a.push("/may-loc-khong-khi-xiaomi"):s.includes("camera")?a.push("/camera-quan-sat"):s.includes("bếp")||s.includes("gia dụng")?a.push("/thiet-bi-nha-bep-ve-sinh"):a.push("/#product-catalog")},H=(0,s.useRef)(!1),[z,q]=(0,s.useState)(!1),[B,L]=(0,s.useState)(!1),[F,K]=(0,s.useState)(!1),[D,R]=(0,s.useState)(""),[A,E]=(0,s.useState)({name:"",phone:"",address:"",note:""}),I=()=>{u(!0)},$=async a=>{if((a.preventDefault(),!H.current&&!F)&&A.name&&A.phone&&A.address){H.current=!0,K(!0);try{let a=await fetch("/api/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:A.name,phone:A.phone,address:A.address,note:A.note,items:r.map(a=>({id:a.id,quantity:a.quantity}))})}),e=await a.json();e.success?(R(e.orderCode||`XIAOMI-${Math.floor(1e5+9e5*Math.random())}`),L(!0),r.length=0):(alert(e.error||"Có lỗi xảy ra khi đặt hàng!"),H.current=!1)}catch(a){alert("Lỗi kết nối khi gửi đơn hàng!"),H.current=!1}finally{K(!1)}}},X=r.reduce((a,e)=>a+e.quantity,0),P=r.reduce((a,e)=>a+e.price*e.quantity,0),G="https://cdn3788.cdn4s7.io.vn";return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("header",{className:"app-header layered-header",children:[(0,e.jsx)("div",{className:"topbar",children:(0,e.jsxs)("div",{className:"topbar-container",children:[(0,e.jsxs)("div",{className:"topbar-left",children:[(0,e.jsx)("span",{className:"topbar-badge",children:"⚡ FLASH SALE -30%"}),(0,e.jsx)("span",{className:"topbar-txt desktop-only-topbar",children:"Miễn Phí Lắp Đặt 0đ"}),(0,e.jsx)("span",{className:"topbar-sep desktop-only-topbar",children:"•"}),(0,e.jsxs)("span",{className:"topbar-txt",children:["Hotline: ",(0,e.jsx)("strong",{children:"0927.558.111"})]})]}),(0,e.jsxs)("div",{className:"topbar-right",children:[(0,e.jsxs)(i.default,{href:"/chinh-sach-bao-hanh",children:[(0,e.jsx)("i",{className:"fa-solid fa-shield-halved"})," Bảo hành 24T"]}),(0,e.jsx)("span",{className:"topbar-sep",children:"•"}),(0,e.jsxs)(i.default,{href:"/chinh-sach-doi-tra",children:[(0,e.jsx)("i",{className:"fa-solid fa-rotate"})," 1 đổi 1 30 ngày"]}),(0,e.jsx)("span",{className:"topbar-sep",children:"•"}),(0,e.jsxs)("span",{children:[(0,e.jsx)("i",{className:"fa-solid fa-location-dot"})," Hệ thống 3 cửa hàng"]})]})]})}),(0,e.jsx)("div",{className:"main-header-bar",children:(0,e.jsxs)("div",{className:"main-header-container",children:[(0,e.jsx)("button",{className:"mobile-header-menu-btn",onClick:()=>f(!0),"aria-label":"Mở Menu Danh Mục",children:(0,e.jsx)("i",{className:"fa-solid fa-bars"})}),(0,e.jsxs)(i.default,{href:"/",className:"logo",children:[(0,e.jsx)(l.default,{size:36}),(0,e.jsxs)("span",{className:"logo-text",children:["XIAOMI",(0,e.jsx)("span",{children:"PREMIUM"})]})]}),(0,e.jsxs)("button",{className:"mobile-header-cart-btn",onClick:()=>h(!0),"aria-label":"Mở Giỏ Hàng",children:[(0,e.jsx)("i",{className:"fa-solid fa-bag-shopping"}),X>0&&(0,e.jsx)("span",{className:"mobile-cart-badge",children:X})]}),(0,e.jsxs)("div",{className:"header-search-box",ref:S,style:{position:"relative"},children:[(0,e.jsxs)("form",{onSubmit:M,style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:[(0,e.jsx)("i",{className:"fa-solid fa-magnifying-glass search-icon",onClick:M,style:{cursor:"pointer"}}),(0,e.jsx)("input",{type:"text",placeholder:"Tìm kiếm khóa vân tay, điều hòa, robot hút bụi, quạt Xiaomi...","aria-label":"Tìm kiếm sản phẩm",className:"search-input",value:N,onChange:a=>b(a.target.value),onFocus:()=>{N.trim()&&(v.categories.length>0||v.products.length>0||v.articles.length>0)&&T(!0)}}),(0,e.jsxs)("button",{type:"submit",className:"photo-search-btn",title:"Tìm kiếm ngay","aria-label":"Tìm kiếm ngay",children:[k?(0,e.jsx)("i",{className:"fa-solid fa-spinner fa-spin"}):(0,e.jsx)("i",{className:"fa-solid fa-magnifying-glass"}),(0,e.jsx)("span",{children:"Tìm ngay"})]})]}),w&&(0,e.jsx)("div",{className:"header-search-results-dropdown",style:{position:"absolute",top:"calc(100% + 8px)",left:0,right:0,background:"#FFFFFF",borderRadius:"12px",boxShadow:"0 12px 30px rgba(0,0,0,0.18)",border:"1px solid var(--border-color)",zIndex:9999,maxHeight:"420px",overflowY:"auto",padding:"16px",textAlign:"left"},children:k?(0,e.jsxs)("div",{style:{textAlign:"center",padding:"16px",color:"var(--text-secondary)"},children:[(0,e.jsx)("i",{className:"fa-solid fa-spinner fa-spin",style:{fontSize:"1.4rem",marginBottom:"6px"}}),(0,e.jsx)("p",{style:{fontSize:"0.85rem"},children:"Đang tìm kiếm sản phẩm..."})]}):0===v.categories.length&&0===v.products.length&&0===v.articles.length?(0,e.jsxs)("div",{style:{textAlign:"center",padding:"16px",color:"var(--text-secondary)",fontSize:"0.9rem"},children:["Không tìm thấy kết quả phù hợp cho ",(0,e.jsxs)("strong",{children:['"',N,'"']})]}):(0,e.jsxs)(e.Fragment,{children:[v.categories.length>0&&(0,e.jsxs)("div",{style:{marginBottom:"14px"},children:[(0,e.jsxs)("div",{style:{fontSize:"0.78rem",fontWeight:700,color:"var(--text-secondary)",textTransform:"uppercase",marginBottom:"8px",letterSpacing:"0.5px"},children:[(0,e.jsx)("i",{className:"fa-solid fa-layer-group",style:{color:"var(--primary-color)",marginRight:"6px"}}),"Danh Mục Phù Hợp"]}),(0,e.jsx)("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:v.categories.map((a,s)=>(0,e.jsxs)(i.default,{href:`/${a.url}`,onClick:()=>T(!1),style:{background:"#FFF3E0",color:"var(--primary-color)",padding:"6px 12px",borderRadius:"6px",fontSize:"0.85rem",fontWeight:600,textDecoration:"none",display:"inline-flex",alignItems:"center",gap:"6px"},children:[(0,e.jsx)("span",{children:a.name}),(0,e.jsx)("i",{className:"fa-solid fa-arrow-right",style:{fontSize:"0.75rem"}})]},s))})]}),v.products.length>0&&(0,e.jsxs)("div",{style:{marginBottom:"14px"},children:[(0,e.jsxs)("div",{style:{fontSize:"0.78rem",fontWeight:700,color:"var(--text-secondary)",textTransform:"uppercase",marginBottom:"8px",letterSpacing:"0.5px"},children:[(0,e.jsx)("i",{className:"fa-solid fa-box-open",style:{color:"var(--primary-color)",marginRight:"6px"}}),"Sản Phẩm Gợi Ý (",v.products.length,")"]}),(0,e.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:v.products.map((a,s)=>(0,e.jsxs)(i.default,{href:`/${a.url}`,onClick:()=>T(!1),style:{display:"flex",alignItems:"center",gap:"12px",padding:"8px",borderRadius:"8px",textDecoration:"none",color:"var(--text-primary)",background:"#F9F9F9",transition:"background 0.2s"},children:[a.image&&(0,e.jsx)("img",{src:a.image,alt:a.name,style:{width:"42px",height:"42px",objectFit:"cover",borderRadius:"6px"}}),(0,e.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,e.jsx)("div",{style:{fontSize:"0.88rem",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a.name}),(0,e.jsx)("div",{style:{fontSize:"0.8rem",color:"var(--primary-color)",fontWeight:700},children:a.price?`${a.price.toLocaleString("vi-VN")}đ`:"Liên hệ báo giá"})]}),(0,e.jsx)("i",{className:"fa-solid fa-angle-right",style:{color:"var(--text-secondary)",fontSize:"0.8rem"}})]},s))})]}),v.articles.length>0&&(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{style:{fontSize:"0.78rem",fontWeight:700,color:"var(--text-secondary)",textTransform:"uppercase",marginBottom:"8px",letterSpacing:"0.5px"},children:[(0,e.jsx)("i",{className:"fa-solid fa-book-open",style:{color:"var(--primary-color)",marginRight:"6px"}}),"Cẩm Nang Khuyên Dùng"]}),(0,e.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:v.articles.map((a,s)=>(0,e.jsx)(i.default,{href:`/cam-nang-xiaomi/${a.url}`,onClick:()=>T(!1),style:{fontSize:"0.85rem",color:"#1976D2",textDecoration:"none",padding:"4px 0",display:"flex",alignItems:"center",gap:"6px"},children:(0,e.jsxs)("span",{children:["📖 ",a.name]})},s))})]})]})})]}),(0,e.jsxs)("div",{className:"header-actions",children:[(0,e.jsxs)("div",{className:"action-item-btn",children:[(0,e.jsx)("i",{className:"fa-regular fa-heart"}),(0,e.jsx)("span",{children:"Yêu thích"})]}),(0,e.jsxs)("div",{className:"action-item-btn",children:[(0,e.jsx)("i",{className:"fa-regular fa-user"}),(0,e.jsx)("span",{children:"Tài khoản"})]}),(0,e.jsxs)("button",{className:"cart-action-btn",onClick:()=>h(!0),"aria-label":"Xem giỏ hàng",children:[(0,e.jsxs)("div",{className:"cart-icon-wrapper",children:[(0,e.jsx)("i",{className:"fa-solid fa-bag-shopping"}),(0,e.jsx)("span",{className:"cart-badge",children:X})]}),(0,e.jsxs)("div",{className:"cart-text-col",children:[(0,e.jsx)("span",{className:"cart-label",children:"Giỏ hàng"}),(0,e.jsx)("span",{className:"cart-val",children:P>0?`${(P/1e6).toFixed(1)}M đ`:"0đ"})]})]})]})]})}),(0,e.jsx)("div",{className:"nav-bar",children:(0,e.jsxs)("div",{className:"nav-bar-container",children:[(0,e.jsxs)("div",{className:"nav-dropdown-wrapper layered-mega-wrapper",onMouseLeave:()=>u(!1),children:[(0,e.jsxs)("button",{className:"all-categories-btn",onMouseEnter:()=>u(!1),"aria-label":"Tất cả danh mục sản phẩm",children:[(0,e.jsx)("i",{className:"fa-solid fa-bars-staggered"}),(0,e.jsx)("span",{children:"☰ Tất Cả Danh Mục"}),(0,e.jsx)("i",{className:"fa-solid fa-chevron-down caret-icon"})]}),(0,e.jsxs)("div",{className:"layered-mega-panel",style:p?{opacity:0,visibility:"hidden",pointerEvents:"none"}:void 0,children:[(0,e.jsxs)("div",{className:"layered-mega-inner",children:[(0,e.jsxs)("div",{className:"mega-sidebar-list",children:[(0,e.jsxs)(i.default,{href:"/khoa-cua-thong-minh",className:`mega-sidebar-item ${"locks"===x?"active":""}`,onMouseEnter:()=>g("locks"),onClick:I,children:[(0,e.jsx)("div",{className:"sidebar-icon coral",children:(0,e.jsx)("i",{className:"fa-solid fa-shield-halved"})}),(0,e.jsxs)("div",{className:"sidebar-text",children:[(0,e.jsx)("div",{className:"cat-title",children:"Khóa Cửa & An Ninh"}),(0,e.jsx)("div",{className:"cat-desc",children:"Lockin, Aqara, Camera"})]}),(0,e.jsx)("i",{className:"fa-solid fa-chevron-right cat-arrow"})]}),(0,e.jsxs)(i.default,{href:"/dieu-hoa-xiaomi",className:`mega-sidebar-item ${"acs"===x?"active":""}`,onMouseEnter:()=>g("acs"),onClick:I,children:[(0,e.jsx)("div",{className:"sidebar-icon mint",children:(0,e.jsx)("i",{className:"fa-solid fa-wind"})}),(0,e.jsxs)("div",{className:"sidebar-text",children:[(0,e.jsx)("div",{className:"cat-title",children:"Điều Hòa & Không Khí"}),(0,e.jsx)("div",{className:"cat-desc",children:"Inverter, Lọc bụi, Hút ẩm"})]}),(0,e.jsx)("i",{className:"fa-solid fa-chevron-right cat-arrow"})]}),(0,e.jsxs)(i.default,{href:"/robot-hut-bui-thong-minh",className:`mega-sidebar-item ${"vacuums"===x?"active":""}`,onMouseEnter:()=>g("vacuums"),onClick:I,children:[(0,e.jsx)("div",{className:"sidebar-icon cyber",children:(0,e.jsx)("i",{className:"fa-solid fa-robot"})}),(0,e.jsxs)("div",{className:"sidebar-text",children:[(0,e.jsx)("div",{className:"cat-title",children:"Robot & Hút Bụi"}),(0,e.jsx)("div",{className:"cat-desc",children:"Ecovacs, Dreame, Roborock"})]}),(0,e.jsx)("i",{className:"fa-solid fa-chevron-right cat-arrow"})]}),(0,e.jsxs)(i.default,{href:"/thiet-bi-nha-thong-minh",className:`mega-sidebar-item ${"smarthome"===x?"active":""}`,onMouseEnter:()=>g("smarthome"),onClick:I,children:[(0,e.jsx)("div",{className:"sidebar-icon purple",children:(0,e.jsx)("i",{className:"fa-solid fa-house-laptop"})}),(0,e.jsxs)("div",{className:"sidebar-text",children:[(0,e.jsx)("div",{className:"cat-title",children:"Thiết Bị Nhà Thông Minh"}),(0,e.jsx)("div",{className:"cat-desc",children:"Tivi 4K, Đèn, Công tắc"})]}),(0,e.jsx)("i",{className:"fa-solid fa-chevron-right cat-arrow"})]}),(0,e.jsxs)(i.default,{href:"/thiet-bi-nha-bep-ve-sinh",className:`mega-sidebar-item ${"kitchen"===x?"active":""}`,onMouseEnter:()=>g("kitchen"),onClick:I,children:[(0,e.jsx)("div",{className:"sidebar-icon yellow",children:(0,e.jsx)("i",{className:"fa-solid fa-utensils"})}),(0,e.jsxs)("div",{className:"sidebar-text",children:[(0,e.jsx)("div",{className:"cat-title",children:"Thiết Bị Bếp & Gia Dụng"}),(0,e.jsx)("div",{className:"cat-desc",children:"Máy rửa bát, Nồi cơm IH"})]}),(0,e.jsx)("i",{className:"fa-solid fa-chevron-right cat-arrow"})]})]}),(0,e.jsxs)("div",{className:"mega-content-area",children:["locks"===x&&(0,e.jsxs)("div",{className:"mega-tab-view",children:[(0,e.jsxs)("div",{className:"mega-content-header",children:[(0,e.jsxs)("h3",{children:[(0,e.jsx)("i",{className:"fa-solid fa-shield-halved"})," Giải Pháp Khóa Cửa & An Ninh Xiaomi"]}),(0,e.jsxs)("div",{className:"header-quick-tags",children:[(0,e.jsx)(i.default,{href:"/khoa-cua-thong-minh/khoa-cua-thong-minh-lockin",onClick:I,children:"Khóa Lockin"}),(0,e.jsx)(i.default,{href:"/khoa-cua-thong-minh/khoa-cua-thong-minh-aqara",onClick:I,children:"Khóa Aqara"}),(0,e.jsx)(i.default,{href:"/camera-quan-sat",onClick:I,children:"Camera 360°"}),(0,e.jsx)(i.default,{href:"/ket-sat-xiaomi",onClick:I,children:"Két Sắt"})]})]}),(0,e.jsxs)("div",{className:"mega-products-grid",children:[(0,e.jsxs)(i.default,{href:"/khoa-cua-thong-minh/khoa-cua-thong-minh-lockin/khoa-thong-minh-lockin-V5-max_1",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge",children:"FACE ID 3D"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/khoa-thong-minh-lockin-v5-max.jpg`,alt:"Lockin V5 Max",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Lockin V5 Max FaceID"}),(0,e.jsx)("span",{className:"card-price",children:"8.990.000đ"})]}),(0,e.jsxs)(i.default,{href:"/khoa-cua-thong-minh/khoa-cua-thong-minh-lockin/khoa-lockin-tinh-mach-ngon-tay-s50m-pro_1",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge green",children:"TĨNH MẠCH"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/khoa-thong-minh-lockin-s50m-pro.jpg`,alt:"Lockin S50M Pro",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Lockin S50M Pro"}),(0,e.jsx)("span",{className:"card-price",children:"6.490.000đ"})]}),(0,e.jsxs)(i.default,{href:"/camera-quan-sat/camera-ip-giam-sat-xiaomi-mi-smart-camera-2k",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge blue",children:"CAMERA 2K"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/camera-xiaomi-360-2k.jpg`,alt:"Camera Xiaomi 360",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Camera Xiaomi 360° 2K"}),(0,e.jsx)("span",{className:"card-price",children:"990.000đ"})]}),(0,e.jsxs)(i.default,{href:"/ket-sat-xiaomi/ket-sat-van-tay-thong-minh-xiaomi-smart-safe",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge purple",children:"AN TOÀN"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/product_item/ket-sat/bgx-x1-80mp/ket-sat-xiaomi-80mp.png`,alt:"Két sắt Xiaomi",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Két Sắt Vân Tay Xiaomi"}),(0,e.jsx)("span",{className:"card-price",children:"4.290.000đ"})]})]})]}),"acs"===x&&(0,e.jsxs)("div",{className:"mega-tab-view",children:[(0,e.jsxs)("div",{className:"mega-content-header",children:[(0,e.jsxs)("h3",{children:[(0,e.jsx)("i",{className:"fa-solid fa-wind"})," Điều Hòa Inverter & Xử Lý Không Khí"]}),(0,e.jsxs)("div",{className:"header-quick-tags",children:[(0,e.jsx)(i.default,{href:"/dieu-hoa-xiaomi/dieu-hoa-treo-tuong-xiaomi",onClick:I,children:"Treo Tường"}),(0,e.jsx)(i.default,{href:"/dieu-hoa-xiaomi/dieu-hoa-cay-xiaomi",onClick:I,children:"Tủ Đứng"}),(0,e.jsx)(i.default,{href:"/may-loc-khong-khi-xiaomi",onClick:I,children:"Lọc Không Khí"}),(0,e.jsx)(i.default,{href:"/may-loc-khong-khi-xiaomi/may-hut-am-thong-minh-xiaomi-smartmi-20l",onClick:I,children:"Hút Ẩm"})]})]}),(0,e.jsxs)("div",{className:"mega-products-grid",children:[(0,e.jsxs)(i.default,{href:"/dieu-hoa-xiaomi/dieu-hoa-treo-tuong-xiaomi/dieu-hoa-xiaomi-mijia-inverter-12000btu",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge",children:"APF 5.2"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/dieu-hoa-xiaomi-12000btu.jpg`,alt:"Điều hòa 12000BTU",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Điều Hòa Inverter 12.000BTU"}),(0,e.jsx)("span",{className:"card-price",children:"6.890.000đ"})]}),(0,e.jsxs)(i.default,{href:"/may-loc-khong-khi-xiaomi/may-loc-khong-khi-xiaomi-pro-h",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge green",children:"KHÁNG KHUẨN"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/may-loc-khong-khi-pro-h.jpg`,alt:"Máy lọc Pro H",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Máy Lọc Không Khí Pro H"}),(0,e.jsx)("span",{className:"card-price",children:"3.890.000đ"})]}),(0,e.jsxs)(i.default,{href:"/may-loc-khong-khi-xiaomi/may-hut-am-thong-minh-xiaomi-smartmi-20l",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge blue",children:"HÚT ẨM 20L"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/may-hut-am-smartmi-20l.jpg`,alt:"Máy hút ẩm",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Máy Hút Ẩm Smartmi 20L"}),(0,e.jsx)("span",{className:"card-price",children:"3.290.000đ"})]}),(0,e.jsxs)(i.default,{href:"/quat-thong-minh/quat-thap-thong-minh-xiaomi-mijia-gen-3",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge purple",children:"THÔNG MINH"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/quat-thap-xiaomi-gen-3.jpg`,alt:"Quạt tháp",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Quạt Tháp Xiaomi Gen 3"}),(0,e.jsx)("span",{className:"card-price",children:"1.490.000đ"})]})]})]}),"vacuums"===x&&(0,e.jsxs)("div",{className:"mega-tab-view",children:[(0,e.jsxs)("div",{className:"mega-content-header",children:[(0,e.jsxs)("h3",{children:[(0,e.jsx)("i",{className:"fa-solid fa-robot"})," Robot Hút Bụi & Lau Nhà Thông Minh"]}),(0,e.jsxs)("div",{className:"header-quick-tags",children:[(0,e.jsx)(i.default,{href:"/robot-hut-bui-thong-minh/robot-hut-bui-ecovacs",onClick:I,children:"Ecovacs"}),(0,e.jsx)(i.default,{href:"/robot-hut-bui-thong-minh/robot-hut-bui-dreame",onClick:I,children:"Dreame"}),(0,e.jsx)(i.default,{href:"/robot-hut-bui-thong-minh/robot-hut-bui-roborock",onClick:I,children:"Roborock"}),(0,e.jsx)(i.default,{href:"/may-hut-bui-thong-minh-cam-tay",onClick:I,children:"Hút Bụi Cầm Tay"})]})]}),(0,e.jsxs)("div",{className:"mega-products-grid",children:[(0,e.jsxs)(i.default,{href:"/robot-hut-bui-thong-minh/robot-hut-bui-ecovacs/robot-hut-bui-lau-nha-ecovacs-deebot-x2-omni",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge",children:"DEEBOT X2"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/robot-ecovacs-deebot-x2.jpg`,alt:"Ecovacs X2",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Ecovacs Deebot X2 Omni"}),(0,e.jsx)("span",{className:"card-price",children:"16.990.000đ"})]}),(0,e.jsxs)(i.default,{href:"/robot-hut-bui-thong-minh/robot-hut-bui-dreame/robot-hut-bui-lau-nha-dreame-l20-ultra",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge green",children:"12000PA"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/robot-dreame-l20-ultra.jpg`,alt:"Dreame L20",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Dreame L20 Ultra"}),(0,e.jsx)("span",{className:"card-price",children:"14.500.000đ"})]}),(0,e.jsxs)(i.default,{href:"/robot-hut-bui-thong-minh/robot-hut-bui-roborock/robot-hut-bui-lau-nha-roborock-s8-maxv-ultra",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge blue",children:"S8 MAXV"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/robot-roborock-s8-maxv.jpg`,alt:"Roborock S8",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Roborock S8 MaxV Ultra"}),(0,e.jsx)("span",{className:"card-price",children:"18.900.000đ"})]}),(0,e.jsxs)(i.default,{href:"/may-hut-bui-thong-minh-cam-tay/may-hut-bui-cam-tay-dreame-h12-pro",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge purple",children:"CẦM TAY"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/may-hut-bui-dreame-h12.jpg`,alt:"Dreame H12",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Dreame H12 Pro Wet Wet"}),(0,e.jsx)("span",{className:"card-price",children:"7.990.000đ"})]})]})]}),"smarthome"===x&&(0,e.jsxs)("div",{className:"mega-tab-view",children:[(0,e.jsxs)("div",{className:"mega-content-header",children:[(0,e.jsxs)("h3",{children:[(0,e.jsx)("i",{className:"fa-solid fa-house-laptop"})," Thiết Bị Điện Smart & Tivi Xiaomi 4K"]}),(0,e.jsxs)("div",{className:"header-quick-tags",children:[(0,e.jsx)(i.default,{href:"/tivi-xiaomi",onClick:I,children:"Tivi 4K"}),(0,e.jsx)(i.default,{href:"/thiet-bi-nha-thong-minh",onClick:I,children:"Công Tắc Smart"}),(0,e.jsx)(i.default,{href:"/thiet-bi-nha-thong-minh",onClick:I,children:"Cảm Biến Zigbee"}),(0,e.jsx)(i.default,{href:"/quat-thong-minh",onClick:I,children:"Đèn & Quạt Smart"})]})]}),(0,e.jsxs)("div",{className:"mega-products-grid",children:[(0,e.jsxs)(i.default,{href:"/tivi-xiaomi/tivi-xiaomi-65-inch-4k-120hz",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge",children:"4K 120HZ"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/tivi-xiaomi-65-inch-4k.jpg`,alt:"Tivi 65 inch",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:'Tivi Xiaomi 65" 4K 120Hz'}),(0,e.jsx)("span",{className:"card-price",children:"9.990.000đ"})]}),(0,e.jsxs)(i.default,{href:"/thiet-bi-nha-thong-minh/cong-tac-tuong-aqara-z1-pro-znqbkg42lm",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge green",children:"ZIGBEE 3.0"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/cong-tac-aqara-z1-pro.jpg`,alt:"Công tắc Aqara",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Công Tắc Thông Minh Aqara Z1"}),(0,e.jsx)("span",{className:"card-price",children:"490.000đ"})]}),(0,e.jsxs)(i.default,{href:"/thiet-bi-nha-thong-minh/cam-bien-chuyen-dong-thong-minh-xiaomi-sensor",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge blue",children:"CẢM BIẾN"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/cam-bien-chuyen-dong-xiaomi.jpg`,alt:"Cảm biến chuyển động",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Cảm Biến Chuyển Động Xiaomi"}),(0,e.jsx)("span",{className:"card-price",children:"290.000đ"})]}),(0,e.jsxs)(i.default,{href:"/quat-thong-minh/den-op-tran-thong-minh-yeelight-arwen",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge purple",children:"YEELIGHT"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/den-op-tran-yeelight-arwen.jpg`,alt:"Đèn ốp trần",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Đèn Ốp Trần Yeelight Arwen"}),(0,e.jsx)("span",{className:"card-price",children:"1.290.000đ"})]})]})]}),"kitchen"===x&&(0,e.jsxs)("div",{className:"mega-tab-view",children:[(0,e.jsxs)("div",{className:"mega-content-header",children:[(0,e.jsxs)("h3",{children:[(0,e.jsx)("i",{className:"fa-solid fa-utensils"})," Gia Dụng Bếp & Đời Sống Thông Minh"]}),(0,e.jsxs)("div",{className:"header-quick-tags",children:[(0,e.jsx)(i.default,{href:"/thiet-bi-nha-bep-ve-sinh/may-rua-bat-thong-minh",onClick:I,children:"Máy Rửa Bát"}),(0,e.jsx)(i.default,{href:"/thiet-bi-nha-bep-ve-sinh/may-giat-xiaomi",onClick:I,children:"Máy Giặt Sấy"}),(0,e.jsx)(i.default,{href:"/thiet-bi-nha-bep-ve-sinh",onClick:I,children:"Nồi Cơm IH"}),(0,e.jsx)(i.default,{href:"/bo-nap-thuc-an-cho-pet",onClick:I,children:"Máy Nạp Thức Ăn Pet"})]})]}),(0,e.jsxs)("div",{className:"mega-products-grid",children:[(0,e.jsxs)(i.default,{href:"/thiet-bi-nha-bep-ve-sinh/may-rua-bat-thong-minh/may-rua-bat-xiaomi-mijia-15-bo",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge green",children:"15 BỘ"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/may-rua-bat-xiaomi-15-bo.jpg`,alt:"Máy rửa bát",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Máy Rửa Bát Xiaomi 15 Bộ"}),(0,e.jsx)("span",{className:"card-price",children:"11.200.000đ"})]}),(0,e.jsxs)(i.default,{href:"/thiet-bi-nha-bep-ve-sinh/may-giat-xiaomi/may-giat-say-xiaomi-mijia-10kg",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge blue",children:"SẤY 10KG"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/may-giat-say-xiaomi-10kg.jpg`,alt:"Máy giặt",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Máy Giặt Sấy Xiaomi 10kg"}),(0,e.jsx)("span",{className:"card-price",children:"8.990.000đ"})]}),(0,e.jsxs)(i.default,{href:"/thiet-bi-nha-bep-ve-sinh/noi-com-dien-cao-tan-ih-xiaomi-3l",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge",children:"NỒI CƠM IH"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/noi-com-dien-cao-tan-ih.jpg`,alt:"Nồi cơm cao tần",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Nồi Cơm Cao Tần IH Xiaomi 3L"}),(0,e.jsx)("span",{className:"card-price",children:"1.490.000đ"})]}),(0,e.jsxs)(i.default,{href:"/bo-nap-thuc-an-cho-pet/bo-nap-thuc-an-cho-thu-cung-smart-pet-feeder",className:"mega-product-card",onClick:I,children:[(0,e.jsx)("span",{className:"card-badge purple",children:"PET CARE"}),(0,e.jsx)("div",{className:"card-img-box",children:(0,e.jsx)("img",{src:`${G}/media/content_product/may-cho-an-thu-cung-smart.jpg`,alt:"Bộ nạp pet",width:"120",height:"120",loading:"lazy"})}),(0,e.jsx)("h4",{className:"card-title",children:"Máy Nạp Thức Ăn Cho Pet Smart"}),(0,e.jsx)("span",{className:"card-price",children:"1.290.000đ"})]})]})]})]})]}),(0,e.jsxs)("div",{className:"mega-panel-footer",children:[(0,e.jsxs)("div",{className:"footer-advice",children:[(0,e.jsx)("i",{className:"fa-solid fa-headset",style:{color:"var(--primary)"}}),(0,e.jsxs)("span",{children:["Cần tư vấn kích thước đố cửa hoặc công suất BTU? ",(0,e.jsx)("strong",{children:"Hotline: 0927.558.111 (24/7)"})]})]}),(0,e.jsxs)(i.default,{href:"/#product-catalog",className:"footer-all-link",onClick:I,children:["Xem tất cả 12 danh mục sản phẩm ",(0,e.jsx)("i",{className:"fa-solid fa-arrow-right"})]})]})]})]}),(0,e.jsxs)("div",{className:"nav-quick-links",children:[(0,e.jsxs)(i.default,{href:"/ban-chay",className:"quick-link-item highlight-red",children:[(0,e.jsx)("i",{className:"fa-solid fa-fire"})," Bán Chạy"]}),(0,e.jsxs)(i.default,{href:"/flash-sale",className:"quick-link-item highlight-orange",children:[(0,e.jsx)("i",{className:"fa-solid fa-bolt"})," Flash Sale"]}),(0,e.jsxs)(i.default,{href:"/noi-bat-2026",className:"quick-link-item",children:[(0,e.jsx)("i",{className:"fa-solid fa-sparkles"})," Nổi Bật 2026"]}),(0,e.jsxs)(i.default,{href:"/uu-dai-combo",className:"quick-link-item",children:[(0,e.jsx)("i",{className:"fa-solid fa-gift"})," Ưu Đãi Combo"]}),(0,e.jsxs)(i.default,{href:"/cam-nang-xiaomi",className:"quick-link-item",children:[(0,e.jsx)("i",{className:"fa-solid fa-book-open"})," Cẩm Nang Xiaomi"]})]})]})})]}),(0,e.jsx)("div",{className:`cart-overlay ${d?"active":""}`,onClick:a=>a.target===a.currentTarget&&h(!1),children:(0,e.jsxs)("div",{className:"cart-sidebar",children:[(0,e.jsxs)("div",{className:"cart-header",children:[(0,e.jsx)("h3",{children:"Giỏ Hàng Của Bạn"}),(0,e.jsx)("button",{className:"close-btn",onClick:()=>h(!1),"aria-label":"Đóng giỏ hàng",children:(0,e.jsx)("i",{className:"fa-solid fa-xmark"})})]}),(0,e.jsx)("div",{className:"cart-items",children:0===r.length?(0,e.jsxs)("div",{className:"empty-cart-message",children:[(0,e.jsx)("i",{className:"fa-solid fa-basket-shopping"}),(0,e.jsx)("p",{children:"Giỏ hàng chưa có sản phẩm nào"})]}):r.map(a=>(0,e.jsxs)("div",{className:"cart-item-row",children:[(0,e.jsx)("img",{src:a.image,alt:a.name}),(0,e.jsxs)("div",{className:"cart-item-details",children:[(0,e.jsx)("h4",{children:a.name}),(0,e.jsxs)("div",{className:"cart-item-price",children:[(a.price*a.quantity).toLocaleString("vi-VN"),"đ"," ",(0,e.jsxs)("span",{style:{fontSize:"0.75rem",color:"var(--text-secondary)"},children:["x",a.quantity]})]})]}),(0,e.jsx)("span",{className:"cart-item-remove",onClick:()=>m(a.id),children:(0,e.jsx)("i",{className:"fa-solid fa-trash-can"})})]},a.id))}),(0,e.jsxs)("div",{className:"cart-footer",children:[(0,e.jsxs)("div",{className:"cart-total-row",children:[(0,e.jsx)("span",{children:"Tổng cộng:"}),(0,e.jsxs)("span",{children:[P.toLocaleString("vi-VN"),"đ"]})]}),(0,e.jsx)("button",{className:"checkout-btn",onClick:()=>{h(!1),q(!0)},children:"Thanh toán ngay"})]})]})}),z&&(0,e.jsx)("div",{className:"modal-overlay active",style:{zIndex:99999,display:"flex",alignItems:"center",justifyContent:"center",position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",backdropFilter:"blur(4px)"},children:(0,e.jsxs)("div",{className:"checkout-modal-card",style:{background:"#FFFFFF",borderRadius:"16px",padding:"24px",maxWidth:"520px",width:"92%",boxShadow:"0 20px 40px rgba(0,0,0,0.25)",position:"relative"},children:[(0,e.jsx)("button",{className:"modal-close-btn",onClick:()=>q(!1),"aria-label":"Đóng cửa sổ thanh toán",style:{position:"absolute",top:"16px",right:"16px",background:"none",border:"none",fontSize:"1.3rem",cursor:"pointer",color:"var(--text-secondary)"},children:(0,e.jsx)("i",{className:"fa-solid fa-xmark"})}),B?(0,e.jsxs)("div",{className:"order-success-box",style:{textAlign:"center",padding:"16px 8px"},children:[(0,e.jsx)("div",{style:{fontSize:"3.5rem",color:"#2E7D32",marginBottom:"12px"},children:(0,e.jsx)("i",{className:"fa-solid fa-circle-check"})}),(0,e.jsx)("h3",{style:{fontSize:"1.4rem",color:"var(--text-primary)",fontWeight:700,marginBottom:"8px"},children:"Đặt Hàng Thành Công!"}),(0,e.jsxs)("p",{style:{color:"var(--text-secondary)",lineHeight:1.5,marginBottom:"20px"},children:["Cảm ơn bạn đã lựa chọn ",(0,e.jsx)("strong",{children:"Xiaomi Premium Việt Nam"}),". Chuyên viên sẽ gọi điện xác nhận đơn hàng theo số điện thoại của bạn ngay trong 5 phút!"]}),(0,e.jsxs)("div",{style:{background:"#F5F5F5",padding:"14px 16px",borderRadius:"8px",fontSize:"0.9rem",textAlign:"left",marginBottom:"20px",border:"1px solid var(--border-color)"},children:[(0,e.jsxs)("p",{style:{margin:"4px 0"},children:[(0,e.jsx)("strong",{children:"Mã đơn hàng:"})," ",(0,e.jsxs)("span",{style:{color:"var(--primary-color)",fontWeight:700},children:["#",D]})]}),(0,e.jsxs)("p",{style:{margin:"4px 0"},children:[(0,e.jsx)("strong",{children:"Khách hàng:"})," ",A.name," (",A.phone,")"]}),(0,e.jsxs)("p",{style:{margin:"4px 0"},children:[(0,e.jsx)("strong",{children:"Địa chỉ giao hàng:"})," ",A.address]}),(0,e.jsxs)("p",{style:{margin:"4px 0"},children:[(0,e.jsx)("strong",{children:"Tổng tiền:"})," ",(0,e.jsxs)("span",{style:{color:"var(--primary-color)",fontWeight:700},children:[P.toLocaleString("vi-VN"),"đ"]})]}),(0,e.jsxs)("p",{style:{margin:"4px 0"},children:[(0,e.jsx)("strong",{children:"Hotline Hỗ Trợ 24/7:"})," 0927.558.111"]})]}),(0,e.jsx)("button",{className:"btn btn-primary",style:{width:"100%",padding:"12px",borderRadius:"8px",fontWeight:600},onClick:()=>{q(!1),L(!1),H.current=!1},children:"Hoàn Tất & Tiếp Tục Mua Sắm"})]}):(0,e.jsxs)("form",{onSubmit:$,children:[(0,e.jsxs)("h3",{style:{fontSize:"1.3rem",fontWeight:700,marginBottom:"4px",color:"var(--text-primary)",display:"flex",alignItems:"center",gap:"8px"},children:[(0,e.jsx)("i",{className:"fa-solid fa-cart-shopping",style:{color:"var(--primary-color)"}}),"Xác Nhận Đặt Hàng Nhanh"]}),(0,e.jsx)("p",{style:{fontSize:"0.85rem",color:"var(--text-secondary)",marginBottom:"16px"},children:"Giao hàng toàn quốc • Miễn phí khảo sát & lắp đặt 0đ tận nhà"}),(0,e.jsxs)("div",{style:{marginBottom:"12px"},children:[(0,e.jsx)("label",{style:{display:"block",fontSize:"0.85rem",fontWeight:600,marginBottom:"4px",color:"var(--text-primary)"},children:"Họ và tên người nhận *"}),(0,e.jsx)("input",{type:"text",required:!0,placeholder:"Nhập họ và tên người nhận...",value:A.name,onChange:a=>E({...A,name:a.target.value}),style:{width:"100%",padding:"10px 12px",border:"1px solid var(--border-color)",borderRadius:"8px",fontSize:"0.9rem"}})]}),(0,e.jsxs)("div",{style:{marginBottom:"12px"},children:[(0,e.jsx)("label",{style:{display:"block",fontSize:"0.85rem",fontWeight:600,marginBottom:"4px",color:"var(--text-primary)"},children:"Số điện thoại liên hệ *"}),(0,e.jsx)("input",{type:"tel",required:!0,placeholder:"Nhập số điện thoại nhận hàng...",value:A.phone,onChange:a=>E({...A,phone:a.target.value}),style:{width:"100%",padding:"10px 12px",border:"1px solid var(--border-color)",borderRadius:"8px",fontSize:"0.9rem"}})]}),(0,e.jsxs)("div",{style:{marginBottom:"12px"},children:[(0,e.jsx)("label",{style:{display:"block",fontSize:"0.85rem",fontWeight:600,marginBottom:"4px",color:"var(--text-primary)"},children:"Địa chỉ nhận hàng *"}),(0,e.jsx)("input",{type:"text",required:!0,placeholder:"Số nhà, tên đường, phường/xã, quận/huyện, tỉnh/thành...",value:A.address,onChange:a=>E({...A,address:a.target.value}),style:{width:"100%",padding:"10px 12px",border:"1px solid var(--border-color)",borderRadius:"8px",fontSize:"0.9rem"}})]}),(0,e.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,e.jsx)("label",{style:{display:"block",fontSize:"0.85rem",fontWeight:600,marginBottom:"4px",color:"var(--text-primary)"},children:"Ghi chú đơn hàng (Không bắt buộc)"}),(0,e.jsx)("input",{type:"text",placeholder:"Yêu cầu giờ giao, thời gian lắp đặt...",value:A.note,onChange:a=>E({...A,note:a.target.value}),style:{width:"100%",padding:"10px 12px",border:"1px solid var(--border-color)",borderRadius:"8px",fontSize:"0.9rem"}})]}),(0,e.jsxs)("div",{style:{background:"#FFF3E0",padding:"12px 16px",borderRadius:"8px",marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,e.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:600,color:"var(--text-primary)"},children:"Tổng thanh toán:"}),(0,e.jsxs)("span",{style:{fontSize:"1.2rem",fontWeight:700,color:"var(--primary-color)"},children:[P.toLocaleString("vi-VN"),"đ"]})]}),(0,e.jsx)("button",{type:"submit",disabled:F,className:"btn btn-primary",style:{width:"100%",padding:"14px",borderRadius:"8px",fontWeight:700,fontSize:"1rem",cursor:F?"not-allowed":"pointer",opacity:F?.7:1},children:F?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("i",{className:"fa-solid fa-spinner fa-spin",style:{marginRight:"8px"}}),"ĐANG XỬ LÝ ĐƠN HÀNG..."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("i",{className:"fa-solid fa-paper-plane",style:{marginRight:"8px"}}),"XÁC NHẬN ĐẶT HÀNG NGAY"]})})]})]})}),(0,e.jsx)(t,{isOpen:j,onClose:()=>f(!1)}),(0,e.jsx)(o,{onOpenDrawer:()=>f(!0)})]})}],2971)},13642,a=>{"use strict";var e=a.i(43476),s=a.i(71645),i=a.i(22016),n=a.i(56634);a.s(["default",0,function(){let[a,c]=(0,s.useState)(""),[l,r]=(0,s.useState)(!1);return(0,e.jsxs)("footer",{className:"app-footer",children:[(0,e.jsxs)("div",{className:"footer-container",children:[(0,e.jsxs)("div",{className:"footer-col brand-col",children:[(0,e.jsxs)("div",{className:"footer-logo",children:[(0,e.jsx)(n.default,{size:36}),(0,e.jsxs)("span",{className:"logo-text",children:["XIAOMI",(0,e.jsx)("span",{children:"PREMIUM"})]})]}),(0,e.jsx)("p",{className:"company-desc",children:"Hệ thống phân phối thiết bị thông minh Xiaomi, Khóa cửa vân tay Lockin & Aqara chính hãng hàng đầu Việt Nam."}),(0,e.jsxs)("div",{className:"contact-info",children:[(0,e.jsxs)("p",{children:[(0,e.jsx)("i",{className:"fa-solid fa-location-dot"})," Trụ sở: Tầng 1, Số 22 ngõ 181 Tôn Đức Thắng, Văn Miếu - Quốc Tử Giám, Hà Nội"]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("i",{className:"fa-solid fa-phone"})," Hotline: 0927.558.111 (24/7)"]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("i",{className:"fa-solid fa-envelope"})," Support: cskh.xiaomipremium@gmail.com"]})]})]}),(0,e.jsxs)("div",{className:"footer-col",children:[(0,e.jsx)("h4",{children:"Chính Sách & Hướng Dẫn"}),(0,e.jsxs)("ul",{children:[(0,e.jsx)("li",{children:(0,e.jsx)(i.default,{href:"/gioi-thieu",children:"Giới thiệu về Xiaomi Premium"})}),(0,e.jsx)("li",{children:(0,e.jsx)(i.default,{href:"/chinh-sach-bao-hanh",children:"Chính sách bảo hành"})}),(0,e.jsx)("li",{children:(0,e.jsx)(i.default,{href:"/chinh-sach-doi-tra",children:"Chính sách 1 đổi 1 30 ngày"})}),(0,e.jsx)("li",{children:(0,e.jsx)(i.default,{href:"/cam-nang-xiaomi",children:"Cẩm nang chọn thiết bị Smart Home"})}),(0,e.jsx)("li",{children:(0,e.jsx)(i.default,{href:"/lien-he",children:"Liên hệ & Hệ thống Showroom"})})]})]}),(0,e.jsxs)("div",{className:"footer-col",children:[(0,e.jsx)("h4",{children:"Phương Thức Thanh Toán"}),(0,e.jsx)("p",{className:"payment-sub",children:"Hỗ trợ trả góp 0% qua thẻ tín dụng và ví điện tử:"}),(0,e.jsxs)("div",{className:"payment-icons-grid",children:[(0,e.jsxs)("div",{className:"payment-badge",title:"Momo",children:[(0,e.jsx)("i",{className:"fa-solid fa-wallet"})," Momo"]}),(0,e.jsxs)("div",{className:"payment-badge",title:"VNPay",children:[(0,e.jsx)("i",{className:"fa-solid fa-qrcode"})," VNPay"]}),(0,e.jsxs)("div",{className:"payment-badge",title:"Visa",children:[(0,e.jsx)("i",{className:"fa-brands fa-cc-visa"})," Visa"]}),(0,e.jsxs)("div",{className:"payment-badge",title:"Mastercard",children:[(0,e.jsx)("i",{className:"fa-brands fa-cc-mastercard"})," Mastercard"]}),(0,e.jsxs)("div",{className:"payment-badge",title:"COD",children:[(0,e.jsx)("i",{className:"fa-solid fa-hand-holding-dollar"})," COD"]}),(0,e.jsxs)("div",{className:"payment-badge",title:"Trả góp 0%",children:[(0,e.jsx)("i",{className:"fa-solid fa-percent"})," Trả góp 0%"]})]})]}),(0,e.jsxs)("div",{className:"footer-col newsletter-col",children:[(0,e.jsx)("h4",{children:"Đăng Ký Nhận Voucher 50k"}),(0,e.jsx)("p",{children:"Nhận ngay mã giảm giá 50.000đ cho đơn hàng đầu tiên & tin khuyến mãi HOT nhất."}),(0,e.jsxs)("form",{className:"newsletter-form",onSubmit:e=>{e.preventDefault(),a&&(r(!0),c(""))},children:[(0,e.jsx)("input",{type:"email",placeholder:"Nhập email của bạn...",value:a,onChange:a=>c(a.target.value),className:"newsletter-input",required:!0}),(0,e.jsx)("button",{type:"submit",className:"newsletter-btn",children:"Nhận ngay"})]}),l&&(0,e.jsx)("p",{className:"subscribe-success",children:"🎉 Đã gửi Voucher 50k vào email của bạn!"}),(0,e.jsxs)("div",{className:"social-links-box",children:[(0,e.jsx)("span",{children:"Kết nối với chúng tôi:"}),(0,e.jsxs)("div",{className:"social-icons",children:[(0,e.jsx)("a",{href:"#",className:"social-icon fb",title:"Facebook",children:(0,e.jsx)("i",{className:"fa-brands fa-facebook-f"})}),(0,e.jsx)("a",{href:"#",className:"social-icon tt",title:"TikTok",children:(0,e.jsx)("i",{className:"fa-brands fa-tiktok"})}),(0,e.jsx)("a",{href:"#",className:"social-icon yt",title:"YouTube",children:(0,e.jsx)("i",{className:"fa-brands fa-youtube"})}),(0,e.jsx)("a",{href:"#",className:"social-icon zl",title:"Zalo",children:(0,e.jsx)("i",{className:"fa-solid fa-comment-dots"})})]})]})]})]}),(0,e.jsx)("div",{className:"footer-bottom",children:(0,e.jsx)("p",{children:"© 2026 Xiaomi Premium Việt Nam. Tất cả quyền được bảo lưu. Hệ thống thiết bị thông minh chính hãng."})})]})}])},63687,a=>{"use strict";var e=a.i(71645),s=a.i(18566);a.s(["default",0,function(){let a=(0,s.usePathname)();return(0,e.useEffect)(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[a]),null}])}]);