.ccat-shell {
  --ccat-black: #0b0b0c;
  --ccat-yellow: #ffd129;
  --ccat-ink: #202124;
  --ccat-muted: #667085;
  --ccat-line: #e1e5ea;
  color: var(--ccat-ink);
}

.ccat-hero {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 346px;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid #1b3551;
  border-radius: 22px;
  background: #061427 url('/assets/catalogs/category-art/catalog-directory-hero-rainbow-v4.webp') center center / cover no-repeat;
  color: #fff;
  box-shadow: 0 18px 42px rgba(4, 15, 29, .22);
}

.ccat-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 6px;
  transform: none;
  background: linear-gradient(90deg, var(--ccat-yellow) 0 52%, #1478ff 52% 68%, #ef3139 68% 82%, #00b9c8 82% 100%);
}

.ccat-hero-copy,
.ccat-stats { position: relative; z-index: 1; }

.ccat-hero-copy { max-width: min(590px, 53%); }

.ccat-kicker,
.ccat-section-kicker {
  color: #5f6368;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ccat-hero .ccat-kicker {
  color: #f3f8ff;
  font-size: 13px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .9), 0 7px 18px rgba(0, 0, 0, .72);
}

body.brand-v4 #page-app #main-content .ccat-title {
  max-width: 610px;
  margin: 16px 0 0;
  color: #fff !important;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 950;
  line-height: .96;
  letter-spacing: -.055em;
  text-shadow: 0 3px 2px rgba(1, 8, 18, .88), 0 9px 30px rgba(0, 0, 0, .82);
}

.ccat-title-line { display: block; width: max-content; max-width: 100%; }

body.brand-v4 #page-app #main-content .ccat-title .ccat-title-accent {
  color: #fff !important;
  background: linear-gradient(90deg, var(--ccat-yellow) 0 38%, #1478ff 38% 60%, #ef3139 60% 80%, #00d4de 80% 100%) 0 100% / 100% 10px no-repeat;
}

.ccat-lead {
  max-width: 550px;
  margin: 22px 0 0;
  padding-left: 15px;
  border-left: 4px solid var(--ccat-yellow);
  color: #fff;
  font-size: clamp(17px, 1.55vw, 19px);
  font-weight: 750;
  line-height: 1.48;
  text-shadow: 0 2px 3px rgba(1, 8, 18, .95), 0 7px 20px rgba(0, 0, 0, .82);
}

.ccat-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 610px;
  margin-top: 18px;
}

.ccat-stat {
  position: relative;
  min-height: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 0 0 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ccat-stat::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--ccat-yellow);
  box-shadow: 0 0 14px rgba(255, 209, 41, .8);
}

.ccat-stat + .ccat-stat::before { background: #00d4de; box-shadow: 0 0 14px rgba(0, 212, 222, .8); }

.ccat-stat strong {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 2px 3px rgba(1, 8, 18, .95), 0 6px 16px rgba(0, 0, 0, .8);
}

.ccat-stat span {
  margin-top: 0;
  color: #f2f7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .72);
}

.ccat-filter-panel {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--ccat-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(20, 20, 20, .06);
}

.ccat-filter-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

body.brand-v4 #page-app #main-content .ccat-filter-title {
  margin: 0;
  color: #171718 !important;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.035em;
}

