#category-catalog {
    --cc-orange: #fb4400;
    --cc-ink: #303033;
    --cc-line: #e6e6e8;
    color: var(--cc-ink);
    background: #fafafa;
    font-family: 'Lato Regular', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#category-catalog[dir="rtl"] { font-family: 'IBMPlexSansArabic-Regular', Arial, sans-serif; }
#category-catalog *, #category-catalog *::before, #category-catalog *::after { box-sizing: border-box; }
#category-catalog [hidden] { display: none !important; }
#category-catalog a { color: inherit; text-decoration: none; }
#category-catalog button, #category-catalog input, #category-catalog select { font: inherit; }
#category-catalog button { cursor: pointer; }
#category-catalog button, #category-catalog a, #category-catalog select { touch-action: manipulation; }
#category-catalog :is(button, a, input, select):focus-visible { outline: 3px solid #fb440060; outline-offset: 4px; }
#category-catalog .cc-container { width: 100%; max-width: 1248px; padding-inline: 24px; margin-inline: auto; }
#category-catalog h1, #category-catalog h2 { color: var(--cc-ink); font-family: 'Lato Bold', Arial, sans-serif; font-weight: 700; }
#category-catalog[dir="rtl"] h1, #category-catalog[dir="rtl"] h2 { font-family: 'IBMPlexSansArabic-Bold', Arial, sans-serif; }
#category-catalog .cc-hero { background: #f2f2f3; border-bottom: 1px solid var(--cc-line); padding: 24px 0 32px; }
#category-catalog .cc-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; color: #777; font-size: 11px; margin-bottom: 22px; }
#category-catalog .cc-breadcrumb > span:last-child { color: #333; }
#category-catalog .cc-breadcrumb a:hover { color: var(--cc-orange); }
#category-catalog .cc-hero-title { display: flex; gap: 14px; align-items: center; }
#category-catalog .cc-accent { width: 4px; height: 33px; border-radius: 3px; background: var(--cc-orange); flex-shrink: 0; }
#category-catalog h1 { font-size: 30px; line-height: 1.5; margin: 0; }
#category-catalog .cc-intro { max-width: 1050px; margin: 16px 0 0; color: #6c6c70; font-size: 13px; line-height: 1.95; text-align: start; }
#category-catalog .cc-catalog { padding-top: 30px; padding-bottom: 64px; }
#category-catalog .cc-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#category-catalog .cc-tabs { display: flex; flex-wrap: wrap; gap: 6px; background: #eeeef0; padding: 5px; border-radius: 12px; min-width: 0; }
#category-catalog .cc-tabs button { background: transparent; border: 0; border-radius: 8px; padding: 11px 18px; font-size: 13px; color: #727278; font-weight: 500; text-align: start; }
#category-catalog .cc-tabs button span { display: inline-block; font-size: 10px; padding: 1px 5px; margin-inline-start: 7px; background: #e0e0e3; color: #777; border-radius: 5px; }
#category-catalog .cc-tabs button.cc-active { background: white; color: #333; box-shadow: 0 2px 5px #00000006; }
#category-catalog .cc-tabs button.cc-active span { background: #fff0e9; color: var(--cc-orange); }
#category-catalog .cc-filter { display: flex; gap: 12px; align-items: center; font-size: 12px; color: #777; flex-shrink: 0; padding-top: 5px; }
#category-catalog .cc-filter label { margin: 0; }
#category-catalog .cc-filter select { padding: 10px 14px; border: 1px solid #ddd; border-radius: 9px; background: white; color: #444; min-width: 110px; max-width: 180px; }
#category-catalog .cc-results-row { display: flex; justify-content: flex-end; margin: 22px 0; }
#category-catalog .cc-results-row > span { font-size: 12px; color: #888; white-space: nowrap; }
#category-catalog .cc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
#category-catalog .cc-card { min-width: 0; padding: 22px; background: white; border: 1px solid #e1e1e4; border-radius: 16px; display: flex; flex-direction: column; position: relative; transition: border-color .2s, transform .2s; }
#category-catalog .cc-card:hover { border-color: #d5b9a8; transform: translateY(-2px); }
#category-catalog .cc-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 75px; margin-bottom: 14px; }
#category-catalog .cc-program-logo { width: 82px; height: 82px; object-fit: contain; flex-shrink: 0; }
#category-catalog .cc-labels { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
#category-catalog .cc-discount { color: var(--cc-orange); background: #fff2eb; border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 500; }
#category-catalog .cc-level { font-size: 10px; color: #777; display: flex; gap: 5px; align-items: center; }
#category-catalog .cc-level::before { content: ''; height: 5px; width: 5px; background: #999; border-radius: 50%; flex-shrink: 0; }
#category-catalog .cc-card h2 { font-size: 17px; font-weight: 700; line-height: 1.7; margin: 0 0 12px; min-height: 58px; overflow-wrap: anywhere; }
#category-catalog .cc-card h2 a:hover { color: var(--cc-orange); }
#category-catalog .cc-rating-line { display: flex; gap: 6px; align-items: center; font-size: 11px; min-height: 23px; margin-bottom: 11px; }
#category-catalog .cc-star { color: #f6a13c; font-size: 16px; }
#category-catalog .cc-reviews { color: #a0a0a4; font-size: 10px; }
#category-catalog .cc-flag { margin-inline-start: auto; font-size: 10px; color: #6e7278; background: #f4f5f6; border-radius: 5px; padding: 3px 7px; }
#category-catalog .cc-description { font-size: 12px; line-height: 1.9; color: #777; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 68px; overflow-wrap: anywhere; }
#category-catalog .cc-read { align-self: flex-start; font-size: 10px; color: #555; background: none; border: 0; padding: 4px 0 0; text-decoration: underline; text-underline-offset: 3px; margin-bottom: 15px; }
#category-catalog .cc-read:hover { color: var(--cc-orange); }
#category-catalog .cc-methods { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
#category-catalog .cc-method { background: #f6f6f7; border: 1px solid #eeeef0; font-size: 10px; color: #666; border-radius: 6px; padding: 4px 8px; }
#category-catalog a.cc-button { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; background: var(--cc-orange); color: white; border-radius: 9px; padding: 11px 14px; margin-top: 16px; border: 0; }
#category-catalog a.cc-button:hover { background: #e63f00; }
#category-catalog .cc-arrow { font-size: 17px; }
#category-catalog[dir="ltr"] .cc-arrow { transform: scaleX(-1); }
#category-catalog .cc-mini { width: 100%; background: #fff9f5; border: 1px solid #f5e5d9; border-radius: 8px; padding: 8px 10px; }
#category-catalog .cc-mini-head { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: #6c625b; margin-bottom: 7px; }
#category-catalog .cc-mini-head strong { font-weight: 500; color: #444; border-inline-start: 2px solid var(--cc-orange); padding-inline-start: 6px; }
#category-catalog .cc-track { display: flex; gap: 6px; position: relative; align-items: flex-start; }
#category-catalog .cc-track::before { content: ''; position: absolute; inset-inline-start: 10%; inset-inline-end: 55px; top: 8px; background: #ffc8aa; height: 1px; }
#category-catalog .cc-stop { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; font-size: 8px; line-height: 1.5; color: #526071; text-align: center; }
#category-catalog .cc-stop > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
#category-catalog .cc-dot { width: 17px; height: 17px; background: #ff6b30; color: white; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; font-size: 9px; box-shadow: 0 0 0 3px #fff9f5; }
#category-catalog .cc-more { position: relative; border: 1px solid #f3d4bd; border-radius: 7px; background: #ffedda; font-size: 10px; color: #765036; align-self: center; padding: 6px 4px; flex-shrink: 0; }
#category-catalog .cc-empty { padding: 80px 20px; text-align: center; color: #888; }
#category-catalog .cc-empty button { color: var(--cc-orange); border: 0; background: none; }
#category-catalog .cc-top { display: block; margin: 32px auto 0; background: white; border: 1px solid #ddd; border-radius: 50%; width: 38px; height: 38px; color: #777; }
#category-catalog dialog { width: min(580px, calc(100% - 32px)); max-width: none; max-height: 85vh; max-height: 85dvh; border: 0; border-radius: 18px; padding: 0; color: #333; background: white; margin: auto; }
#category-catalog dialog::backdrop { background: #17171988; backdrop-filter: blur(3px); }
#category-catalog .cc-modal-head { position: sticky; top: 0; background: white; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 24px; border-bottom: 1px solid #eee; font-size: 12px; z-index: 1; }
#category-catalog .cc-modal-head button { border: 0; background: #f5f5f5; border-radius: 50%; width: 32px; height: 32px; font-size: 21px; flex-shrink: 0; line-height: 1; }
#category-catalog .cc-modal-content { padding: 24px; }
#category-catalog .cc-modal-content > img { width: 85px; height: 85px; object-fit: contain; }
#category-catalog .cc-modal-content h2 { font-size: 21px; line-height: 1.7; margin: 16px 0; overflow-wrap: anywhere; }
#category-catalog .cc-modal-content p { font-size: 14px; line-height: 2; color: #666; overflow-wrap: anywhere; }
#category-catalog .cc-modal-content ol { font-size: 13px; line-height: 2.2; padding-inline-start: 22px; }
#category-catalog .cc-modal-content h3 { font-size: 13px; color: #777; }

