/* NXSTUDIO single product — product style 2c grid gallery.
   Scoped to .nx-product-2c so the theme's Grover/Kadence rules can't leak in.
   Mirrors mockups/product-style2c-grid-gallery.html. Loaded inline by
   single-product.php. */

.nx-product-2c {
  --nx-2c-bg: #ffffff;
  --nx-2c-bg-subtle: #fafafa;
  --nx-2c-bg-muted: #f5f5f5;
  --nx-2c-ink: #000000;
  --nx-2c-ink-2: #171717;
  --nx-2c-ink-3: #333333;
  --nx-2c-text: #525252;
  --nx-2c-text-2: #737373;
  --nx-2c-text-3: #a3a3a3;
  --nx-2c-line: #e5e5e5;
  --nx-2c-line-2: #f0f0f0;
  --nx-2c-accent: #0070f3;
  --nx-2c-accent-dark: #0761d1;
  --nx-2c-accent-bg: #eff6ff;
  --nx-2c-success: #16a34a;
  --nx-2c-success-bg: #f0fdf4;
  --nx-2c-radius-sm: 6px;
  --nx-2c-radius-md: 10px;
  --nx-2c-radius-lg: 16px;
  --nx-2c-shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 4px rgba(0,0,0,.06);
  --nx-2c-shadow-md: 0 2px 8px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.08);
  --nx-2c-transition: .2s cubic-bezier(.4,0,.2,1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--nx-2c-ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* The legacy Grover `.single-product` styles cap the content area; undo them so
   the style-2c layout (1400px) renders exactly like the mockup. */
body.single-product .nx-product-2c .layout {
  max-width: 1400px;
  margin: 0 auto;
}
body.single-product #primary.content-area,
body.single-product .content-area {
  margin-top: 0 !important;
}
body.single-product .site-main,
body.single-product #main.site-main {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.single-product .entry-content-wrap {
  padding: 0 !important;
}

.nx-product-2c *,
.nx-product-2c *::before,
.nx-product-2c *::after {
  box-sizing: border-box;
}

.nx-product-2c a {
  color: inherit;
  text-decoration: none;
}

.nx-product-2c img {
  display: block;
  max-width: 100%;
}

/* Two-column body under the header. */
.nx-product-2c .layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 32px 72px;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 1024px) {
  .nx-product-2c .layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 32px 16px 48px;
  }
}

/* Sidebar */
.nx-product-2c .sidebar {
  position: sticky;
  top: 104px;
  min-width: 0;
}
@media (max-width: 1024px) {
  .nx-product-2c .sidebar {
    display: none;
  }
}

.nx-product-2c .side-block {
  margin-bottom: 28px;
}

.nx-product-2c .side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--nx-2c-text-3);
}
.nx-product-2c .side-label .mono {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  font-size: 10px;
}

.nx-product-2c .side-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nx-product-2c .side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--nx-2c-radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--nx-2c-text-2);
  transition: all var(--nx-2c-transition);
}
.nx-product-2c .side-nav a:hover {
  background: var(--nx-2c-bg-subtle);
  color: var(--nx-2c-ink);
}
.nx-product-2c .side-nav a .count {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 11px;
  color: var(--nx-2c-text-3);
}
.nx-product-2c .side-nav a.active {
  background: var(--nx-2c-accent-bg);
  color: var(--nx-2c-accent);
  font-weight: 600;
}

.nx-product-2c .specs-mini {
  display: flex;
  flex-direction: column;
}
.nx-product-2c .specs-mini .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--nx-2c-line-2);
  font-size: 12.5px;
}
.nx-product-2c .specs-mini .row:last-child {
  border-bottom: none;
}
.nx-product-2c .specs-mini .row .k {
  color: var(--nx-2c-text-3);
}
.nx-product-2c .specs-mini .row .v {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-weight: 500;
  color: var(--nx-2c-ink-3);
  text-align: right;
}

