

.sfhp-shell {
    position: relative;
}

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

.sfhp-heading {
    font-size: clamp(22px, 3vw, 34px);
    letter-spacing: -0.04em;
}

.sfhp-subtitle {
    max-width: 560px;
    color: #64748b;
    font-size: 14px;
}

.sfhp-view-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sfhp-view-btn:hover {
    color: #ffffff;
    background: #2563eb;
}

.sfhp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.sfhp-card {
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.sfhp-card:hover {
    
    border-color: rgba(37, 99, 235, 0.22);
}

.sfhp-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 0.82;
    background: #f1f5f9;
    overflow: hidden;
}

.sfhp-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.sfhp-card:hover .sfhp-media img {
    transform: scale(1.055);
}

.sfhp-badge,
.sfhp-discount {
    position: absolute;
    top: 9px;
    left: 9px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.sfhp-discount {
    left: auto;
    right: 9px;
    background: #dcfce7;
    color: #166534;
}

.sfhp-body {
    padding: 11px 12px 12px;
}

.sfhp-meta {
    margin-bottom: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sfhp-title {
    display: -webkit-box;
    min-height: 36px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sfhp-title:hover {
    color: #2563eb;
}

.sfhp-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.sfhp-price {
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
}

.sfhp-old-price {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-decoration: line-through;
}

.sfhp-stock {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.sfhp-stock.is-in {
    background: #ecfdf5;
    color: #047857;
}

.sfhp-stock.is-out {
    background: #fef2f2;
    color: #b91c1c;
}

.sfhp-message {
    padding: 18px;
    border-radius: 16px;
    background: #ffffff;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

.sfhp-skeleton .sfhp-media {
    background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
    background-size: 220% 100%;
    animation: sfhpShimmer 1.15s infinite linear;
}

.sfhp-skeleton .sfhp-body span,
.sfhp-skeleton .sfhp-body strong,
.sfhp-skeleton .sfhp-body em {
    display: block;
    height: 10px;
    margin-bottom: 9px;
    border-radius: 999px;
    background: #eef2f7;
}

.sfhp-skeleton .sfhp-body span {
    width: 45%;
}

.sfhp-skeleton .sfhp-body strong {
    width: 88%;
    height: 13px;
}

.sfhp-skeleton .sfhp-body em {
    width: 62%;
}

@keyframes sfhpShimmer {
    to {
        background-position: -220% 0;
    }
}

@media (max-width: 1199.98px) {
    .sfhp-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .sfhp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .sfhp-shell {
        padding: 20px;
        border-radius: 20px;
    }

    .sfhp-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .sfhp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .sfhp-grid {
        grid-template-columns: 1fr;
    }
}