.ccat-filter-intro p {
  max-width: 470px;
  margin: 0;
  color: var(--ccat-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.ccat-filter-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}

.ccat-filter {
  position: relative;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0;
  border: 2px solid #171718;
  border-radius: 17px;
  background: #171718;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  grid-column: span 3;
}

.ccat-filter:nth-last-child(-n + 3) { grid-column: span 4; }

.ccat-filter:hover {
  transform: translateY(-3px);
  border-color: var(--ccat-yellow);
  box-shadow: 0 14px 28px rgba(17, 17, 18, .2);
}

.ccat-filter:focus-visible {
  outline: 3px solid rgba(255, 209, 41, .48);
  outline-offset: 2px;
}

.ccat-filter-photo,
.ccat-filter-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ccat-filter-photo {
  z-index: -2;
  object-fit: cover;
  background: #fff;
  filter: saturate(.96) contrast(1.04);
  transform: scale(1);
  transition: transform .28s ease, filter .28s ease;
}

.ccat-filter-shade {
  display: none;
}

.ccat-filter-copy {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 78%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  min-height: 0;
  padding: 16px 18px 18px;
  text-align: left;
}

.ccat-filter-copy strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.08;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .48);
}

.ccat-filter-copy .ccat-filter-description {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.22;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .84);
}

.ccat-filter small {
  display: none;
}

.ccat-filter.is-active {
  border-color: var(--ccat-yellow);
  box-shadow: 0 0 0 3px rgba(255, 209, 41, .32), 0 16px 32px rgba(17, 17, 18, .22);
}

.ccat-filter:hover .ccat-filter-photo,
.ccat-filter.is-active .ccat-filter-photo { transform: scale(1.025); filter: saturate(1.04) contrast(1.06); }
.ccat-filter.is-active::after {
  content: "✓";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ccat-yellow);
  color: #171718;
  font-size: 14px;
  font-weight: 950;
}
.ccat-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 34px 0 17px;
}

.ccat-section-kicker { color: #171718; }

.ccat-section-head p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--ccat-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ccat-available-pill,
.ccat-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ccat-available-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #dfe3e8;
  background: #f5f7fa;
  color: #30343a;
}

.ccat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.ccat-card {
  position: relative;
  min-width: 0;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--ccat-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 20, 20, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ccat-card.is-available {
  cursor: pointer;
  border-color: #dfe3e8;
  background: #fff;
}

.ccat-card.is-available::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--ccat-yellow);
}

.ccat-card.is-available:hover,
.ccat-card.is-available:focus-visible {
  transform: translateY(-3px);
  border-color: #bfa719;
  box-shadow: 0 20px 46px rgba(20, 20, 20, .12);
  outline: none;
}

.ccat-logo-box {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 118px;
}

.ccat-logo-box img {
  max-width: 190px;
  max-height: 55px;
  object-fit: contain;
  object-position: left center;
  filter: saturate(.9);
}

.ccat-wordmark-mafra {
  position: relative;
  color: #101011;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.07em;
  line-height: 1;
}

.ccat-wordmark-mafra::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 7px;
  transform: skewX(-22deg);
  background: var(--ccat-yellow);
}

.ccat-wordmark-castrol {
  position: relative;
  color: #e30613;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.075em;
  line-height: 1;
}

.ccat-wordmark-castrol::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 7px;
  border-radius: 999px;
  background: #169447;
  transform: skewX(-18deg);
}

.ccat-status {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  background: #edf0f4;
  color: #5f6368;
  max-width: 190px;
  text-align: center;
}

