/* Public catalogue grid only; product details and cart keep their existing styles. */
.page-product-listing #product-listing-products .legacy-product-grid--listing {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 16px !important;
}
.page-product-listing #product-listing-products .legacy-product-card--listing {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0 !important;
    padding: 12px !important;
    background: #fff !important;
    border: 1px solid #a8ba9a !important;
    border-radius: 15px !important;
    box-shadow: none !important;
    overflow: hidden;
}
.page-product-listing #product-listing-products .legacy-product-card--listing:hover {
    border-color: #76996e !important;
    box-shadow: 0 8px 22px #244d4015 !important;
    transform: none;
}
.page-product-listing #product-listing-products .listing-product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f6f5f0;
    border-radius: 10px;
}
.page-product-listing #product-listing-products .listing-product-media .legacy-product-image {
    display: block;
    width: 100%;
    height: 100% !important;
    aspect-ratio: auto !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}
.page-product-listing #product-listing-products .listing-product-media .legacy-product-image img {
    width: 100% !important;
    height: 100% !important;
    padding: 4px;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}
.page-product-listing #product-listing-products .listing-product-media .catalogue-image-corner { display: none; }
.page-product-listing #product-listing-products .listing-product-media .hkf-preview-link {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #a8ba9a;
    border-radius: 50%;
    background: #fffef9;
    color: #174931 !important;
    box-shadow: 0 2px 8px #244d4020;
}
.page-product-listing #product-listing-products .listing-product-media .hkf-preview-link :is(.public-icon, svg) { width: 23px; height: 23px; }
.page-product-listing #product-listing-products .listing-product-media .listing-zoom-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.page-product-listing #product-listing-products .listing-product-media .catalogue-promotion-label {
    top: 9px;
    left: 9px;
    z-index: 2;
    color: #80601f;
    background: #fff8e6f2;
    border-color: #ba9959;
}
.page-product-listing #product-listing-products .legacy-product-card--listing .legacy-product-name-link {
    display: block;
    min-height: 3.2em;
    margin: 16px 7px 4px !important;
    color: #174631;
    font-size: 1rem !important;
    font-weight: 700;
    line-height: 1.6 !important;
    overflow: visible;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
}
.page-product-listing #product-listing-products .legacy-product-card--listing .legacy-product-price {
    margin: 0 7px 8px !important;
    padding: 0 !important;
    color: #174f39 !important;
    font-size: 1.45rem !important;
    font-weight: 800;
}
.page-product-listing #product-listing-products .legacy-product-card--listing .category-product-tags {
    min-height: 30px;
    margin: 0 7px 13px !important;
}
.page-product-listing #product-listing-products .legacy-product-card--listing .category-product-tag {
    padding: 4px 8px;
    color: #254d40;
    background: #eaf0e5;
    border: 0;
    border-radius: 6px;
}
.page-product-listing #product-listing-products .legacy-product-card--listing .legacy-product-cart-form {
    display: block;
    margin: auto 4px 0 !important;
    padding: 0;
    border: 0;
}
.page-product-listing #product-listing-products .legacy-product-card--listing .catalogue-cart-button {
    width: 100%;
    min-height: 46px;
    color: #fff !important;
    background: #194e38 !important;
    border: 1px solid #194e38 !important;
    border-radius: 7px !important;
    font-weight: 700;
}
.page-product-listing #product-listing-products .legacy-product-card--listing .catalogue-cart-plus { display: none; }
.page-product-listing #product-listing-products .legacy-product-card--listing .legacy-product-actions--category {
    margin: 5px 4px 0 !important;
}
.page-product-listing #product-listing-products .legacy-product-card--listing .catalogue-details-link {
    min-height: 36px;
    padding: 6px;
    color: #174631 !important;
    background: transparent !important;
    border: 0 !important;
    font-weight: 700 !important;
}
.page-product-listing #product-listing-products .legacy-product-card--listing .catalogue-details-link:hover { text-decoration: underline; }
@media (max-width: 900px) {
    .page-product-listing #product-listing-products .legacy-product-grid--listing { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 350px) {
    .page-product-listing #product-listing-products .legacy-product-grid--listing { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 430px) {
    html[data-hkf-text-size="130"] .page-product-listing #product-listing-products .legacy-product-grid--listing { grid-template-columns: minmax(0, 1fr) !important; }
}
html[data-hkf-theme="dark"] .page-product-listing #product-listing-products .legacy-product-card--listing { background: #233a30 !important; border-color: #6d8b72 !important; }
html[data-hkf-theme="dark"] .page-product-listing #product-listing-products .legacy-product-card--listing :is(.legacy-product-name-link,.legacy-product-price,.catalogue-details-link) { color: #f1f6e9 !important; }
