/* =====================================================
   MIZA MEDİKAL — Ürünler Katalog Sayfası
   ===================================================== */

/* ── Catalog Hero ─────────────────────────────────── */
.catalog-hero {
  position: relative;
  padding: clamp(9rem, 12vw, 13rem) 0 clamp(3rem, 5.5vw, 5.5rem);
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--cream) 0%, var(--white) 50%, var(--gold-mist) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.catalog-hero::before {
  content: "Katalog";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-script);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 1;
  color: rgba(173, 131, 48, 0.07);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.catalog-hero-inner {
  position: relative;
  z-index: 1;
}

.catalog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--gold-pale);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 28px;
}

.catalog-hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(173, 131, 48, 0.18);
}

.catalog-hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.catalog-hero-title em {
  font-style: italic;
  color: var(--gold);
}

.catalog-hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Decorative line elements */
.catalog-hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.catalog-hero-lines::before,
.catalog-hero-lines::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(173, 131, 48, 0.1);
}

.catalog-hero-lines::before {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
}

.catalog-hero-lines::after {
  width: 400px;
  height: 400px;
  bottom: -180px;
  left: -100px;
}

/* ── Category Filter ──────────────────────────────── */
.catalog-filter-section {
  padding: 40px 0 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: clamp(4rem, 5.5vw, 5rem);
  z-index: 20;
}

.catalog-filter-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 0;
}

.filter-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
  flex-shrink: 0;
}

.filter-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.filter-scroll::-webkit-scrollbar { display: none; }

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  position: relative;
}

.filter-btn .filter-count {
  font-size: 11px;
  color: inherit;
  opacity: 0.6;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-mist);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  font-weight: 500;
}

.filter-btn.active .filter-count { opacity: 0.7; }

/* Products Section */
.products-section {
  padding: clamp(42px, 7vw, 82px) 0 clamp(64px, 10vw, 112px);
  background: var(--cream);
}
.products-count-row { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 26px; }
.products-count { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card {
  position: relative; background: var(--white); border: 1px solid rgba(173, 131, 48, 0.16); border-radius: 0; overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  display: grid; grid-template-rows: auto 1fr; color: inherit; text-decoration: none; cursor: pointer;
}
.product-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(31, 26, 16, 0.07); border-color: rgba(173, 131, 48, 0.34); }
.product-card-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), opacity 0.28s var(--ease); }
.product-card:hover .product-card-image img { transform: scale(1.02); opacity: 0.95; }
.product-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0.3; }
.product-card-category { display: inline-flex; width: fit-content; align-items: center; font-size: 9.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dark); }
.product-card-badge { display: none; }
.product-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.product-card-body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.65rem); color: var(--ink); line-height: 1.1; }
.product-card-body .tagline { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 10px; }
.product-card-cta { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); transition: gap 0.22s var(--ease), color 0.22s var(--ease); }
.product-card:hover .product-card-cta { gap: 10px; }
.product-card-cta svg { transition: transform 0.22s var(--ease); }
.product-card:hover .product-card-cta svg { transform: translateX(3px); }
.product-card-number { font-family: var(--font-display); font-size: 0.78rem; color: var(--gold-pale); }

/* ── Empty State ──────────────────────────────────── */
.products-empty {
  grid-column: 1 / -1;
  padding: 80px 40px;
  text-align: center;
  color: var(--muted);
}

.products-empty svg { opacity: 0.25; margin: 0 auto 20px; }
.products-empty h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

/* ── Catalog Table View (alternative) ────────────── */
.catalog-table-section {
  padding: 0 0 clamp(64px, 10vw, 120px);
  background: var(--cream);
}

.catalog-sep {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: clamp(40px, 6vw, 72px) 0;
}

/* ── Scroll Reveal ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; gap: 18px; }
  .catalog-filter-section { top: 64px; }
  .product-card-image { aspect-ratio: 4 / 3; }
}
