/* NEXUS v734 — clean desktop header + unified feedback UX
   هدف: ظاهر فروشگاهی واقعی، کم‌تزئین و سریع؛ بدون گرادیان و باکس‌های مصنوعی. */

@media (min-width:761px){
  html body{
    --nx734-bg:#ffffff;
    --nx734-fg:#172033;
    --nx734-muted:#667085;
    --nx734-line:#e8ebef;
    --nx734-soft:#f6f8fa;
    --nx734-blue:#2563eb;
  }
  html[data-theme="dark"] body{
    --nx734-bg:#0b1220;
    --nx734-fg:#edf3fb;
    --nx734-muted:#9aa8bc;
    --nx734-line:rgba(255,255,255,.10);
    --nx734-soft:#111b2c;
    --nx734-blue:#60a5fa;
  }

  /* Header: دو ردیف واقعی، نه یک flex شلوغ */
  html body div.nx542-top{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    position:sticky!important;
    top:0!important;
    z-index:10000!important;
    background:var(--nx734-bg)!important;
    color:var(--nx734-fg)!important;
    border:0!important;
    border-bottom:1px solid var(--nx734-line)!important;
    box-shadow:0 1px 8px rgba(15,23,42,.05)!important;
    border-radius:0!important;
  }
  html[data-theme="dark"] body div.nx542-top{box-shadow:0 1px 12px rgba(0,0,0,.22)!important}

  html body div.nx542-top > header.nx-header.nx518{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:70px!important;
    min-height:70px!important;
    margin:0!important;
    padding:0!important;
    background:var(--nx734-bg)!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  html body div.nx542-top > header.nx-header.nx518 .nx518-inner{
    width:min(1320px,calc(100% - 40px))!important;
    height:70px!important;
    margin:0 auto!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:190px minmax(360px,760px) auto!important;
    align-items:center!important;
    gap:28px!important;
    direction:rtl!important;
  }
  html body div.nx542-top > header.nx-header.nx518 .nx-hline{display:none!important}

  /* لوگو */
  html body div.nx542-top a.nx518-logo{
    order:0!important;
    width:190px!important;
    height:54px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
  }
  html body div.nx542-top a.nx518-logo img{
    width:auto!important;
    height:46px!important;
    max-width:180px!important;
    max-height:46px!important;
    object-fit:contain!important;
  }
  html body div.nx542-top a.nx518-logo .nx518-logo-text{
    font-size:19px!important;
    font-weight:900!important;
    color:var(--nx734-fg)!important;
  }

  /* جستجو */
  html body div.nx542-top form.nx-search.nx518-search{
    order:0!important;
    width:100%!important;
    max-width:760px!important;
    height:44px!important;
    margin:0 auto!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    background:var(--nx734-soft)!important;
    border:1px solid var(--nx734-line)!important;
    border-radius:10px!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  html body div.nx542-top form.nx-search.nx518-search:focus-within{
    background:var(--nx734-bg)!important;
    border-color:#b9c8e8!important;
    box-shadow:0 0 0 3px rgba(37,99,235,.08)!important;
  }
  html body div.nx542-top form.nx-search.nx518-search input{
    height:100%!important;
    padding:0 14px!important;
    font-size:13.5px!important;
    color:var(--nx734-fg)!important;
    background:transparent!important;
  }
  html body div.nx542-top form.nx-search.nx518-search button{
    width:48px!important;
    height:44px!important;
    color:#64748b!important;
  }
  html[data-theme="dark"] body div.nx542-top form.nx-search.nx518-search button{color:#a9b8ce!important}

  /* اکشن‌های سمت چپ */
  html body div.nx542-top header.nx-header .nx518-actions{
    order:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    min-width:0!important;
  }
  html body div.nx542-top header.nx-header .nx518-search-btn{display:none!important}
  html body div.nx542-top header.nx-header .nx518-btn,
  html body div.nx542-top header.nx-header a.nx518-btn{
    height:42px!important;
    min-height:42px!important;
    width:auto!important;
    min-width:42px!important;
    padding:0 11px!important;
    border:1px solid transparent!important;
    border-radius:9px!important;
    background:transparent!important;
    color:var(--nx734-fg)!important;
    box-shadow:none!important;
    font-size:12.5px!important;
    font-weight:700!important;
  }
  html body div.nx542-top header.nx-header .nx518-btn:hover,
  html body div.nx542-top header.nx-header a.nx518-btn:hover{
    background:var(--nx734-soft)!important;
    border-color:var(--nx734-line)!important;
  }
  html body div.nx542-top header.nx-header .nx518-btn svg,
  html body div.nx542-top header.nx-header a.nx518-btn svg{stroke:currentColor!important;color:currentColor!important}
  html body div.nx542-top header.nx-header .nx-contact-btn{gap:7px!important}
  html body div.nx542-top header.nx-header .nx-contact-btn .nxd-tel-num{
    display:inline!important;
    border:0!important;
    padding:0!important;
    font-style:normal!important;
    font-size:11px!important;
    color:var(--nx734-muted)!important;
  }
  html body div.nx542-top header.nx-header .nx518-cart{background:transparent!important}
  html body div.nx542-top header.nx-header .nx518-cart .nx-ico-badge{position:relative!important;display:inline-flex!important}
  html body div.nx542-top header.nx-header .nx518-count{
    top:-8px!important;right:-8px!important;left:auto!important;
    min-width:17px!important;height:17px!important;padding:0 4px!important;
    border:2px solid var(--nx734-bg)!important;
    background:#e5484d!important;color:#fff!important;border-radius:99px!important;
    font-size:9px!important;display:grid!important;place-items:center!important;
  }

  /* nav: خط تمیز زیر هدر */
  html body div.nx542-top > nav.nx-navbar#nxMainNav{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:48px!important;
    min-height:48px!important;
    margin:0!important;
    padding:0!important;
    background:var(--nx734-bg)!important;
    border:0!important;
    border-top:1px solid var(--nx734-line)!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  html body div.nx542-top > nav.nx-navbar#nxMainNav .nx-nav-shell{
    width:min(1320px,calc(100% - 40px))!important;
    height:48px!important;
    margin:0 auto!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:4px!important;
    direction:rtl!important;
  }
  html body div.nx542-top > nav.nx-navbar#nxMainNav .nx-nav-item{
    display:inline-flex!important;
    flex:0 0 auto!important;
    height:38px!important;
    min-height:38px!important;
    width:auto!important;
    padding:0 12px!important;
    margin:0!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    border:0!important;
    border-radius:8px!important;
    background:transparent!important;
    color:var(--nx734-fg)!important;
    font-size:12.5px!important;
    font-weight:700!important;
    box-shadow:none!important;
    text-decoration:none!important;
    position:relative!important;
  }
  html body div.nx542-top > nav.nx-navbar#nxMainNav .nx-nav-item:hover{
    background:var(--nx734-soft)!important;
    color:var(--nx734-blue)!important;
  }
  html body div.nx542-top > nav.nx-navbar#nxMainNav .nx-nav-item.is-active{
    background:transparent!important;
    color:var(--nx734-blue)!important;
  }
  html body div.nx542-top > nav.nx-navbar#nxMainNav .nx-nav-item.is-active::after{
    content:""!important;
    position:absolute!important;
    inset-inline:12px!important;
    bottom:-5px!important;
    height:2px!important;
    border-radius:2px!important;
    background:var(--nx734-blue)!important;
  }
  html body div.nx542-top > nav.nx-navbar#nxMainNav .nx-nav-bubble{
    width:18px!important;height:18px!important;min-width:18px!important;
    padding:0!important;background:none!important;border:0!important;box-shadow:none!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
  }
  html body div.nx542-top > nav.nx-navbar#nxMainNav .nx-nav-bubble svg,
  html body div.nx542-top > nav.nx-navbar#nxMainNav .nx-nav-bubble svg *{width:18px!important;height:18px!important;stroke:currentColor!important;color:inherit!important}
  html body div.nx542-top > nav.nx-navbar#nxMainNav button[data-cat-open]{
    background:#2563eb!important;color:#fff!important;border-radius:8px!important;padding-inline:15px!important;font-weight:800!important;
  }
  html body div.nx542-top > nav.nx-navbar#nxMainNav button[data-cat-open]:hover{background:#1d4ed8!important;color:#fff!important}
  html body div.nx542-top > nav.nx-navbar#nxMainNav button[data-cat-open] svg,
  html body div.nx542-top > nav.nx-navbar#nxMainNav button[data-cat-open] svg *{stroke:#fff!important;color:#fff!important}
  html body div.nx542-top > nav.nx-navbar#nxMainNav a[data-nav="sell"]{margin-inline-start:auto!important;color:#2563eb!important;background:#eff6ff!important;font-weight:800!important}
  html[data-theme="dark"] body div.nx542-top > nav.nx-navbar#nxMainNav a[data-nav="sell"]{background:#13233c!important;color:#93c5fd!important}

  /* فضای صفحه بعد از هدر را کنترل کن */
  html body{padding-top:0!important}
  html.nx442-has-bar body{padding-top:0!important}
  html.nx442-has-bar body div.nx542-top{top:0!important}
}

