/* =========================================
   NIDRA MARINE PRODUCT CATALOGUE
   Uses variables and fonts from style.css
========================================= */

.nm-catalogue-page {
  width: 100%;
  overflow: hidden;
  background: var(--white, #ffffff);
  color: var(--ink, #32133f);
  font-family: var(--sans, "DM Sans", sans-serif);
}

.nm-catalogue-page *,
.nm-catalogue-page *::before,
.nm-catalogue-page *::after {
  box-sizing: border-box;
}


/* =========================================
   CATALOGUE HERO
========================================= */

.nm-catalogue-hero {
  padding: 100px 7vw 88px;
  text-align: center;
  background: var(--cream, #f8f0fa);
  border-bottom: 1px solid var(--line, #dac9e1);
}

.nm-catalogue-hero > p {
  margin: 0;
  color: var(--sage, #a32e8b);
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nm-catalogue-hero h1 {
  margin: 25px 0 45px;
  color: var(--ink, #32133f);
  font-family: var(--serif, "Playfair Display", serif);
  font-size: clamp(52px, 6vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.nm-catalogue-hero h1 em {
  color: var(--sage, #a32e8b);
  font-family: var(--serif, "Playfair Display", serif);
  font-weight: 500;
}

.nm-catalogue-stats {
  display: flex;
  justify-content: center;
  max-width: 850px;
  margin: 0 auto;
  border-top: 1px solid var(--line, #dac9e1);
}

.nm-catalogue-stats span {
  flex: 1;
  padding: 18px 35px 0;
  color: var(--forest, #6a3d86);
  border-right: 1px solid var(--line, #dac9e1);
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nm-catalogue-stats span:last-child {
  border-right: 0;
}


/* =========================================
   PRODUCT GROUPS
========================================= */

.nm-product-group {
  padding: 100px 7vw;
  background: var(--white, #ffffff);
}

.nm-panel-group {
  background: var(--cream, #f8f0fa);
}

.nm-group-heading {
  width: 100%;
  margin-bottom: 58px;
  text-align: center;
}

.nm-group-heading h2 {
  margin: 0;
  color: var(--ink, #32133f);
  font-family: var(--serif, "Playfair Display", serif);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}


/* =========================================
   PRODUCT GRID
========================================= */

.nm-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 34px 46px;
}

.nm-product-grid.nm-three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* =========================================
   PRODUCT CARD
========================================= */

.nm-product-card {
  display: flex;
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  align-self: stretch;
  background: var(--white, #ffffff);
  border: 1px solid var(--line, #dac9e1);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.nm-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(163, 46, 139, 0.45);
  box-shadow: 0 18px 40px rgba(50, 19, 63, 0.1);
}


/* =========================================
   PRODUCT IMAGE
========================================= */

.nm-product-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
  background: #ededed;
  border-bottom: 1px solid var(--line, #dac9e1);
}

.nm-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.nm-product-card:hover .nm-product-image img {
  transform: scale(1.025);
}


/* =========================================
   PRODUCT CONTENT
========================================= */

.nm-product-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 22px 20px 25px;
}

.nm-product-copy h3 {
  margin: 0 0 11px;
  color: var(--ink, #32133f);
  font-family: var(--serif, "Playfair Display", serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.nm-product-copy h3 a {
  color: inherit;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nm-product-copy h3 a:hover {
  color: var(--sage, #a32e8b);
}

.nm-product-copy p {
  margin: 0 0 20px;
  color: var(--forest, #6a3d86);
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}


/* =========================================
   VIEW DETAILS LINK
========================================= */

.nm-details-link {
  display: inline-flex;
  width: max-content;
  margin-top: auto;
  align-items: center;
  gap: 8px;
  color: var(--ink, #32133f);
  font-family: var(--sans, "DM Sans", sans-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.nm-details-link span {
  display: inline-block;
  color: var(--sage, #a32e8b);
  transition: transform 0.3s ease;
}

.nm-details-link:hover {
  color: var(--sage, #a32e8b);
}

.nm-details-link:hover span {
  transform: translate(3px, -3px);
}


/* =========================================
   LARGE TABLET
========================================= */

@media screen and (max-width: 1199px) {
  .nm-product-group {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .nm-product-grid {
    gap: 30px;
  }

  .nm-product-copy {
    padding: 20px 18px 23px;
  }

  .nm-product-copy h3 {
    font-size: 19px;
  }
}


/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 991px) {
  .nm-catalogue-hero {
    padding: 85px 6vw 75px;
  }

  .nm-product-group {
    padding: 80px 6vw;
  }

  .nm-group-heading {
    margin-bottom: 45px;
  }

  .nm-product-grid,
  .nm-product-grid.nm-three-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }
}


/* =========================================
   SMALL TABLET
========================================= */

@media screen and (max-width: 767px) {
  .nm-catalogue-hero h1 {
    margin-bottom: 38px;
    font-size: clamp(46px, 9vw, 64px);
  }

  .nm-catalogue-stats span {
    padding-right: 20px;
    padding-left: 20px;
  }

  .nm-product-grid,
  .nm-product-grid.nm-three-columns {
    gap: 24px;
  }
}


/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 575px) {
  .nm-catalogue-hero {
    padding: 65px 22px 60px;
  }

  .nm-catalogue-hero > p {
    font-size: 10px;
  }

  .nm-catalogue-hero h1 {
    margin: 22px 0 34px;
    font-size: 44px;
    line-height: 1;
  }

  .nm-catalogue-stats {
    max-width: 100%;
    flex-direction: column;
  }

  .nm-catalogue-stats span {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line, #dac9e1);
  }

  .nm-catalogue-stats span:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .nm-product-group {
    padding: 65px 22px;
  }

  .nm-group-heading {
    margin-bottom: 35px;
  }

  .nm-group-heading h2 {
    font-size: 40px;
  }

  .nm-product-grid,
  .nm-product-grid.nm-three-columns {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 24px;
  }

  .nm-product-copy {
    padding: 20px 18px 23px;
  }

  .nm-product-copy h3 {
    font-size: 21px;
  }
}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media screen and (max-width: 374px) {
  .nm-catalogue-hero h1 {
    font-size: 39px;
  }

  .nm-group-heading h2 {
    font-size: 36px;
  }
}


/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
  .nm-product-card,
  .nm-product-image img,
  .nm-details-link,
  .nm-details-link span {
    transition: none;
  }

  .nm-product-card:hover {
    transform: none;
  }

  .nm-product-card:hover .nm-product-image img {
    transform: none;
  }
}