/* ═══ PRODUCT PAGE CSS — Critical (applied before content renders) ═══ */
.ng-section { padding: 32px 0 0; }
.ng-section:last-of-type { padding-bottom: 60px; }

.ng-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.ng-section-sub { font-size: 14px; color: var(--muted); margin: 0 0 24px; }

.ng-main {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  padding-bottom: 32px;
}
@media (max-width: 1180px) {
  .ng-main { grid-template-columns: 340px 1fr; }
  .ng-buybox { grid-column: 1 / -1; position: static !important; }
}
@media (max-width: 820px) {
  .ng-main { grid-template-columns: 1fr; gap: 24px; }
  .ng-buybox { grid-column: auto; }
}

.ng-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.ng-main-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, rgba(124,107,255,.05) 0%, var(--surface) 60%);
  border: 1px solid rgba(124,107,255,.2);
  border-radius: 12px;
  padding: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* ⭐ CRITICAL FIX: lock image to fill container — prevents CLS */
.ng-main-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .15s ease;
  box-sizing: border-box;
}

.ng-main-img svg {
  display: block;
  width: 60%;
  height: auto;
  opacity: .6;
  aspect-ratio: 200 / 140;
}

.ng-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--grad);
  color: #07070B;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  z-index: 2;
}
.ng-badge--sale {
  background: linear-gradient(135deg, #FF6B9D, #FFA06B);
  color: #fff;
}

.ng-thumbs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.ng-thumb {
  width: 68px;
  height: 68px;
  padding: 6px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(124,107,255,.05) 0%, var(--surface) 60%);
  border: 2px solid rgba(124,107,255,.2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .18s, transform .18s;
  flex-shrink: 0;
  box-sizing: border-box;
}
.ng-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ng-thumb:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.ng-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124,107,255,.15);
}

.ng-info { min-width: 0; }
.ng-brand { font-size: 13px; margin-bottom: 8px; }
.ng-brand a { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.ng-brand a:hover { text-decoration: underline; }

.ng-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 10px;
}

