/* ============================================================================
   Nexa Chocolate Factory — Products (Listing + Detail)
   Matches the site language: Playfair Display titles, Poppins UI,
   dark-luxury background with gold accents. Self-contained: does not touch
   the homepage, header, footer or existing styling system.
   ========================================================================== */

.nexa-products-page {
  --np-gold: #d4af37;
  --np-gold-mid: #c9a227;
  --np-gold-deep: #a67c00;
  --np-cream: #f0e6c8;
  --np-bg-deep: #0c0806;
  --np-bg-mid: #1a120e;
  --np-bg-panel: #1f1410;
  --np-edge: rgba(212, 175, 55, 0.16);
  --np-edge-soft: rgba(255, 255, 255, 0.08);
  --np-text: rgba(255, 255, 255, 0.92);
  --np-text-soft: rgba(255, 255, 255, 0.66);
  --np-wa: #25d366;
  --np-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --np-radius: 18px;
  --np-radius-lg: 26px;
  --np-section-y: clamp(3.5rem, 9vw, 7rem);

  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--np-bg-deep);
  color: var(--np-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.np .title {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #fff;
}

.np__container {
  width: 100%;
  max-width: min(1240px, 92vw);
  margin-inline: auto;
}

.np {
  background: var(--np-bg-deep);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ----------------------------------------------------------- reveal anim */
.np-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--np-ease), transform 0.7s var(--np-ease);
  will-change: opacity, transform;
}
.np-reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .np-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ----------------------------------------------------------------- buttons */
.np-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.35s var(--np-ease), box-shadow 0.35s ease, background 0.35s ease,
    color 0.35s ease;
}
.np-btn svg {
  width: 1.05em;
  height: 1.05em;
}
.np-btn .np-wa {
  width: 1.25em;
  height: 1.25em;
}
.np-btn--buy {
  color: #0c2a16;
  background: linear-gradient(135deg, #4ce07e 0%, var(--np-wa) 55%, #18b551 100%);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.28);
}
.np-btn--buy:hover,
.np-btn--buy:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.4);
  outline: none;
}
.np-btn--ghost {
  color: var(--np-cream);
  border: 1px solid var(--np-gold);
  background: transparent;
}
.np-btn--ghost:hover,
.np-btn--ghost:focus-visible {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.1);
  outline: none;
}
.np-btn--lg {
  padding: 1.05rem 2.3rem;
  font-size: 0.82rem;
}

:where(.np a, .np button):focus-visible {
  outline: 2px solid var(--np-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ================================================================ LISTING */
/* Hero */
.np-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(8rem, 18vw, 12rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}
.np-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74, 48, 36, 0.6) 0%, transparent 55%),
    linear-gradient(165deg, #2a1810 0%, #15100c 45%, #0a0705 100%);
  z-index: 0;
}
.np-hero__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(70vw, 700px);
  height: min(70vw, 700px);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, transparent 60%);
  filter: blur(20px);
  z-index: 1;
  pointer-events: none;
}
.np-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 56rem;
}
.np-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--np-gold);
  margin: 0 0 1.1rem;
}
.np-hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.04;
  margin: 0;
}
.np-hero__line {
  display: block;
  overflow: hidden;
}
.np-hero__title span span {
  display: inline-block;
  background: linear-gradient(110deg, #fff 0%, var(--np-cream) 40%, var(--np-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.np-hero__lede {
  margin: 1.4rem auto 0;
  max-width: 42rem;
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
  line-height: 1.75;
  color: var(--np-text-soft);
}
.np-hero__tagline {
  margin: 1.2rem 0 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--np-cream);
}
.np-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  justify-content: center;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--np-edge);
}
.np-hero__stats span {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--np-text-soft);
  text-transform: uppercase;
}
.np-hero__stats strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--np-gold);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.2rem;
}