.nx-product-2c .purchase-box {
  border: 1px solid var(--nx-2c-line);
  border-radius: var(--nx-2c-radius-md);
  padding: 20px;
}
.nx-product-2c .purchase-box .pb-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.nx-product-2c .purchase-box .pb-price .amount {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--nx-2c-ink-2);
}
.nx-product-2c .purchase-box .pb-price .cents {
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-2c-text-3);
}
.nx-product-2c .purchase-box .pb-stock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 11px;
  color: var(--nx-2c-success);
}
.nx-product-2c .purchase-box .pb-stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nx-2c-success);
  display: inline-block;
}
.nx-product-2c .purchase-box .btn {
  width: 100%;
  min-height: 40px;
  margin-bottom: 8px;
}

/* Buttons — mockup primitives with theme leak overrides. */
.nx-product-2c .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 13.5px;
  font-weight: 600 !important;
  border-radius: var(--nx-2c-radius-sm);
  cursor: pointer;
  transition: all var(--nx-2c-transition);
  border: 1.5px solid transparent;
  line-height: 1.6;
}
.nx-product-2c .btn-primary {
  background: var(--nx-2c-accent);
  color: #ffffff !important;
  border-color: var(--nx-2c-accent);
}
.nx-product-2c .btn-primary:hover {
  background: var(--nx-2c-accent-dark);
  border-color: var(--nx-2c-accent-dark);
  box-shadow: 0 4px 12px rgba(0,112,243,.3);
  transform: none;
  color: #ffffff !important;
}
.nx-product-2c .btn-outline {
  background: var(--nx-2c-bg);
  color: var(--nx-2c-ink);
  border-color: var(--nx-2c-line);
}
.nx-product-2c .btn-outline:hover {
  background: var(--nx-2c-bg-muted);
  border-color: var(--nx-2c-text-3);
  transform: none;
}
.nx-product-2c .btn-lg {
  min-height: 44px;
  font-size: 14px;
  padding: 0 24px;
}
.nx-product-2c .btn-ghost {
  background: var(--nx-2c-bg);
  color: var(--nx-2c-ink);
  border-color: var(--nx-2c-line);
}
.nx-product-2c .btn-ghost:hover {
  background: var(--nx-2c-bg-subtle);
  border-color: var(--nx-2c-text-3);
  transform: none;
}

.nx-product-2c .purchase-box .pb-shipping {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--nx-2c-line-2);
  font-size: 12px;
  color: var(--nx-2c-text-2);
}
.nx-product-2c .purchase-box .pb-shipping svg {
  flex-shrink: 0;
  color: var(--nx-2c-text-3);
}

/* Main column */
.nx-product-2c .main {
  min-width: 0;
}

.nx-product-2c .crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--nx-2c-text-3);
  margin-bottom: 48px;
}
.nx-product-2c .crumb a {
  color: var(--nx-2c-text-2);
  transition: color var(--nx-2c-transition);
}
.nx-product-2c .crumb a:hover {
  color: var(--nx-2c-accent);
}
.nx-product-2c .crumb .sep {
  color: var(--nx-2c-line);
  font-size: 10px;
}



/* Grid gallery: true 3x2, six equal cells. Portrait 4:5 media use contain. */
.nx-product-2c .grid-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin-bottom: 48px;
}
.nx-product-2c .grid-gallery .g-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/5;
  border-radius: var(--nx-2c-radius-md);
  overflow: hidden;
  background: var(--nx-2c-bg-subtle);
  border: 1px solid var(--nx-2c-line);
  cursor: pointer;
  transition: border-color var(--nx-2c-transition), box-shadow var(--nx-2c-transition);
}
.nx-product-2c .grid-gallery .g-item:hover {
  border-color: var(--nx-2c-accent);
  box-shadow: 0 0 0 1px var(--nx-2c-accent) inset;
}
.nx-product-2c .grid-gallery .g-item img,
.nx-product-2c .grid-gallery .g-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 4/5;
}
.nx-product-2c .grid-gallery .g-item img {
  transition: transform var(--nx-2c-transition);
}
.nx-product-2c .grid-gallery .g-item:hover img {
  transform: scale(1.02);
}
.nx-product-2c .grid-gallery .g-item.g-video {
  cursor: default;
  background: #ffffff;
}
.nx-product-2c .grid-gallery .g-item.g-video:hover {
  border-color: var(--nx-2c-line);
  box-shadow: none;
}
.nx-product-2c .grid-gallery .g-item .g-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  pointer-events: none;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 10px;
  color: var(--nx-2c-text-2);
  background: rgba(255,255,255,.9);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--nx-2c-line);
}
.nx-product-2c .grid-gallery .g-item.hero-item {
  position: relative;
}
.nx-product-2c .grid-gallery .hero-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--nx-2c-success);
  background: var(--nx-2c-success-bg);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(22,163,74,.15);
}
@media (max-width: 640px) {
  .nx-product-2c .grid-gallery {
    grid-template-columns: 1fr;
  }
}

