/* =========================================================
   NEZNI PRODUCT MANAGER — GLOBAL PRODUCT GRID v3.1.1
   Twenty Twenty-Five + Nezni Child

   Columns:
   Desktop: 3 | Tablet: 2 | Mobile: 1 | Small mobile: 1
========================================================= */

.nz-pm-product-grid {
  --nz-pm-primary: var(--nz-color-primary, #009ee3);
  --nz-pm-primary-dark: #007fb8;
  --nz-pm-ink: #17212d;
  --nz-pm-text: #626b75;
  --nz-pm-muted: #7a7f87;
  --nz-pm-surface: #ffffff;
  --nz-pm-media-surface: #f3f1ee;
  --nz-pm-border: rgba(15, 23, 42, .10);
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px;
  color: var(--nz-pm-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nz-pm-product-grid,
.nz-pm-product-grid *,
.nz-pm-product-grid *::before,
.nz-pm-product-grid *::after {
  box-sizing: border-box;
}

.nz-pm-product-grid__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.nz-pm-product-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  color: inherit;
  background: var(--nz-pm-surface);
  border: 1px solid var(--nz-pm-border);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .055);
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nz-pm-product-card__media {
  width: 100%;
  aspect-ratio: 1600 / 1400;
  overflow: hidden;
  position: relative;
  background: var(--nz-pm-media-surface);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.nz-pm-product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 320ms ease;
}

.nz-pm-product-card__body {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.nz-pm-product-card__code {
  margin: 0 0 9px;
  color: var(--nz-pm-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .085em;
  line-height: 1;
  text-transform: uppercase;
}

.nz-pm-product-card__title {
  display: -webkit-box;
  min-height: calc(1.27em * 2);
  margin: 0;
  overflow: hidden;
  color: var(--nz-pm-ink);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -.022em;
  line-height: 1.27;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nz-pm-product-card__description {
  display: -webkit-box;
  min-height: calc(1.58em * 3);
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--nz-pm-text);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.nz-pm-product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  margin-top: auto;
  padding-top: 20px;
  color: var(--nz-pm-primary-dark);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.2;
}

.nz-pm-product-card__link span {
  display: inline-block;
  font-size: 16px;
  transition: transform 180ms ease;
}

.nz-pm-product-card:focus { outline: none !important; }
.nz-pm-product-card:focus:not(:focus-visible) {
  outline: none !important;
  border-color: var(--nz-pm-border) !important;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .055) !important;
}
.nz-pm-product-card:focus-visible {
  outline: 2px solid var(--nz-pm-primary) !important;
  outline-offset: 4px;
}
.nz-pm-product-card:active { transform: translateY(1px) scale(.997); }

@media (hover: hover) and (pointer: fine) {
  .nz-pm-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 158, 227, .30);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .11);
  }
  .nz-pm-product-card:hover .nz-pm-product-card__media img { transform: scale(1.02); }
  .nz-pm-product-card:hover .nz-pm-product-card__link span { transform: translateX(3px); }
}

/*
 * DESKTOP + TABLET TYPOGRAPHY RHYTHM
 * Remove the artificial reserved title/description heights used by v3.1.0.
 * Keep the content flow compact while leaving mobile and small-mobile untouched.
 */
@media (min-width: 768px) {
  .nz-pm-product-card__title {
    min-height: 0;
  }

  .nz-pm-product-card__description {
    min-height: 0;
    margin-top: 10px;
  }

  .nz-pm-product-card__link {
    margin-top: 16px;
    padding-top: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .nz-pm-product-grid { padding: 36px 24px; }
  .nz-pm-product-grid__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .nz-pm-product-card__body { padding: 20px 20px 22px; }
  .nz-pm-product-card__title { font-size: 19px; }
  .nz-pm-product-card__description { font-size: 14px; }
}

@media (max-width: 767px) {
  .nz-pm-product-grid { padding: 32px 16px; }
  .nz-pm-product-grid__items { grid-template-columns: 1fr; gap: 20px; }
  .nz-pm-product-card__body { padding: 20px; }
  .nz-pm-product-card__title { min-height: 0; font-size: 20px; }
  .nz-pm-product-card__description { min-height: 0; font-size: 15px; }
  .nz-pm-product-card__link { margin-top: 20px; padding-top: 0; }
}

@media (max-width: 390px) {
  .nz-pm-product-grid { padding: 28px 14px; }
  .nz-pm-product-grid__items { gap: 18px; }
  .nz-pm-product-card__body { padding: 18px 16px 20px; }
  .nz-pm-product-card__title { font-size: 19px; }
  .nz-pm-product-card__description { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .nz-pm-product-card,
  .nz-pm-product-card__media img,
  .nz-pm-product-card__link span { transition: none; }
}

.nezni-pm-frontend-disabled {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  border: 1px dashed #c3c4c7;
  background: #fff;
  color: #646970;
  font: 13px/1.4 Arial, sans-serif;
}
