:root {
    --hpm-orange: #ff5a00;
    --hpm-ink: #202b36;
    --hpm-muted: #65717d;
    --hpm-border: #e7ebef
}

.hpm-simple-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(16px, 4vw, 64px);
    background: #fff;
    box-shadow: 0 3px 20px #15202b0c;
    position: sticky;
    top: 0;
    z-index: 30
}

.hpm-simple-header>a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--hpm-ink);
    font-weight: 800
}

.hpm-simple-header img {
    width: 58px;
    height: 52px;
    object-fit: contain
}

.hpm-simple-header nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 28px)
}

.hpm-simple-header nav a {
    color: var(--hpm-ink);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px
}

.hpm-simple-header nav a.active,
.hpm-simple-header nav a:hover {
    color: var(--hpm-orange)
}

.hpm-simple-header .hpm-cta,
.hpm-filter button {
    background: var(--hpm-orange);
    color: #fff;
    padding: 12px 18px;
    border-radius: 4px
}

.hpm-menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px
}

.hpm-products-hero {
    padding: clamp(58px, 8vw, 110px) 0;
    background: linear-gradient(110deg, #202b36f2, #202b36bd), url('../images/usage/pallet-deck-macking.jpg') center/cover;
    color: #fff
}

.hpm-products-hero .eyebrow {
    color: #ff8a4d;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 12px
}

.hpm-products-hero h1 {
    max-width: 850px;
    font-size: clamp(32px, 4.6vw, 58px);
    line-height: 1.1;
    font-weight: 800;
    margin: 12px 0 18px
}

.hpm-products-hero p:last-child {
    max-width: 720px;
    font-size: 17px;
    color: #edf0f3
}

.hpm-catalogue {
    padding-top: 44px;
    padding-bottom: 72px
}

.hpm-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap
}

.hpm-filter input,
.hpm-filter select {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #d9dfe5;
    border-radius: 4px;
    background: #fff;
    flex: 1;
    min-width: 200px
}

.hpm-filter button {
    border: 0;
    font-weight: 700
}

.clear-filter {
    align-self: center;
    color: var(--hpm-ink)
}

.hpm-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px
}

.hpm-product-card {
    border: 1px solid var(--hpm-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s
}

.hpm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px #15202b12
}

.hpm-product-image {
    display: block;
    width: 100%;
    height: 245px;
    padding: 0;
    border: 0;
    background: #f5f6f7;
    overflow: hidden
}

.hpm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s
}

.hpm-product-card:hover .hpm-product-image img {
    transform: scale(1.035)
}

.hpm-product-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.hpm-category {
    color: var(--hpm-orange);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .7px;
    font-weight: 800
}

.hpm-product-body h2 {
    font-size: 20px;
    line-height: 1.35;
    color: var(--hpm-ink);
    margin: 9px 0
}

.hpm-product-body p {
    font-size: 14px;
    color: var(--hpm-muted);
    line-height: 1.65;
    flex: 1
}

.hpm-product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px
}

.hpm-details-btn,
.hpm-whatsapp-btn {
    border: 1px solid var(--hpm-orange);
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer
}

.hpm-details-btn {
    background: #fff;
    color: var(--hpm-orange)
}

.hpm-whatsapp-btn {
    background: var(--hpm-orange);
    color: #fff
}

.hpm-commerce-footer {
    background: #202b36;
    color: #fff;
    padding: 38px 0
}

.hpm-commerce-footer p,
.hpm-commerce-footer a {
    color: #dce2e8
}

.hpm-commerce-footer small {
    display: block;
    margin-top: 18px;
    color: #aeb8c2
}

.hpm-empty {
    text-align: center;
    padding: 60px 15px
}

.hpm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.hpm-modal.is-open {
    display: flex
}

.hpm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: #0b1118b8
}

.hpm-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 10px;
    width: min(900px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: clamp(20px, 4vw, 38px);
    z-index: 1
}

.hpm-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    border: 0;
    background: #eef1f4;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 26px;
    z-index: 2
}

.hpm-modal-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    padding-top: 12px
}

.hpm-modal-product img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    background: #f6f7f8;
    border-radius: 6px
}

.hpm-modal-product h2 {
    font-size: clamp(24px, 3vw, 34px);
    padding-right: 30px;
    color: var(--hpm-ink)
}

.hpm-modal-product p,
.hpm-modal-product li {
    color: var(--hpm-muted);
    line-height: 1.7
}

.hpm-modal-product .hpm-whatsapp-btn {
    display: inline-block;
    margin-top: 10px
}

.hpm-modal-error {
    padding: 35px 10px;
    color: #a00
}

@media(max-width:991px) {
    .hpm-menu-toggle {
        display: block
    }

    .hpm-simple-header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 15px 20px #1112;
        padding: 18px 22px;
        flex-direction: column;
        align-items: stretch
    }

    .hpm-simple-header nav.is-open {
        display: flex
    }

    .hpm-simple-header nav a {
        padding: 8px 0
    }

    .hpm-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:575px) {
    .hpm-product-grid {
        grid-template-columns: 1fr
    }

    .hpm-product-image {
        height: 230px
    }

    .hpm-filter>* {
        width: 100%
    }

    .hpm-modal-product {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .hpm-modal-product img {
        max-height: 260px
    }

    .hpm-product-actions>* {
        flex: 1
    }

    .hpm-simple-header img {
        width: 44px;
        height: 42px
    }

    .hpm-simple-header>a {
        font-size: 12px
    }
}