@media (max-width: 1023px) {
    #category-catalog .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #category-catalog .cc-tabs button { padding: 10px 12px; }
}

@media (max-width: 650px) {
    #category-catalog .cc-container { padding-inline: 20px; }
    #category-catalog .cc-hero { padding: 20px 0 24px; }
    #category-catalog h1 { font-size: 23px; }
    #category-catalog .cc-intro { font-size: 12px; }
    #category-catalog .cc-breadcrumb { font-size: 9px; gap: 8px; }
    #category-catalog .cc-catalog { padding-top: 22px; }
    #category-catalog .cc-controls { display: block; }
    #category-catalog .cc-tabs { width: 100%; gap: 2px; }
    #category-catalog .cc-tabs button { flex: 1; min-width: 0; padding: 10px 4px; font-size: 11px; text-align: center; }
    #category-catalog .cc-tabs button span { font-size: 9px; margin-inline-start: 3px; }
    #category-catalog .cc-filter { margin-top: 15px; justify-content: flex-end; }
    #category-catalog .cc-results-row { margin: 16px 0; }
    #category-catalog .cc-results-row > span { font-size: 10px; }
    #category-catalog .cc-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    #category-catalog .cc-card { padding: 20px; }
    #category-catalog .cc-program-logo { width: 70px; height: 70px; }
    #category-catalog .cc-card h2 { min-height: 0; font-size: 17px; }
    #category-catalog .cc-description { min-height: 0; }
    #category-catalog .cc-card-top { min-height: 70px; }
    #category-catalog .cc-modal-content { padding: 20px; }
    #category-catalog .cc-empty { padding: 45px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    #category-catalog *, #category-catalog *::before, #category-catalog *::after { scroll-behavior: auto !important; transition: none !important; }
}