.ccat-status.is-live { background: var(--ccat-yellow); color: #171718; }

.ccat-card-body { flex: 1; padding-top: 18px; }

.ccat-category-tag {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f4f8;
  color: #5f6672;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body.brand-v4 #page-app #main-content .ccat-brand-name {
  margin: 0;
  color: #1b1b1c !important;
  font-size: 22px;
  letter-spacing: -.025em;
}

.ccat-brand-description {
  max-width: 510px;
  margin: 8px 0 0;
  color: var(--ccat-muted);
  font-size: 13px;
  line-height: 1.48;
}

.ccat-card-footer {
  min-height: 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.ccat-product-count {
  color: #667085;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ccat-open {
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--ccat-yellow);
  color: #171718;
  font: 900 12px/1 inherit;
  cursor: pointer;
}

.ccat-open:hover { background: #e8bd00; }

.ccat-back {
  margin: 0 0 14px;
  padding: 7px 2px;
  border: 0;
  background: transparent;
  color: #55565a;
  font: 850 12px/1 inherit;
  cursor: pointer;
}

.ccat-back:hover { color: #111; text-decoration: underline; }

.cmafra-nav-badge {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  display: inline-block;
  flex: 0 0 24px;
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M2%205.2c3.5-1.1%206.8-.6%2010%201.5%203.2-2.1%206.5-2.6%2010-1.5v14.2c-3.5-1-6.8-.4-10%201.5-3.2-1.9-6.5-2.5-10-1.5Z%22%20fill%3D%22%23ffd129%22%20stroke%3D%22%23243348%22%20stroke-width%3D%221.25%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M3.8%203.2C7%202.9%209.5%203.8%2012%205.7c2.5-1.9%205-2.8%208.2-2.5v13.9c-3.1-.2-5.7.7-8.2%202.3-2.5-1.6-5.1-2.5-8.2-2.3Z%22%20fill%3D%22%23fffdf4%22%20stroke%3D%22%23243348%22%20stroke-width%3D%221.1%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M12%205.7v13.7%22%20stroke%3D%22%23243348%22%20stroke-width%3D%221.1%22%2F%3E%3Cpath%20d%3D%22m6%207%203.7%201v3.8L6%2011Z%22%20fill%3D%22%232786d6%22%2F%3E%3Cpath%20d%3D%22m14.3%208%203.7-1v3.8l-3.7%201Z%22%20fill%3D%22%23ffc928%22%2F%3E%3Cpath%20d%3D%22m6%2013.4%203.7%201M14.3%2014.4l3.7-1%22%20stroke%3D%22%23243348%22%20stroke-width%3D%221.1%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

@media (forced-colors: active) {
  .cmafra-nav-badge { forced-color-adjust: none; }
}

.cmafra-shell {
  --cmafra-black: #0b0b0c;
  --cmafra-yellow: #ffd129;
  --cmafra-ink: #202124;
  --cmafra-muted: #686a70;
  --cmafra-line: #dfdfdc;
  color: var(--cmafra-ink);
}

.cmafra-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cmafra-catalog-tag {
  padding: 7px 11px;
  border-radius: 999px;
  background: #1c1d1e;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cmafra-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 38px;
  align-items: end;
  overflow: hidden;
  min-height: 300px;
  padding: clamp(28px, 5vw, 62px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 209, 41, .22), transparent 24%),
    linear-gradient(135deg, #080809 0%, #151516 100%);
  color: #fff !important;
  box-shadow: 0 28px 70px rgba(10, 10, 10, .19);
}

.cmafra-hero-fact {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  color: #fff;
  text-align: right;
}

.cmafra-hero-fact strong { color: var(--cmafra-yellow); font-size: 72px; line-height: .9; }
.cmafra-hero-fact span { margin-top: 8px; font-size: 14px; font-weight: 900; text-transform: uppercase; }
.cmafra-hero-fact small { margin-top: 9px; color: #c9c9c5; font-size: 11px; line-height: 1.35; }

.cmafra-standard-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #dfdfdc;
  border-radius: 14px;
  background: #f8f8f5;
  color: #5d5f62;
  font-size: 12px;
  line-height: 1.45;
}

.cmafra-standard-note strong { color: #222426; white-space: nowrap; }
.cmafra-standard-note.is-confirmed { border-color: #b9dec7; background: #eff9f2; }
.cmafra-standard-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #188348;
  color: #fff;
  font-weight: 900;
}

.cmafra-hero::before {
  content: "";
  position: absolute;
  inset: 26px -10% auto auto;
  width: 58%;
  height: 18px;
  transform: rotate(-8deg);
  background: var(--cmafra-yellow);
  opacity: .95;
}

.cmafra-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.cmafra-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--cmafra-yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.brand-v4 #page-app #main-content .cmafra-title {
  margin: 0;
  max-width: 660px;
  color: #fff !important;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .91;
  letter-spacing: -.055em;
}

body.brand-v4 #page-app #main-content .cmafra-title span { color: var(--cmafra-yellow) !important; }

.cmafra-lead {
  max-width: 610px;
  margin: 22px 0 0;
  color: #d7d7d4;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
}

.cmafra-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.cmafra-link,
.cmafra-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 850 13px/1.1 inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.cmafra-link:hover,
.cmafra-btn:hover { transform: translateY(-1px); }

.cmafra-link-primary,
.cmafra-btn-primary {
  background: var(--cmafra-yellow);
  color: #111;
  box-shadow: 0 12px 26px rgba(255, 209, 41, .22);
}

.cmafra-link-secondary,
.cmafra-btn-secondary {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.cmafra-category-panel {
  margin-top: 22px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--cmafra-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(20, 20, 20, .06);
}

.cmafra-category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

body.brand-v4 #page-app #main-content .cmafra-category-title {
  margin: 0;
  color: #171718 !important;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.035em;
}

.cmafra-category-head p {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--cmafra-muted);
  font-size: 13px;
  line-height: 1.5;
}

.cmafra-category-total {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #171718;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cmafra-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cmafra-category {
  position: relative;
  min-height: 132px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: 0;
  border: 2px solid #171718;
  border-radius: 17px;
  background: #171718;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cmafra-category:hover {
  transform: translateY(-3px);
  border-color: var(--cmafra-yellow);
  box-shadow: 0 14px 28px rgba(17, 17, 18, .2);
}

.cmafra-category:focus-visible {
  outline: 3px solid rgba(255, 209, 41, .58);
  outline-offset: 2px;
}

.cmafra-category-photo,
.cmafra-category-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cmafra-category-photo {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  background: #fff;
  filter: saturate(.98) contrast(1.04);
  transform: scale(1);
  transition: transform .28s ease, filter .28s ease;
}

.cmafra-category-shade {
  display: none;
}

.cmafra-category-copy {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 78%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  min-height: 0;
  padding: 14px 17px 16px;
  text-align: left;
}

.cmafra-category-logo {
  display: block;
  width: auto;
  max-width: 112px;
  height: 28px;
  object-fit: contain;
  object-position: left center;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}

.cmafra-category-copy strong {
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .52);
}

.cmafra-category-copy span {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.22;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .84);
}

.cmafra-category small {
  display: none;
}

.cmafra-category:hover .cmafra-category-photo,
.cmafra-category.is-active .cmafra-category-photo {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.06);
}

