/* Loja — Modelo 4: grade 4×3, fundo branco e fotos com mais presença. */
html body.hp-shop-model-4,
html body.hp-shop-model-4 .wp-site-blocks,
html body.hp-shop-model-4 .hp-shop-page-shell,
html body.hp-shop-model-4 .hp-shop-query {
    background: #fff !important;
    background-image: none !important;
}

html body.hp-shop-model-4 .hp-shop-query .hp-product-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 22px 16px !important;
    align-items: stretch !important;
}

html body.hp-shop-model-4 .hp-shop-query .hp-product-grid > li,
html body.hp-shop-model-4 .hp-shop-query .hp-product-grid > .product,
html body.hp-shop-model-4 .hp-shop-query .wp-block-post.product {
    min-width: 0 !important;
    overflow: visible !important;
    padding: 12px 12px 16px !important;
    border: 1px solid #e5ebe8 !important;
    border-radius: 12px !important;
    background: #f7f8f8 !important;
    box-shadow: 0 5px 16px rgba(0, 60, 50, .08) !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}

html body.hp-shop-model-4 .hp-shop-query .hp-product-grid > li:hover,
html body.hp-shop-model-4 .hp-shop-query .hp-product-grid > .product:hover,
html body.hp-shop-model-4 .hp-shop-query .wp-block-post.product:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(0, 60, 50, .14) !important;
}

html body.hp-shop-model-4 .hp-shop-filter-summary {
    display: grid !important;
    gap: 10px !important;
    margin: 0 0 22px !important;
    padding: 0 0 18px !important;
    border-bottom: 1px solid #e7ece9 !important;
}
html body.hp-shop-model-4 .hp-shop-filter-summary .wp-block-woocommerce-product-results-count {
    margin: 0 !important;
    color: #52625d !important;
    font-size: .86rem !important;
}
html body.hp-shop-model-4 .hp-shop-filter-summary .woocommerce-ordering,
html body.hp-shop-model-4 .hp-shop-filter-summary .wc-block-components-sort-select,
html body.hp-shop-model-4 .hp-shop-filter-summary .wp-block-woocommerce-catalog-sorting {
    width: 100% !important;
    margin: 0 !important;
}
html body.hp-shop-model-4 .hp-shop-filter-summary select {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 40px !important;
    border: 1px solid #dfe8e4 !important;
    border-radius: 8px !important;
    background: #fafcfb !important;
    color: #243e37 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23003c32' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding: 0 34px 0 12px !important;
}

html body.hp-shop-model-4 .hp-custom-sort { position: relative !important; width: 100% !important; }
html body.hp-shop-model-4 .hp-custom-sort__button {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    border: 1px solid #dfe8e4 !important;
    border-radius: 8px !important;
    background: #fafcfb !important;
    color: #243e37 !important;
    font-family: inherit !important;
    font-size: .9rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    cursor: pointer !important;
}
html body.hp-shop-model-4 .hp-custom-sort__button::after { content: '⌄'; color: #003c32; font-size: 1.05rem; }
html body.hp-shop-model-4 .hp-custom-sort__options {
    position: absolute !important;
    z-index: 30 !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    display: none !important;
    padding: 5px !important;
    border: 1px solid #dfe8e4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(0, 60, 50, .14) !important;
}
html body.hp-shop-model-4 .hp-custom-sort.is-open .hp-custom-sort__options { display: grid !important; }
html body.hp-shop-model-4 .hp-custom-sort__option {
    padding: 9px 10px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #243e37 !important;
    text-align: left !important;
    cursor: pointer !important;
}
html body.hp-shop-model-4 .hp-custom-sort__option:hover { background: #eef5f1 !important; color: #003c32 !important; }

html body.hp-shop-model-4 .hp-shop-products-column > .hp-shop-toolbar,
html body.hp-shop-model-4 .hp-shop-products-column > .hp-shop-toolbar.wp-block-group {
    display: none !important;
}

html body.hp-shop-model-4 .hp-shop-query .hp-product-grid > li.hp-product-is-out-of-stock,
html body.hp-shop-model-4 .hp-shop-query .hp-product-grid > li.hp-product-is-out-of-stock img {
    opacity: .48 !important;
}
html body.hp-shop-model-4 .hp-shop-query .hp-product-grid > li.hp-product-is-out-of-stock:hover {
    opacity: .68 !important;
}

html body.hp-shop-model-4 .hp-shop-catalog-layout,
html body.hp-shop-model-4 .hp-shop-filter-column,
html body.hp-shop-model-4 .hp-shop-filter-card {
    align-self: stretch !important;
}
html body.hp-shop-model-4 .hp-shop-filter-card {
    height: auto !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    background: #f7f8f8 !important;
}

html body.single-product .hp-out-of-stock-specialist {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    margin-top: 16px !important;
    padding: 0 22px !important;
    border-radius: 6px !important;
    color: #fff !important;
    background: #003c32 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
html body.single-product .hp-out-of-stock-specialist:hover { background: #005345 !important; }

html body.hp-shop-model-4 .hp-shop-query .hp-product-grid > li.hp-gallery-hovering img {
    transform: scale(1.015) !important;
}

html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .wc-block-components-product-image,
html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .wc-block-grid__product-image,
html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-image {
    min-height: 0 !important;
    margin: 0 auto 10px !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .wc-block-components-product-image img,
html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .wc-block-grid__product-image img,
html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    max-height: 246px !important;
    object-fit: contain !important;
    image-rendering: auto !important;
    background: #fff !important;
    filter: none !important;
}

html body.hp-shop-model-4 .hp-shop-query .hp-product-grid h3,
html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .wp-block-post-title {
    min-height: 3.25em !important;
    margin: 0 0 8px !important;
    color: #34424b !important;
    font-size: clamp(.88rem, .9vw, 1rem) !important;
    line-height: 1.3 !important;
}

html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button {
    width: 100% !important;
    margin-top: 12px !important;
}

html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button .wp-block-button__link,
html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button button {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 6px !important;
    border-color: #003c32 !important;
    color: #fff !important;
    background: #003c32 !important;
    box-shadow: none !important;
}

html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button .wp-block-button__link:hover,
html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button button:hover {
    background: #005345 !important;
    border-color: #005345 !important;
}

html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .hp-shop-price-discount,
html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .hp-shop-discount,
html body.hp-shop-model-4 .hp-shop-query .hp-product-grid .hp-shop-payment-info {
    color: #17835c !important;
}

@media (max-width: 1250px) {
    html body.hp-shop-model-4 .hp-shop-query .hp-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
    html body.hp-shop-model-4 .hp-shop-query .hp-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 14px !important; }
}
@media (max-width: 440px) {
    html body.hp-shop-model-4 .hp-shop-query .hp-product-grid { grid-template-columns: 1fr !important; }
}
