.ccw-catalog,
.ccw-catalog * { box-sizing: border-box; }

.ccw-catalog {
  --ccw-text: #171717;
  --ccw-muted: #747474;
  --ccw-border: #e9e9e9;
  --ccw-soft: #f7f7f5;
  --ccw-accent: #171717;
  --ccw-radius: 20px;
  width: 100%;
  color: var(--ccw-text);
  font-family: inherit;
}

.ccw-heading { margin: 0 0 36px; max-width: 760px; }
.ccw-heading__title { margin: 0 0 10px; font: inherit; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 650; letter-spacing: -0.035em; color: var(--ccw-text); }
.ccw-heading__intro { margin: 0; color: var(--ccw-muted); font-size: 16px; line-height: 1.7; }

.ccw-layout { display: grid; grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); gap: 44px; align-items: start; }
.ccw-sidebar { position: relative; }
.ccw-sidebar__inner { position: sticky; top: 28px; }
.ccw-sidebar__label { display: block; margin: 0 0 14px; color: #929292; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.ccw-category-list { display: flex; flex-direction: column; gap: 6px; }
.ccw-category { appearance: none; border: 1px solid transparent; background: transparent; width: 100%; min-height: 46px; padding: 11px 13px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #5c5c5c; font: inherit; font-size: 14px; line-height: 1.35; text-align: left; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.ccw-category:hover { background: var(--ccw-soft); color: var(--ccw-text); transform: translateX(2px); }
.ccw-category.is-active { background: #171717; color: #fff; }
.ccw-category__count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; background: #f0f0ee; color: #747474; font-size: 11px; font-weight: 700; }
.ccw-category.is-active .ccw-category__count { background: rgba(255,255,255,.14); color: #fff; }
.ccw-category__arrow { opacity: .65; }

.ccw-results__top { min-height: 32px; margin: 0 0 15px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--ccw-border); }
.ccw-results__eyebrow { margin: 0 0 12px; color: #8b8b8b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.ccw-results__status { margin: 0 0 12px; color: #8b8b8b; font-size: 12px; }

.ccw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; transition: opacity .18s ease, transform .18s ease; align-items: stretch; }
.ccw-grid.is-loading { opacity: .35; transform: translateY(4px); pointer-events: none; }

.ccw-card { min-width: 0; height: 100%; overflow: hidden; border: 1px solid var(--ccw-border); border-radius: var(--ccw-radius); background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.035); display: flex; flex-direction: column; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.ccw-card:hover { transform: translateY(-4px); border-color: #dfdfdf; box-shadow: 0 18px 42px rgba(0,0,0,.075); }
.ccw-card__image-wrap { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f4f4f2; }
.ccw-card__image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.ccw-card__image--illustration { object-fit: contain; background: #f8fafc; padding: 4px; }
.ccw-card:hover .ccw-card__image { transform: scale(1.035); }
.ccw-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #bdbdbd; }
.ccw-card__body { padding: 18px; display: flex; flex: 1 1 auto; flex-direction: column; }
.ccw-card__title { margin: 0 0 9px; color: var(--ccw-text); font: inherit; font-size: 16px; line-height: 1.3; font-weight: 650; letter-spacing: -.015em; }
.ccw-card__description { margin: 0 0 20px; min-height: 72px; color: var(--ccw-muted); font-size: 13.5px; line-height: 1.65; }
.ccw-card__button { width: 100%; min-height: 46px; margin-top: auto; padding: 11px 16px; border-radius: 12px; background: #171717; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none !important; font-size: 13px; font-weight: 650; transition: background .2s ease, transform .2s ease; }
.ccw-card__button:hover { background: #2a2a2a; transform: translateY(-1px); color: #fff !important; }
.ccw-card__button.is-disabled { opacity: .45; pointer-events: none; }
.ccw-card__notice { display: block; margin-top: 7px; color: #a0a0a0; text-align: center; font-size: 10px; }
.ccw-empty { grid-column: 1 / -1; min-height: 240px; border: 1px dashed #dedede; border-radius: var(--ccw-radius); display: grid; place-items: center; padding: 28px; background: #fafafa; color: #777; text-align: center; }

@media (max-width: 1280px) {
  .ccw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ccw-layout { gap: 30px; }
}

@media (max-width: 980px) {
  .ccw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .ccw-heading { margin-bottom: 26px; }
  .ccw-heading__title { font-size: 32px; }
  .ccw-layout { display: block; }
  .ccw-sidebar { margin: 0 -4px 24px; overflow: hidden; }
  .ccw-sidebar__inner { position: static; }
  .ccw-sidebar__label { margin-left: 4px; }
  .ccw-category-list { padding: 0 4px 6px; flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ccw-category-list::-webkit-scrollbar { display: none; }
  .ccw-category { width: auto; min-width: max-content; min-height: 42px; padding: 9px 13px; border: 1px solid var(--ccw-border); background: #fff; }
  .ccw-category:hover { transform: none; }
  .ccw-category__count { height: 23px; min-width: 23px; }
  .ccw-category__arrow { display: none; }
  .ccw-results__top { display: none; }
  .ccw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ccw-card { border-radius: 15px; }
  .ccw-card__body { padding: 14px; }
  .ccw-card__title { font-size: 15px; }
  .ccw-card__description { min-height: 0; margin-bottom: 14px; font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ccw-card__button { min-height: 42px; padding: 9px 10px; font-size: 11.5px; }
}

@media (max-width: 430px) {
  .ccw-grid { grid-template-columns: 1fr; gap: 16px; }
  .ccw-card__description { font-size: 13px; -webkit-line-clamp: 4; }
  .ccw-card__button { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .ccw-card, .ccw-card__image, .ccw-category, .ccw-grid, .ccw-card__button { transition: none !important; }
}
