.hps-showcase {
    --hps-primary: #292929;
    --hps-accent: #EDE621;
    --hps-radius: 18px;
    --hps-columns: 3;
    --hps-tablet-columns: 2;
    --hps-text: #292929;
    --hps-muted: #666a6d;
    --hps-line: rgba(41, 41, 41, .12);
    --hps-surface: #fff;
    width: 100%;
    margin: 0 auto;
    padding: clamp(12px, 2vw, 24px) 0;
    color: var(--hps-text);
    font-family: inherit;
    text-align: right;
}
.hps-showcase,
.hps-showcase * { box-sizing: border-box; }
.hps-showcase a { text-decoration: none; }

.hps-section-head {
    position: relative;
    max-width: 820px;
    margin: 0 auto clamp(28px, 4vw, 44px);
    padding: 0 16px 19px;
    text-align: center;
}
.hps-section-head::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 68px;
    height: 5px;
    border-radius: 999px;
    background: var(--hps-accent);
    transform: translateX(50%);
}
.hps-section-head h2 {
    margin: 0;
    color: var(--hps-primary);
    font: inherit;
    font-size: clamp(26px, 3vw, 37px);
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: -.02em;
}
.hps-section-intro {
    margin-top: 10px;
    color: var(--hps-muted);
    font-size: clamp(14px, 1.5vw, 16.5px);
    line-height: 2;
}
.hps-section-intro p,
.hps-description p,
.hps-trust-cta p { margin: 0; }

.hps-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--hps-columns), minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    align-items: stretch;
}
.hps-product-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--hps-line);
    border-radius: var(--hps-radius);
    background: var(--hps-surface);
    box-shadow: 0 8px 24px rgba(26, 26, 26, .055), 0 1px 2px rgba(26, 26, 26, .035);
    isolation: isolate;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.hps-product-card::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    right: 24px;
    width: 52px;
    height: 4px;
    border-radius: 0 0 8px 8px;
    background: var(--hps-accent);
}
.hps-product-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -92px;
    left: -92px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(237, 230, 33, .12), rgba(237, 230, 33, 0) 68%);
    pointer-events: none;
}
.hps-style-elevated .hps-product-card {
    border-color: rgba(41, 41, 41, .09);
    box-shadow: 0 12px 34px rgba(26, 26, 26, .075), 0 1px 2px rgba(26, 26, 26, .035);
}
.hps-style-bordered .hps-product-card {
    border-color: rgba(41, 41, 41, .17);
    box-shadow: 0 4px 13px rgba(26, 26, 26, .035);
}
.hps-style-minimal .hps-product-card {
    border-color: rgba(41, 41, 41, .09);
    border-radius: calc(var(--hps-radius) * .82);
    box-shadow: none;
}
.hps-product-card.is-featured {
    border-color: rgba(41, 41, 41, .26);
    box-shadow: 0 15px 42px rgba(26, 26, 26, .11), inset 0 0 0 2px rgba(237, 230, 33, .5);
}
.hps-product-card.is-featured::before { width: 76px; }

@media (hover: hover) and (pointer: fine) {
    .hps-style-elevated .hps-product-card:hover,
    .hps-style-bordered .hps-product-card:hover {
        transform: translateY(-4px);
        border-color: rgba(41, 41, 41, .21);
        box-shadow: 0 18px 44px rgba(26, 26, 26, .12), 0 2px 4px rgba(26, 26, 26, .04);
    }
}

.hps-badge {
    position: absolute;
    z-index: 5;
    top: 17px;
    left: 17px;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid rgba(41, 41, 41, .10);
    border-radius: 9px;
    background: var(--hps-accent);
    color: var(--hps-primary);
    font-size: 11.5px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(41, 41, 41, .10);
}
.hps-product-media { flex: 0 0 auto; }
.hps-product-image {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(41, 41, 41, .07);
    background: #f4f4f2;
    aspect-ratio: 16 / 10;
}
.hps-product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(41, 41, 41, .06));
    pointer-events: none;
}
.hps-ratio-4-3 .hps-product-image { aspect-ratio: 4 / 3; }
.hps-ratio-1-1 .hps-product-image { aspect-ratio: 1 / 1; }
/* 3.0.2: راهکارهای پروژه‌ای در تمام خروجی‌های کارت، مربع هستند. */
.hps-showcase .hps-product-image { aspect-ratio: 1 / 1; }
.hps-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform .32s ease;
}
@media (hover: hover) and (pointer: fine) {
    .hps-product-card:hover .hps-product-image img { transform: scale(1.025); }
}