/* -------------------------------------------------------------
   دیدگاه + پرسش: همان UI تمیز در موبایل و دسکتاپ
   ------------------------------------------------------------- */
html body.nxd-page #reviews,
html body.nxd-page #nxd-qa{
  background:transparent!important;
  color:inherit!important;
}
html body.nxd-page #reviews .nxd-sec-head,
html body.nxd-page #nxd-qa .nxd-sec-head{
  min-height:54px!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  border-bottom:1px solid #e9edf2!important;
}
html[data-theme="dark"] body.nxd-page #reviews .nxd-sec-head,
html[data-theme="dark"] body.nxd-page #nxd-qa .nxd-sec-head{border-bottom-color:rgba(255,255,255,.10)!important}
html body.nxd-page #reviews .nxd-h2,
html body.nxd-page #nxd-qa .nxd-h2{
  margin:0!important;font-size:17px!important;line-height:1.4!important;font-weight:800!important;color:inherit!important;
}
html body.nxd-page #reviews .nxd-count,
html body.nxd-page #nxd-qa .nxd-count{font-size:11px!important;color:#98a2b3!important}

/* فرم‌ها: یک باکس ساده و واقعی */
html body.nxd-page #reviews .review-composer,
html body.nxd-page #nxd-qa .nxd-qa-ask{
  margin:16px 0!important;
  padding:16px!important;
  background:#f7f8fa!important;
  border:1px solid #edf0f3!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.nxd-page #reviews .review-composer,
