/* ============================================
   CATALOG PAGE
   ============================================ */

/* Hero */
.cat-hero {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
  padding: 64px 0 48px;
  color: var(--white);
  text-align: center;
}
.cat-hero__title { font-size: clamp(28px, 4vw, 48px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.cat-hero__desc { font-size: 17px; color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 28px; }
.cat-hero__stats { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.cat-hero__stats span { font-size: 14px; font-weight: 500; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 8px 16px; border-radius: 20px; }

/* Layout */
.catalog-wrap { padding: 32px 0 80px; background: var(--bg); }
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }

/* FILTERS */
.filters {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.filters__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.filters__title { font-size: 15px; font-weight: 700; }
.filters__reset { font-size: 13px; color: var(--brand); background: none; border: none; cursor: pointer; font-family: inherit; }
.filters__reset:hover { text-decoration: underline; }
.filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-group:last-of-type { border-bottom: none; }
.filter-group__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 10px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--text-2); background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 6px 14px; cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); color: var(--white); border-color: var(--brand); }
.chip--emoji { padding: 6px 12px; }
.filters__count { font-size: 14px; font-weight: 600; color: var(--brand); margin-top: 16px; text-align: center; background: var(--brand-light); padding: 10px; border-radius: var(--radius-sm); }

/* QUICK PICKS */
.quick-picks { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.quick-picks__title { font-size: 13px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.quick-picks__list { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-pick {
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--brand); background: var(--brand-light); border: none;
  border-radius: 20px; padding: 7px 14px; cursor: pointer;
  transition: all .15s;
}
.quick-pick:hover { background: var(--brand); color: var(--white); }

/* TOOLBAR */
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.catalog-toolbar__label { font-size: 13px; color: var(--text-3); margin-right: 8px; }
.catalog-sort {
  font-family: inherit; font-size: 14px; font-weight: 500;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 14px; background: var(--white); cursor: pointer; color: var(--text);
}
.catalog-toolbar__filter-btn {
  display: none; font-family: inherit; font-size: 14px; font-weight: 600;
  background: var(--brand); color: var(--white); border: none;
  padding: 10px 20px; border-radius: var(--radius-sm); cursor: pointer;
}

/* CARDS */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cert-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .2s ease; display: flex; flex-direction: column;
}
.cert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--brand); }
.cert-card--premium { border-color: #A78BFA; }
.cert-card--hidden { display: none; }

.cert-card__img {
  height: 160px; position: relative;
  background: linear-gradient(135deg, var(--brand-light), #C4B5FD);
  display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.cert-card__img--spa { background: linear-gradient(135deg, #BAE6FD, #60A5FA); }
.cert-card__img--spa::after { content: '🌊'; font-size: 48px; }
.cert-card__img--extreme { background: linear-gradient(135deg, #FED7AA, #FB923C); }
.cert-card__img--extreme::after { content: '🪂'; font-size: 48px; }
.cert-card__img--romantic { background: linear-gradient(135deg, #FBCFE8, #F472B6); }
.cert-card__img--romantic::after { content: '❤️'; font-size: 48px; }
.cert-card__img--beauty { background: linear-gradient(135deg, #DDD6FE, #A78BFA); }
.cert-card__img--beauty::after { content: '💆'; font-size: 48px; }
.cert-card__img--karting { background: linear-gradient(135deg, #D1FAE5, #34D399); }
.cert-card__img--karting::after { content: '🏎️'; font-size: 48px; }
.cert-card__img--photo { background: linear-gradient(135deg, #FEF3C7, #FBBF24); }
.cert-card__img--photo::after { content: '📸'; font-size: 48px; }
.cert-card__img--restaurant { background: linear-gradient(135deg, #FFE4E6, #FB7185); }
.cert-card__img--restaurant::after { content: '🍷'; font-size: 48px; }
.cert-card__img--quest { background: linear-gradient(135deg, #1E293B, #334155); }
.cert-card__img--quest::after { content: '🔐'; font-size: 48px; }
.cert-card__img--luxury { background: linear-gradient(135deg, #1E1B4B, #4338CA); }
.cert-card__img--luxury::after { content: '💎'; font-size: 48px; }
.cert-card__img--cooking { background: linear-gradient(135deg, #ECFDF5, #6EE7B7); }
.cert-card__img--cooking::after { content: '👨‍🍳'; font-size: 48px; }
.cert-card__img--nails { background: linear-gradient(135deg, #FDF4FF, #E879F9); }
.cert-card__img--nails::after { content: '💅'; font-size: 48px; }
.cert-card__img--theater { background: linear-gradient(135deg, #FFF7ED, #FB923C); }
.cert-card__img--theater::after { content: '🎭'; font-size: 48px; }

.cert-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.cert-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.cert-badge--hot { background: #EF4444; color: #fff; }
.cert-badge--new { background: #10B981; color: #fff; }
.cert-badge--delivery { background: rgba(0,0,0,.6); color: #fff; backdrop-filter: blur(4px); }
.cert-badge--premium { background: linear-gradient(135deg, #7C3AED, #4338CA); color: #fff; }

.cert-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cert-card__cat { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.cert-card__title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.cert-card__desc { font-size: 13px; color: var(--text-2); line-height: 1.6; flex: 1; }
.cert-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cert-card__tags span { font-size: 11px; background: var(--bg); border: 1px solid var(--border); color: var(--text-2); padding: 3px 10px; border-radius: 20px; }
.cert-card__footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.cert-card__price { font-size: 18px; font-weight: 800; color: var(--text); }
.cert-card__rating { font-size: 13px; color: var(--text-3); }
.cert-card__btn { margin-top: 4px; font-size: 14px; padding: 12px; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state__emoji { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 15px; color: var(--text-2); }
.link-btn { background: none; border: none; color: var(--brand); cursor: pointer; font-size: 15px; text-decoration: underline; font-family: inherit; }

/* HELP BANNER */
.help-banner {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 32px;
}
.help-banner__content { display: flex; align-items: center; gap: 20px; }
.help-banner__emoji { font-size: 40px; }
.help-banner__content h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.help-banner__content p { font-size: 14px; color: var(--text-2); }
.help-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .catalog-toolbar__filter-btn { display: flex; }
}
@media (max-width: 600px) {
  .certs-grid { grid-template-columns: 1fr; }
  .help-banner { flex-direction: column; align-items: flex-start; }
  .help-banner__actions { width: 100%; flex-direction: column; }
}
