/* Store V2 presentation. Product data, navigation, checkout, and ads keep their existing owners. */
body .nbp-bridge.nbc-shelf-entry {
  width: min(calc(100% - 32px), 1200px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 24px;
  margin-block: 26px 8px;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid #eaded1;
  border-radius: 16px;
  background: #fff7ef;
  box-shadow: 0 4px 0 #eee3d8;
  color: #0b1834;
}
body .nbc-shelf-entry > div:first-child strong { font-size: clamp(22px, 2vw, 29px); line-height: 1.15; letter-spacing: -.025em; }
body .nbc-shelf-entry > div:first-child p { margin-top: 5px; color: #526078; font-size: 15px; line-height: 1.5; }
body .nbp-bridge.nbc-shelf-entry > a { min-height: 44px; padding: 10px 0; border: 0; background: none; color: #2869ed; text-decoration: underline; text-underline-offset: 4px; box-shadow: none; }
body .nbc-shelf-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
body .nbp-bridge.nbc-shelf-entry .nbc-shelf-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 86px;
  padding: 9px;
  border: 1px solid #d9dceb;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: #0b1834;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}
body .nbc-shelf-grid a:nth-child(3n+2) { background: #f3f0ff; }
body .nbc-shelf-grid a:nth-child(3n) { background: #eff6ff; }
body .nbc-shelf-grid img { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 8px; background: #f7f3ef; object-fit: contain; }
body .nbc-shelf-grid span { display: grid; min-width: 0; gap: 3px; }
body .nbc-shelf-grid strong { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
body .nbc-shelf-grid small { color: #526078; font-size: 12px; line-height: 1.2; }
body .nbc-shelf-shortcuts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 10px; border-top: 1px solid #e8ddce; }
body .nbp-bridge.nbc-shelf-entry .nbc-shelf-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 0; border: 0; background: none; box-shadow: none; color: #263d75; font-size: 13px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
body .nbp-bridge.nbc-shelf-entry :is(a,button):focus-visible { outline: 3px solid #2869ed; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  body .nbp-bridge.nbc-shelf-entry .nbc-shelf-grid a:hover { border-color: #2869ed; transform: translateY(-2px); }
}

body[data-nb-route="/"] :is(#category-discovery,#collections) { background: #fff7ef; }
body[data-nb-route="/"] .category-discovery-card { background: #fff; border: 1px solid #e4e5ee; box-shadow: 0 3px 0 #dfe3ed; }
body[data-nb-route="/"] #collections > .grid > a { border: 1px solid #e1e4ef; box-shadow: 0 3px 0 #dfe3ed; }
body .catalog-product-card { border: 1px solid #e0e4ef; border-radius: 14px; box-shadow: 0 3px 0 #e3e7ef; }
body .catalog-product-card:hover { border-color: #b9c7e9; box-shadow: 0 5px 0 #d6dff1; transform: translateY(-2px); }
body .catalog-product-card .product-card-title { min-height: 44px; font-size: 16px; line-height: 1.3; }
body .catalog-product-card .product-category-label { color: #5d43a1; font-size: 13px; }
body .catalog-product-card .catalog-add-button { min-height: 44px; }
body .nbc-product-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .nbc-product-actions .catalog-add-button { grid-column: 1 / -1; width: 100%; min-height: 48px; white-space: normal; }
body .nbc-product-actions :is(.nbc-save-button,.catalog-pause-button) { width: 100%; }
body .nbc-save-button[aria-pressed="true"] { border-color: #a82f5b; background: #fff0f3; color: #922342; }
body .nbc-saved-card { border-color: #e0e4ef; border-radius: 14px; box-shadow: 0 3px 0 #e3e7ef; }
body .nbc-saved-image { object-fit: contain; padding: 12px; background: #f3f0ff; }
body .nbc-saved-actions .button-primary { min-height: 48px; }

body [aria-labelledby="quick-view-title"] { max-width: 880px; border-radius: 16px; }
body [aria-labelledby="quick-view-title"] .product-image-frame { align-self: start; min-height: 0; max-height: 460px; aspect-ratio: 1; }
body [aria-labelledby="quick-view-title"] .product-image { max-height: 410px; object-fit: contain; }
body .nbc-editorial-note { margin: 0; padding: 12px 15px; border-radius: 10px; background: #fff7ef; color: #0b1834; font-size: 15px; font-weight: 650; line-height: 1.5; }
body .nbc-related-finds { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid #d9dceb; }
body .nbc-related-finds h3 { margin: 0; color: #0b1834; font-size: 17px; font-weight: 850; }
body .nbc-related-finds > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body .nbc-related-finds button { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 64px; padding: 7px; border: 1px solid #d9dceb; border-radius: 10px; background: #fff; color: #0b1834; cursor: pointer; text-align: left; }
body .nbc-related-finds button:hover { border-color: #2869ed; }
body .nbc-related-finds button:focus-visible { outline: 3px solid #2869ed; outline-offset: 2px; }
body .nbc-related-finds img { flex: 0 0 42px; width: 42px; height: 42px; object-fit: contain; }
body .nbc-related-finds span { min-width: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 750; line-height: 1.25; }

@media (min-width: 1280px) {
  body .catalog-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body #featured-picks .catalog-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) and (max-width: 1279px) { body .catalog-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) and (max-width: 1023px) {
  body .catalog-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .nbc-shelf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body .nbp-bridge.nbc-shelf-entry { grid-template-columns: minmax(0, 1fr); }
  body .nbp-bridge.nbc-shelf-entry > a { justify-self: start; }
  body .nbc-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .nbc-shelf-grid img { flex-basis: 48px; width: 48px; height: 48px; }
  body .nbc-related-finds > div { grid-template-columns: 1fr; }
  body [aria-labelledby="quick-view-title"] .product-image { max-height: 240px; }
  body [aria-labelledby="quick-view-title"] > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: start; }
  body [aria-labelledby="quick-view-title"] > div:first-child > div { min-width: 0; }
  body [aria-labelledby="quick-view-title"] > div:first-child .nbx-personality { grid-column: 1 / -1; margin: 0; }
  body [aria-labelledby="quick-view-title"] .product-image-frame { max-height: 260px; }
}
@media (min-width: 375px) and (max-width: 767px) { body .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 374px) {
  body .catalog-product-grid { grid-template-columns: minmax(0, 1fr); }
  body .nbc-shelf-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body .nbp-bridge.nbc-shelf-entry .nbc-shelf-grid a,
  body .catalog-product-card { transition: none !important; transform: none !important; }
}

/* Unboxing reads a completed local order; the parcel is only a visual reveal. */
body .nbc-unbox-details { scroll-margin-top: calc(138px + env(safe-area-inset-top)); }
body .nbc-unbox-details > summary { cursor: pointer; }
body .nbc-unbox-details > summary:focus-visible { outline: 3px solid #2869ed; outline-offset: 3px; }
body .nbc-unbox { display: grid; justify-items: start; gap: 12px; width: 100%; max-width: 760px; min-width: 0; margin: 12px auto 0; padding: clamp(16px, 3vw, 24px); border: 1px solid #ddd7ec; border-radius: 14px; background: #fff7ef; color: #0b1834; }
body .nbc-unbox h4 { margin: 0; font-size: clamp(21px, 2.5vw, 28px); line-height: 1.2; }
body .nbc-unbox p { margin: 0; }
body .nbc-parcel { position: relative; width: 150px; height: 110px; margin: 8px auto 4px; justify-self: center; perspective: 500px; }
body .nbc-parcel-lid { position: absolute; inset: 12px 0 auto; z-index: 2; height: 29px; border: 2px solid #5945b9; border-radius: 8px; background: #8b5cf6; transform-origin: 15% 100%; }
body .nbc-parcel-box { position: absolute; inset: 33px 9px 4px; display: grid; place-items: center; border: 2px solid #d76f5b; border-radius: 4px 4px 10px 10px; background: #ffb193; color: #0b1834; font-weight: 900; letter-spacing: -.03em; }
body .nbc-unbox .nbv2-actions { margin-top: 4px; }
body .nbc-unbox [hidden] { display: none !important; }
body .nbc-unbox-disclosure { font-size: 18px; font-weight: 850; }
body .nbc-unbox-items { display: grid; gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
body .nbc-unbox-items li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px; border: 1px solid #d9dceb; border-radius: 10px; background: #fff; }
body .nbc-unbox-items img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; }
body .nbc-unbox-items span { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
body .nbc-unbox-items small { color: #526078; }
body .nbc-unbox .nbv2-order-zero { color: #08745e; font-size: 19px; font-weight: 850; }
body .nbc-unbox :is(button,a):focus-visible { outline: 3px solid #2869ed; outline-offset: 3px; }
body .nbc-checkout-links { margin-top: 12px; font-size: 14px; }
body .nbc-checkout-links a { color: #2869ed; font-weight: 800; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  body .nbc-parcel-lid, body .nbc-parcel-box { transition: transform 420ms cubic-bezier(.22,1,.36,1), opacity 420ms ease; }
  body .nbc-unbox.is-open .nbc-parcel-lid { transform: translateY(-23px) rotate(-13deg); opacity: .35; }
  body .nbc-unbox.is-open .nbc-parcel-box { transform: translateY(6px); }
  body .nbc-unbox.is-open:not(.is-skipped) [data-nbc-unbox-items] { animation: nbc-unbox-reveal 340ms ease-out both; }
  body .nbv2-order-receipt .nbv2-order-timeline li { animation: nbc-unbox-reveal 260ms ease-out both; }
  body .nbv2-order-receipt .nbv2-order-timeline li:nth-child(2) { animation-delay: 60ms; }
  body .nbv2-order-receipt .nbv2-order-timeline li:nth-child(3) { animation-delay: 120ms; }
  body .nbv2-order-receipt .nbv2-order-timeline li:nth-child(4) { animation-delay: 180ms; }
  body .nbv2-order-receipt .nbv2-order-timeline li:nth-child(5) { animation-delay: 240ms; }
  @keyframes nbc-unbox-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  body .nbc-parcel-lid, body .nbc-parcel-box, body .nbc-unbox [data-nbc-unbox-items], body .nbv2-order-timeline li { animation: none !important; transition: none !important; transform: none !important; }
}