/* Catalogue + toolbar */
.np-catalogue {
  padding: clamp(2.5rem, 6vw, 4rem) 0 var(--np-section-y);
  background: linear-gradient(180deg, #0a0705 0%, var(--np-bg-deep) 100%);
}
.np-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0 1rem;
}
.np-search {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}
.np-search svg {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: var(--np-gold);
  pointer-events: none;
}
.np-search input {
  width: 100%;
  padding: 0.95rem 1.2rem 0.95rem 3rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--np-edge);
  border-radius: 999px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.np-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.np-search input:focus {
  outline: none;
  border-color: var(--np-gold);
  background: rgba(255, 255, 255, 0.07);
}
.np-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}
.np-filter {
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--np-text-soft);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--np-edge-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--np-ease);
  white-space: nowrap;
}
.np-filter:hover {
  color: #fff;
  border-color: var(--np-edge);
}
.np-filter.is-active {
  color: #1a120e;
  background: linear-gradient(110deg, var(--np-cream) 0%, var(--np-gold) 100%);
  border-color: transparent;
  font-weight: 600;
}
.np-result-count {
  text-align: center;
  font-size: 0.8rem;
  color: var(--np-text-soft);
  margin: 0 0 1.75rem;
  min-height: 1.2em;
}

/* Grid + cards */
.np-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.np-card {
  position: relative;
}
.np-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, var(--np-bg-panel) 0%, #160f0b 100%);
  border: 1px solid var(--np-edge-soft);
  border-radius: var(--np-radius);
  overflow: hidden;
  transition: transform 0.45s var(--np-ease), box-shadow 0.45s var(--np-ease),
    border-color 0.45s ease;
}
.np-card__link:hover,
.np-card__link:focus-visible {
  transform: translateY(-8px);
  border-color: var(--np-edge);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.1);
  outline: none;
}
.np-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(160deg, #fdfbf6 0%, #f3ece0 55%, #ece2d2 100%);
}
.np-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, transparent 55%, rgba(120, 92, 60, 0.12) 100%);
}
.np-card__media picture,
.np-card__media img {
  width: 100%;
  height: 100%;
  display: block;
}
.np-card__media img {
  object-fit: contain;
  padding: 7%;
  transition: transform 0.6s var(--np-ease);
}
.np-card__link:hover .np-card__media img {
  transform: scale(1.07);
}
.np-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.32rem 0.7rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--np-cream);
  background: rgba(12, 8, 6, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--np-edge);
  border-radius: 999px;
}
.np-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.2rem 1.3rem;
}
.np-card__cat {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--np-gold);
  margin-bottom: 0.5rem;
}
.np-card__title {
  font-family: "Playfair Display", serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.5rem;
}
.np-card__desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--np-text-soft);
  margin: 0 0 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.np-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--np-gold);
}
.np-card__cta svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.35s var(--np-ease);
}
.np-card__link:hover .np-card__cta svg {
  transform: translateX(4px);
}
.np-empty {
  text-align: center;
  color: var(--np-text-soft);
  padding: 3rem 0;
  font-size: 0.95rem;
}

/* ================================================================== PDP */
.np-breadcrumb {
  padding: clamp(7rem, 14vw, 9rem) 0 0;
  background: var(--np-bg-deep);
}
.np-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.74rem;
  color: var(--np-text-soft);
}
.np-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.np-breadcrumb li:not(:last-child)::after {
  content: "/";
  color: rgba(255, 255, 255, 0.25);
}
.np-breadcrumb a {
  color: var(--np-text-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}
.np-breadcrumb a:hover {
  color: var(--np-gold);
}
.np-breadcrumb li[aria-current] {
  color: var(--np-cream);
}

.np-pdp-hero {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 var(--np-section-y);
}
.np-pdp-hero__grid {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 850px) {
  .np-pdp-hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}
.np-pdp-gallery__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--np-radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #fdfbf6 0%, #f3ece0 55%, #ece2d2 100%);
  border: 1px solid var(--np-edge);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.np-pdp-gallery__frame picture,
.np-pdp-gallery__frame img {
  width: 100%;
  height: 100%;
  display: block;
}
.np-pdp-gallery__frame img {
  object-fit: contain;
  padding: 7%;
  position: relative;
  z-index: 1;
}
.np-pdp-info__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--np-gold);
  margin-bottom: 0.9rem;
}
.np-pdp-info__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}
.np-pdp-info__lede {
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
  line-height: 1.7;
  color: var(--np-text-soft);
  margin: 0 0 1.6rem;
}
.np-pdp-meta {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  border-top: 1px solid var(--np-edge-soft);
}
.np-pdp-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--np-edge-soft);
  font-size: 0.88rem;
}
.np-pdp-meta__k {
  color: var(--np-text-soft);
}
.np-pdp-meta__v {
  color: #fff;
  font-weight: 500;
  text-align: right;
}
.np-pdp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.np-pdp-info__assist {
  font-size: 0.78rem;
  color: var(--np-text-soft);
  margin: 0;
  line-height: 1.6;
}
.np-pdp-info__assist strong {
  color: var(--np-cream);
}

