/* Public service links use quiet, responsive cards. */
.hpcx-directory-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.hpcx-directory-card { display:flex; flex-direction:column; gap:12px; padding:26px; border:1px solid #cfe1e2; border-radius:18px; background:#fff; color:#193d3f; text-decoration:none; overflow-wrap:anywhere; }
.hpcx-directory-card strong { font-size:21px; line-height:1.35; }
.hpcx-directory-card span { color:#647879; line-height:1.6; }
.hpcx-directory-card small { margin-top:auto; color:#147d7a; font-weight:700; }
.hpcx-directory-card:hover,.hpcx-directory-card:focus-visible { border-color:#147d7a; box-shadow:0 8px 24px rgba(20,90,90,.1); }
@media(max-width:900px) { .hpcx-directory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .hpcx-directory-grid { grid-template-columns:1fr; } }

:root {
    --hpcx-accent: #0eaaa6;
    --hpcx-accent-dark: #087f7c;
    --hpcx-ink: #133b3a;
    --hpcx-muted: #647776;
    --hpcx-bg: #f6fbfb;
    --hpcx-card: #ffffff;
    --hpcx-line: #dcebea;
    --hpcx-dark: #213032;
    --hpcx-shadow: 0 18px 46px rgba(18, 59, 58, .10);
}

body.hpcx-shop-active,
body.hpcx-membership-active {
    background: var(--hpcx-bg);
}

/* RealesWP treats both WooCommerce Shop and the membership CPT as archives and
   otherwise injects its Featured on Blog carousel above the page. The custom
   HomePro hero replaces that archive carousel on these two routes only. */
body.hpcx-shop-active #carouselBlog,
body.hpcx-membership-active #carouselBlog {
    display: none !important;
}

/* Keep the RealesWP navigation in normal flow above the marketplace hero. */
body.hpcx-shop-active #page-hero-container {
    height: auto !important;
    min-height: 0;
    overflow: visible;
    background: #0b8e8a;
}

body.hpcx-shop-active #page-hero-container > .page-hero,
body.hpcx-shop-active #page-hero-container > .slideshowShadow,
body.hpcx-shop-active #page-hero-container > .page-caption {
    display: none !important;
}

body.hpcx-shop-active #page-hero-container > .home-header {
    position: relative;
    top: auto;
    left: auto;
    min-height: 80px;
}

body.hpcx-shop-active #page-hero-container > .home-header::after {
    content: "";
    display: table;
    clear: both;
}

.hpcx-shortcut .hpcx-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hpcx,
.hpcx * {
    box-sizing: border-box;
}

.hpcx {
    width: 100%;
    overflow: hidden;
    background: var(--hpcx-bg);
    color: var(--hpcx-ink);
    font-family: inherit;
    line-height: 1.5;
}

.hpcx img {
    max-width: 100%;
}

.hpcx a {
    text-decoration: none;
}

.hpcx-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hpcx-hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 85% 12%, rgba(255,255,255,.18), transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,.11), transparent 26%),
        linear-gradient(135deg, #0b8e8a 0%, #0eaaa6 48%, #176d70 100%);
    padding: 84px 0 68px;
}

.hpcx-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: rgba(255,255,255,.18);
}

.hpcx-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
    gap: 58px;
    align-items: center;
}

.hpcx-eyebrow,
.hpcx-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hpcx-eyebrow {
    color: rgba(255,255,255,.82);
    margin-bottom: 14px;
}

.hpcx-kicker {
    color: var(--hpcx-accent-dark);
    margin-bottom: 7px;
}

.hpcx-hero h1 {
    color: #fff;
    margin: 0;
    max-width: 760px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.03;
    letter-spacing: -.035em;
    font-weight: 800;
}

.hpcx-hero p {
    max-width: 720px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.9);
    font-size: 18px;
    line-height: 1.7;
}

.hpcx-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hpcx-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    cursor: pointer;
}

.hpcx-btn:hover,
.hpcx-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
}

