/*
 * Nortei Solar Core · Frontend CSS module
 * File: 00-foundation.css
 * Purpose: Base, variables visuales iniciales, wrappers y estilos históricos de cards/productos.
 * Note: module order is intentional; preserve enqueue order unless testing the full cascade.
 */

:root {
  --nsrm-blue: #0c4f8a;
  --nsrm-gold: #fab519;
  --nsrm-whatsapp: #25d366;
  --nsrm-ink: #0f172a;
  --nsrm-border: rgba(15, 23, 42, 0.11);
  --nsrm-soft: #f7f9fc;
  --nsrm-radius: 22px;
  --nsrm-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --nsrm-hover-shadow: 0 18px 34px rgba(12, 79, 138, 0.18), 0 0 0 1px rgba(250, 181, 25, 0.28);
}

body,
button,
input,
select,
textarea,
.woocommerce,
.woocommerce-page,
.nsrm-home-hero,
.nsrm-values-grid,
.nsrm-category-section,
.nsrm-products-section,
.nsrm-product-description {
  font-family: 'Poppins', sans-serif;
}

.nsrm-home-hero,
.nsrm-values-grid,
.nsrm-category-section,
.nsrm-products-section,
.nsrm-product-description {
  margin: 0 0 40px;
}

.nsrm-section-heading {
  margin-bottom: 22px;
  text-align: center;
}

.nsrm-section-heading h2,
.nsrm-product-description h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 14px;
  color: var(--nsrm-blue);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-align: center;
}

.nsrm-section-heading h2::after,
.nsrm-product-description h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 82px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nsrm-blue), var(--nsrm-gold));
  transform: translateX(-50%);
}

.nsrm-home-hero__grid,
.nsrm-values-grid,
.nsrm-category-grid,
.nsrm-products-grid,
.woocommerce ul.products {
  gap: 20px;
}

.nsrm-home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: stretch;
}

.nsrm-home-hero__slider,
.nsrm-banner-card,
.nsrm-value-card,
.nsrm-category-card,
.nsrm-product-card,
.woocommerce ul.products li.product {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(12, 79, 138, 0.10);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  background: #fff;
}

.nsrm-home-hero__slider,
.nsrm-banner-card {
  border-radius: 34px;
}

.nsrm-home-hero__slider:hover,
.nsrm-banner-card:hover,
.nsrm-value-card:hover,
.nsrm-category-card:hover,
.nsrm-product-card:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--nsrm-hover-shadow);
  border-color: rgba(250, 181, 25, 0.34);
  outline: 2px solid rgba(250, 181, 25, 0.24);
  outline-offset: 0;
}

.nsrm-home-hero__slider {
  min-height: var(--nsrm-hero-height, 480px);
  background: #0b1c35;
}

.nsrm-home-hero__slides,
.nsrm-slide,
.nsrm-slide__image,
.nsrm-slide__overlay {
  position: absolute;
  inset: 0;
}

.nsrm-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}

.nsrm-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.nsrm-slide__image,
.nsrm-category-card__image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.nsrm-banner-card__image {
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: inherit;
}

.nsrm-slide__image--fallback,
.nsrm-banner-card__image--fallback {
  background: linear-gradient(135deg, var(--nsrm-blue), #08111f);
}

.nsrm-slide__overlay {
  background: linear-gradient(110deg, rgba(8, 17, 31, 0.62) 0%, rgba(8, 17, 31, 0.34) 46%, rgba(8, 17, 31, 0.08) 100%);
}

.nsrm-slide__content {
  position: absolute;
  z-index: 2;
  inset: auto auto 42px 42px;
  max-width: 620px;
  color: #fff;
}

.nsrm-slide__content h3 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.02;
  color: #fff;
}

.nsrm-slide__content p {
  margin: 0 0 18px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.nsrm-slider-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  backdrop-filter: blur(10px);
}

.nsrm-slider-nav:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-50%) scale(1.04); }
.nsrm-slider-nav--prev { left: 16px; }
.nsrm-slider-nav--next { right: 16px; }

.nsrm-slider-progress {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  width: 150px;
  height: 10px;
  border-radius: 999px;
  background: rgba(77, 208, 225, 0.22);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.nsrm-slider-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #fab519, #ffd45d);
  border-radius: inherit;
}

