/* NEXORA v20 — readability + compact product cards */

/* ---------- LIGHT-SURFACE TEXT RESET ---------- */
.page-shell,
.n19-home,
.n19-shop,
.n19-simple-page,
.n19-contact,
.n19-dashboard,
.n19-story-grid,
.n19-payment-result,
.n19-product-section,
.n19-order-panel,
.n19-my-tickets,
.n19-manifesto,
.n19-centered,
.n19-empty-panel,
.n19-no-results,
.n19-category-board,
.n19-stage-copy,
.n19-shop,
.site-footer {
  color: var(--n19-ink) !important;
}

.n19-home p,
.n19-shop p,
.n19-simple-page p,
.n19-contact p,
.n19-dashboard p,
.n19-story-grid p,
.n19-stage-copy p,
.n19-shop-stat span,
.n19-section-header p,
.n19-category-tile small,
.n19-card-meta,
.n19-card-kicker,
.n19-catalog-head,
.n19-no-results p,
.n19-story-footer,
.n19-support-card,
.n19-ticket,
.n19-order-panel,
.n19-manifesto,
.n19-empty-panel p {
  color: #5f625f !important;
}

.n19-card-kicker span,
.n19-card-meta span,
.n19-card-kicker span:last-child {
  color: #5f625f !important;
}

/* Preserve intentional dark sections */
.n19-hero,
.n19-hero-copy,
.n19-hero-copy p,
.n19-hero-copy .eyebrow,
.n19-hero-copy .n19-text-link,
.n19-admin-shell,
.n19-admin-side,
.n19-admin-main .kpi {
  color: inherit;
}

/* ---------- PRODUCT CARDS: SMALLER + COMPLETE PRODUCT IMAGE ---------- */
.n19-product-grid,
.n19-shop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.n19-product-card {
  min-width: 0 !important;
}

.n19-card-media {
  height: 230px !important;
  aspect-ratio: 1 / 1 !important;
  background: #f4f2ec !important;
  display: grid !important;
  place-items: center !important;
  padding: 16px !important;
}

.n19-card-media::before {
  opacity: .55 !important;
}

.n19-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  mix-blend-mode: normal !important;
  filter: saturate(.94) contrast(1.02) !important;
  transform: none !important;
}

.n19-product-card:hover .n19-card-media img {
  transform: scale(1.025) !important;
}

.n19-card-info {
  min-height: 0 !important;
  padding: 13px 14px 13px !important;
}

.n19-card-info h3 {
  font-size: 16px !important;
  line-height: 1.4 !important;
  margin: 9px 0 5px !important;
}

.n19-card-meta {
  min-height: 18px !important;
}

.n19-card-buy {
  gap: 9px !important;
  padding-top: 12px !important;
}

.n19-card-buy .price strong {
  font-size: 15px !important;
}

.n19-card-actions .btn {
  min-height: 36px !important;
  padding: 7px 9px !important;
}

.n19-product-index {
  width: 26px !important;
  height: 26px !important;
}

.n19-card-media .product-save {
  width: 34px !important;
  height: 34px !important;
}

/* ---------- SHOP DENSITY ---------- */
.n19-shop-grid {
  align-items: start !important;
}

/* Prevent legacy white text from leaking into light catalog surfaces */
.n19-product-card,
.n19-product-card *:not(.btn-primary):not(.product-save),
.n19-shop-grid .product-card,
.n19-shop-grid .product-card *:not(.btn-primary):not(.product-save) {
  color: inherit;
}

.n19-product-card .n19-card-info,
.n19-product-card .n19-card-info h3,
.n19-product-card .n19-card-info .n19-card-kicker,
.n19-product-card .n19-card-info .n19-card-meta,
.n19-product-card .n19-card-buy,
.n19-product-card .n19-card-buy .price,
.n19-product-card .n19-card-buy .price strong {
  color: var(--n19-ink) !important;
}

.n19-product-card .n19-card-meta,
.n19-product-card .n19-card-kicker,
.n19-product-card .n19-card-buy .price del {
  color: #686a67 !important;
}

/* ---------- TABLET / MOBILE ---------- */
@media (max-width:1180px){
  .n19-product-grid,
  .n19-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width:760px){
  .n19-product-grid,
  .n19-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .n19-card-media { height: 205px !important; padding: 12px !important; }
}

@media (max-width:460px){
  .n19-product-grid,
  .n19-shop-grid { grid-template-columns: 1fr !important; }
  .n19-card-media { height: 225px !important; }
}
