/* هدر دسکتاپ — بازسازی components/Navbar/Navbar.jsx (فقط ≥1024px) */
header.tg-header.nxh{display:none}
@media(min-width:1024px){
header.tg-header.nxh{display:flex;position:sticky;top:0;right:0;left:0;z-index:99;width:100%;background:#fff;border:0;border-bottom:2px solid #e5e7eb;align-items:center;justify-content:center;transition:transform .3s;font-family:Vazir,Vazirmatn,sans-serif;color:#383E43;line-height:1.611}
header.tg-header.nxh.hide{transform:translateY(-82px)}
.nxh *{box-sizing:border-box}
.nxh p,.nxh .tt,.nxh ul{margin:0;padding:0}
.nxh a{text-decoration:none;color:inherit}
.nxh svg,.nxh img{display:block}
.nxh section{padding:0;margin:0;background:none;width:100%}
.nxh-wrap{width:100%;margin:0 auto;max-width:1024px}
@media(min-width:1280px){.nxh-wrap{max-width:1280px}}
@media(min-width:1536px){.nxh-wrap{max-width:1536px}}
.nxh-r1{width:95%;margin:0 auto;padding:12px 0;display:flex;justify-content:space-between;align-items:center}
.nxh-r1-r{display:flex;gap:128px}
.nxh-logo{display:block;width:140px;height:70px;position:relative}
.nxh-logo img{width:100%;height:100%;object-fit:contain}
.nxh-ul{margin-right:36px!important;display:flex;justify-content:center;align-items:center;gap:20px;list-style:none;font-size:15px;font-weight:500;color:#383E43}
.nxh-ul li{position:relative}
.nxh-ul li::after{content:"";position:absolute;left:0;bottom:-4px;width:100%;border-radius:20px;height:1.5px;background:#e4002b;transform:scaleX(0);transition:transform .3s}
.nxh-ul li:hover::after{transform:scaleX(1)}
.nxh-ul p{white-space:nowrap}
.nxh-r1-l{display:flex;align-items:center;gap:20px;cursor:pointer}
.nxh-cartbox{border-left:1px solid #e5e7eb;padding-left:20px;display:flex}
.nxh-cart{position:relative}
.nxh-badge{position:absolute;bottom:0;right:-9px;width:19px;height:19px;border-radius:4px;background:#E4002B;border:2px solid #fff;display:flex;align-items:center;justify-content:center}
.nxh-badge p{font-size:12px;font-weight:700;margin-top:1px;color:#fff}
.nxh-cartdd{display:none;position:absolute;top:32px;left:4px;direction:rtl;overflow:hidden;background:#fff;box-shadow:0 0 12px -4px rgba(0,0,0,.25);border:1px solid #e5e7eb;border-radius:10px;z-index:50;cursor:default}
.nxh-cartbox:hover .nxh-cartdd{display:block}
.nxh .nxh-cartdd-h{padding:12px 16px 4px;margin-bottom:8px!important;color:#383E43;text-align:right;font-size:16px;font-weight:700;line-height:152.895%}
.nxh-cartdd-h span{color:#7D7D87;font-weight:500}
.nxh-cartdd-list{width:330px;max-height:320px;overflow-y:scroll;overflow-x:hidden}
.nxh-cc{display:flex;flex-direction:column;align-items:stretch;padding-bottom:12px;margin:0 16px 8px}
.nxh-cc.dashed{border-bottom:3px dashed #e5e7eb}
.nxh-cc-a{display:flex;gap:12px;align-items:center;justify-content:flex-start;width:100%}
.nxh-cc-img{width:95px;min-width:95px;height:85px;border-radius:15px;background:#f3f4f6;overflow:hidden}
.nxh-cc-img img{width:100%;height:100%;object-fit:cover}
.nxh-cc-t{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:8px 0;flex:1;min-width:0;text-align:right}
.nxh-cc-t .tt{display:block;font-size:14px;font-weight:700;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nxh-cc-t .pr{font-size:17px;font-weight:700;line-height:30.119px}
.nxh-cartdd-f{display:flex;flex-direction:column;align-items:center;justify-content:center;border-top:2px solid #e5e7eb;background:#fff;border-radius:0 0 10px 10px;padding:16px;position:sticky;bottom:0}
.nxh-cartdd-f>div{display:flex;justify-content:space-between;width:100%;align-items:center;padding:8px;margin-bottom:8px}
.nxh-cartdd-f .l{color:#7D7D87;font-size:13.963px;font-weight:500}
.nxh-cartdd-f .v{color:#383E43;font-size:16.111px;font-weight:700}
.nxh-cartdd-f .btn{background:#10C763;color:#fff;width:100%;padding:8px 0;border-radius:10px;text-align:center;font-weight:400}
.nxh-login{margin-left:20px;background:#E4002B;padding:10px 20px;box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);transition:all .15s;border-radius:30px;display:flex;justify-content:center;align-items:center;gap:8px}
.nxh-login:hover{box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1)}
.nxh-login>div{margin-top:4px}
.nxh-login p{color:#fff;font-size:14px;font-weight:400}
.nxh-user{position:relative;width:100%}
.nxh-user-tr{display:flex;justify-content:space-between;align-items:center;gap:40px;padding:8px;background:none;border:0;cursor:pointer;font-family:inherit;color:inherit}
.nxh-user-i{display:flex;align-items:center;gap:20px;text-align:right}
.nxh-av{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#d4d4d8;flex:none}
.nxh-user .nm{color:#383E43;font-size:14px;font-weight:700;white-space:nowrap}
.nxh-user .bal{display:flex;align-items:center;gap:8px;color:#7D7D87;font-size:14px;font-weight:500;white-space:nowrap}
.nxh-user .bal span{margin-left:8px}
.nxh-user-dd{display:none;position:absolute;top:100%;left:0;min-width:200px;background:#fff;border-radius:12px;padding:4px;box-shadow:0 0 1px 0 rgba(0,0,0,.3),0 5px 20px -5px rgba(0,0,0,.2);border:1px solid #e5e7eb;z-index:60}
.nxh-user.open .nxh-user-dd{display:block}
.nxh-user-dd a{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;font-size:13px;font-weight:500;color:#383E43}
.nxh-user-dd a:hover{background:#f4f4f5}
.nxh-user-dd .tt{font-size:13px;font-weight:500}
.nxh-r2{width:95%;margin:0 auto;padding-bottom:8px;display:flex;gap:80px;align-items:center}
.nxh-r2-i{display:flex;align-items:center;gap:40px;width:100%}
.nxh-cat{position:relative;z-index:30}
.nxh-catbtn{display:flex;gap:32px;align-items:center;justify-content:space-between;white-space:nowrap;padding:12px 16px;border-radius:38px;background:#32323C;color:#fff;border:0;cursor:pointer;font-family:inherit;font-size:16px;transition:all .15s}
.nxh-catbtn:hover{box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}
.nxh-catbtn .ar{margin-right:12px;display:flex}
.nxh-catbtn .ar svg{transition:all .15s}
.nxh-cat.open .ar svg{transform:rotate(180deg)}
.nxh-catmenu{position:absolute;background:#fff;border:1px solid #d1d5db;min-width:694px;width:100%;top:48px;height:fit-content;border-radius:30px;z-index:20;display:flex;transition:opacity .2s;opacity:0;pointer-events:none}
.nxh-cat.open .nxh-catmenu{opacity:1;pointer-events:auto}
.nxh-catlist{width:40%;padding:12px 12px 12px 0;overflow-y:auto;border-left:1px solid #d1d5db;box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}
.nxh-catlist>div{display:flex;flex-direction:column;align-items:flex-start}
.nxh-catlist a{display:flex;align-items:center;gap:16px;width:100%;padding:8px 16px 8px 0;margin:4px 0;border-radius:10px 0 0 10px;font-weight:500;cursor:pointer;transition:all .2s}
.nxh-catlist a{border-radius:0;border-top-right-radius:10px;border-bottom-right-radius:10px}
.nxh-catlist a:hover{background:#f3f4f6}
.nxh-catlist a:hover span{color:#E4002B}
.nxh-catlist a span{transition:all .2s}
.nxh-catlist .ic{width:30px;height:30px;position:relative;display:flex;align-items:center;justify-content:center;color:#D32F2F}
.nxh-catlist .ic img{width:100%;height:100%;object-fit:cover}
.nxh-catad{width:60%;display:flex;flex-direction:column;gap:24px}
.nxh-catad>p{text-align:center;margin-top:40px!important;font-weight:500;color:#32323C}
.nxh-catad>p span{color:#E4002B}
.nxh-catad>div{display:flex;justify-content:center;align-items:center}
.nxh-catad img{width:300px;height:250px;object-fit:contain}
.nxh-search{width:100%;max-width:461px;padding:8px 16px 8px 12px;border-radius:9999px;display:flex;justify-content:space-between;border:1px solid #d1d5db;transition:all .15s;margin:0}
.nxh-search:hover{box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}
.nxh-search .in{width:100%;display:flex;align-items:center}
.nxh-search .in span{display:flex;margin:0 8px;color:#000}
.nxh-search input{width:100%;outline:none;border:0;background:transparent;font-family:inherit;font-size:16px;color:#383E43;padding:0}
.nxh-search .sbtn{background:#32323C;color:#fff;border:0;border-radius:9999px;margin-right:8px;transform:scale(1.25);position:relative;padding:4px;top:2px;cursor:pointer;font-family:inherit;display:flex;align-items:center}
.nxh-search .sbtn .txt{display:none;white-space:nowrap;font-size:13px;padding:0 18px}
.nxh-search .sbtn.has{padding:2.25px 0;top:0;left:6px}
.nxh-search .sbtn.has .txt{display:block}.nxh-search .sbtn.has .ico{display:none}
.nxh-city{display:flex;align-items:center;gap:8px;margin-left:56px;cursor:pointer}
.nxh-city>div{position:relative;width:26px;height:26px;flex:none}
.nxh .nxh-city img{width:26px!important;height:26px!important;max-width:none!important;object-fit:contain}
.nxh-city p{font-size:15px;text-decoration:underline;white-space:nowrap}
.nxh .stylesScrools::-webkit-scrollbar{width:6px}
.nxh .stylesScrools::-webkit-scrollbar-track{background:#fff}
.nxh .stylesScrools::-webkit-scrollbar-thumb{background:#6b6969;border-radius:100px}
}

.nxh-av.ph{display:inline-flex;align-items:center;justify-content:center;overflow:hidden}

/* h1 سراسری style.css (رنگ #80071e، اندازه ۳۷px) نباید به اجزای بازسازی‌شده از Next نشت کند */
.nxh-user-dd .tt{color:inherit;margin:0}
:where(.nx,.ax,.acp,.ios-ov) h1{color:inherit}

.nxh-pkg{white-space:nowrap;font-size:15px;font-weight:600;color:#383E43;padding:10px 4px;text-decoration:none;transition:color .15s}
.nxh-pkg:hover{color:#E4002B}

/* آواتار پیش‌فرض: آیکن NextUI به اندازه‌ی ۸۰٪ دایره (مثل <Avatar showFallback> در Next) */
.nxh-av.ph svg{width:80%;height:80%;display:block}