.hps-product-icon {
    position: relative;
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    margin: 29px 25px 1px;
    border: 1px solid rgba(41, 41, 41, .13);
    border-radius: 18px;
    background: var(--hps-primary);
    color: var(--hps-accent);
    box-shadow: 0 9px 20px rgba(41, 41, 41, .13);
}
.hps-product-icon::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--hps-accent);
    box-shadow: 0 0 0 1px rgba(41, 41, 41, .08);
}
.hps-product-icon svg {
    position: relative;
    z-index: 1;
    width: 31px;
    height: 31px;
}
.hps-product-content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 25px 25px 24px;
}
.hps-product-icon + .hps-product-content { padding-top: 19px; }
.hps-product-card h3 {
    margin: 0;
    color: var(--hps-primary);
    font: inherit;
    font-size: clamp(18px, 1.6vw, 21px);
    font-weight: 900;
    line-height: 1.7;
}
.hps-description {
    margin-top: 9px;
    color: var(--hps-muted);
    font-size: 14.25px;
    line-height: 1.95;
}
.hps-product-footer {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
}
.hps-price {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(41, 41, 41, .09);
    border-radius: 9px;
    background: rgba(237, 230, 33, .18);
    color: var(--hps-primary);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
}
.hps-price-spacer { min-width: 1px; }
.hps-showcase .hps-button {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 10px 8px 15px;
    border: 1px solid var(--hps-primary);
    border-radius: 11px;
    background: var(--hps-primary);
    color: #fff;
    font-size: 13.25px;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 7px 17px rgba(41, 41, 41, .14);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.hps-showcase .hps-button svg {
    width: 27px;
    height: 27px;
    padding: 5px;
    border-radius: 8px;
    background: var(--hps-accent);
    color: var(--hps-primary);
}
.hps-showcase .hps-button:hover {
    border-color: #151515;
    background: #151515;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 23px rgba(41, 41, 41, .19);
}
.hps-showcase a:focus-visible {
    outline: 3px solid var(--hps-accent);
    outline-offset: 3px;
}

.hps-trust-cta {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: clamp(28px, 4vw, 44px);
    padding: clamp(23px, 3vw, 31px);
    border: 1px solid #1c1c1c;
    border-radius: var(--hps-radius);
    background: linear-gradient(128deg, var(--hps-primary), #363636);
    color: #fff;
    box-shadow: 0 14px 34px rgba(31, 31, 31, .15);
}
.hps-trust-cta::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 100%;
    background: var(--hps-accent);
}
.hps-trust-cta::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 210px;
    height: 100%;
    background: linear-gradient(135deg, rgba(237, 230, 33, .16), rgba(237, 230, 33, 0) 72%);
    pointer-events: none;
}
.hps-trust-cta > * { position: relative; z-index: 1; }
.hps-cta-copy {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 17px;
}
.hps-cta-icon {
    display: grid;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 15px;
    background: var(--hps-accent);
    color: var(--hps-primary);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}
.hps-cta-icon svg { width: 26px; height: 26px; }
.hps-trust-cta h3 {
    margin: 0 0 5px;
    color: #fff;
    font: inherit;
    font-size: clamp(18px, 1.6vw, 21px);
    font-weight: 900;
    line-height: 1.7;
}
.hps-trust-cta .hps-cta-text,
.hps-trust-cta .hps-cta-text p {
    color: rgba(255, 255, 255, .80) !important;
    font-size: 14px;
    line-height: 1.9;
}
.hps-showcase .hps-cta-button {
    display: inline-flex;
    min-height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid var(--hps-accent);
    border-radius: 11px;
    background: var(--hps-accent);
    color: var(--hps-primary);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 7px 19px rgba(0, 0, 0, .16);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.hps-showcase .hps-cta-button:hover {
    background: #fff82c;
    color: var(--hps-primary);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .21);
}
.hps-empty-state {
    padding: 36px 20px;
    border: 1px dashed rgba(41, 41, 41, .20);
    border-radius: var(--hps-radius);
    background: #fffef2;
    color: var(--hps-muted);
    text-align: center;
}

body.hps-has-showcase .main-content .post-meta,
body.hps-has-showcase .main-content .entry-meta,
body.hps-has-showcase .main-content article.type-page .post-date,
body.hps-has-showcase .main-content article.type-page .post-author { display: none !important; }

