.hps-wrapper {
    width: 100%;
}

.hps-form {
    display: flex;
    align-items: stretch;
    width: min(100%, 360px);
    margin: 0 0 34px;
}

.hps-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 16px;
    border: 1px solid #d7d0ca;
    border-right: 0;
    border-radius: 2px 0 0 2px;
    background: #fff;
    color: #4a3a33;
    font-size: 15px;
    line-height: 42px;
    outline: none;
    box-shadow: none;
}

.hps-input:focus {
    border-color: #c5abc9;
}

.hps-button {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 20px;
    border: 1px solid #c5abc9;
    border-radius: 0 2px 2px 0;
    background: #c5abc9;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.hps-button:hover,
.hps-button:focus {
    background: #b799bc;
    border-color: #b799bc;
}

.hps-preview-results {
    width: 100%;
}

.hps-preview-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 18px;
}

.hps-preview-card {
    margin: 0;
}

.hps-preview-card-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #2b120b;
    text-decoration: none;
}

.hps-preview-card-link:hover,
.hps-preview-card-link:focus {
    color: #2b120b;
    text-decoration: none;
}

.hps-preview-card-link:hover .hps-preview-title,
.hps-preview-card-link:focus .hps-preview-title {
    text-decoration: underline;
}

.hps-preview-image-wrap {
    display: block;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.hps-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hps-preview-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0.01));
}

.hps-preview-title {
    flex: 1 1 auto;
    min-width: 0;
    color: #2b120b;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: break-word;
}

.hps-find-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 12px 16px;
    border: 1px solid #c5abc9;
    border-radius: 2px;
    background: #c5abc9;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.hps-find-more:hover,
.hps-find-more:focus {
    background: #b799bc;
    border-color: #b799bc;
    color: #fff;
    text-decoration: none;
}

.hps-preview-message {
    margin: 0;
    color: #4a3a33;
    font-size: 15px;
}

.hps-collection-template {
    padding: 0;
}

.hps-kicker {
    margin: 0 0 20px;
    color: #5f3728;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.hps-heading {
    margin: 0 0 44px;
    color: #2b120b;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 400;
    line-height: 1.05;
}

.hps-grid {
    display: grid;
    grid-template-columns: repeat(var(--hps-columns, 3), minmax(0, 1fr));
    gap: 42px 38px;
}

.hps-product-card {
    margin: 0;
}

.hps-product-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin: 0 0 18px;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
}

.hps-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.hps-product-image-link:hover .hps-product-image {
    transform: scale(1.03);
}

.hps-product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0.01));
}

.hps-product-title {
    margin: 0;
    color: #2b120b;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
}

.hps-product-title a {
    color: inherit;
    text-decoration: none;
}

.hps-product-title a:hover,
.hps-product-title a:focus {
    text-decoration: underline;
}

.hps-message {
    margin: 0;
    color: #4a3a33;
    font-size: 16px;
}

.hps-loading {
    opacity: 0.55;
    pointer-events: none;
}

.hps-full-results .hps-kicker,
.hps-full-results .hps-heading {
    text-align: center;
}

@media (max-width: 980px) {
    .hps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 28px;
    }
}

@media (max-width: 620px) {
    .hps-form {
        width: 100%;
    }

    .hps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hps-kicker {
        font-size: 15px;
    }
}