html[data-theme="dark"] body.nxd-page #nxd-qa .nxd-qa-ask{background:#111b2b!important;border-color:rgba(255,255,255,.09)!important}
html body.nxd-page #reviews .review-composer h3,
html body.nxd-page #nxd-qa .nxd-qa-ask label{font-size:13px!important;font-weight:800!important;margin:0 0 9px!important;color:inherit!important}
html body.nxd-page #reviews .review-composer textarea,
html body.nxd-page #nxd-qa .nxd-qa-ask textarea{
  width:100%!important;box-sizing:border-box!important;min-height:88px!important;
  padding:11px 12px!important;background:#fff!important;color:#172033!important;
  border:1px solid #e2e7ed!important;border-radius:8px!important;box-shadow:none!important;resize:vertical!important;
}
html[data-theme="dark"] body.nxd-page #reviews .review-composer textarea,
html[data-theme="dark"] body.nxd-page #nxd-qa .nxd-qa-ask textarea{background:#0c1422!important;color:#edf3fb!important;border-color:rgba(255,255,255,.12)!important}
html body.nxd-page #reviews .review-composer textarea:focus,
html body.nxd-page #nxd-qa .nxd-qa-ask textarea:focus{outline:0!important;border-color:#9eb7e9!important;box-shadow:0 0 0 3px rgba(37,99,235,.07)!important}
html body.nxd-page #reviews .rating-select{font-size:12px!important;color:#667085!important;display:flex!important;align-items:center!important;gap:8px!important;margin-bottom:9px!important}
html body.nxd-page #reviews .rating-select select{height:36px!important;padding:0 9px!important;border:1px solid #e2e7ed!important;border-radius:7px!important;background:#fff!important}
html[data-theme="dark"] body.nxd-page #reviews .rating-select select{background:#0c1422!important;color:#edf3fb!important;border-color:rgba(255,255,255,.12)!important}
html body.nxd-page #reviews .review-compose-footer,
html body.nxd-page #nxd-qa .nxd-qa-foot{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-top:10px!important}
html body.nxd-page #reviews .review-compose-footer .btn,
html body.nxd-page #nxd-qa .nxd-qa-foot .btn{
  min-height:38px!important;padding:0 18px!important;border-radius:8px!important;background:#2563eb!important;color:#fff!important;border:0!important;box-shadow:none!important;font-size:12.5px!important;font-weight:800!important;
}
html body.nxd-page #reviews .review-compose-footer .btn:hover,
html body.nxd-page #nxd-qa .nxd-qa-foot .btn:hover{background:#1d4ed8!important}
html body.nxd-page #nxd-qa .nxd-qa-foot small{font-size:10.5px!important;color:#98a2b3!important}

