/* ═══════════════════════════════════════════════
   PRODUCT.CSS — All Posters Catalog Page
   White background, black nav/icons, 4-col grid
   ═══════════════════════════════════════════════ */

/* ── Catalog page body reset ─────────────────── */
.page-catalog {
  background: var(--paper, #FAF8F4);
  overflow-x: hidden;
}

/* ── Navbar: always transparent, always black text/icons ──
   The catalog page is white all the way down, so we never
   switch to the dark scrolled style. We override every
   state — scrolled or not — to keep black text and icons.
*/
.navbar--white {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Always black — both scrolled and unscrolled */
.navbar--white .navbar__links a,
.navbar--white .navbar__links--black a {
  color: #000 !important;
}
.navbar--white .navbar__links a::after {
  background: #000 !important;
}
.navbar--white .nav-dropdown__trigger,
.navbar--white .nav-dropdown__trigger--black {
  color: #000 !important;
}

/* Override the dark scrolled bg from style.css */
.navbar--white.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.12) !important;
}

/* Logo always black */
.navbar--white .navbar__logo-img {
  filter: none !important;
}

/* Hamburger always black */
.hamburger--black span {
  background: #000 !important;
}
.navbar--white.scrolled .hamburger--black span {
  background: #000 !important;
}

/* Cart icon always black (style.css inverts it white by default) */
.navbar--white .cart-icon {
  filter: brightness(0) !important;
}

/* Cart badge */
.navbar--white .cart-badge {
  background: #000;
  color: #fff;
}