.cmafra-category.is-active {
  border-color: var(--cmafra-yellow);
  box-shadow: 0 0 0 3px rgba(255, 209, 41, .32), 0 16px 32px rgba(17, 17, 18, .2);
}

.cmafra-category.is-active::after {
  content: "✓";
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cmafra-yellow);
  color: #171718;
  font-size: 13px;
  font-weight: 950;
}

.cmafra-toolbar {
  position: sticky;
  top: 10px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin: 24px 0 18px;
  padding: 14px;
  border: 1px solid var(--cmafra-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 40px rgba(25, 25, 25, .08);
  backdrop-filter: blur(14px);
}

.cmafra-search {
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #cfcfcb;
  border-radius: 12px;
  background: #fff;
  color: var(--cmafra-ink);
  font: 700 15px/1 inherit;
  outline: none;
}

.cmafra-search:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(255, 209, 41, .55);
}

.cmafra-count {
  min-width: 154px;
  display: grid;
  place-items: center;
  padding: 8px 14px;
  border-radius: 12px;
  background: #f4f4f1;
  color: var(--cmafra-muted);
  font-size: 12px;
  font-weight: 800;
}

.cmafra-count strong { color: #111; font-size: 18px; }

.cmafra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cmafra-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cmafra-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 20, 20, .055);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cmafra-card:hover {
  transform: translateY(-3px);
  border-color: #c9c9c4;
  box-shadow: 0 18px 40px rgba(20, 20, 20, .11);
}