/* نظرها: خطی، بدون کارت‌های تکراری */
html body.nxd-page #reviews .review-list,
html body.nxd-page #nxd-qa .nxd-qa-list{display:block!important}
html body.nxd-page #reviews .review-card{
  display:block!important;padding:18px 2px!important;margin:0!important;background:transparent!important;
  border:0!important;border-bottom:1px solid #e9edf2!important;border-radius:0!important;box-shadow:none!important;
}
html[data-theme="dark"] body.nxd-page #reviews .review-card{border-bottom-color:rgba(255,255,255,.09)!important}
html body.nxd-page #reviews .review-card:last-child{border-bottom:0!important}
html body.nxd-page #reviews .review-avatar{display:none!important}
html body.nxd-page #reviews .review-head{display:flex!important;align-items:center!important;gap:8px!important;min-height:25px!important}
html body.nxd-page #reviews .review-head strong{font-size:12.5px!important;font-weight:900!important;color:inherit!important}
html body.nxd-page #reviews .review-head time{margin-inline-start:auto!important;font-size:10.5px!important;color:#98a2b3!important}
html body.nxd-page #reviews .official-badge{font-size:9px!important;padding:2px 6px!important;border-radius:5px!important}
html body.nxd-page #reviews .review-rating{margin:3px 0 6px!important;font-size:12px!important;letter-spacing:1px!important;color:#f59e0b!important}
html body.nxd-page #reviews .review-main>p{margin:0 0 12px!important;font-size:13px!important;line-height:2!important;color:inherit!important}
html body.nxd-page #reviews .review-actions{display:flex!important;gap:7px!important;align-items:center!important}
html body.nxd-page #reviews .review-actions form{margin:0!important}
html body.nxd-page #reviews .review-action{
  height:32px!important;min-width:48px!important;padding:0 11px!important;border:1px solid #e6e9ed!important;
  background:#fff!important;border-radius:999px!important;color:#667085!important;font-size:11.5px!important;box-shadow:none!important;
}
html[data-theme="dark"] body.nxd-page #reviews .review-action{background:#0f1929!important;border-color:rgba(255,255,255,.10)!important}
html body.nxd-page #reviews .review-helpful{color:#168a50!important}
html body.nxd-page #reviews .review-helpful.is-liked{background:#effaf4!important;border-color:#b9e8c9!important}
html body.nxd-page #reviews .review-unhelpful{color:#d64545!important}
html body.nxd-page #reviews .review-unhelpful.is-disliked{background:#fff3f3!important;border-color:#f1c7c7!important}
html body.nxd-page #reviews .review-reply-btn{min-width:auto!important;border-color:transparent!important;background:transparent!important;box-shadow:none!important;color:#667085!important}
html body.nxd-page #reviews .review-replies{margin:14px 0 0!important;padding-inline-start:18px!important;border-inline-start:2px solid #edf1f5!important}
html[data-theme="dark"] body.nxd-page #reviews .review-replies{border-inline-start-color:rgba(255,255,255,.10)!important}
html body.nxd-page #reviews .review-replies .review-card{padding:13px 0!important}