.nsrm-home-hero__banners {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.nsrm-banner-card {
  min-height: calc((var(--nsrm-hero-height, 480px) - 20px) / 2);
  color: #fff;
  text-decoration: none;
  background: transparent;
}

.nsrm-category-card__image {
  position: absolute;
  inset: 0;
}

.nsrm-banner-card__image {
  position: absolute;
}

.nsrm-banner-card::after,
.nsrm-category-card__overlay {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.02) 18%, rgba(8, 17, 31, 0.68) 100%);
}

.nsrm-banner-card__label,

.nsrm-value-card:hover {
  box-shadow: 0 18px 34px rgba(12, 79, 138, 0.18), 0 0 0 2px rgba(255,255,255,0.14) inset;
}

.nsrm-value-card:nth-child(even):hover {
  box-shadow: 0 18px 34px rgba(250, 181, 25, 0.28), 0 0 0 2px rgba(255,255,255,0.18) inset;
}

.nsrm-category-card__image,
.nsrm-category-card__overlay {
  transition: transform .35s ease, background .35s ease, opacity .35s ease;
}

.nsrm-category-card:hover {
  box-shadow: 0 22px 44px rgba(12, 79, 138, 0.14), 0 0 0 2px rgba(250,181,25,0.18);
}

.nsrm-category-card:hover .nsrm-category-card__image {
  transform: scale(1.035);
}

.nsrm-category-card:hover .nsrm-category-card__overlay {
  background: linear-gradient(180deg, rgba(8,17,31,0.06) 10%, rgba(8,17,31,0.76) 100%);
}
.nsrm-category-card__content {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.nsrm-banner-card__label {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.nsrm-values-grid,
.nsrm-category-grid,
.nsrm-products-grid {
  display: grid;
}

.nsrm-values-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nsrm-value-card {
  padding: 26px 24px;
  text-align: center;
  border-width: 1.5px;
}

.nsrm-value-card:nth-child(odd) {
  background: linear-gradient(180deg, #0c4f8a 0%, #0a3f6d 100%);
  color: #fff;
}

.nsrm-value-card:nth-child(even) {
  background: linear-gradient(180deg, #ffd45d 0%, #fab519 100%);
  color: var(--nsrm-blue);
}

.nsrm-value-card__icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
}

.nsrm-value-card:nth-child(even) .nsrm-value-card__icon {
  background: rgba(12,79,138,0.10);
}

.nsrm-value-card__icon svg {
  width: 28px;
  height: 28px;
}

.nsrm-value-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: inherit;
}

.nsrm-value-card p {
  margin: 0;
  color: inherit;
  line-height: 1.7;
  opacity: .96;
}

.nsrm-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nsrm-category-card {
  min-height: 270px;
  text-decoration: none;
  border-width: 1.5px;
}

.nsrm-category-card__content {
  text-align: center;
}

.nsrm-category-card__content strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1.1;
  color: #fff;
}

.nsrm-category-card__content small {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.nsrm-products-grid,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nsrm-product-card,
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
}

.nsrm-product-card__image-wrap,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  position: relative;
  display: block;
  padding: 18px 18px 0;
  text-decoration: none;
}

.nsrm-product-card__image-wrap,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 270px;
  padding: 28px 28px 10px;
  text-decoration: none;
}

.nsrm-product-card__image,
.woocommerce ul.products li.product img {
  display: block;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
  transition: opacity .3s ease, transform .35s ease;
  margin: 0 auto;
}

.nsrm-product-card__image {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 56px);
}

.nsrm-product-card__image.is-secondary {
  opacity: 0;
}

.nsrm-product-card:hover .nsrm-product-card__image.is-secondary {
  opacity: 1;
}

.nsrm-product-card:hover .nsrm-product-card__image.is-primary {
  opacity: 0;
}

.nsrm-product-card__discount,
.woocommerce span.onsale {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 3;
  min-width: 62px;
  padding: 10px 8px;
  border-radius: 50px;
  background: var(--nsrm-gold);
  color: var(--nsrm-blue);
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
}

.nsrm-product-card__discount small,
.woocommerce span.onsale {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
}

.nsrm-product-card__body,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .nsrm-loop-footer,
.woocommerce ul.products li.product .nsrm-loop-badge,
.woocommerce ul.products li.product .nsrm-card-actions {
  padding-left: 18px;
  padding-right: 18px;
}

.nsrm-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-bottom: 20px;
}