.hpcx-btn-light {
    background: #fff;
    color: var(--hpcx-accent-dark);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.hpcx-btn-light:hover,
.hpcx-btn-light:focus {
    color: var(--hpcx-accent-dark);
    box-shadow: 0 14px 30px rgba(0,0,0,.17);
}

.hpcx-btn-ghost {
    border-color: rgba(255,255,255,.52);
    color: #fff;
    background: rgba(255,255,255,.06);
}

.hpcx-btn-ghost:hover,
.hpcx-btn-ghost:focus {
    color: #fff;
    border-color: #fff;
    background: rgba(255,255,255,.12);
}

.hpcx-btn-primary {
    background: var(--hpcx-accent);
    color: #fff;
    box-shadow: 0 10px 22px rgba(14,170,166,.20);
}

.hpcx-btn-primary:hover,
.hpcx-btn-primary:focus {
    background: var(--hpcx-accent-dark);
    color: #fff;
}

.hpcx-btn-secondary {
    border-color: #bddad8;
    background: #fff;
    color: var(--hpcx-ink);
}

.hpcx-btn-secondary:hover,
.hpcx-btn-secondary:focus {
    border-color: var(--hpcx-accent);
    color: var(--hpcx-accent-dark);
}

.hpcx-btn-block {
    width: 100%;
}

.hpcx-hero-panel {
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(7, 75, 74, .24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 24px 58px rgba(0,0,0,.14);
}

.hpcx-hero-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 15px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hpcx-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: rgba(255,255,255,.82);
}

.hpcx-status-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #baf4df;
    box-shadow: 0 0 0 4px rgba(186,244,223,.12);
}

.hpcx-shortcut-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hpcx-shortcut {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    border-radius: 16px;
    padding: 16px;
    background: rgba(255,255,255,.96);
    color: var(--hpcx-ink);
    transition: transform .18s ease, box-shadow .18s ease;
}

.hpcx-shortcut:hover,
.hpcx-shortcut:focus {
    color: var(--hpcx-ink);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.hpcx-shortcut .hpcx-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9f8f7;
    color: var(--hpcx-accent-dark);
    font-weight: 900;
    font-size: 18px;
}

.hpcx-shortcut strong,
.hpcx-shortcut small {
    display: block;
}

.hpcx-shortcut strong {
    font-size: 14px;
    color: var(--hpcx-ink);
    margin-bottom: 3px;
}

.hpcx-shortcut small {
    color: var(--hpcx-muted);
    line-height: 1.35;
    font-size: 11px;
}

.hpcx-trustbar {
    background: #fff;
    border-bottom: 1px solid var(--hpcx-line);
}

.hpcx-trustgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.hpcx-trustgrid > div {
    min-height: 94px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 26px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-content: center;
    border-right: 1px solid var(--hpcx-line);
}

.hpcx-trustgrid > div:last-child {
    border-right: 0;
}

.hpcx-shop .hpcx-trustgrid > div {
    grid-template-columns: 1fr;
}

.hpcx-trustgrid span {
    grid-row: 1 / span 2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5f7f6;
    color: var(--hpcx-accent-dark);
    font-size: 12px;
    font-weight: 900;
}

.hpcx-trustgrid strong {
    font-size: 14px;
    color: var(--hpcx-ink);
}

.hpcx-trustgrid small {
    color: var(--hpcx-muted);
    font-size: 12px;
    margin-top: 2px;
}

.hpcx-section {
    padding: 72px 0;
}

.hpcx-section + .hpcx-section {
    padding-top: 20px;
}

.hpcx-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.hpcx-section-head h2 {
    margin: 0;
    color: var(--hpcx-ink);
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -.02em;
    font-weight: 800;
}

.hpcx-section-head p {
    margin: 8px 0 0;
    color: var(--hpcx-muted);
}

.hpcx-text-link {
    color: var(--hpcx-accent-dark);
    font-weight: 800;
    white-space: nowrap;
}

