.hpr-products-wrapper {
    width: 100%;
    margin: 0 auto;
}

.hpr-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.hpr-product-card {
    width: 230px;
    height: 213px;
    border-radius: 4px;
    border: 1px solid #D6D6D6;
    background: #FFF;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hpr-product-card:hover {
    border-radius: var(--dc-border-radius-default, 4px);
    border: 1px solid var(--dc-color-border-brand, #170057);
    background: var(--dc-color-foreground-white, #FFF);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hpr-product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.hpr-product-image-container {
    position: relative;
    height: 157px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hpr-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.hpr-product-card:hover .hpr-product-image {
    transform: scale(1.05);
}

.hpr-product-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.hpr-product-price-tag {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #ECEBF2;
    border-radius: 2px;
    padding: 2px 4px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    z-index: 2;
}

.hpr-product-title-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    text-align: center;
}

.hpr-product-title {
    margin: 0;
    font-family: 'HarmonyOS', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hpr-product-card:hover .hpr-product-title {
    color: #170057;
}

.hpr-button-container {
    text-align: center;
    margin-top: 24px;
}

.hpr-button {
    display: inline-flex;
    padding: var(--spacing-2, 8px) var(--spacing-6, 24px);
    justify-content: center;
    align-items: center;
    gap: var(--spacing-1-5, 6px);
    background: transparent;
    color: var(--dc-color-text-brand-primary, #170057);
    font-family: var(--font-style-italic, "HarmonyOS Sans SC");
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-style: normal;
    font-weight: var(--font-weight-medium, 500);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
    text-decoration: none;
    border-radius: var(--dc-border-radius-full, 9999px);
    border: 1px solid var(--dc-color-border-brand, #170057);
    transition: all 0.3s ease;
}

.hpr-button-icon {
    flex-shrink: 0;
}

.hpr-button:hover {
    background: #170057;
    border-color: #170057;
    color: #FFF;
}

.hpr-button:hover .hpr-button-icon path {
    stroke: #FFF;
}

@media (max-width: 768px) {
    .hpr-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hpr-product-card {
        width: 100%;
        height: auto;
        aspect-ratio: 230 / 213;
    }
    
    .hpr-product-image-container {
        height: calc(157 / 213 * 100%);
    }
}

@media (min-width: 769px) {
    .hpr-products-grid {
        grid-template-columns: repeat(var(--hpr-pc-columns, 5), 1fr);
    }
}
