.hm-product-feed {
    --hm-feed-green: #284430;
    --hm-feed-ink: #1f2a24;
    --hm-feed-muted: #66736b;
    --hm-feed-line: #e1e7df;
    --hm-feed-soft: #f6f8f3;
    width: 100%;
    min-width: 0;
    color: var(--hm-feed-ink);
}

.hm-product-feed *,
.hm-product-feed *::before,
.hm-product-feed *::after {
    box-sizing: border-box;
}

.hm-product-feed__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 8px;
}

.hm-product-feed .hm-product-feed__title {
    margin: 0;
    color: var(--hm-feed-green);
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.15;
}

.hm-product-feed__service-notes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.hm-product-feed__service-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hm-feed-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.hm-product-feed__service-note--stock {
    color: #028742;
}

.hm-product-feed__service-note svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: currentColor;
}

.hm-product-feed__controls {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.hm-product-feed__gesture-hint {
    display: none;
}

.hm-product-feed .hm-product-feed__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    margin: 0;
    padding: 0 0 3px;
    border: 1px solid var(--hm-feed-line);
    border-radius: 999px;
    background: #fff;
    color: var(--hm-feed-green);
    font: inherit;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.hm-product-feed .hm-product-feed__control:disabled {
    border-color: var(--hm-feed-line);
    background: #f2f4f1;
    color: #a4aea7;
    cursor: default;
    opacity: 0.72;
}

.hm-product-feed .hm-product-feed__control:not(:disabled):hover,
.hm-product-feed .hm-product-feed__control:not(:disabled):focus-visible {
    border-color: var(--hm-feed-green);
    background: var(--hm-feed-green);
    color: #fff;
}

.hm-product-feed__products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    min-width: 0;
}

.hm-product-feed--slider .hm-product-feed__products {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 12px;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #9aa69e transparent;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.hm-product-feed--slider .hm-product-feed__products:focus-visible {
    outline: 2px solid var(--hm-feed-green);
    outline-offset: 4px;
}

.hm-product-feed--slider .hm-product-feed__products.is-mouse-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none;
}

.hm-product-feed__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--hm-feed-line);
    border-radius: 12px;
    background: var(--hm-feed-soft);
}

.hm-product-feed__card-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.hm-product-feed__card-link:focus-visible {
    outline: 2px solid var(--hm-feed-green);
    outline-offset: -2px;
}

.hm-product-feed--slider .hm-product-feed__card {
    flex: 0 0 clamp(210px, 28vw, 280px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hm-product-feed__image {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid var(--hm-feed-line);
    background: #fff;
}

.hm-product-feed .hm-product-feed__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 12px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.hm-product-feed__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 13px;
}

.hm-product-feed .hm-product-feed__product-title {
    display: block;
    margin: 0;
    color: var(--hm-feed-green);
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.hm-product-feed__card-link:hover .hm-product-feed__product-title,
.hm-product-feed__card-link:focus-visible .hm-product-feed__product-title {
    text-decoration: underline;
}

.hm-product-feed .hm-product-feed__description {
    margin: 0;
    color: var(--hm-feed-muted);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.hm-product-feed__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.hm-product-feed__price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hm-product-feed__price {
    color: var(--hm-feed-ink);
    font-weight: 800;
    white-space: nowrap;
}

.hm-product-feed__unit-price {
    color: var(--hm-feed-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.hm-product-feed .hm-product-feed__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--hm-feed-green);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.hm-product-feed__card-link:hover .hm-product-feed__cta,
.hm-product-feed__card-link:focus-visible .hm-product-feed__cta {
    background: #1d3324;
    color: #fff;
}

.hm-product-feed .hm-product-feed__whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    margin: 0 13px 13px;
    padding: 0 10px;
    border: 1px solid #1fa855;
    border-radius: 999px;
    background: #fff;
    color: #147f3e;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.hm-product-feed .hm-product-feed__whatsapp:hover,
.hm-product-feed .hm-product-feed__whatsapp:focus-visible {
    border-color: #0f6f35;
    background: #147f3e;
    color: #fff;
    text-decoration: none;
}

.hm-product-feed .hm-product-feed__whatsapp:focus-visible {
    outline: 3px solid rgba(31, 168, 85, 0.35);
    outline-offset: 2px;
}

.hm-product-feed .hm-product-feed__whatsapp svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: currentColor;
}

.hm-product-inquiry[hidden] {
    display: none !important;
}

body.hm-product-inquiry-open {
    overflow: hidden;
}

.hm-product-inquiry,
.hm-product-inquiry * {
    box-sizing: border-box;
}

.hm-product-inquiry {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: grid;
    place-items: center;
    padding: 24px;
    font-family: Arial, Helvetica, sans-serif;
    opacity: 0;
    transition: opacity .18s ease;
}

.hm-product-inquiry.is-open {
    opacity: 1;
}

.hm-product-inquiry__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 31, 20, .62);
    backdrop-filter: blur(3px);
}

.hm-product-inquiry__dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: min(820px, calc(100vh - 48px));
    overflow-y: auto;
    padding: 26px;
    border: 1px solid #dbe5dc;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(12, 33, 19, .34);
    color: #1f2a24;
    opacity: 0;
    transform: translateY(12px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
    -webkit-overflow-scrolling: touch;
}

.hm-product-inquiry.is-open .hm-product-inquiry__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hm-product-inquiry__close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0 0 3px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #536158;
    font: 30px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.hm-product-inquiry__close:hover,
.hm-product-inquiry__close:focus-visible {
    background: #f0f4ef;
    color: #1f2a24;
}

.hm-product-inquiry__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 13px;
    border-radius: 14px;
    background: #1fa855;
    color: #fff;
}