.hpcx-category-scroller {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hpcx-category-card {
    position: relative;
    min-height: 142px;
    padding: 18px;
    border: 1px solid var(--hpcx-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(21,66,64,.04);
    color: var(--hpcx-ink);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.hpcx-category-card:hover,
.hpcx-category-card:focus,
.hpcx-category-card.is-active {
    color: var(--hpcx-ink);
    border-color: rgba(14,170,166,.58);
    transform: translateY(-2px);
    box-shadow: var(--hpcx-shadow);
}

.hpcx-category-card.is-active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 3px;
    border-radius: 8px 8px 0 0;
    background: var(--hpcx-accent);
}

.hpcx-category-symbol {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 14px;
    background: #e9f8f7;
    color: var(--hpcx-accent-dark);
    font-weight: 900;
}

.hpcx-category-card strong,
.hpcx-category-card small {
    display: block;
}

.hpcx-category-card strong {
    font-size: 15px;
}

.hpcx-category-card small {
    color: var(--hpcx-muted);
    margin-top: 4px;
    font-size: 12px;
}

.hpcx-products-head {
    align-items: center;
}

.hpcx-filter {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) 176px auto;
    align-items: center;
    gap: 8px;
    width: min(100%, 570px);
}

.hpcx-search-wrap {
    position: relative;
}

.hpcx-search-wrap span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hpcx-muted);
    pointer-events: none;
}

.hpcx-filter input,
.hpcx-filter select {
    width: 100%;
    height: 48px;
    min-height: 48px;
    border: 1px solid #cfe0df;
    border-radius: 12px;
    background: #fff;
    color: var(--hpcx-ink);
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.hpcx-filter input {
    padding: 0 14px 0 38px;
}

.hpcx-filter select {
    padding: 0 36px 0 13px;
}

.hpcx-filter input:focus,
.hpcx-filter select:focus {
    border-color: var(--hpcx-accent);
    box-shadow: 0 0 0 3px rgba(14,170,166,.11);
}

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

.hpcx-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--hpcx-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23,73,71,.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hpcx-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14,170,166,.36);
    box-shadow: var(--hpcx-shadow);
}

.hpcx-product-media {
    position: relative;
    display: block;
    height: 214px;
    overflow: hidden;
    background: #edf4f4;
}

.hpcx-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.hpcx-product-card:hover .hpcx-product-media img {
    transform: scale(1.035);
}

.hpcx-product-category,
.hpcx-sale-badge {
    position: absolute;
    top: 14px;
    z-index: 2;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hpcx-product-category {
    left: 14px;
    color: var(--hpcx-ink);
    background: rgba(255,255,255,.94);
}

.hpcx-sale-badge {
    right: 14px;
    color: #fff;
    background: var(--hpcx-accent);
}

.hpcx-product-body {
    padding: 20px;
}

.hpcx-product-topline {
    min-height: 20px;
    margin-bottom: 8px;
}

.hpcx-rating {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: #9a7420;
    font-size: 12px;
    font-weight: 800;
}

.hpcx-rating-new {
    color: var(--hpcx-accent-dark);
}

.hpcx-product-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.015em;
}

.hpcx-product-card h3 a {
    color: var(--hpcx-ink);
}

.hpcx-product-card h3 a:hover,
.hpcx-product-card h3 a:focus {
    color: var(--hpcx-accent-dark);
}

.hpcx-product-card p {
    min-height: 64px;
    margin: 10px 0 18px;
    color: var(--hpcx-muted);
    font-size: 14px;
    line-height: 1.55;
}

.hpcx-product-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding-top: 17px;
    border-top: 1px solid #edf3f3;
}

.hpcx-price {
    color: var(--hpcx-ink);
    font-weight: 900;
    font-size: 17px;
    line-height: 1.25;
}

.hpcx-price del {
    opacity: .48;
    font-size: 12px;
    font-weight: 600;
}

.hpcx-price ins {
    text-decoration: none;
}

.hpcx-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hpcx-accent-dark);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.hpcx-card-btn span {
    transition: transform .18s ease;
}

.hpcx-card-btn:hover span {
    transform: translateX(3px);
}

.hpcx-pagination {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.hpcx-pagination ul {
    display: flex;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hpcx-pagination a,
.hpcx-pagination span {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--hpcx-line);
    color: var(--hpcx-ink);
    font-weight: 800;
}

.hpcx-pagination .current {
    background: var(--hpcx-accent);
    border-color: var(--hpcx-accent);
    color: #fff;
}

.hpcx-empty {
    text-align: center;
    padding: 56px 24px;
    border: 1px dashed #bcd8d7;
    border-radius: 20px;
    background: #fff;
}

.hpcx-empty-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f8f7;
    color: var(--hpcx-accent-dark);
    font-weight: 900;
    font-size: 24px;
}

