/* CATALOG PAGE */
.cat-header { padding: 36px 40px 24px; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.cat-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 32px; letter-spacing: -0.5px; }
.cat-sub { font-size: 14px; color: var(--muted); margin-top: 4px; font-weight: 300; }
.try-on-launch { display: flex; align-items: center; gap: 9px; background: var(--black); color: var(--white); border: none; padding: 11px 22px; border-radius: 100px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; }
.try-on-launch:hover { background: var(--accent); }

/* TRY-ON PANEL */
.tryon-backdrop { display: none; min-height: 520px; background: rgba(10,10,10,0.88); border-radius: 20px; margin: 0 40px 32px; overflow: hidden; }
.tryon-backdrop.open { display: flex; }
.tryon-sidebar { width: 240px; background: var(--white); padding: 24px; display: flex; flex-direction: column; border-radius: 20px 0 0 20px; flex-shrink: 0; }
.tryon-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.5px; margin-bottom: 4px; }
.tryon-sub { font-size: 12px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.tryon-frames { display: flex; flex-direction: column; gap: 8px; flex: 1; overflow-y: auto; }
.tryon-frame-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; cursor: pointer; border: 1.5px solid transparent; transition: all 0.15s; }
.tryon-frame-item:hover { background: #f5f5f5; }
.tryon-frame-item.selected { border-color: var(--accent); background: var(--accent-light); }
.tfi-thumb { width: 52px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tfi-name { font-size: 13px; font-weight: 500; }
.tfi-price { font-size: 11px; color: var(--muted); }
.tryon-close { margin-top: 16px; background: var(--black); color: var(--white); border: none; width: 100%; padding: 10px; border-radius: 10px; font-size: 13px; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.tryon-main { flex: 1; display: flex; flex-direction: column; }
.cam-area { flex: 1; position: relative; background: #111; display: flex; align-items: center; justify-content: center; min-height: 380px; overflow: hidden; }
#cam-video { width: 100%; height: 100%; object-fit: cover; display: none; transform: scaleX(-1); }
.cam-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: rgba(255,255,255,0.5); text-align: center; padding: 40px; }
.cam-placeholder p { font-size: 14px; line-height: 1.6; max-width: 280px; }
.start-cam-btn { background: var(--white); color: var(--black); border: none; padding: 12px 28px; border-radius: 100px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.frame-overlay { position: absolute; pointer-events: none; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cam-controls { display: flex; gap: 10px; padding: 14px 20px; background: #1A1A1A; align-items: center; flex-wrap: wrap; }
.size-controls { display: flex; align-items: center; gap: 8px; }
.size-lbl { font-size: 11px; color: rgba(255,255,255,0.4); }
.cam-status { font-size: 11px; color: rgba(255,255,255,0.35); margin-left: auto; }

/* FILTERS */
.filters-bar { padding: 0 40px 24px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-label { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-chip { border: 1px solid rgba(14,14,14,0.15); background: transparent; padding: 7px 16px; border-radius: 100px; font-size: 13px; cursor: pointer; font-family: 'DM Sans', sans-serif; color: var(--black); transition: all 0.15s; }
.filter-chip:hover { border-color: var(--black); }
.filter-chip.active { background: var(--black); color: var(--white); border-color: var(--black); }
.price-range { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12px; color: var(--muted); }
.price-range input { width: 100px; accent-color: var(--accent); }
.price-out { font-size: 13px; font-weight: 500; min-width: 40px; color: var(--black); }
.result-count { font-size: 13px; color: var(--muted); padding: 0 40px 16px; }

/* CATALOG GRID */
.frames-grid-catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 40px 60px; }
.frame-card-catalog { background: var(--surface); border-radius: 20px; overflow: hidden; cursor: pointer; transition: transform 0.2s; border: 1px solid rgba(14,14,14,0.04); }
.frame-card-catalog:hover { transform: translateY(-3px); }
.frame-card-catalog.hidden { display: none; }
.fcc-img { height: 190px; display: flex; align-items: center; justify-content: center; position: relative; }
.try-on-hover { position: absolute; bottom: 10px; right: 10px; background: rgba(14,14,14,0.75); color: #fff; border: none; border-radius: 100px; padding: 5px 12px; font-size: 11px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; opacity: 0; transition: opacity 0.2s; }
.frame-card-catalog:hover .try-on-hover { opacity: 1; }
.fcc-info { padding: 18px 20px; }
.fcc-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.3px; margin-bottom: 3px; }
.fcc-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.color-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.cdot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(14,14,14,0.12); cursor: pointer; }
.fcc-footer { display: flex; justify-content: space-between; align-items: center; }
.fcc-price { font-weight: 600; font-size: 17px; }

@media (max-width: 900px) {
  .frames-grid-catalog { grid-template-columns: 1fr 1fr; padding: 0 20px 40px; }
  .cat-header { padding: 24px 20px 16px; }
  .filters-bar { padding: 0 20px 16px; }
  .tryon-backdrop { margin: 0 20px 24px; }
}

/* Image display fix */
.fcc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.frame-card-catalog:hover .fcc-img img {
  transform: scale(1.04);
}
.fcc-img {
  overflow: hidden;
}