.hm-product-inquiry__icon svg {
    width: 29px;
    height: 29px;
    fill: currentColor;
}

.hm-product-inquiry .hm-product-inquiry__eyebrow {
    margin: 0 44px 5px 0;
    color: #284430;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hm-product-inquiry .hm-product-inquiry__dialog h2 {
    margin: 0 44px 8px 0;
    color: #284430;
    font-size: 25px;
    line-height: 1.18;
}

.hm-product-inquiry .hm-product-inquiry__intro {
    margin: 0 0 14px;
    color: #536158;
    font-size: 14px;
    line-height: 1.45;
}

.hm-product-inquiry__product {
    margin-bottom: 17px;
    padding: 11px 13px;
    border-left: 4px solid #f6bd22;
    border-radius: 8px;
    background: #fff8dc;
    color: #3f361e;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.hm-product-inquiry__form {
    display: grid;
    grid-template-columns: minmax(90px, .55fr) minmax(0, 1.45fr);
    gap: 13px;
}

.hm-product-inquiry__field {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.hm-product-inquiry__field--wide,
.hm-product-inquiry__error,
.hm-product-inquiry__submit {
    grid-column: 1 / -1;
}

.hm-product-inquiry__field > span {
    color: #284430;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.hm-product-inquiry__field > span strong {
    color: #a7352d;
}

.hm-product-inquiry__field > span small {
    color: #718077;
    font-size: 11px;
    font-weight: 600;
}

.hm-product-inquiry__field input,
.hm-product-inquiry__field textarea {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #bfcac1;
    border-radius: 9px;
    background: #fff;
    color: #1f2a24;
    font: 15px/1.35 Arial, Helvetica, sans-serif;
    box-shadow: none;
}

.hm-product-inquiry__field textarea {
    min-height: 82px;
    resize: vertical;
}

.hm-product-inquiry__field input:focus,
.hm-product-inquiry__field textarea:focus {
    border-color: #284430;
    outline: 3px solid rgba(40, 68, 48, .14);
}

.hm-product-inquiry__field input::placeholder,
.hm-product-inquiry__field textarea::placeholder {
    color: #9aa39c;
    opacity: 1;
}

.hm-product-inquiry .hm-product-inquiry__error {
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #efaaa5;
    border-radius: 8px;
    background: #fff0ef;
    color: #8a231d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.hm-product-inquiry__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    margin: 2px 0 0;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    background: #1fa855;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    cursor: pointer;
}

.hm-product-inquiry__submit:hover,
.hm-product-inquiry__submit:focus-visible {
    background: #147f3e;
    color: #fff;
}

.hm-product-inquiry__submit svg {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    fill: currentColor;
}

.hm-product-inquiry .hm-product-inquiry__privacy {
    margin: 12px 0 0;
    color: #69766e;
    font-size: 11px;
    line-height: 1.45;
}

.hm-product-inquiry__privacy a {
    color: #284430;
    font-weight: 700;
}

@media (max-width: 767px) {
    .hm-product-inquiry {
        align-items: end;
        padding: 0;
    }

    .hm-product-inquiry__dialog {
        width: 100%;
        max-height: calc(100dvh - 18px);
        padding: 20px 17px calc(18px + env(safe-area-inset-bottom, 0px));
        border: 0;
        border-radius: 18px 18px 0 0;
        transform: translateY(24px);
    }

    .hm-product-inquiry .hm-product-inquiry__dialog h2 {
        font-size: 22px;
    }

    .hm-product-inquiry__form {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .hm-product-inquiry__field--wide,
    .hm-product-inquiry__error,
    .hm-product-inquiry__submit {
        grid-column: auto;
    }

    .hm-product-inquiry__field input,
    .hm-product-inquiry__field textarea {
        font-size: 16px;
    }
}

.hm-product-feed__empty {
    margin: 0;
    padding: 22px;
    border: 1px dashed var(--hm-feed-line);
    border-radius: 12px;
    background: var(--hm-feed-soft);
    color: var(--hm-feed-muted);
    line-height: 1.5;
}

@media (max-width: 520px) {
    .hm-product-feed {
        overflow: visible;
    }

    .hm-product-feed__header {
        align-items: flex-start;
        gap: 6px 12px;
        margin-bottom: 10px;
    }

    .hm-product-feed .hm-product-feed__title {
        width: 100%;
        font-size: 22px;
        line-height: 1.2;
    }

    .hm-product-feed__service-notes {
        display: grid;
        gap: 4px;
    }

    .hm-product-feed__controls {
        display: none;
    }

    .hm-product-feed__gesture-hint {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin: 4px 0 0;
        color: var(--hm-feed-muted);
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
    }

    .hm-product-feed__gesture-hint span {
        color: var(--hm-feed-green);
        font-size: 18px;
        line-height: 1;
    }

    .hm-product-feed__products {
        grid-template-columns: 1fr;
    }

    .hm-product-feed--slider .hm-product-feed__products {
        gap: 12px;
        margin-right: -16px;
        padding: 2px 16px 10px 1px;
        scroll-padding-inline: 1px;
    }

    .hm-product-feed--slider .hm-product-feed__card {
        flex-basis: min(88%, 340px);
    }

    .hm-product-feed__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .hm-product-feed .hm-product-feed__cta {
        width: 100%;
    }

    .hm-product-feed--slider .hm-product-feed__description {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }
}

@media (hover: hover) and (pointer: fine) {
    .hm-product-feed--slider .hm-product-feed__products {
        cursor: grab;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-product-feed--slider .hm-product-feed__products {
        scroll-behavior: auto;
    }
}
