/* ── PAGE HERO ── */
.page-hero {
  margin-top: 64px;
  background: var(--graphite);
  padding: 56px 80px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; min-height: 180px;
}

.page-hero h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800; color: var(--white);
  letter-spacing: -.01em; text-transform: uppercase; line-height: 1.05;
}


.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.45); }
.breadcrumb a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: rgba(255,255,255,.8); }
.breadcrumb span { opacity: .4; }

/* ── FILTER BAR ── */
.filter-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 80px; position: sticky; top: 64px; z-index: 50;
}

.filter-bar-inner {
  display: flex; align-items: center; height: 56px;
  overflow-x: auto; scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }

.filter-tab {
  display: flex; align-items: center; height: 100%;
  padding: 0 20px; font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--muted); background: none; border: none;
  cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.filter-tab.active { color: var(--green); border-bottom-color: var(--green); }
.filter-tab:hover:not(.active) { color: var(--graphite); }

.filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; background: var(--bg2); border-radius: 10px;
  font-size: 11px; font-weight: 700; color: var(--muted); margin-left: 6px;
}
.filter-tab.active .filter-count { background: rgba(30,61,48,.12); color: var(--green); }

/* ── MAIN ── */
.catalog-main { padding: 48px 80px 80px; }

.catalog-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}

.catalog-count { font-size: 13px; color: var(--muted); font-weight: 500; }

.sort-select {
  font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--graphite); background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 8px 14px; cursor: pointer; outline: none; transition: border-color .2s;
}
.sort-select:focus { border-color: var(--green); }

/* ── GRID ── */
.catalog-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden; transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: 0 10px 36px rgba(0,0,0,.09); transform: translateY(-2px); }

.card-img { height: 230px; position: relative; overflow: hidden; cursor: zoom-in; }

.carousel-track { display: flex; height: 100%; width: 100%; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.carousel-slide { flex: 0 0 100%; height: 100%; overflow: hidden; }
.carousel-slide .img-placeholder { height: 100%; }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,.88); border: none;
  width: 28px; height: 28px; border-radius: 50%; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.card:hover .carousel-arrow { opacity: 1; }
.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }
.carousel-arrow:hover { background: var(--white); }

.carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 10;
}
.carousel-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.carousel-dot.active { background: var(--white); transform: scale(1.3); }

.carousel-zoom {
  position: absolute; top: 10px; left: 10px; z-index: 10;
  background: rgba(255,255,255,.82); border: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-in; font-size: 12px; opacity: 0; transition: opacity .2s;
}
.card:hover .carousel-zoom { opacity: 1; }

.card-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--orange); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 2px;
}

.card-body { padding: 16px; }
.card-type { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.card-name { font-size: 14px; font-weight: 600; color: var(--graphite); margin-bottom: 8px; }
.card-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.card-price { font-size: 18px; font-weight: 700; color: var(--orange); }
.card-price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }

.btn-card {
  width: 100%; background: var(--green); color: var(--white);
  border: none; padding: 11px; font-family: var(--font); font-size: 13px;
  font-weight: 600; cursor: pointer; border-radius: var(--radius);
  transition: background .2s; letter-spacing: .03em;
}
.btn-card:hover { background: var(--green-hover); }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10,10,10,.93);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-wrap { position: relative; }

.lightbox-inner {
  width: min(88vw, 860px); aspect-ratio: 4/3;
  border-radius: 6px; overflow: hidden; position: relative;
}

.lightbox-slide { position: absolute; inset: 0; display: none; }
.lightbox-slide.active { display: block; }
.lightbox-slide .img-placeholder { height: 100%; }

.lightbox-close {
  position: absolute; top: -44px; right: 0;
  background: none; border: none; color: white; font-size: 28px; cursor: pointer;
}

.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: white; width: 44px; height: 44px; border-radius: 50%;
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s; backdrop-filter: blur(4px);
}
.lightbox-arrow:hover { background: rgba(255,255,255,.25); }
.lightbox-arrow.prev { left: -60px; }
.lightbox-arrow.next { right: -60px; }

.lightbox-counter {
  position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: 12px; white-space: nowrap;
}
.lightbox-title {
  position: absolute; bottom: -32px; left: 0;
  color: rgba(255,255,255,.6); font-size: 12px; font-weight: 600;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1200px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .page-hero, .filter-bar { padding-left: 40px; padding-right: 40px; }
  .catalog-main { padding: 40px 40px 64px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { padding: 40px 20px; min-height: auto; }
  .filter-bar { padding: 0 20px; }
  .catalog-main { padding: 28px 20px 48px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card-img { height: 180px; }
  .carousel-arrow { opacity: 0; pointer-events: none; }
  .carousel-zoom { opacity: 0; }
  .lightbox-arrow.prev { left: 8px; }
  .lightbox-arrow.next { right: 8px; }
  .lightbox-inner { width: 96vw; border-radius: 4px; }
  .lightbox-counter { bottom: -28px; }
  .lightbox-title { display: none; }
}
