/* NFC shop listing + product detail. Loaded only on those pages. */

.nfc-shop,
.nfc-pdp-page {
  width: min(var(--w2-max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.6rem 0 3.5rem;
}

.nfc-shop__hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem 1.4rem;
  align-items: center;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background:
    radial-gradient(1200px 180px at 100% 0%, rgba(66, 133, 244, 0.08), transparent 55%),
    var(--color-surface-alt);
}

.nfc-shop__hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #fff;
}

.nfc-shop__hero-icon svg {
  width: 26px;
  height: 26px;
}

.nfc-shop__hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text);
}

.nfc-shop__hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.nfc-shop__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  grid-column: 1 / -1;
}

.nfc-shop__points li,
.nfc-pdp__points li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.nfc-shop__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
  margin: 0 0 1.5rem;
  padding: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
}

.nfc-shop__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 9.5rem;
  flex: 1 1 9.5rem;
}

.nfc-shop__field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nfc-shop__field select,
.nfc-shop__field input {
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  background: var(--color-background);
  color: var(--color-text);
  font: inherit;
}

.nfc-shop__actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.nfc-shop__section {
  margin-bottom: 2rem;
}

.nfc-shop__section h2 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.nfc-shop__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.nfc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  color: var(--color-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.nfc-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--color-mega-shadow);
}

.nfc-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #101828;
  overflow: hidden;
}

.nfc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.nfc-card:hover .nfc-card__media img {
  transform: scale(1.04);
}

.nfc-card__discount {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.nfc-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem 1.05rem;
  flex: 1;
}

.nfc-card__material {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.nfc-card__title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.nfc-card__title a {
  color: var(--color-text);
  text-decoration: none;
}

.nfc-card__title a:hover {
  color: var(--color-accent);
}

.nfc-card__excerpt {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nfc-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
  margin-top: 0.35rem;
}

.nfc-card__offer {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nfc-card__mrp {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.nfc-card__cta {
  width: 100%;
  margin-top: auto;
  padding-top: 0.75rem;
}

.nfc-card__cta .w2-btn {
  width: 100%;
}

.nfc-shop__empty {
  display: none;
  padding: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border-strong);
  border-radius: 14px;
}

.nfc-shop__empty.is-visible {
  display: block;
}

.nfc-pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.6rem 2rem;
  align-items: start;
  margin-bottom: 2.4rem;
}

.nfc-pdp__gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
}

.nfc-pdp__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.nfc-pdp__thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #101828;
  cursor: pointer;
  opacity: 0.55;
}

.nfc-pdp__thumbs button.is-active,
.nfc-pdp__thumbs button:hover,
.nfc-pdp__thumbs button:focus-visible {
  opacity: 1;
  border-color: var(--color-accent);
}

.nfc-pdp__thumbs img,
.nfc-pdp__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nfc-pdp__stage {
  min-height: 28rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 20%, #2a3348 0%, #101828 62%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.nfc-pdp__stage img {
  max-height: 28rem;
  padding: 1.25rem;
}

.nfc-pdp__buy h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text);
}

.nfc-pdp__lede {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: 1rem;
}

.nfc-pdp__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}

.nfc-pdp__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1.15rem;
}

.nfc-pdp__offer {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.nfc-pdp__mrp {
  color: var(--color-text-muted);
}

.nfc-pdp__save {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--color-pill-free-bg);
  color: var(--color-success);
  font-size: 0.8rem;
  font-weight: 800;
}

.nfc-pdp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.nfc-pdp__actions .w2-btn--primary {
  min-height: 48px;
  padding-inline: 1.2rem;
  font-weight: 750;
}

.nfc-pdp__details,
.nfc-pdp__related {
  margin-top: 0.5rem;
}

.nfc-pdp__details h2,
.nfc-pdp__related h2 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  color: var(--color-text);
}

.nfc-pdp__prose {
  max-width: 46rem;
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1.02rem;
}

.nfc-pdp__prose p {
  margin: 0 0 0.85rem;
}

.nfc-pdp__prose p:last-child {
  margin-bottom: 0;
}

html[data-theme="dark"] .nfc-shop__hero,
html[data-theme="dark"] .nfc-pdp__gallery,
html[data-theme="dark"] .nfc-card__media,
html[data-theme="dark"] .nfc-pdp__stage {
  background: #0b1220;
}

@media (max-width: 960px) {
  .nfc-shop__grid,
  .nfc-pdp {
    grid-template-columns: 1fr;
  }

  .nfc-pdp__gallery {
    grid-template-columns: 1fr;
  }

  .nfc-pdp__thumbs {
    flex-direction: row;
    order: 2;
  }

  .nfc-pdp__stage {
    min-height: 18rem;
  }

  .nfc-pdp__stage img {
    max-height: 18rem;
  }

  .nfc-shop__hero {
    grid-template-columns: 1fr;
  }

  .nfc-shop__actions {
    margin-left: 0;
    width: 100%;
  }

  .nfc-shop__actions .w2-btn {
    flex: 1;
  }
}

@media (min-width: 640px) and (max-width: 960px) {
  .nfc-shop__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