/* Close-up rail under the six-cell grid. */
.nx-product-2c .grid-media {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 900px) {
  .nx-product-2c .grid-media {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .nx-product-2c .grid-media {
    grid-template-columns: 1fr;
  }
}
.nx-product-2c .closeup-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--nx-2c-line) transparent;
}
.nx-product-2c .closeup-rail .g-item {
  flex: 0 0 132px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/5;
  border-radius: var(--nx-2c-radius-md);
  overflow: hidden;
  background: var(--nx-2c-bg-subtle);
  border: 1px solid var(--nx-2c-line);
  cursor: pointer;
  transition: border-color var(--nx-2c-transition), box-shadow var(--nx-2c-transition);
}
.nx-product-2c .closeup-rail .g-item:hover {
  border-color: var(--nx-2c-accent);
  box-shadow: 0 0 0 1px var(--nx-2c-accent) inset;
}
.nx-product-2c .closeup-rail .g-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--nx-2c-transition);
}
.nx-product-2c .closeup-rail .g-item:hover img {
  transform: scale(1.03);
}
.nx-product-2c .closeup-rail .g-item .g-label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  z-index: 2;
  pointer-events: none;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 9px;
  color: var(--nx-2c-text-2);
  background: rgba(255,255,255,.9);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--nx-2c-line);
}

/* Product header */
.nx-product-2c .product-header {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
}
.nx-product-2c .product-category {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 12px;
  color: var(--nx-2c-accent);
  margin-bottom: 12px;
  letter-spacing: .03em;
}
.nx-product-2c .product-header h1 {
  margin: 0 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--nx-2c-ink-2);
}
@media (max-width: 640px) {
  .nx-product-2c .product-header h1 {
    font-size: 28px;
  }
}
.nx-product-2c .product-subtitle {
  margin: 0 auto;
  font-size: 16px;
  color: var(--nx-2c-text);
  line-height: 1.6;
  max-width: 44ch;
}

/* Price row */
.nx-product-2c .price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--nx-2c-line);
}
.nx-product-2c .price-row .amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--nx-2c-ink-2);
}
.nx-product-2c .price-row .amount .cents {
  font-size: 16px;
  font-weight: 500;
  color: var(--nx-2c-text-3);
}
.nx-product-2c .price-row .badge {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--nx-2c-success);
  background: var(--nx-2c-success-bg);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(22,163,74,.15);
}

/* Body */
.nx-product-2c .product-body {
  max-width: 560px;
  margin: 0 auto;
}
.nx-product-2c .product-desc {
  font-size: 15px;
  color: var(--nx-2c-text);
  line-height: 1.7;
  margin-bottom: 28px;
  text-align: center;
}
.nx-product-2c .product-entity-anchor {
  margin: 10px 0 20px !important;
}