@media (max-width: 991px) {
    .hps-cols-3 .hps-product-card:last-child:nth-child(3n+1) { grid-column: auto; }
    .hps-products-grid { grid-template-columns: repeat(var(--hps-tablet-columns), minmax(0, 1fr)); }
    .hps-trust-cta { align-items: flex-start; }
}
@media (max-width: 575px) {
    .hps-showcase { padding-top: 4px; }
    .hps-products-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .hps-product-icon { width: 64px; height: 64px; margin: 23px 20px 0; }
    .hps-product-content { padding: 21px; }
    .hps-product-icon + .hps-product-content { padding-top: 17px; }
    .hps-product-footer { align-items: stretch; flex-direction: column; gap: 11px; }
    .hps-price { align-self: flex-start; }
    .hps-showcase .hps-button { width: 100%; justify-content: space-between; }
    .hps-trust-cta { align-items: stretch; flex-direction: column; }
    .hps-cta-copy { align-items: flex-start; }
    .hps-showcase .hps-cta-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .hps-product-card,
    .hps-product-image img,
    .hps-showcase .hps-button,
    .hps-showcase .hps-cta-button { transition: none; }
}


/* Quick service index */
.hps-showcase [hidden] { display: none !important; }
.hps-showcase .hps-service-index,
.hps-showcase .hps-service-index * { min-width: 0; }
.hps-product-card { scroll-margin-top: 120px; }
.hps-product-card:focus { outline: none; }
.hps-product-card.is-jump-highlighted { animation: hps-card-highlight 1.7s ease both; }
@keyframes hps-card-highlight {
    0%, 100% { box-shadow: 0 12px 34px rgba(26, 26, 26, .075); }
    25%, 70% { border-color: var(--hps-primary); box-shadow: 0 0 0 5px rgba(237, 230, 33, .52), 0 18px 44px rgba(26, 26, 26, .13); transform: translateY(-3px); }
}
@media (max-width: 767px) {
    .hps-product-card { scroll-margin-top: 86px; }
}
@media (prefers-reduced-motion: reduce) {
    .hps-product-card { transition: none !important; }
    .hps-product-card.is-jump-highlighted { animation: none; box-shadow: 0 0 0 4px rgba(237, 230, 33, .52); }
}

/* 1.4.0: always-open service index; search and category filters removed. */
.hps-showcase .hps-service-index {
    position: relative;
    width: 100%;
    margin: 0 0 26px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(41, 41, 41, .12);
    border-radius: 19px;
    background: linear-gradient(145deg, #fff 0%, #fffef1 100%);
    box-shadow: 0 12px 32px rgba(41, 41, 41, .07);
}
.hps-showcase .hps-service-index::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 102px;
    height: 5px;
    border-radius: 0 0 0 10px;
    background: var(--hps-accent);
    content: "";
}
.hps-showcase .hps-service-index .hps-quick-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    margin: 0 0 18px;
}
.hps-showcase .hps-service-index .hps-quick-mark {
    display: grid;
    width: 48px;
    height: 48px;
    min-width: 48px;
    place-items: center;
    border-radius: 14px;
    background: var(--hps-primary);
    color: var(--hps-accent);
    box-shadow: 0 7px 18px rgba(41, 41, 41, .14);
}
.hps-showcase .hps-service-index .hps-quick-mark svg { width: 23px; height: 23px; }
.hps-showcase .hps-service-index .hps-quick-head h3 {
    margin: 0 !important;
    color: var(--hps-primary) !important;
    font: inherit !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
}
.hps-showcase .hps-service-index .hps-quick-head p {
    display: block !important;
    margin: 2px 0 0 !important;
    color: rgba(41, 41, 41, .67) !important;
    font: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.75 !important;
}
.hps-showcase .hps-service-index .hps-title-index {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.hps-showcase .hps-service-index .hps-title-index-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100%;
    max-height: none !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
}
.hps-showcase .hps-service-index .hps-title-index-list a {
    position: relative;
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    min-height: 58px;
    align-items: center;
    gap: 9px;
    margin: 0 !important;
    padding: 9px 10px 9px 12px !important;
    overflow: hidden;
    border: 1px solid rgba(41, 41, 41, .11) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .94) !important;
    color: var(--hps-primary) !important;
    font: inherit !important;
    font-size: 12.75px !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
    box-shadow: 0 3px 11px rgba(41, 41, 41, .035) !important;
    text-decoration: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.hps-showcase .hps-service-index .hps-title-index-list a::before { display: none !important; }