.ng-rating-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.ng-rating { display: inline-flex; align-items: center; gap: 8px; }
.ng-rating .stars .star { width: 15px; height: 15px; }
.ng-rating-val { font-weight: 700; color: var(--text); font-size: 13px; }
.ng-rating-link { color: var(--accent-2); text-decoration: none; font-size: 13px; }
.ng-rating-link:hover { text-decoration: underline; }
.ng-rating-none { font-size: 13px; color: #9596AD; font-weight: 500; }
.ng-sku { font-size: 12px; color: #9596AD; font-family: monospace; }

.ng-hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }

.ng-quick-specs { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.ng-quick-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.ng-quick-row:last-child { border-bottom: 0; }
.ng-quick-label { color: var(--muted); font-weight: 500; }
.ng-quick-value { color: var(--text); font-weight: 600; word-break: break-word; }

.ng-desc { font-size: 14px; color: #C4C5D6; line-height: 1.7; margin: 0 0 18px; }

.ng-buybox {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ng-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  position: relative;
}

.ng-panel--price {
  background: linear-gradient(180deg, rgba(124,107,255,.05) 0%, var(--surface) 60%);
  border-color: rgba(124,107,255,.2);
}

.ng-price-was { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.ng-price-was-label { color: var(--muted); font-weight: 600; }
.ng-price-was-value { color: var(--muted); text-decoration: line-through; font-weight: 500; }

.ng-price-now {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-family: 'Sora', sans-serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
}
.ng-price-now .cvv-sym { font-size: 0.5em; font-weight: 700; opacity: .8; margin-right: 2px; margin-top: 6px; }
.ng-price-now .cvv-amt { letter-spacing: -.04em; }

.ng-price-save-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.ng-price-save-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 6px;
  background: linear-gradient(135deg, #FF6B9D, #FFA06B);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ng-price-save-amount { font-size: 12.5px; color: #4ADE80; font-weight: 700; }

.ng-status-list { display: flex; flex-direction: column; gap: 12px; }

.ng-status-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #C4C5D6;
}
.ng-status-row svg { flex-shrink: 0; margin-top: 1px; }
.ng-status-row strong { color: var(--text); font-weight: 700; }

.ng-status-row.is-in svg { color: #4ADE80; }
.ng-status-row.is-in strong { color: #4ADE80; }
.ng-status-row.is-out svg { color: #FF6B9D; }
.ng-status-row.is-out strong { color: #FF6B9D; }
.ng-status-row.is-ship svg { color: #22D3EE; }
.ng-status-row.is-warranty svg { color: #4ADE80; }
.ng-status-row.is-returns svg { color: #FFC24B; }
.ng-status-row.is-secure svg { color: #7C6BFF; }

.ng-panel--action {
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(124,107,255,.05) 0%, var(--surface) 60%);
  border-color: rgba(124,107,255,.2);
}

.ng-action-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-family: 'Sora', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}
.ng-action-head > svg { color: var(--accent-2); flex-shrink: 0; }

.ng-ready-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.3);
  color: #4ADE80;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.ng-ready-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74,222,128,.8);
  animation: ngPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.ng-buy-form { margin-bottom: 14px; }

.ng-qty-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
}
.ng-qty-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ng-qty {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  height: 40px;
}
.ng-qty button {
  width: 36px;
  height: 100%;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.ng-qty button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.ng-qty input {
  width: 44px;
  height: 100%;
  text-align: center;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  font-family: 'Sora', sans-serif;
}
.ng-qty input::-webkit-outer-spin-button,
.ng-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ng-cart-btn {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7C6BFF 0%, #22D3EE 100%);
  color: #07070B;
  border: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .3s cubic-bezier(.22,1,.36,1);
  font-family: 'Sora', sans-serif;
  box-shadow: 0 14px 32px -14px rgba(124,107,255,.95), 0 0 0 1px rgba(124,107,255,.2) inset;
  overflow: hidden;
}

.ng-cart-btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left .6s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.ng-cart-btn:hover:not(:disabled) .ng-cart-btn-glow { left: 120%; }

.ng-cart-btn-text { flex: 1; text-align: center; letter-spacing: .03em; }
.ng-cart-btn-arrow { opacity: .9; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.ng-cart-btn:hover:not(:disabled) .ng-cart-btn-arrow { transform: translateX(4px); }

.ng-cart-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -14px rgba(124,107,255,1), 0 0 0 1px rgba(124,107,255,.35) inset;
}
.ng-cart-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 8px 20px -10px rgba(124,107,255,.8);
}
.ng-cart-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: linear-gradient(135deg, #4A4B63, #2A2B3D);
  box-shadow: none;
  color: #888;
}
.ng-cart-btn:disabled .ng-cart-btn-glow,
.ng-cart-btn:disabled .ng-cart-btn-arrow { display: none; }

.ng-cart-btn.loading { pointer-events: none; opacity: .85; }
.ng-cart-btn.loading .ng-cart-btn-text::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid rgba(7,7,11,.25);
  border-top-color: #07070B;
  border-radius: 50%;
  animation: ngSpin .7s linear infinite;
  vertical-align: middle;
}
@keyframes ngSpin { to { transform: rotate(360deg); } }

.ng-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-bottom: 12px;
}

.ng-sec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #C4C5D6;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.ng-sec-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255,255,255,.05);
  transform: translateY(-1px);
}
.ng-sec-btn svg { flex-shrink: 0; }

.ng-sec-btn[data-wishlist].is-active {
  color: #FF6B9D;
  border-color: rgba(255,107,157,.5);
  background: rgba(255,107,157,.1);
}
.ng-sec-btn[data-wishlist].is-active svg { fill: #FF6B9D; stroke: #FF6B9D; }

.ng-sec-btn[data-compare].is-active {
  color: #22D3EE;
  border-color: rgba(34,211,238,.5);
  background: rgba(34,211,238,.1);
}
.ng-sec-btn[data-compare].is-active svg { stroke: #22D3EE; }

.ng-micro-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 10px;
  font-size: 11px;
  color: #9596AD;
  font-weight: 600;
  letter-spacing: .02em;
}
.ng-micro-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4A4B63;
  flex-shrink: 0;
}

@keyframes ngPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.3); }
}

.ng-specs-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.ng-spec-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.ng-spec-block-title {
  font-family: 'Sora', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 14px 20px;
  margin: 0;
  background: rgba(124,107,255,.06);
  border-bottom: 1px solid var(--border);
}
.ng-spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ng-spec-table tr { border-bottom: 1px solid var(--border); }
.ng-spec-table tr:last-child { border-bottom: 0; }
.ng-spec-table td { padding: 11px 20px; vertical-align: top; line-height: 1.5; }
.ng-spec-label { color: var(--muted); font-weight: 500; width: 42%; }
.ng-spec-value { color: var(--text); font-weight: 500; }

.ng-reviews-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  margin-top: 24px;
  align-items: start;
}
@media (max-width: 820px) {
  .ng-reviews-layout { grid-template-columns: 1fr; }
}

.ng-reviews-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
}
.ng-reviews-avg { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.ng-reviews-avg strong {
  font-family: 'Sora', sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text);
}
.ng-reviews-avg span { font-size: 13px; color: var(--muted); }
.ng-reviews-stars { display: flex; margin-bottom: 6px; }
.ng-reviews-stars .star { width: 16px; height: 16px; }
.ng-reviews-count {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.ng-reviews-breakdown { display: flex; flex-direction: column; gap: 7px; }
.ng-rv-bar {
  display: grid;
  grid-template-columns: 34px 1fr 30px;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}
.ng-rv-bar-label { font-weight: 600; font-size: 11.5px; }
.ng-rv-bar-track {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: hidden;
  display: block;
}
.ng-rv-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #FFC24B, #FFA06B);
  border-radius: 999px;
}
.ng-rv-bar-count { text-align: right; font-weight: 700; color: var(--text); font-size: 11.5px; }