/* Cart bar */
.nx-product-2c .cart-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.nx-product-2c .cart-bar .qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--nx-2c-line);
  border-radius: var(--nx-2c-radius-sm);
  overflow: hidden;
}
.nx-product-2c .cart-bar .qty button {
  width: 38px;
  height: 44px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--nx-2c-bg);
  /* The mockup leaves qty steppers with the UA default button font (Arial). */
  font-family: Arial !important;
  font-size: 18px;
  font-weight: 500;
  color: var(--nx-2c-ink-3);
  cursor: pointer;
  border-radius: 0;
  line-height: 1;
  transition: background var(--nx-2c-transition);
}
.nx-product-2c .cart-bar .qty button:hover {
  background: var(--nx-2c-bg-subtle);
  transform: none;
}
.nx-product-2c .cart-bar .qty input {
  width: 48px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  border-left: 1.5px solid var(--nx-2c-line);
  border-right: 1.5px solid var(--nx-2c-line);
  border-radius: 0;
  text-align: center;
  /* The mockup leaves the qty input with the UA default input font (Arial). */
  font-family: Arial !important;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
  color: var(--nx-2c-ink-2);
  background: var(--nx-2c-bg);
}
.nx-product-2c .cart-bar .qty input::-webkit-outer-spin-button,
.nx-product-2c .cart-bar .qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
@media (max-width: 480px) {
  .nx-product-2c .cart-bar {
    flex-direction: column;
  }
  .nx-product-2c .cart-bar .qty {
    width: 100%;
  }
  .nx-product-2c .cart-bar .qty input {
    flex: 1;
  }
  .nx-product-2c .cart-bar .btn-lg {
    width: 100%;
  }
}

/* Details grid */
.nx-product-2c .details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 auto 48px;
  max-width: 560px;
}
@media (max-width: 480px) {
  .nx-product-2c .details-grid {
    grid-template-columns: 1fr;
  }
}
.nx-product-2c .detail-card {
  border: 1px solid var(--nx-2c-line);
  border-radius: var(--nx-2c-radius-md);
  padding: 18px;
  background: var(--nx-2c-bg);
  transition: box-shadow var(--nx-2c-transition);
}
.nx-product-2c .detail-card:hover {
  box-shadow: var(--nx-2c-shadow-md);
}
.nx-product-2c .detail-card .label {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 10px;
  color: var(--nx-2c-text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}
.nx-product-2c .detail-card .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-2c-ink-2);
}

/* Divider + sections */
.nx-product-2c .divider {
  height: 1px;
  background: var(--nx-2c-line);
  margin: 48px auto;
  max-width: 560px;
}
.nx-product-2c .section {
  max-width: 560px;
  margin: 0 auto 48px;
}
.nx-product-2c .section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.nx-product-2c .section-header .tag {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--nx-2c-text-3);
  background: var(--nx-2c-bg-subtle);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--nx-2c-line);
}
.nx-product-2c .section h2 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--nx-2c-ink-2);
  line-height: 1.6;
}
.nx-product-2c .section p,
.nx-product-2c .section ul {
  font-size: 14px;
  color: var(--nx-2c-text);
  line-height: 1.7;
}
.nx-product-2c .section p {
  margin: 0 0 16px;
}
.nx-product-2c .section p:last-child {
  margin-bottom: 0;
}
/* Deepened product copy runs several narrative h2 sections inside the About
   block. Those sit as direct children of .section, while the section's own
   heading lives inside .section-header — so the direct-child selector spaces
   the narrative headings without touching the numbered section headers. */
.nx-product-2c .section > h2 {
  font-size: 17px;
  margin: 32px 0 12px;
  line-height: 1.35;
}
.nx-product-2c .section h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--nx-2c-ink-2);
  line-height: 1.4;
  margin: 28px 0 10px;
}
.nx-product-2c .section > h2:first-child,
.nx-product-2c .section h3:first-child {
  margin-top: 0;
}
.nx-product-2c .section ul + p {
  margin-top: 16px;
}
.nx-product-2c .section ul {
  padding-left: 20px;
  margin: 0;
}
.nx-product-2c .section li {
  margin-bottom: 6px;
}