.hps-showcase .hps-service-index .hps-title-index-list a:hover {
    border-color: rgba(41, 41, 41, .28) !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(41, 41, 41, .08) !important;
    transform: translateY(-2px);
}
.hps-showcase .hps-service-index .hps-title-index-list a:focus-visible {
    outline: 3px solid rgba(237, 230, 33, .55) !important;
    outline-offset: 2px;
}
.hps-showcase .hps-service-index .hps-title-index-list a > svg {
    display: block;
    color: rgba(41, 41, 41, .52);
    transition: transform .2s ease, color .2s ease;
}
.hps-showcase .hps-service-index .hps-title-index-list a:hover > svg {
    color: var(--hps-primary);
    transform: translateX(-2px);
}
.hps-showcase .hps-index-number {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: var(--hps-accent);
    color: var(--hps-primary);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}
.hps-product-card:target {
    box-shadow: 0 0 0 4px rgba(237, 230, 33, .42), 0 18px 42px rgba(41, 41, 41, .12);
}
@media (max-width: 991px) {
    .hps-showcase .hps-service-index .hps-title-index-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
    .hps-showcase .hps-service-index { margin-bottom: 20px; padding: 17px 13px 14px; border-radius: 17px; }
    .hps-showcase .hps-service-index::before { width: 76px; height: 4px; }
    .hps-showcase .hps-service-index .hps-quick-head { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; margin-bottom: 13px; }
    .hps-showcase .hps-service-index .hps-quick-mark { width: 42px; height: 42px; min-width: 42px; border-radius: 12px; }
    .hps-showcase .hps-service-index .hps-quick-mark svg { width: 21px; height: 21px; }
    .hps-showcase .hps-service-index .hps-quick-head h3 { font-size: 16px !important; line-height: 1.65 !important; }
    .hps-showcase .hps-service-index .hps-quick-head p { font-size: 11.5px !important; line-height: 1.7 !important; }
    .hps-showcase .hps-service-index .hps-title-index-list { grid-template-columns: minmax(0, 1fr) !important; gap: 7px !important; }
    .hps-showcase .hps-service-index .hps-title-index-list a {
        grid-template-columns: 28px minmax(0, 1fr) 17px;
        min-height: 51px;
        gap: 8px;
        padding: 7px 9px 7px 10px !important;
        border-radius: 11px !important;
        font-size: 12.25px !important;
        line-height: 1.65 !important;
    }
    .hps-showcase .hps-index-number { width: 28px; height: 28px; border-radius: 8px; font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .hps-showcase .hps-service-index .hps-title-index-list a,
    .hps-showcase .hps-service-index .hps-title-index-list a > svg { transition: none !important; }
}


/* Version 1.5: multiple presentation models inside one product card */
.hps-product-options {
    display: grid;
    gap: 9px;
    margin-top: auto;
    padding-top: 20px;
}
.hps-product-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 11px 11px 13px;
    border: 1px solid rgba(41,41,41,.11);
    border-radius: 12px;
    background: linear-gradient(145deg, #fff 0%, #fffef5 100%);
}
.hps-product-option:first-child { border-color: rgba(41,41,41,.18); }
.hps-option-meta { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.hps-option-meta strong {
    overflow: hidden;
    color: var(--hps-primary);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hps-option-price { color: #666a6d; font-size: 12.25px; font-weight: 750; line-height: 1.55; }
.hps-showcase .hps-option-button { min-height: 39px; padding: 6px 8px 6px 11px; font-size: 12px; box-shadow: none; }
.hps-showcase .hps-option-button svg { width: 24px; height: 24px; }
.hps-showcase .hps-detail-action-button > span { white-space: nowrap; }
.hps-showcase .hps-option-button.hps-detail-action-button { min-width: 168px; }
.hps-product-footer-detail-only { justify-content: flex-end; }
@media (max-width: 575px) {
    .hps-product-options { gap: 8px; padding-top: 17px; }
    .hps-product-option { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 12px; }
    .hps-option-meta strong { white-space: normal; }
    .hps-showcase .hps-option-button { width: 100%; min-width: 0; justify-content: space-between; }
    .hps-showcase .hps-detail-action-button > span { white-space: normal; text-align: right; }
}

/* Product detail links - 1.6.0 */
.hps-product-media-link { display: block; color: inherit; }
.hps-product-icon-link { width: fit-content; }
.hps-product-title-link { color: inherit !important; text-decoration: none !important; }
.hps-product-title-link:hover { color: #111 !important; }
.hps-product-icon-link + .hps-product-content { padding-top: 19px; }
@media (max-width: 575px) {
    .hps-product-icon-link + .hps-product-content { padding-top: 17px; }
}

/* 3.0.3: legacy [hesabgah_products] solution cards are always square. */
.hps-showcase .hps-product-media-link > .hps-product-image,
.hps-showcase .hps-product-card > .hps-product-image {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
}
.hps-showcase .hps-product-image > img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center;
}