/* پرسش‌ها: سؤال و جواب با فاصله واقعی، بدون nested card */
html body.nxd-page #nxd-qa .nxd-q{
  padding:18px 2px!important;margin:0!important;background:transparent!important;border:0!important;border-bottom:1px solid #e9edf2!important;border-radius:0!important;box-shadow:none!important;
}
html[data-theme="dark"] body.nxd-page #nxd-qa .nxd-q{border-bottom-color:rgba(255,255,255,.09)!important}
html body.nxd-page #nxd-qa .nxd-q:last-child{border-bottom:0!important}
html body.nxd-page #nxd-qa .nxd-q-ask,
html body.nxd-page #nxd-qa .nxd-q-ans{display:flex!important;gap:10px!important;padding:0!important;background:transparent!important;border:0!important}
html body.nxd-page #nxd-qa .nxd-q-ans{margin-top:15px!important;padding-inline-start:28px!important}
html body.nxd-page #nxd-qa .nxd-q-ic{flex:0 0 30px!important;width:30px!important;height:30px!important;display:grid!important;place-items:center!important;background:#f0f2f5!important;color:#4b5563!important;border-radius:50%!important;font-weight:900!important}
html[data-theme="dark"] body.nxd-page #nxd-qa .nxd-q-ic{background:#172235!important;color:#b7c3d5!important}
html body.nxd-page #nxd-qa .nxd-q-ic--a{background:#effaf4!important;color:#168a50!important}
html[data-theme="dark"] body.nxd-page #nxd-qa .nxd-q-ic--a{background:#10251b!important;color:#67d391!important}
html body.nxd-page #nxd-qa .nxd-q-ask b,
html body.nxd-page #nxd-qa .nxd-q-ans b{font-size:12px!important;font-weight:900!important;color:inherit!important}
html body.nxd-page #nxd-qa .nxd-q-ask p,
html body.nxd-page #nxd-qa .nxd-q-ans p{margin:3px 0 0!important;font-size:13px!important;line-height:2!important;color:inherit!important}
html body.nxd-page #nxd-qa .nxd-q-ask em{display:inline-block!important;margin-top:5px!important;font-size:10px!important;color:#b7791f!important;font-style:normal!important}
html body.nxd-page #nxd-qa .nxd-qa-note{font-size:11px!important;color:#98a2b3!important;margin:0 0 10px!important}

/* دسکتاپ: فرم و لیست کنار هم؛ موبایل زیر هم می‌ماند */
@media (min-width:901px){
  html body.nxd-page #reviews .review-composer,
  html body.nxd-page #nxd-qa .nxd-qa-ask{
    max-width:none!important;
  }
  html body.nxd-page #reviews .review-composer form,
  html body.nxd-page #nxd-qa .nxd-qa-ask form{
    display:grid!important;
    grid-template-columns:minmax(220px,300px) minmax(0,1fr) auto!important;
    align-items:end!important;
    gap:10px!important;
  }
  html body.nxd-page #reviews .review-composer h3{margin-bottom:10px!important}
  html body.nxd-page #reviews .review-composer .rating-select{grid-column:1!important;margin:0!important}
  html body.nxd-page #reviews .review-composer textarea{grid-column:2!important;min-height:72px!important}
  html body.nxd-page #reviews .review-compose-footer{grid-column:3!important;margin:0!important;justify-content:flex-end!important}
  html body.nxd-page #nxd-qa .nxd-qa-ask form{grid-template-columns:minmax(0,1fr) auto!important}
  html body.nxd-page #nxd-qa .nxd-qa-ask textarea{grid-column:1!important;min-height:72px!important}
  html body.nxd-page #nxd-qa .nxd-qa-foot{grid-column:2!important;margin:0!important;display:flex!important;flex-direction:column!important;align-items:flex-end!important}
  html body.nxd-page #reviews .review-card,
  html body.nxd-page #nxd-qa .nxd-q{padding:20px 4px!important}
}

@media (max-width:900px){
  html body.nxd-page #reviews .review-card,
  html body.nxd-page #nxd-qa .nxd-q{padding:17px 0!important}
  html body.nxd-page #reviews .review-head time{margin-inline-start:auto!important}
}