/* Spec table — reset Kadence table/typography leaks. */
.nx-product-2c table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--nx-2c-radius-sm);
  overflow: hidden;
  border: 1px solid var(--nx-2c-line);
  margin-bottom: 20px;
  background: var(--nx-2c-bg);
}
.nx-product-2c th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace !important;
  font-size: 11px;
  font-weight: 500;
  color: var(--nx-2c-text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--nx-2c-bg-subtle);
  border-bottom: 1px solid var(--nx-2c-line);
}
.nx-product-2c td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--nx-2c-line-2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 13px;
  color: var(--nx-2c-ink-3);
}
.nx-product-2c td:last-child {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  text-align: right;
  color: var(--nx-2c-text-2);
}
.nx-product-2c tbody tr:last-child td {
  border-bottom: none;
}
.nx-product-2c tbody tr:hover {
  background: var(--nx-2c-bg-subtle);
}

.nx-product-2c .shipping-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--nx-2c-bg-subtle);
  border-radius: var(--nx-2c-radius-sm);
  font-size: 13px;
  color: var(--nx-2c-text-2);
  border: 1px solid var(--nx-2c-line);
  margin: 0 auto 48px;
  max-width: 560px;
}
.nx-product-2c .shipping-note a {
  color: var(--nx-2c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nx-product-2c .shipping-note a:hover {
  color: var(--nx-2c-accent-dark);
}

/* Source line */
.nx-product-2c .source {
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--nx-2c-line);
  max-width: 560px;
}
.nx-product-2c .source p {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 12px;
  color: var(--nx-2c-text-3);
  margin: 0;
}

/* Similar products / related collection */
.nx-product-2c .collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 480px) {
  .nx-product-2c .collection-grid {
    grid-template-columns: 1fr;
  }
}
.nx-product-2c .collection-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--nx-2c-line);
  border-radius: var(--nx-2c-radius-md);
  overflow: hidden;
  transition: all var(--nx-2c-transition);
  text-align: left;
  background: var(--nx-2c-bg);
}
.nx-product-2c .collection-card:hover {
  border-color: var(--nx-2c-accent);
  box-shadow: 0 4px 16px rgba(0,112,243,.08);
  text-decoration: none;
}
.nx-product-2c .collection-thumb {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--nx-2c-bg-subtle);
}
.nx-product-2c .collection-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--nx-2c-transition);
}
.nx-product-2c .collection-card:hover .collection-thumb img {
  transform: scale(1.04);
}
.nx-product-2c .collection-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-2c-ink-2);
  padding: 10px 12px 2px;
}
.nx-product-2c .collection-price {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--nx-2c-text);
  padding: 0 12px 10px;
}
.nx-product-2c .collection-tag {
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--nx-2c-text-3);
  background: var(--nx-2c-bg-subtle);
  margin: 0 12px 12px;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Mobile bottom bar */
.nx-product-2c .mobile-bar {
  display: none;
}
@media (max-width: 1024px) {
  .nx-product-2c .mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(255,255,255,.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--nx-2c-line);
    padding: 12px 16px;
    gap: 10px;
    align-items: center;
  }
  .nx-product-2c .mobile-bar .mb-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--nx-2c-ink-2);
    margin-right: auto;
    white-space: nowrap;
  }
  .nx-product-2c .mobile-bar .mb-price .cents {
    font-size: 13px;
    color: var(--nx-2c-text-3);
  }
  .nx-product-2c .mobile-bar .btn {
    min-height: 40px;
    padding: 0 20px;
  }
}

/* Lightbox */
.nx-product-2c .lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.88);
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.nx-product-2c .lightbox.open {
  display: flex;
}
.nx-product-2c .lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.nx-product-2c .lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}
.nx-product-2c .lightbox .lb-close:hover {
  background: rgba(255,255,255,.2);
  transform: none;
}
.nx-product-2c .lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}
.nx-product-2c .lightbox .lb-nav:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-50%);
}
.nx-product-2c .lightbox .lb-prev {
  left: 24px;
}
.nx-product-2c .lightbox .lb-next {
  right: 24px;
}
.nx-product-2c .lightbox .lb-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin: 0;
}

