:root {
  --nbc-next-cream: #fff7ef;
  --nbc-next-navy: #0b1834;
  --nbc-next-coral: #ff665c;
  --nbc-next-blue: #2869ed;
  --nbc-next-purple: #8b5cf6;
}

body .nbc-browse-mode {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 0 auto 24px;
  max-width: min(100% - 32px, 1280px);
  padding: 22px 24px;
  border: 1px solid #ded7ec;
  border-radius: 20px;
  background: linear-gradient(130deg, #fff 20%, #fff7ef 100%);
  box-shadow: 0 8px 0 #eae3f1;
  color: var(--nbc-next-navy);
}

body .nbc-browse-mode h2 {
  margin: 3px 0 6px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -.025em;
}

body .nbc-browse-mode p:last-child { max-width: 760px; color: #57627a; line-height: 1.55; }
body .nbc-nextgen-kicker { color: #6e42ce; font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
body .nbc-mode-options { display: grid; grid-template-columns: repeat(2, minmax(94px, 1fr)); gap: 6px; padding: 6px; border: 1px solid #d9d2e7; border-radius: 999px; background: #fff; }
body .nbc-mode-options button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--nbc-next-navy); font-weight: 850; cursor: pointer; }
body .nbc-mode-options button[aria-pressed="true"] { background: var(--nbc-next-purple); color: #fff; box-shadow: 0 4px 0 #5831b2; }
body .nbc-mode-options button:focus-visible { outline: 3px solid var(--nbc-next-blue); outline-offset: 3px; }

body .nbc-product-actions { grid-template-columns: minmax(0, 1fr) 44px 44px; }
body .nbc-compare-toggle {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #cfd5e5;
  border-radius: 10px;
  background: #fff;
  color: var(--nbc-next-navy);
  font-weight: 850;
  cursor: pointer;
}
body .nbc-compare-toggle svg, body .nbc-compare-summary svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
body .nbc-compare-toggle:hover { border-color: var(--nbc-next-blue); color: #174cb3; }
body .nbc-compare-toggle[aria-pressed="true"] { border-color: var(--nbc-next-purple); background: #f1eaff; color: #5d31b8; box-shadow: inset 0 0 0 1px #8b5cf6; }
body .nbc-compare-toggle.is-limit { animation: nbc-nextgen-nudge .25s ease 2 alternate; border-color: var(--nbc-next-coral); }
body .nbc-quick-compare { width: 100%; }

body .nbc-compare-tray {
  position: fixed;
  z-index: 46;
  left: 50%;
  bottom: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(calc(100% - 32px), 1180px);
  padding: 12px 14px;
  border: 1px solid #35415b;
  border-radius: 18px;
  background: var(--nbc-next-navy);
  color: #fff;
  box-shadow: 0 18px 55px #0b18345c;
  transform: translateX(-50%);
}
body .nbc-compare-summary { display: flex; align-items: center; gap: 10px; min-width: 155px; }
body .nbc-compare-summary p { display: grid; gap: 2px; margin: 0; }
body .nbc-compare-summary strong { font-size: 1rem; }
body .nbc-compare-summary span { color: #c8d1e6; font-size: .75rem; }
body .nbc-compare-tray ul { display: flex; gap: 8px; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
body .nbc-compare-tray li { display: grid; grid-template-columns: 42px minmax(80px, 1fr) 30px; gap: 8px; align-items: center; min-width: 180px; padding: 6px; border: 1px solid #ffffff24; border-radius: 12px; background: #ffffff0d; }
body .nbc-compare-tray li img { width: 42px; height: 42px; border-radius: 8px; background: #fff; object-fit: contain; }
body .nbc-compare-tray li span { overflow: hidden; font-size: .78rem; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; }
body .nbc-compare-tray li button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer; }
body .nbc-compare-tray-actions { display: flex; gap: 8px; }
body .nbc-compare-tray-actions button { min-height: 44px; padding: 0 17px; border-radius: 11px; font-weight: 900; cursor: pointer; }
body .nbc-compare-open { border: 1px solid #9b78fb; background: linear-gradient(135deg, var(--nbc-next-purple), #7047e4); color: #fff; }
body .nbc-compare-open:disabled { cursor: not-allowed; opacity: .55; }
body .nbc-compare-clear { border: 1px solid #7b879f; background: transparent; color: #fff; }
body .nbc-compare-tray :is(button,a):focus-visible { outline: 3px solid #ffe39a; outline-offset: 2px; }
body.nbc-compare-active .nbc-v3-help-button { bottom: 112px; }

body .nbc-compare-dialog {
  width: min(1240px, calc(100% - 28px));
  max-height: min(900px, 92dvh);
  padding: 0;
  border: 1px solid #d9d2e7;
  border-radius: 24px;
  background: var(--nbc-next-cream);
  color: var(--nbc-next-navy);
  box-shadow: 0 30px 100px #07112d7a;
}
body .nbc-compare-dialog::backdrop { background: #08142fc7; }
body .nbc-compare-dialog > header { position: sticky; z-index: 2; top: 0; display: flex; justify-content: space-between; gap: 18px; padding: 24px 28px; border-bottom: 1px solid #ded7ec; background: #fffaf4f2; backdrop-filter: blur(10px); }
body .nbc-compare-dialog h2 { margin: 3px 0 6px; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 950; letter-spacing: -.035em; line-height: 1; }
body .nbc-compare-dialog header p:last-child { color: #5c6479; }
body .nbc-compare-dialog header strong { color: #d9433c; }
body .nbc-compare-close { flex: 0 0 auto; width: 46px; height: 46px; border: 1px solid #cfd5e5; border-radius: 50%; background: #fff; color: var(--nbc-next-navy); font-size: 1.7rem; line-height: 1; cursor: pointer; }
body .nbc-compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
body .nbc-compare-dialog[data-count="2"] .nbc-compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .nbc-compare-product { display: grid; align-content: start; gap: 11px; padding: 24px; border-right: 1px solid #ded7ec; }
body .nbc-compare-product:last-child { border-right: 0; }
body .nbc-compare-image { aspect-ratio: 4 / 3; padding: 14px; border-radius: 16px; background: #fff; overflow: hidden; }
body .nbc-compare-image img { width: 100%; height: 100%; object-fit: contain; }
body .nbc-compare-category { color: #7042cf; font-size: .72rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
body .nbc-compare-product h3 { min-height: 2.5em; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 950; line-height: 1.2; }
body .nbc-compare-price { font-size: 1.35rem; font-weight: 950; }
body .nbc-compare-price span { font-size: .75rem; font-weight: 750; }
body .nbc-compare-product dl { display: grid; gap: 10px; }
body .nbc-compare-product dl div { min-height: 112px; padding: 13px; border-radius: 13px; background: #fff; }
body .nbc-compare-product dl div:last-child { background: #f0ebff; }
body .nbc-compare-product dt { margin-bottom: 5px; font-size: .78rem; font-weight: 950; }
body .nbc-compare-product dd { margin: 0; color: #4f5870; font-size: .88rem; line-height: 1.45; }
body .nbc-compare-product-actions { display: grid; gap: 8px; margin-top: auto; }
body .nbc-compare-product-actions button { min-height: 44px; border: 1px solid #cfd5e5; border-radius: 11px; background: #fff; color: var(--nbc-next-navy); font-weight: 900; cursor: pointer; }
body .nbc-compare-product-actions button:last-child { border-color: var(--nbc-next-coral); background: var(--nbc-next-coral); color: #1c1630; box-shadow: 0 4px 0 #c8443d; }
body .nbc-compare-dialog > footer { padding: 16px 28px; border-top: 1px solid #ded7ec; background: #eee7ff; color: var(--nbc-next-navy); }
body .nbc-compare-dialog > footer p { margin: 0; }
body .nbc-compare-dialog :is(button,a):focus-visible { outline: 3px solid var(--nbc-next-blue); outline-offset: 3px; }

body[data-nbc-browse-mode="focus"] [data-nbc-stimulation] { display: none !important; }
body[data-nbc-browse-mode="focus"] .catalog-product-card { box-shadow: 0 3px 0 #e3e7ef; transform: none !important; }
body[data-nbc-browse-mode="focus"] :is(.catalog-product-card,.product-image,.nbc-compare-toggle) { animation: none !important; transition-duration: .001ms !important; }

@keyframes nbc-nextgen-nudge { to { transform: translateX(4px); } }

@media (max-width: 900px) {
  body .nbc-browse-mode { grid-template-columns: 1fr; }
  body .nbc-mode-options { width: 100%; }
  body .nbc-compare-tray { bottom: calc(74px + env(safe-area-inset-bottom)); grid-template-columns: 1fr auto; gap: 10px; }
  body .nbc-compare-summary { display: none; }
  body .nbc-compare-tray ul { grid-column: 1 / -1; }
  body .nbc-compare-tray-actions { justify-content: flex-end; }
  body .nbc-compare-grid { grid-template-columns: 1fr; }
  body .nbc-compare-dialog[data-count="2"] .nbc-compare-grid { grid-template-columns: 1fr; }
  body .nbc-compare-product { grid-template-columns: 112px minmax(0, 1fr); border-right: 0; border-bottom: 1px solid #ded7ec; }
  body .nbc-compare-image { grid-row: 1 / span 5; aspect-ratio: 1; }
  body .nbc-compare-product dl, body .nbc-compare-product-actions { grid-column: 1 / -1; }
  body .nbc-compare-product dl div { min-height: 0; }
}

@media (max-width: 560px) {
  body .nbc-browse-mode { max-width: calc(100% - 24px); padding: 18px; border-radius: 16px; }
  body .nbc-mode-options button { padding: 0 12px; }
  body .nbc-product-actions { grid-template-columns: minmax(0, 1fr) 42px 42px; }
  body .nbc-compare-tray { width: calc(100% - 16px); padding: 9px; border-radius: 15px; }
  body .nbc-compare-tray li { min-width: 150px; grid-template-columns: 36px minmax(68px, 1fr) 28px; }
  body .nbc-compare-tray li img { width: 36px; height: 36px; }
  body .nbc-compare-tray-actions button { padding: 0 12px; }
  body .nbc-compare-dialog { width: calc(100% - 16px); border-radius: 18px; }
  body .nbc-compare-dialog > header { padding: 18px; }
  body .nbc-compare-product { grid-template-columns: 88px minmax(0, 1fr); padding: 18px; }
  body .nbc-compare-dialog > footer { padding: 14px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body .nbc-compare-toggle, body .nbc-compare-tray, body .nbc-compare-dialog, body .nbc-mode-options button { animation: none !important; transition: none !important; }
}

@media (forced-colors: active) {
  body .nbc-browse-mode, body .nbc-compare-tray, body .nbc-compare-dialog, body .nbc-compare-product { border: 1px solid CanvasText; }
  body .nbc-mode-options button[aria-pressed="true"], body .nbc-compare-toggle[aria-pressed="true"] { outline: 3px solid Highlight; }
}
