/* Query-gated 3D Bags prototype for local/staging review only. */

.nodosbyg-bags-preview {
  --nodos-bags-ink: #201a18;
  --nodos-bags-muted: #6c615c;
  --nodos-bags-paper: #f5f0ea;
  --nodos-bags-accent: #ff5e22;
  --nodos-bags-line: rgba(32, 26, 24, 0.14);
}

.nodosbyg-bags-preview .woocommerce-products-header__title,
.nodosbyg-bags-preview .ast-archive-description {
  display: none !important;
}

.nodosbyg-bags-preview .woocommerce-products-header {
  margin: 0;
  padding: 0;
}

.nodos-bags-preview-intro,
.nodos-bags-compact-header {
  color: var(--nodos-bags-ink);
}

.nodos-bags-review-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: clamp(1.4rem, 3vw, 2.4rem) 0 clamp(2rem, 4vw, 3.6rem);
  padding: 0.85rem 1rem;
  border: 1px solid var(--nodos-bags-line);
  background: #fff;
}

.nodos-bags-review-banner p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin: 0;
}

.nodos-bags-review-banner strong,
.nodos-bags-review-banner a {
  color: var(--nodos-bags-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nodos-bags-review-banner span {
  color: var(--nodos-bags-muted);
  font-size: 0.78rem;
}

.nodos-bags-preview-switcher {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  justify-content: flex-end;
}

.nodos-bags-preview-switcher a {
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.nodos-bags-preview-switcher a[aria-current="page"] {
  color: var(--nodos-bags-accent);
}

.nodos-bags-preview-copy {
  max-width: 48rem;
  margin: 0 auto clamp(2.3rem, 5vw, 4.8rem);
  text-align: center;
}

.nodos-bags-preview-kicker {
  margin: 0 0 0.75rem;
  color: var(--nodos-bags-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nodos-bags-preview-copy h1,
.nodos-bags-compact-header h1 {
  margin: 0 0 1.2rem;
  color: var(--nodos-bags-ink);
  font-size: clamp(2.65rem, 5.5vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.nodos-bags-preview-copy p {
  max-width: 40rem;
  margin: 0.35rem auto;
  color: var(--nodos-bags-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
}

.nodos-bags-preview-copy .nodos-bags-preview-lede {
  color: var(--nodos-bags-ink);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
}

.nodosbyg-bags-preview-layout-original .nodos-bags-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  margin-bottom: clamp(3.2rem, 7vw, 6rem);
}

.nodosbyg-bags-preview-layout-original .nodos-bags-hero-copy {
  max-width: 37rem;
}

.nodosbyg-bags-preview-layout-original .nodos-bags-hero h1 {
  margin: 0 0 1.2rem;
  color: var(--nodos-bags-ink);
  font-size: clamp(2.65rem, 5.5vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.nodosbyg-bags-preview-layout-original .nodos-bags-hero-copy p {
  margin: 0.4rem 0;
  color: var(--nodos-bags-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.65;
}

.nodosbyg-bags-preview-layout-original .nodos-bags-hero-copy .nodos-bags-preview-lede {
  color: var(--nodos-bags-ink);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
}

.nodosbyg-bags-preview-layout-original .nodos-bags-hero figure {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin: 0;
  background: #f2f5f8;
}

.nodosbyg-bags-preview-layout-original .nodos-bags-hero img,
.nodos-bags-editorial img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.nodos-bags-family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
  margin-bottom: clamp(2.3rem, 5vw, 4.4rem);
}

.nodosbyg-bags-preview-layout-original .nodos-bags-family-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nodos-bags-family-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--nodos-bags-ink);
  text-decoration: none;
}

.nodos-bags-family-image {
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  place-items: center;
  background: var(--nodos-bags-paper);
}

.nodos-bags-family-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  object-fit: contain;
  transition: transform 320ms ease;
}

.nodos-bags-family-card:hover .nodos-bags-family-image img,
.nodos-bags-family-card:focus-visible .nodos-bags-family-image img {
  transform: scale(1.025);
}

.nodos-bags-family-card.is-provisional {
  cursor: default;
}

.nodos-bags-family-card.is-provisional:hover .nodos-bags-family-image img {
  transform: none;
}

.nodos-bags-family-card.is-provisional small {
  color: var(--nodos-bags-muted);
  border-bottom-style: dashed;
}

.nodos-bags-family-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 0.15rem 0;
}

.nodos-bags-family-content h3 {
  margin-bottom: 0.45rem;
  color: inherit;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 500;
  line-height: 1.15;
}

.nodos-bags-family-content > span {
  color: var(--nodos-bags-muted);
  line-height: 1.5;
}

.nodos-bags-family-content small {
  margin-top: 0.9rem;
  padding-bottom: 0.12rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nodos-bags-family-card[aria-current="page"] .nodos-bags-family-content h3,
.nodos-bags-family-card[aria-current="page"] .nodos-bags-family-content small {
  color: var(--nodos-bags-accent);
}

.nodos-bags-see-all {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.nodos-bags-see-all .button {
  min-width: min(100%, 18rem);
  padding: 1.05rem 1.8rem;
  border: 1px solid var(--nodos-bags-ink);
  border-radius: 0;
  background: var(--nodos-bags-ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.nodos-bags-see-all .button:hover,
.nodos-bags-see-all .button:focus-visible {
  background: transparent;
  color: var(--nodos-bags-ink);
}

.nodos-bags-editorial {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin: 0 0 clamp(4rem, 8vw, 7rem);
  background: #009dd6;
}

.nodos-bags-selection-heading {
  max-width: 42rem;
  margin: 0 auto clamp(1.8rem, 4vw, 3rem);
  text-align: center;
}

.nodos-bags-selection-heading h2 {
  margin: 0 0 0.7rem;
  scroll-margin-top: 4rem;
  color: var(--nodos-bags-ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.nodos-bags-selection-heading > p:last-of-type {
  color: var(--nodos-bags-muted);
  line-height: 1.6;
}

.nodos-bags-selection-heading a {
  display: inline-block;
  margin-top: 0.75rem;
  border-bottom: 1px solid currentColor;
  color: var(--nodos-bags-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.nodos-bags-lower-copy {
  max-width: 45rem;
  margin: clamp(3rem, 7vw, 6rem) auto 0;
  color: var(--nodos-bags-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.65;
  text-align: center;
}

.nodos-bags-lower-copy p {
  margin: 0.45rem 0;
}

.nodos-bags-compact-header {
  max-width: 42rem;
  margin: clamp(2rem, 5vw, 4rem) auto;
  text-align: center;
}

.nodos-bags-compact-header h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.nodosbyg-bags-preview ul.products li.product.ast-fade-up {
  opacity: 1 !important;
  transform: none !important;
}

.nodosbyg-bags-preview-layout-sanja .nodos-bags-preview-intro {
  display: flex;
  flex-direction: column;
}

.nodosbyg-bags-preview-layout-sanja .nodos-bags-review-banner {
  order: 0;
}

.nodosbyg-bags-preview-layout-sanja .nodos-bags-preview-copy {
  order: 1;
}

.nodosbyg-bags-preview-layout-sanja .nodos-bags-editorial {
  order: 2;
  margin-bottom: clamp(2.3rem, 5vw, 4.4rem);
}

.nodosbyg-bags-preview-layout-sanja .nodos-bags-family-heading {
  order: 3;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  color: var(--nodos-bags-ink);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.nodosbyg-bags-preview-layout-sanja .nodos-bags-family-grid {
  order: 4;
}

@media (max-width: 767px) {
  .nodos-bags-review-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nodos-bags-preview-switcher {
    justify-content: flex-start;
  }

  .nodos-bags-preview-copy {
    text-align: left;
  }

  .nodos-bags-preview-copy p,
  .nodos-bags-preview-copy .nodos-bags-preview-lede {
    margin-left: 0;
  }

  .nodosbyg-bags-preview-layout-original .nodos-bags-hero {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-bottom: 3.2rem;
  }

  .nodosbyg-bags-preview-layout-original .nodos-bags-hero figure {
    order: -1;
  }

  .nodosbyg-bags-preview-layout-original .nodos-bags-family-grid,
  .nodos-bags-family-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nodos-bags-family-card {
    display: grid;
    grid-template-columns: minmax(7.5rem, 34%) minmax(0, 1fr);
    align-items: stretch;
    padding: 0.85rem 0;
    border-top: 1px solid var(--nodos-bags-line);
  }

  .nodos-bags-family-card:last-child {
    border-bottom: 1px solid var(--nodos-bags-line);
  }

  .nodos-bags-family-image {
    width: 100%;
    align-self: start;
    aspect-ratio: 1;
  }

  .nodos-bags-family-content {
    min-width: 0;
    justify-content: center;
    padding: 0.2rem 0 0.2rem 1rem;
  }

  .nodos-bags-family-content h3 {
    font-size: 1.2rem;
  }

  .nodos-bags-family-content > span {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .nodos-bags-family-content small {
    display: none;
  }

  .nodos-bags-family-card.is-provisional .nodos-bags-family-content small {
    display: inline-block;
    margin-top: 0.45rem;
    font-size: 0.65rem;
  }

  .nodos-bags-editorial {
    margin-bottom: 3.7rem;
  }

  .nodosbyg-bags-preview ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem 0.75rem !important;
  }

  .nodosbyg-bags-preview ul.products li.product {
    width: auto !important;
    margin: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nodos-bags-family-image img {
    transition: none;
  }
}