/* Reset any remaining theme paragraph/list defaults inside the component. */
.nx-product-2c p {
  margin: 0;
}

/* The theme forces `body { font-weight: 500 !important }`; restore the
   mockup's normal text weight on paragraphs and list items. */
.nx-product-2c p,
.nx-product-2c li,
.nx-product-2c td {
  font-weight: 400;
}

/* ---------- Add-to-cart notice — Vercel-style glass toast (mockup
   cart-style4a .toast-card): icon + headline + inline "View cart" action.
   Replaces the theme's Grover gold message banner, which fights this page's
   Vercel palette and overlaps the icon with its text. */
.nx-product-2c .woocommerce-notices-wrapper .woocommerce-message {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 12px;
  padding: 14px 18px;
  margin: 0 0 20px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid var(--nx-2c-line);
  border-radius: var(--nx-2c-radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.08);
  list-style: none;
  line-height: 1.4;
}

.nx-product-2c .woocommerce-notices-wrapper .woocommerce-message::before {
  content: "";
  /* WC core pins this glyph absolutely at top 1em / left 1.5em, which drops
     it on top of the message text — keep it in flex flow instead. */
  position: static !important;
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--nx-2c-success-bg);
  flex-shrink: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
  background-color: var(--nx-2c-success);
  margin: 0;
}

.nx-product-2c .woocommerce-notices-wrapper .woocommerce-message,
.nx-product-2c .woocommerce-notices-wrapper .woocommerce-message li {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nx-2c-ink-2);
  line-height: 1.4;
  white-space: normal;
}

/* The message's own "View cart" link becomes the pill button. */
.nx-product-2c .woocommerce-notices-wrapper .woocommerce-message a,
.nx-product-2c .woocommerce-notices-wrapper .woocommerce-message .wc-forward,
.nx-product-2c .woocommerce-notices-wrapper .woocommerce-message .button {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff !important;
  background: var(--nx-2c-accent) !important;
  border: 1.5px solid var(--nx-2c-accent);
  border-radius: 100px;
  transition: background var(--nx-2c-transition), border-color var(--nx-2c-transition), box-shadow var(--nx-2c-transition);
  text-decoration: none;
  white-space: nowrap;
}

.nx-product-2c .woocommerce-notices-wrapper .woocommerce-message a:hover,
.nx-product-2c .woocommerce-notices-wrapper .woocommerce-message .button:hover {
  background: var(--nx-2c-accent-dark) !important;
  border-color: var(--nx-2c-accent-dark);
  box-shadow: 0 4px 12px rgba(0, 112, 243, 0.3);
}

/* Close button for auto-dismiss notice */
.nx-product-2c .woocommerce-notices-wrapper .nx-notice-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px !important;
  margin-left: 10px;
  padding: 0;
  border: none;
  background: transparent;
  color: #737373;
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: none !important;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.nx-product-2c .woocommerce-notices-wrapper .nx-notice-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #171717;
}

@media (max-width: 640px) {
  .nx-product-2c .woocommerce-notices-wrapper .woocommerce-message {
    padding: 10px 12px;
    flex-wrap: nowrap !important;
    gap: 8px;
    align-items: center;
    font-size: 12px;
  }
  .nx-product-2c .woocommerce-notices-wrapper .woocommerce-message::before {
    width: 18px;
    height: 18px;
    -webkit-mask-size: 11px;
    mask-size: 11px;
  }
  .nx-product-2c .woocommerce-notices-wrapper .woocommerce-message a,
  .nx-product-2c .woocommerce-notices-wrapper .woocommerce-message .wc-forward,
  .nx-product-2c .woocommerce-notices-wrapper .woocommerce-message .button {
    padding: 0 10px;
    min-height: 28px;
    font-size: 11.5px;
    white-space: nowrap;
    margin-left: auto;
  }
  .nx-product-2c .woocommerce-notices-wrapper .nx-notice-close {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px !important;
    font-size: 15px;
    margin-left: 4px;
  }
}