.cmafra-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 0;
}

.cmafra-code {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 0;
  border-radius: 11px;
  background: var(--cmafra-yellow);
  color: #0b0b0c;
  cursor: pointer;
  font-family: inherit;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .01em;
}
.cmafra-code:hover { filter: brightness(.96); }
.cmafra-code:focus-visible { outline: 3px solid rgba(17, 17, 17, .28); outline-offset: 3px; }

.cmafra-rank { color: #8a8a86; font: 750 11px/1 inherit; }

.cmafra-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 12px 16px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, #f9f9f7, #f0f0ed);
}

.cmafra-media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 14px;
  object-fit: contain;
  object-position: center center;
  mix-blend-mode: multiply;
}

.cmafra-media .rp-catalog-gallery__image { padding: 0; }

.cmafra-placeholder {
  display: grid;
  place-items: center;
  width: 78%;
  height: 72%;
  border: 1px solid #d8d8d3;
  border-radius: 13px;
  color: #8a8a84;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.cmafra-card-body {
  flex: 1;
  padding: 18px 17px 12px;
}

.cmafra-detail-link {
  display: inline-flex;
  margin-top: 14px;
  color: #171819;
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--cmafra-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.cmafra-brand {
  color: #74746e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cmafra-name {
  margin: 7px 0 8px;
  color: #202124;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.cmafra-description {
  margin: 0;
  color: var(--cmafra-muted);
  font-size: 13px;
  line-height: 1.45;
}

.cmafra-search-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 12px 12px;
  padding: 13px 14px;
  border: 1px solid #e3e3dc;
  border-radius: 15px;
  background: #f6f7f9;
}

.cmafra-search-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.cmafra-search-copy strong {
  color: #171819;
  font-size: 12px;
  font-weight: 950;
}

.cmafra-search-copy span {
  color: #686a70;
  font-size: 11px;
  line-height: 1.35;
}

.cmafra-search-action .cmafra-btn {
  width: auto;
  min-width: 150px;
  padding-inline: 15px;
  white-space: nowrap;
}

.cmafra-btn { min-height: 42px; width: 100%; }
.cmafra-btn:disabled { opacity: .55; cursor: wait; transform: none; }

@media (max-width: 520px) {
  .cmafra-search-action { grid-template-columns: 1fr; }
  .cmafra-search-action .cmafra-btn { width: 100%; }
}

.cmafra-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 8px;
}