.nsrm-product-card__price,
.woocommerce ul.products li.product .price {
  margin-bottom: 8px !important;
  color: var(--nsrm-ink) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  text-align: center;
}

.nsrm-product-card__price del,
.woocommerce ul.products li.product .price del {
  color: #94a3b8 !important;
  opacity: 1 !important;
  font-size: 13px;
  font-weight: 500;
  margin-right: 8px;
}

.nsrm-product-card__price ins,
.woocommerce ul.products li.product .price ins {
  text-decoration: none;
}

.nsrm-product-card__name,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 10px !important;
  padding-top: 0 !important;
  color: var(--nsrm-ink);
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  text-align: center;
  min-height: 50px;
}

.nsrm-product-card__name a {
  color: inherit;
  text-decoration: none;
}

.nsrm-product-card__badge,
.nsrm-loop-badge {
  display: inline-flex;
  padding: 8px 12px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: rgba(12, 79, 138, 0.09);
  color: var(--nsrm-blue);
  font-size: 12px;
  font-weight: 700;
}

.nsrm-product-card__meta,
.nsrm-loop-footer {
  padding: 14px 18px 0;
  text-align: center;
}

.nsrm-product-card__meta p,
.nsrm-loop-installments {
  margin: 0 0 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.nsrm-product-card__meta strong,
.nsrm-loop-availability {
  color: var(--nsrm-blue);
  font-size: 14px;
  font-weight: 800;
}

.nsrm-card-actions {
  margin-top: auto;
  padding: 18px 18px 22px;
}

.nsrm-card-actions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.nsrm-btn,
.nsrm-loop-button,
.woocommerce ul.products li.product .button,
.woocommerce a.added_to_cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.nsrm-btn:hover,
.nsrm-loop-button:hover,
.woocommerce ul.products li.product .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 79, 138, 0.18);
}

.nsrm-btn--blue,
.nsrm-loop-button {
  background: var(--nsrm-blue) !important;
  color: #fff !important;
}

.nsrm-btn--cart,
.woocommerce ul.products li.product .button {
  background: #eef5fb !important;
  color: var(--nsrm-blue) !important;
  border: 1px solid rgba(12, 79, 138, 0.18) !important;
}

.nsrm-btn--whatsapp {
  margin-top: 10px;
  background: var(--nsrm-whatsapp) !important;
  color: #fff !important;
}

.nsrm-single-whatsapp-wrap {
  margin: 14px 0 10px;
}

.nsrm-single-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--nsrm-whatsapp);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .02em;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.nsrm-single-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(37, 211, 102, 0.28);
}

.nsrm-btn--gold {
  width: auto;
  margin: 0;
  padding: 0 22px;
  background: var(--nsrm-gold);
  color: var(--nsrm-blue);
}

.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .added_to_cart,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.woocommerce ul.products li.product .product_type_simple.add_to_cart_button {
  display: none !important;
}

.woocommerce ul.products li.product a img.nsrm-loop-hover-image {
  position: absolute;
  inset: 18px 18px auto 18px;
  width: calc(100% - 36px);
  height: 260px;
  opacity: 0;
  object-fit: contain;
  object-position: center;
}

.woocommerce ul.products li.product:hover a img.nsrm-loop-hover-image {
  opacity: 1;
}

.woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link > img:first-of-type {
  opacity: 0;
}

.popup-row {
  border-top: 1px solid var(--nsrm-border);
}

.popup-row:last-child {
  border-bottom: 1px solid var(--nsrm-border);
}

.open-modal-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: var(--nsrm-ink);
  cursor: pointer;
}

.open-modal-btn .arrow {
  font-size: 22px;
  color: var(--nsrm-blue);
}

.nsrm-product-description {
  padding-top: 6px;
}

.nsrm-product-description__content {
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
}

.nsrm-product-description__content p:first-child {
  margin-top: 0;
}

.nsrm-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.nsrm-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nsrm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(5px);
}

.nsrm-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 32px));
  max-height: calc(100vh - 60px);
  margin: 30px auto;
  padding: 26px;
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.25);
}

.nsrm-modal__dialog h3 {
  margin: 0 0 16px;
  color: var(--nsrm-blue);
  font-size: 28px;
}

.nsrm-modal__content {
  color: #334155;
  line-height: 1.75;
}

.nsrm-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--nsrm-ink);
  font-size: 34px;
  cursor: pointer;
}

[data-nsrm-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}