/* ── Page Header ─────────────────────────────── */
.catalog-header {
  background: var(--paper, #FAF8F4);
  padding: 112px 64px;
  border-bottom: none;
}

.catalog-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.catalog-header__inner .tagline {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute, #6B6862);
  text-align: center;
}

.catalog-header__title {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-weight: 800;
  font-size: 64px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #000;
  margin: 0;
}

.catalog-header__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.catalog-filter-btn,
.catalog-sort-btn {
  min-width: 84px;
}

/* ── Filter & Sort Controls ──────────────────── */
.catalog-controls {
  background: var(--paper, #FAF8F4);
  border-bottom: 1px solid #e8e8e8;
}

.catalog-filter-panel {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-filter-panel[hidden] {
  display: none;
}

.filter-chip {
  padding: 8px 20px;
  border: 1px solid #000;
  border-radius: 50px;
  background: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.filter-chip:hover {
  background: #f0f0f0;
}

.filter-chip.active {
  background: #000;
  color: #fff;
}

.catalog-sort-dropdown {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-sort-dropdown[hidden] {
  display: none;
}

.sort-option {
  padding: 8px 20px;
  border: 1px solid #d0d0d0;
  border-radius: 50px;
  background: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: #555;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sort-option:hover {
  border-color: #000;
  color: #000;
}

.sort-option.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* active indicator on the buttons themselves */
.catalog-filter-btn.is-active,
.catalog-sort-btn.is-active {
  background: #000;
  color: #fff;
}

/* ── Catalog Grid ────────────────────────────── */
.catalog {
  background: var(--paper, #FAF8F4);
  padding: 0 64px 112px;
}

.catalog__container {
  max-width: 1280px;
  margin: 0 auto;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 48px;
  padding-bottom: 64px;
}

/* ── Product Card (shared from style.css but extended) ── */
/* The base .product-card styles already handle hover.
   Here we ensure the catalog grid cards behave correctly. */
.catalog__grid .product-card {
  width: 100%;
}

.catalog__grid .product-card__img-wrap {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.catalog__grid .product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.22s ease, transform 0.24s ease;
}

.catalog__grid .product-card__img--primary {
  opacity: 1;
  transform: scale(1);
}

.catalog__grid .product-card:hover .product-card__img--primary {
  opacity: 0;
  transform: scale(1.04);
}

.catalog__grid .product-card__body {
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.catalog__grid .product-card__name {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #000;
  margin: 0;
}

.catalog__grid .product-card__price {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  margin: 0;
}

.catalog__grid .product-card__body .btn {
  margin-top: 8px;
  width: 100%;
  padding: 8px 20px;
}

.catalog__grid .product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #000;
  color: #fff;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  pointer-events: none;
  z-index: 2;
}

.catalog__grid .product-card__sale-price {
  color: #c0392b;
}

.catalog__grid .product-card__original-price {
  text-decoration: line-through;
  color: #aaa;
  margin-left: 6px;
}

/* ── Pagination arrows ───────────────────────── */
.catalog__pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 0;
  padding-bottom: 0;
}

.pagination-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid #000;
  border-radius: 50px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pagination-arrow:hover {
  background: #000;
}

.pagination-arrow:hover svg path {
  stroke: #fff;
}

.pagination-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.pagination-arrow:disabled:hover {
  background: #fff;
}

.pagination-arrow:disabled:hover svg path {
  stroke: #000;
}

.pagination-info {
  display: flex;
  align-items: center;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #000;
  min-width: 40px;
  justify-content: center;
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  color: #888;
  letter-spacing: 0.02em;
}

/* ── I3: Catalog error state ── */
.catalog-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  font-family: 'Sora', sans-serif;
}
.catalog-error p { font-size: 1rem; color: #888; margin-bottom: 16px; }
.catalog-error__retry {
  background: var(--black, #000); color: #fff;
  border: none; border-radius: 4px;
  padding: 12px 24px; font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: opacity 0.2s;
}
.catalog-error__retry:hover { opacity: 0.75; }

/* ── S1: Skeleton loading cards ── */
@keyframes skeletonShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.product-card--skeleton {
  pointer-events: none;
}
.product-card__img-wrap--skeleton {
  background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%);
  background-size: 800px 100%;
  animation: skeletonShimmer 1.4s infinite;
  width: 100%; aspect-ratio: 3/4; border-radius: 4px;
}
.product-card__skeleton-line {
  background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%);
  background-size: 800px 100%;
  animation: skeletonShimmer 1.4s infinite;
  border-radius: 3px; margin: 8px auto;
}
.product-card__skeleton-line--title { height: 16px; width: 75%; }
.product-card__skeleton-line--price { height: 14px; width: 40%; }

/* ── Features section on catalog (4 cols desktop) ── */
.catalog-features .features__row {
  grid-template-columns: repeat(4, 1fr);
}

/* ── CTA split section (reuses .heritage) ───── */
.catalog-cta .heritage__right img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ── FAQ Section ─────────────────────────────── */
.catalog-faq-section {
  padding-top: 112px;
  padding-bottom: 112px;
}

.catalog-faq__title {
  text-align: center;
  margin-bottom: 80px;
}

.catalog-faq__title .section-heading {
  margin-bottom: 24px;
}

.catalog-faq__list {
  max-width: 768px;
  margin: 0 auto;
  border-bottom: 1px solid #000;
}

.catalog-faq-item {
  border-top: 1px solid #000;
}

.catalog-faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.catalog-faq-item__question span {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: #000;
  flex: 1;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.catalog-faq-item.open .faq-chevron {
  transform: rotate(0deg);
}

.catalog-faq-item:not(.open) .faq-chevron {
  transform: rotate(180deg);
}

.catalog-faq-item__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding-bottom: 0;
}

.catalog-faq-item.open .catalog-faq-item__answer {
  max-height: 400px;
  padding-bottom: 24px;
}

.catalog-faq-item__answer p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin: 0;
}

/* Need more help CTA */
.catalog-faq__cta {
  max-width: 768px;
  margin: 80px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.catalog-faq__cta-inner h3 {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-weight: 800;
  font-size: 52px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 16px;
}

.catalog-faq__cta-inner p {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  color: #000;
  margin: 0;
}

.catalog-legal__text p {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin: 0;
}

/* ══════════════════════════════════════════════
   TABLET  700–999px
══════════════════════════════════════════════ */
@media (max-width: 999px) {

  .catalog-filter-panel,
  .catalog-sort-dropdown {
    padding: 0 40px 20px;
  }

  .catalog-header {
    padding: 100px 40px 60px;
  }

  .catalog-header__title {
    font-size: 40px;
  }

  .catalog {
    padding: 0 40px 80px;
  }

  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }

  .catalog-features .features__row {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ══════════════════════════════════════════════
   MOBILE  ≤699px
══════════════════════════════════════════════ */
@media (max-width: 699px) {

  /* Prevent any horizontal overflow */
  .page-catalog {
    overflow-x: hidden;
  }

  .catalog-header {
    padding: 96px 20px 48px; /* top pad accounts for fixed navbar */
  }

  body.has-banner .catalog-header,
  body.has-announcement .catalog-header {
    padding-top: 132px;
  }

  .catalog-header__title {
    font-size: 32px;
    word-break: break-word;
  }

  .catalog-header__inner .tagline {
    font-size: 14px;
  }

  .catalog-header__actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .catalog {
    padding: 0 16px 64px;
  }

  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }

  .catalog__grid .product-card__name {
    font-size: 13px;
    line-height: 1.3;
  }

  .catalog__grid .product-card__price {
    font-size: 14px;
  }

  .catalog__grid .product-card__body .btn {
    font-size: 12px;
    padding: 7px 8px;
  }

  .catalog-features {
    padding-left: 20px;
    padding-right: 20px;
  }

  .catalog-features .features__row {
    grid-template-columns: 1fr;
  }

  .catalog-faq-section {
    padding-top: 64px;
    padding-bottom: 64px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .catalog-faq__title {
    margin-bottom: 40px;
  }

  .catalog-faq__list {
    max-width: 100%;
  }

  .catalog-faq-item__question span {
    font-size: 15px;
  }

  .catalog-faq__cta {
    margin-top: 48px;
  }

  .catalog-faq__cta-inner h3 {
    font-size: 28px;
  }

  }