.hpcx-empty h3 {
    margin: 16px 0 6px;
    color: var(--hpcx-ink);
    font-size: 23px;
}

.hpcx-empty p {
    color: var(--hpcx-muted);
    margin: 0 auto 20px;
    max-width: 580px;
}

.hpcx-cta-section {
    padding-bottom: 82px;
}

.hpcx-cta-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 36px;
    padding: 34px;
    border-radius: 22px;
    border: 1px solid #d7e9e8;
    background: linear-gradient(135deg, #fff, #eef9f8);
    box-shadow: var(--hpcx-shadow);
}

.hpcx-cta-card h2 {
    margin: 0;
    color: var(--hpcx-ink);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
}

.hpcx-cta-card p {
    margin: 10px 0 0;
    color: var(--hpcx-muted);
    max-width: 720px;
}

.hpcx-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Membership */
.hpcx-membership-hero {
    text-align: center;
    padding: 78px 0 66px;
}

.hpcx-membership-hero-inner {
    max-width: 920px;
}

.hpcx-membership-hero h1,
.hpcx-membership-hero p {
    margin-left: auto;
    margin-right: auto;
}

.hpcx-membership-hero h1 {
    max-width: 880px;
}

.hpcx-hero-actions-center {
    justify-content: center;
}

.hpcx-membership-heading {
    align-items: center;
}

.hpcx-renewal-note {
    min-width: 240px;
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 10px;
    align-items: center;
    border: 1px solid #cce5e3;
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
}

.hpcx-renewal-note > span {
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f8f7;
    color: var(--hpcx-accent-dark);
    font-weight: 900;
}

.hpcx-renewal-note strong,
.hpcx-renewal-note small {
    display: block;
}

.hpcx-renewal-note strong {
    color: var(--hpcx-ink);
    font-size: 13px;
}

.hpcx-renewal-note small {
    color: var(--hpcx-muted);
    font-size: 11px;
}

.hpcx-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.hpcx-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 26px;
    border: 1px solid var(--hpcx-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(18,59,58,.06);
}

.hpcx-plan-card.is-featured {
    border-color: var(--hpcx-accent);
    box-shadow: 0 20px 50px rgba(14,170,166,.14);
}

.hpcx-plan-card.is-current {
    border-color: #73c7c3;
    background: linear-gradient(180deg, #fff, #f0fbfa);
}

.hpcx-plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--hpcx-accent);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hpcx-plan-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 92px;
}

.hpcx-plan-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9f8f7;
    color: var(--hpcx-accent-dark);
    font-weight: 900;
}

.hpcx-plan-title h3 {
    margin: 0;
    color: var(--hpcx-ink);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.hpcx-plan-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 26px 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #edf3f3;
}

.hpcx-plan-price strong {
    color: var(--hpcx-ink);
    font-size: 36px;
    line-height: 1;
    letter-spacing: -.035em;
}

.hpcx-plan-price span {
    color: var(--hpcx-muted);
    font-size: 12px;
}

.hpcx-plan-features {
    flex: 1 1 auto;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.hpcx-plan-features li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 8px;
    align-items: start;
    margin: 0 0 14px;
    color: var(--hpcx-ink);
    font-size: 13px;
}

.hpcx-plan-features li span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9f8f7;
    color: var(--hpcx-accent-dark);
    font-size: 10px;
    font-weight: 900;
}

.hpcx-plan-features li strong {
    font-weight: 700;
}

.hpcx-membership-help {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 18px;
    align-items: center;
    margin-top: 26px;
    padding: 24px;
    border: 1px solid var(--hpcx-line);
    border-radius: 18px;
    background: #fff;
}

.hpcx-help-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #e8f8f7;
    color: var(--hpcx-accent-dark);
    font-size: 20px;
    font-weight: 900;
}

.hpcx-membership-help h3 {
    margin: 0;
    color: var(--hpcx-ink);
    font-size: 17px;
    font-weight: 800;
}