[data-nsrm-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.nsrm-modal-open,
body.nsrm-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  [data-nsrm-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1180px) {
  .nsrm-home-hero__grid,
  .nsrm-values-grid,
  .nsrm-products-grid,
  .woocommerce ul.products,
  .nsrm-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nsrm-category-grid > .nsrm-category-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
    width: 100%;
    justify-self: center;
  }

  .nsrm-home-hero__banners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
}

@media (max-width: 780px) {
  .nsrm-home-hero__grid,
  .nsrm-home-hero__banners,
  .nsrm-values-grid,
  .nsrm-products-grid,
  .woocommerce ul.products,
  .nsrm-category-grid,
  .nsrm-card-actions__grid {
    grid-template-columns: 1fr;
  }

  .nsrm-home-hero__slider {
    min-height: 420px;
  }

  .nsrm-slide__content {
    inset: auto 22px 22px 22px;
  }

  .nsrm-slide__content h3 {
    font-size: 30px;
  }

  .nsrm-banner-card {
    min-height: 220px;
  }

  .open-modal-btn {
    font-size: 17px;
  }
}

.nsrm-product-card,
.woocommerce ul.products li.product {
  min-height: 100%;
}

.nsrm-product-card__image-wrap {
  min-height: 250px !important;
  padding: 24px 24px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.nsrm-product-card__image {
  top: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  max-width: calc(100% - 48px) !important;
  height: auto !important;
  max-height: 210px !important;
  object-fit: contain !important;
}

.woocommerce ul.products li.product .wc-product-image,
.woocommerce ul.products li.product .inside-wc-product-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.woocommerce ul.products li.product .wc-product-image {
  min-height: 250px !important;
  padding: 24px 24px 12px !important;
}

.woocommerce ul.products li.product .inside-wc-product-image {
  width: 100%;
  min-height: 250px !important;
}

.woocommerce ul.products li.product .inside-wc-product-image img,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 210px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

.nsrm-product-card .nsrm-card-actions,
.woocommerce ul.products li.product .nsrm-card-actions {
  margin-top: auto !important;
}

.nsrm-product-card__image-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 240px !important;
  height: 240px !important;
  padding: 20px 20px 10px !important;
}

.nsrm-product-card__image.is-secondary,
.woocommerce ul.products li.product a img.nsrm-loop-hover-image {
  display: none !important;
}

.nsrm-product-card__image.is-primary {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 210px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.woocommerce ul.products li.product .wc-product-image,
.woocommerce ul.products li.product .inside-wc-product-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 240px !important;
  height: 240px !important;
  width: 100% !important;
}

.woocommerce ul.products li.product .wc-product-image {
  padding: 20px 20px 10px !important;
}

.woocommerce ul.products li.product .inside-wc-product-image img,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img {
  position: static !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 210px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

@media (max-width: 780px) {
  .nsrm-home-hero,
  .nsrm-values-grid,
  .nsrm-category-section,
  .nsrm-products-section,
  .nsrm-product-description {
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box;
  }

  .nsrm-values-grid,
  .nsrm-category-grid,
  .nsrm-products-grid,
  .woocommerce ul.products {
    gap: 16px !important;
  }

  .nsrm-category-grid > .nsrm-category-card:last-child:nth-child(odd) {
    grid-column: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    justify-self: stretch !important;
  }

  .nsrm-category-card {
    min-height: 220px !important;
  }

  .nsrm-product-card__image.is-primary,
  .woocommerce ul.products li.product .inside-wc-product-image img,
  .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img {
    max-height: 180px !important;
  }
}

.nsrm-product-card__image-wrap {
  min-height: auto !important;
  height: auto !important;
  padding: 26px 26px 12px !important;
}

.nsrm-product-card__image.is-primary {
  width: 78% !important;
  max-width: 260px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

.woocommerce ul.products li.product .wc-product-image,
.woocommerce ul.products li.product .inside-wc-product-image {
  min-height: auto !important;
  height: auto !important;
}

.woocommerce ul.products li.product .wc-product-image {
  padding: 26px 26px 12px !important;
}

.woocommerce ul.products li.product .inside-wc-product-image img,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img {
  width: 78% !important;
  max-width: 260px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

@media (max-width: 780px) {
  .nsrm-product-card__image.is-primary,
  .woocommerce ul.products li.product .inside-wc-product-image img,
  .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img {
    width: 74% !important;
    max-width: 220px !important;
  }
}