/* PDP sections */
.np-pdp-section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.np-pdp-section--alt {
  background: linear-gradient(180deg, var(--np-bg-mid) 0%, var(--np-bg-deep) 100%);
  border-block: 1px solid var(--np-edge-soft);
}
.np-pdp-section__inner {
  max-width: 52rem;
}
.np-pdp-section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1.3rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.np-pdp-section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 2px;
  background: linear-gradient(90deg, var(--np-gold), transparent);
}
.np-pdp-desc p {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.1rem;
}
.np-pdp-desc p:last-child {
  margin-bottom: 0;
}

.np-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .np-highlights {
    grid-template-columns: 1fr 1fr;
  }
}
.np-highlight {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--np-edge-soft);
  border-radius: 14px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  transition: border-color 0.3s ease, transform 0.3s var(--np-ease);
}
.np-highlight:hover {
  border-color: var(--np-edge);
  transform: translateY(-3px);
}
.np-highlight__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--np-gold);
  background: rgba(212, 175, 55, 0.12);
}
.np-highlight__icon svg {
  width: 16px;
  height: 16px;
}

/* Why Nexa */
.np-why {
  padding: var(--np-section-y) 0;
  background: var(--np-bg-deep);
}
.np-why__head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}
.np-why__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--np-gold);
}
.np-why__title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin: 0.7rem 0 0.8rem;
}
.np-why__sub {
  color: var(--np-text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}
.np-why__grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.np-why__card {
  padding: 1.6rem 1.5rem;
  background: linear-gradient(180deg, var(--np-bg-panel) 0%, #160f0b 100%);
  border: 1px solid var(--np-edge-soft);
  border-radius: var(--np-radius);
  transition: border-color 0.35s ease, transform 0.35s var(--np-ease);
}
.np-why__card:hover {
  border-color: var(--np-edge);
  transform: translateY(-5px);
}
.np-why__card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 0.6rem;
}
.np-why__card p {
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--np-text-soft);
  margin: 0;
}

/* Related */
.np-related {
  padding: 0 0 var(--np-section-y);
  background: var(--np-bg-deep);
}
.np-section-head {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.np-section-head .title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.4rem;
}
.np-section-head p {
  color: var(--np-text-soft);
  font-size: 0.9rem;
  margin: 0;
}
.np-grid--related {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

/* CTA */
.np-cta {
  position: relative;
  padding: var(--np-section-y) 0;
  background: linear-gradient(165deg, #1a100c 0%, #0a0605 100%);
  border-top: 1px solid var(--np-edge);
  overflow: hidden;
}
.np-cta::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(60vw, 600px);
  height: min(60vw, 600px);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.np-cta__inner {
  position: relative;
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}
.np-cta__inner .title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin: 0 0 0.9rem;
}
.np-cta__inner p {
  color: var(--np-text-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}

/* Keep theme footer comfortably spaced from product content */
.nexa-products-page #footer {
  background: var(--np-bg-deep);
}