.hpcx-membership-help p {
    margin: 4px 0 0;
    color: var(--hpcx-muted);
    font-size: 13px;
}

@media (max-width: 1050px) {
    .hpcx-hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .hpcx-hero-panel {
        max-width: 720px;
    }
    .hpcx-category-scroller {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hpcx-products-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .hpcx-filter {
        width: 100%;
    }
    .hpcx-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .hpcx-shell {
        width: min(100% - 28px, 1180px);
    }
    .hpcx-hero,
    .hpcx-membership-hero {
        padding: 58px 0 48px;
    }
    .hpcx-hero h1 {
        font-size: clamp(34px, 10vw, 48px);
    }
    .hpcx-hero p {
        font-size: 16px;
    }
    .hpcx-hero-panel {
        padding: 14px;
        border-radius: 19px;
    }
    .hpcx-shortcut-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hpcx-trustgrid {
        grid-template-columns: 1fr;
        padding: 8px 0;
    }
    .hpcx-trustgrid > div {
        min-height: 74px;
        border-right: 0;
        border-bottom: 1px solid var(--hpcx-line);
        padding: 15px 5px;
    }
    .hpcx-trustgrid > div:last-child {
        border-bottom: 0;
    }
    .hpcx-section {
        padding: 54px 0;
    }
    .hpcx-section + .hpcx-section {
        padding-top: 8px;
    }
    .hpcx-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 22px;
    }
    .hpcx-category-scroller {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 2px 2px 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .hpcx-category-card {
        flex: 0 0 190px;
        min-height: 130px;
        scroll-snap-align: start;
    }
    .hpcx-filter {
        grid-template-columns: 1fr 1fr;
    }
    .hpcx-search-wrap {
        grid-column: 1 / -1;
    }
    .hpcx-filter .hpcx-btn {
        min-height: 48px;
    }
    .hpcx-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .hpcx-product-media {
        height: 180px;
    }
    .hpcx-product-body {
        padding: 16px;
    }
    .hpcx-product-card p {
        min-height: 0;
    }
    .hpcx-product-footer {
        align-items: flex-start;
        flex-direction: column;
    }
    .hpcx-cta-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .hpcx-cta-actions {
        justify-content: flex-start;
    }
    .hpcx-membership-heading {
        align-items: flex-start;
    }
    .hpcx-plan-grid {
        grid-template-columns: 1fr;
    }
    .hpcx-membership-help {
        grid-template-columns: 46px 1fr;
    }
    .hpcx-membership-help .hpcx-btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .hpcx-shell {
        width: min(100% - 22px, 1180px);
    }
    .hpcx-hero,
    .hpcx-membership-hero {
        padding: 46px 0 42px;
    }
    .hpcx-hero h1 {
        font-size: 36px;
    }
    .hpcx-hero-actions,
    .hpcx-cta-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
    .hpcx-hero-actions .hpcx-btn,
    .hpcx-cta-actions .hpcx-btn {
        width: 100%;
    }
    .hpcx-shortcut-grid {
        grid-template-columns: 1fr;
    }
    .hpcx-shortcut {
        min-height: 88px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
    .hpcx-category-card {
        flex-basis: 174px;
    }
    .hpcx-filter {
        grid-template-columns: 1fr;
    }
    .hpcx-search-wrap {
        grid-column: auto;
    }
    .hpcx-product-grid {
        grid-template-columns: 1fr;
    }
    .hpcx-product-media {
        height: 220px;
    }
    .hpcx-product-footer {
        flex-direction: row;
        align-items: flex-end;
    }
    .hpcx-plan-card {
        padding: 22px 18px;
    }
    .hpcx-plan-title {
        padding-right: 0;
        padding-top: 24px;
    }
    .hpcx-plan-price strong {
        font-size: 32px;
    }
    .hpcx-membership-help {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hpcx-help-icon {
        margin: 0 auto;
    }
}

/* Reserve space beneath the overlaid RealesWP header in phone portrait view. */
@media (max-width: 780px) and (orientation: portrait) {
    body.hpcx-membership-active .hpcx-membership-hero {
        padding-top: 118px;
    }
}
