/* NEXUS v769 — product page precision pass: sale strip, sticky stack, specs table, trust UX. */
html body.nxd-page{
  --nx769-blue:#1677f5;
  --nx769-blue2:#38a8ff;
  --nx769-red:#ef334f;
  --nx769-red2:#c91f3d;
  --nx769-sale-bg:#fff1f4;
  --nx769-sale-line:#ef334f;
}

/* Sale strip: visually follows the product gallery, like a commerce promo module. */
html body.nxd-page .nxd-gallery{display:flex!important;flex-direction:column!important;min-width:0!important}
html body.nxd-page .nxd-gallery .nxd-g-top{order:1!important}
html body.nxd-page .nxd-gallery .nx767-sale-strip{order:2!important}
html body.nxd-page .nxd-gallery .nx767-sale-strip{
  width:100%!important;
  min-height:64px!important;
  margin:10px 0 0!important;
  padding:10px 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  border:0!important;
  border-top:3px solid var(--nx769-sale-line)!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#fff5f7 0%,var(--nx769-sale-bg) 100%)!important;
  box-shadow:0 8px 24px rgba(239,51,79,.08)!important;
  color:var(--nx769-red2)!important;
}
html body.nxd-page .nx767-sale-main{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
html body.nxd-page .nx767-sale-main:before{content:'%';width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:var(--nx769-red)!important;color:#fff!important;font-size:12px;font-weight:950;flex:0 0 30px}
html body.nxd-page .nx767-sale-kicker{font-size:12px!important;font-weight:800!important;white-space:nowrap!important;color:#8f3040!important}
html body.nxd-page .nx767-sale-main strong{font-size:16px!important;font-weight:950!important;white-space:nowrap!important;color:var(--nx769-red2)!important}
html body.nxd-page .nx767-sale-meta{display:flex!important;align-items:center!important;justify-content:flex-end!important;min-width:0!important}
html body.nxd-page .nx767-sale-cut,html body.nxd-page .nx767-sale-stock{display:flex!important;align-items:center!important;gap:7px!important;font-size:11.5px!important;white-space:nowrap!important;color:#7d2939!important}
html body.nxd-page .nx767-sale-cut:before{content:'◷';font-size:16px!important;font-weight:800;color:var(--nx769-red)!important}
html body.nxd-page .nx767-sale-cut b{font-size:12.5px!important;font-variant-numeric:tabular-nums!important;color:var(--nx769-red2)!important}
html[data-theme="dark"] body.nxd-page .nxd-gallery .nx767-sale-strip{background:linear-gradient(180deg,rgba(239,51,79,.15),rgba(239,51,79,.08))!important;border-color:rgba(239,51,79,.25)!important;color:#ffc1cb!important}
html[data-theme="dark"] body.nxd-page .nx767-sale-kicker,html[data-theme="dark"] body.nxd-page .nx767-sale-cut,html[data-theme="dark"] body.nxd-page .nx767-sale-stock{color:#ffc1cb!important}
html[data-theme="dark"] body.nxd-page .nx767-sale-main strong,html[data-theme="dark"] body.nxd-page .nx767-sale-cut b{color:#ff9bad!important}

/* Sticky mobile product title: measured stack, stable during resize/orientation changes. */
@media(max-width:900px){
  html body.nxd-page .nx765-mobile-product{
    top:var(--nx769-header-h,var(--nx-top,56px))!important;
    min-height:58px!important;
    padding:7px 12px!important;
    border-bottom:1px solid var(--nxd-line)!important;
    background:rgba(255,255,255,.96)!important;
    backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
    box-shadow:0 5px 20px rgba(15,23,42,.08)!important;
  }
  html[data-theme="dark"] body.nxd-page .nx765-mobile-product{background:rgba(15,27,45,.94)!important}
  html body.nxd-page .nxd-tabs{
    top:calc(var(--nx769-header-h,var(--nx-top,56px)) + 58px)!important;
    margin-top:0!important;
    min-height:50px!important;
    border-bottom:1px solid var(--nxd-line)!important;
    background:rgba(255,255,255,.96)!important;
    backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
    box-shadow:0 6px 20px rgba(15,23,42,.07)!important;
  }
  html[data-theme="dark"] body.nxd-page .nxd-tabs{background:rgba(15,27,45,.94)!important}
  html body.nxd-page .nxd-tabs a{min-height:50px!important;padding:14px 15px!important}
  html body.nxd-page .nxd-sec{scroll-margin-top:calc(var(--nx769-header-h,var(--nx-top,56px)) + 112px)!important}
}

/* Specs: actual table-like commerce presentation, grouped and readable. */
html body.nxd-page .nx769-spec-table-wrap{display:grid!important;gap:18px!important}
html body.nxd-page .nx769-spec-group{overflow:hidden!important;border:1px solid var(--nxd-line)!important;border-radius:16px!important;background:var(--nxd-card)!important;box-shadow:0 6px 22px rgba(15,23,42,.035)!important}
html body.nxd-page .nx769-spec-group h3{margin:0!important;padding:13px 16px!important;font-size:14px!important;font-weight:900!important;color:var(--nxd-text)!important;background:linear-gradient(90deg,var(--nxd-card2),transparent)!important;border-bottom:1px solid var(--nxd-line)!important}
html body.nxd-page .nx769-spec-table{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important}
html body.nxd-page .nx769-spec-table tr:nth-child(even){background:rgba(100,150,220,.045)!important}
html body.nxd-page .nx769-spec-table th,html body.nxd-page .nx769-spec-table td{padding:12px 15px!important;text-align:right!important;vertical-align:middle!important;border-bottom:1px solid var(--nxd-line)!important;line-height:1.85!important;font-size:13px!important;overflow-wrap:anywhere!important}
html body.nxd-page .nx769-spec-table tr:last-child th,html body.nxd-page .nx769-spec-table tr:last-child td{border-bottom:0!important}
html body.nxd-page .nx769-spec-table th{width:35%!important;color:var(--nxd-mut)!important;font-weight:650!important;background:rgba(100,150,220,.025)!important}
html body.nxd-page .nx769-spec-table td{color:var(--nxd-text)!important;font-weight:750!important}
html body.nxd-page .nx769-spec-table .nx769-status{color:var(--nxd-acc)!important}
@media(max-width:600px){
  html body.nxd-page .nx769-spec-table th,html body.nxd-page .nx769-spec-table td{padding:10px 11px!important;font-size:12px!important}
  html body.nxd-page .nx769-spec-table th{width:40%!important}
  html body.nxd-page .nx769-spec-group h3{padding:11px 12px!important;font-size:13px!important}
}

/* Feature tiles: hard cap at eight, with stronger hierarchy. */
html body.nxd-page #nxd-features .nxd-feats{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:760px!important}
html body.nxd-page #nxd-features .nxd-feat{min-height:74px!important;border:1px solid var(--nxd-line)!important;background:linear-gradient(145deg,var(--nxd-card2),var(--nxd-card))!important;border-radius:14px!important}
@media(max-width:430px){html body.nxd-page #nxd-features .nxd-feats{grid-template-columns:1fr!important}}

/* Other models: exactly five cards down, then the next column. */
html body.nxd-page .nxd-vars{grid-template-rows:repeat(5,minmax(0,1fr))!important;grid-auto-flow:column!important;grid-auto-columns:minmax(245px,1fr)!important;align-items:stretch!important}
html body.nxd-page .nxd-var{min-height:64px!important;border-radius:13px!important;background:var(--nxd-card)!important}
html body.nxd-page .nxd-var.is-active{box-shadow:0 0 0 2px color-mix(in srgb,var(--nxd-acc) 20%,transparent),0 8px 20px rgba(22,119,245,.07)!important}

/* Trust cards: calmer, more premium, and easy to scan. */
html body.nxd-page .nx752-trust{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-top:14px!important}
html body.nxd-page .nx752-t{min-width:0!important;padding:10px!important;border:1px solid var(--nxd-line)!important;border-radius:13px!important;background:var(--nxd-card2)!important}
html body.nxd-page .nx752-t b{font-size:11.5px!important}
html body.nxd-page .nx752-t small{font-size:10.5px!important;line-height:1.65!important}
@media(max-width:600px){html body.nxd-page .nx752-trust{grid-template-columns:1fr!important}.nx752-t{display:flex;align-items:center;gap:9px}}

/* Purchase box: stronger hierarchy without increasing JS or image weight. */
html body.nxd-page .nxd-buy{box-shadow:0 10px 32px rgba(15,23,42,.045)!important}
html body.nxd-page .nxd-buy .nxd-cta{min-height:48px!important;border-radius:13px!important;font-weight:900!important}
html body.nxd-page .nx754-save{border-radius:11px!important}
html body.nxd-page .nx754-cut{border-radius:11px!important}

/* Keep reduced-motion users comfortable. */
@media(prefers-reduced-motion:reduce){html body.nxd-page .nx767-sale-strip,html body.nxd-page .nx765-mobile-product,html body.nxd-page .nxd-tabs{transition:none!important}}
