 .hm-pgs {
    --hm-pgs-green: #14854e;
    --hm-pgs-border: #e0e4e8;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.hm-pgs *, .hm-pgs *::before, .hm-pgs *::after { box-sizing: border-box; }
.hm-pgs-track {
    display: grid;
    grid-template-columns: repeat(var(--hm-pgs-columns, 5), minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}
.hm-pgs-slider .hm-pgs-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 1px 1px 8px;
}
.hm-pgs-slider .hm-pgs-track::-webkit-scrollbar { display: none; }
.hm-pgs-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--hm-pgs-border);
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(0,0,0,.025);
}
.hm-pgs-slider .hm-pgs-card {
    flex: 0 0 calc((100% - (var(--hm-pgs-columns, 5) - 1) * 20px) / var(--hm-pgs-columns, 5));
    scroll-snap-align: start;
}
.hm-pgs-image-wrap {
    position: relative;
    overflow: hidden;
    background: #f5f5f2;
    aspect-ratio: 1 / 1;
}
.hm-pgs-image-link { display: block; width: 100%; height: 100%; }
.hm-pgs-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.hm-pgs-card:hover .hm-pgs-image-wrap img { transform: scale(1.035); }
.hm-pgs-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 5px 10px;
    border-radius: 20px;
    background: #f33b4c;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}
.hm-pgs-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px 13px;
}
.hm-pgs-product-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.8em;
    color: #172337;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.hm-pgs-product-title:hover { color: var(--hm-pgs-green); }
.hm-pgs-price { min-height: 20px; color: var(--hm-pgs-green); font-size: 15px; font-weight: 700; }
.hm-pgs-price del { color: #a9adb3; font-size: 12px; font-weight: 400; margin-right: 4px; }
.hm-pgs-price ins { color: var(--hm-pgs-green); text-decoration: none; }
.hm-pgs-action { margin-top: auto; padding-top: 3px; }
.hm-pgs .hm-pgs-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 8px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--hm-pgs-green) !important;
    color: #fff !important;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
}
.hm-pgs .hm-pgs-button:hover { background: #0f6d3f !important; color: #fff !important; }
.hm-pgs-arrow {
    position: absolute;
    top: 33%;
    z-index: 5;
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 50%;
    background: #fff;
    color: #1d2939;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    font-family: Arial, sans-serif;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.hm-pgs-arrow:hover { background: #f3f7f4; transform: translateY(-1px); }
.hm-pgs-prev { left: 4px; }
.hm-pgs-next { right: 4px; }
.hm-pgs-arrow:disabled { opacity: .35; cursor: default; }
.hm-pgs-empty { padding: 18px; border: 1px solid #eee; border-radius: 8px; }
@media (max-width: 767px) {
    .hm-pgs-track { grid-template-columns: repeat(var(--hm-pgs-mobile, 2), minmax(0, 1fr)); gap: 12px; }
    .hm-pgs-slider .hm-pgs-card {
        flex-basis: calc((100% - (var(--hm-pgs-mobile, 2) - 1) * 12px) / var(--hm-pgs-mobile, 2));
    }
    .hm-pgs-card-body { padding: 10px; gap: 7px; }
    .hm-pgs-product-title { font-size: 13px; }
    .hm-pgs-price { font-size: 13px; }
    .hm-pgs-sale { top: 8px; left: 8px; padding: 4px 8px; font-size: 10px; }
    .hm-pgs-arrow { width: 38px; height: 38px; font-size: 28px; top: 29%; }
    .hm-pgs-prev { left: 3px; }
    .hm-pgs-next { right: 3px; }
}