.ng-reviews-list { display: flex; flex-direction: column; gap: 12px; }
.ng-review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.ng-review-head { display: flex; gap: 12px; margin-bottom: 12px; }
.ng-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grad);
  color: #07070B;
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.ng-review-info { flex: 1; min-width: 0; }
.ng-review-author { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.ng-review-author strong { font-size: 13.5px; font-weight: 700; color: var(--text); }
.ng-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(74,222,128,.12);
  color: #4ADE80;
  border: 1px solid rgba(74,222,128,.3);
}
.ng-review-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ng-review-meta .star { width: 13px; height: 13px; }
.ng-review-meta span { font-size: 11.5px; color: var(--muted); }
.ng-review-title { font-size: 14.5px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.ng-review-body { font-size: 13.5px; line-height: 1.7; color: #C4C5D6; margin: 0; }
.ng-empty { font-size: 14px; color: var(--muted); padding: 24px 0; }

.ng-faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.ng-faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.ng-faq[open] { border-color: rgba(124,107,255,.4); }
.ng-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.ng-faq-q::-webkit-details-marker { display: none; }
.ng-faq-q svg { flex-shrink: 0; color: var(--accent-2); transition: transform .25s; }
.ng-faq[open] .ng-faq-q svg { transform: rotate(180deg); }
.ng-faq-a { padding: 0 20px 18px; font-size: 13.5px; line-height: 1.7; color: #C4C5D6; }

.ng-compat-group { margin-top: 24px; }
.ng-compat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}
.ng-compat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  background: rgba(34,211,238,.12);
  border: 1px solid rgba(34,211,238,.3);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-2);
}

@media (prefers-reduced-motion: reduce) {
  .ng-ready-dot, .ng-cart-btn-glow { animation: none; }
  .ng-thumb, .ng-sec-btn, .ng-cart-btn, .ng-cart-btn-arrow { transition: none; }
}