.hc-marketplace,
.hc-market-collection,
.hc-market-facets,
.hc-related-assessments {
    color: var(--hc-body, #42516b);
    font-family: var(--hc-font-body, inherit);
}
.hc-marketplace > .hc-container,
.hc-market-collection > .hc-container,
.hc-market-facets > .hc-container,
.hc-related-assessments > .hc-container {
    display: block;
}
.hc-marketplace__heading,
.hc-market-section-title { width: 100%; max-width: 820px; margin: 0 auto 38px; text-align: center; }
.hc-marketplace__heading h2,
.hc-market-section-title h2 { color: var(--hc-color-secondary, #0b1835); margin: 8px 0 12px; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; }
.hc-marketplace__heading > p:last-child { max-width: 680px; margin: 0 auto; font-size: 18px; line-height: 1.65; }
.hc-market-toolbar { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.hc-market-toolbar input,
.hc-market-toolbar select { width: 100%; min-height: 48px; border: 1px solid var(--hc-border, #d9e1ef); border-radius: 12px; background: #fff; padding: 0 14px; color: var(--hc-ink, #0b1835); }
.hc-market-status { margin: 0 0 18px; font-weight: 700; }
.hc-marketplace-app.is-loading [data-hc-results] { opacity: .55; pointer-events: none; }
.hc-market-grid { display: grid; grid-template-columns: repeat(var(--hc-market-columns, 3), minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.hc-market-grid.is-carousel { grid-auto-flow: column; grid-auto-columns: minmax(280px, 33%); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; }
.hc-market-grid.is-carousel .hc-market-card { scroll-snap-align: start; }
.hc-market-grid.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hc-market-card { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid var(--hc-border, #d9e1ef); border-radius: var(--hc-card-radius, 18px); background: #fff; box-shadow: 0 14px 38px rgba(11,24,53,.08); transition: transform .18s ease, box-shadow .18s ease; }
.hc-market-card:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(11,24,53,.13); }
.hc-market-card__media { display: grid; place-items: center; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, var(--hc-soft-surface, #f3f7ff), #e6ebff); color: var(--hc-primary, #315ee7); font-size: 42px; font-weight: 800; text-decoration: none; }
.hc-market-card__media img { width: 100%; height: 100%; object-fit: cover; }
.hc-market-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.hc-market-card__badges { display: flex; align-content: flex-start; flex-wrap: wrap; gap: 7px; min-height: 64px; }
.hc-market-badge { padding: 5px 9px; border-radius: 999px; background: var(--hc-soft-surface, #f3f7ff); color: var(--hc-primary-dark, #173b98); font-size: 12px; font-weight: 800; }
.hc-market-badge.is-accent { background: #e9f7ef; color: #167342; }
.hc-market-card__provider { margin: 15px 0 5px; color: var(--hc-primary, #315ee7); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.hc-market-card h3 { min-height: 60px; margin: 12px 0; color: var(--hc-ink, #0b1835); font-size: clamp(20px, 2vw, 25px); line-height: 1.2; }
.hc-market-card h3 a { color: inherit; text-decoration: none; }
.hc-market-card__description { display: -webkit-box; overflow: hidden; min-height: 78px; margin: 0 0 18px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.hc-market-card__facts { display: flex; align-content: flex-start; flex-wrap: wrap; gap: 7px 14px; min-height: 46px; margin-bottom: 18px; font-size: 14px; }
.hc-market-card__facts span:not(:last-child)::after { content: "·"; margin-left: 14px; }
.hc-market-card__footer { display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hc-border, #d9e1ef); }
.hc-market-card__price { margin: 0; color: var(--hc-ink, #0b1835); font-size: 20px; font-weight: 850; }
.hc-market-card__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.hc-market-card__actions .hc-button { flex: 1 1 125px; min-height: 44px; padding: 11px 14px; text-align: center; }
.hc-market-card__actions button.hc-button { width: auto; border: 0; font: inherit; cursor: pointer; }
.hc-market-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hc-market-pagination button { min-width: 42px; min-height: 42px; border: 1px solid var(--hc-border, #d9e1ef); border-radius: 10px; background: #fff; color: var(--hc-ink, #0b1835); font-weight: 800; cursor: pointer; }
.hc-market-pagination button.is-current { background: var(--hc-primary, #315ee7); color: #fff; }
.hc-market-facet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hc-market-facet { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--hc-border, #d9e1ef); border-radius: var(--hc-card-radius, 18px); background: #fff; color: var(--hc-ink, #0b1835); text-decoration: none; }
.hc-market-facet span { color: var(--hc-body, #42516b); font-size: 14px; }
.hc-market-toolbar :focus-visible,
.hc-market-card a:focus-visible,
.hc-market-card button:focus-visible,
.hc-market-pagination button:focus-visible,
.hc-market-facet:focus-visible,
.hc-plan-modal :focus-visible { outline: 3px solid var(--hc-primary, #315ee7); outline-offset: 3px; }
.hc-plan-modal-open { overflow: hidden; }
.hc-plan-modal[hidden] { display: none; }
.hc-plan-modal { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; padding: 28px; color: var(--hc-body, #42516b); font-family: var(--hc-font-body, inherit); }
.hc-plan-modal__backdrop { position: absolute; inset: 0; background: rgba(7, 17, 43, .68); backdrop-filter: blur(5px); }
.hc-plan-modal__dialog { position: relative; width: min(1040px, 100%); max-height: min(820px, calc(100vh - 56px)); overflow-y: auto; padding: 42px; border: 1px solid rgba(255,255,255,.65); border-radius: 26px; background: #fff; box-shadow: 0 30px 90px rgba(7,17,43,.32); }
.hc-plan-modal__close { position: absolute; top: 18px; right: 18px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--hc-border, #d9e1ef); border-radius: 50%; background: #fff; color: var(--hc-ink, #0b1835); font: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.hc-plan-modal__title { max-width: 760px; margin: 8px 52px 8px 0; color: var(--hc-ink, #0b1835); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.hc-plan-modal__intro { max-width: 720px; margin: 0 0 28px; font-size: 17px; line-height: 1.6; }
.hc-plan-modal__status { min-height: 0; }
.hc-plan-modal__status.is-loading,
.hc-plan-modal__status.is-error { margin: 22px 0; padding: 18px; border-radius: 14px; background: var(--hc-soft-surface, #f3f7ff); font-weight: 700; }
.hc-plan-modal__status.is-error { background: #fff3f2; color: #9a2f28; }
.hc-plan-modal__plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.hc-plan-option { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 26px; border: 1px solid var(--hc-border, #d9e1ef); border-radius: 20px; background: linear-gradient(180deg, #fff 0%, var(--hc-soft-surface, #f3f7ff) 150%); box-shadow: 0 12px 30px rgba(11,24,53,.07); }
.hc-plan-option.is-recommended { border: 2px solid var(--hc-primary, #315ee7); box-shadow: 0 18px 42px rgba(49,94,231,.16); }
.hc-plan-option__badge { align-self: flex-start; margin: -40px 0 18px; padding: 6px 11px; border-radius: 999px; background: var(--hc-primary, #315ee7); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.hc-plan-option h3 { min-height: 58px; margin: 0 0 14px; color: var(--hc-ink, #0b1835); font-size: 23px; line-height: 1.2; }
.hc-plan-option__price { min-height: 48px; margin: 0 0 4px; color: var(--hc-ink, #0b1835); font-size: clamp(26px, 3vw, 38px); font-weight: 850; line-height: 1.15; }
.hc-plan-option__billing { min-height: 44px; margin: 0 0 18px; font-size: 14px; }
.hc-plan-option__description { margin: 0 0 24px; line-height: 1.6; }
.hc-plan-option__button { width: 100%; margin-top: auto; text-align: center; }
.hc-plan-modal__fallback { display: inline-flex; margin-top: 4px; }
.hc-plan-modal__footer { display: flex; justify-content: center; margin-top: 24px; }
.hc-plan-modal__details { color: var(--hc-primary-dark, #173b98); font-weight: 800; }
@media (max-width: 1024px) {
    .hc-market-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hc-market-grid, .hc-market-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hc-market-facet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hc-plan-modal__plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .hc-market-toolbar { grid-template-columns: 1fr; position: sticky; top: 0; z-index: 3; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(11,24,53,.08); }
    .hc-market-grid, .hc-market-grid.is-compact { grid-template-columns: 1fr; }
    .hc-market-grid.is-carousel { grid-auto-columns: 88%; }
    .hc-market-facet-grid { grid-template-columns: 1fr; }
    .hc-market-card__badges,
    .hc-market-card h3,
    .hc-market-card__description,
    .hc-market-card__facts { min-height: 0; }
    .hc-plan-modal { align-items: end; padding: 0; }
    .hc-plan-modal__dialog { width: 100%; max-height: 90vh; padding: 32px 20px 24px; border-radius: 24px 24px 0 0; }
    .hc-plan-modal__close { top: 12px; right: 14px; }
    .hc-plan-modal__title { margin-right: 48px; font-size: 30px; }
    .hc-plan-modal__intro { margin-bottom: 22px; }
    .hc-plan-modal__plans { grid-template-columns: 1fr; gap: 16px; }
    .hc-plan-option h3,
    .hc-plan-option__price,
    .hc-plan-option__billing { min-height: 0; }
    .hc-plan-option__badge { margin-top: -38px; }
}
@media (prefers-reduced-motion: reduce) {
    .hc-market-card,
    .hc-plan-modal * { scroll-behavior: auto; transition: none; }
}
