/* ============================================================
   CATALOG PAGE — QAS MODERN STYLES
   ============================================================ */

/* ── CATALOG HERO ── */
.catalog-hero {
  background: linear-gradient(135deg, var(--navy-deeper) 0%, var(--navy-dark) 100%);
  color: white;
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.catalog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.catalog-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--navy-light), var(--red));
}

.catalog-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.catalog-hero .hero-description {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  z-index: 1;
}

/* ── CATALOG SECTION ── */
.catalog-section {
  padding: 80px 0 100px;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.catalog-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 0;
}

/* ── CATALOG GRID ── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

/* ── CATALOG ITEM CARD ── */
.catalog-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31,66,138,0.08);
  background: white;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.catalog-item:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

/* Image */
.catalog-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease-out), filter 0.4s ease;
}

.catalog-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.82);
}

/* Page number badge */
.catalog-item::before {
  content: attr(data-page);
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(13,30,66,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.85);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 3;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  pointer-events: none;
}

.catalog-item:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* Red corner accent */
.catalog-item::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 48px 48px 0;
  border-color: transparent var(--red) transparent transparent;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.catalog-item:hover::after {
  opacity: 1;
}

/* Left accent bar */
.catalog-item .catalog-accent {
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 0;
  background: linear-gradient(to bottom, var(--red), var(--navy));
  border-radius: 0 0 2px 2px;
  z-index: 4;
  transition: height 0.4s var(--ease-out);
}

.catalog-item:hover .catalog-accent {
  height: 100%;
}

/* ── OVERLAY ── */
.catalog-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.catalog-overlay i {
  width: 60px; height: 60px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 10px 30px rgba(220,23,31,0.45);
  transform: scale(0.7);
  transition: transform 0.38s var(--ease-spring);
}

.catalog-item:hover .catalog-overlay {
  opacity: 1;
}

.catalog-item:hover .catalog-overlay i {
  transform: scale(1);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .catalog-section {
    padding: 60px 0 80px;
  }

  .catalog-item:hover {
    transform: translateY(-5px) scale(1.01);
  }
}

@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .catalog-hero h1 {
    font-size: 32px;
  }

  .catalog-hero .hero-description {
    font-size: 15px;
  }
}