.cmafra-page-label {
  min-width: 112px;
  color: var(--cmafra-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.cmafra-pagination .cmafra-btn { width: auto; }

.cmafra-empty,
.cmafra-fatal {
  grid-column: 1 / -1;
  padding: 42px 20px;
  border: 1px dashed #cfcfca;
  border-radius: 18px;
  color: var(--cmafra-muted);
  text-align: center;
}

.cmafra-return {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #e0d287;
  border-radius: 14px;
  background: #fff8d5;
  color: #31312d;
  font-size: 13px;
  font-weight: 750;
}

.cmafra-return button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #111;
  font: 900 12px/1 inherit;
  cursor: pointer;
  text-decoration: underline;
}

.cmafra-return-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.cmafra-return-copy strong { color: #1f211f; font-size: 14px; }
.cmafra-return-copy span { color: #656861; font-size: 12px; }
.cmafra-return-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.cmafra-return .cmafra-return-primary,
.cmafra-return .cmafra-return-secondary {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  text-decoration: none;
}
.cmafra-return .cmafra-return-primary { background: #171819; color: #fff; }
.cmafra-return .cmafra-return-secondary { border: 1px solid #d3c773; background: #fff; color: #34342f; }

@media (max-width: 1060px) {
  .ccat-hero { background-position: 52% center; }
  .ccat-hero-copy { max-width: 58%; }
  .ccat-stats { max-width: 62%; }
  .ccat-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccat-filter-grid > .ccat-filter { grid-column: auto; }
  .ccat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmafra-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmafra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmafra-hero { grid-template-columns: 1fr; gap: 24px; }
  .cmafra-hero-fact { align-items: flex-start; text-align: left; }
  .cmafra-hero-fact strong { font-size: 58px; }
}

@media (max-width: 680px) {
  .ccat-hero { min-height: 430px; padding: 30px 22px; border-radius: 20px; background-position: 16% center; }
  .ccat-hero-copy { max-width: 100%; }
  body.brand-v4 #page-app #main-content .ccat-title { font-size: clamp(38px, 11vw, 50px); }
  .ccat-title-line { width: 100%; }
  .ccat-lead { max-width: 100%; font-size: 17px; }
  .ccat-stats { max-width: 100%; flex-wrap: wrap; gap: 10px 18px; }
  .ccat-stat strong { font-size: 20px; }
  .ccat-filter-panel { border-radius: 20px; }
  .ccat-filter-intro { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ccat-filter-intro p { text-align: left; }
  .ccat-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccat-filter { min-height: 126px; }
  .ccat-filter-copy { width: 82%; }
  .ccat-section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .ccat-grid { grid-template-columns: 1fr; gap: 14px; }
  .ccat-card { min-height: 275px; border-radius: 18px; }
  .ccat-logo-box { padding-right: 108px; }
  .cmafra-topbar { align-items: flex-start; flex-direction: column; }
  .cmafra-hero { min-height: 0; padding: 30px 22px; border-radius: 20px; }
  .cmafra-title { font-size: clamp(40px, 15vw, 58px); }
  .cmafra-category-panel { border-radius: 20px; }
  .cmafra-category-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .cmafra-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmafra-category { min-height: 122px; }
  .cmafra-category-copy { width: 82%; }
  .cmafra-toolbar { top: 5px; grid-template-columns: 1fr; }
  .cmafra-count { min-width: 0; grid-auto-flow: column; justify-content: center; gap: 7px; }
  .cmafra-grid { grid-template-columns: 1fr; gap: 14px; }
  .cmafra-card { border-radius: 18px; }
  .cmafra-media { aspect-ratio: 16 / 10; }
  .cmafra-return { align-items: flex-start; flex-direction: column; }
  .cmafra-return-actions { width: 100%; flex-wrap: wrap; }
  .cmafra-pagination { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 8px; }
  .cmafra-pagination .cmafra-btn { width: 46px; min-width: 0; padding: 0; font-size: 0; }
  .cmafra-pagination .cmafra-btn:first-child::before { content: "←"; font-size: 18px; }
  .cmafra-pagination .cmafra-btn:last-child::before { content: "→"; font-size: 18px; }
  .cmafra-page-label { min-width: 0; }
  .cmafra-standard-note { align-items: flex-start; flex-direction: column; }
  .cmafra-standard-note strong { white-space: normal; }
}

@media (max-width: 460px) {
  .ccat-filter-grid { grid-template-columns: 1fr; }
  .ccat-filter { min-height: 118px; }
  .cmafra-category-grid { grid-template-columns: 1fr; }
  .cmafra-category { min-height: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  .ccat-card,
  .ccat-filter,
  .cmafra-category,
  .cmafra-card,
  .cmafra-link,
  .cmafra-btn { transition: none; }
  .cmafra-spinner { animation-duration: 1.5s; }
}

/* Keep the Cataloghi pictogram visible when navigation labels are clipped. */
body.brand-v4 #page-app #nav-catalogs.nav-btn > .cmafra-nav-badge {
  position: static;
  display: inline-block;
  width: 24px;
  min-width: 24px;
  height: 24px;
  overflow: visible;
  clip: auto;
  clip-path: none;
}