/* Product pages only: existing storefront controls/cards, in a regular grid. */
/* A light action surface: crisp top corners, rounded card-like bottom. */
.hz-detail-cart {
    box-sizing: border-box;
    width: 100%;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid rgba(23, 18, 15, .09);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 10px rgba(23, 18, 15, .055);
}
/* Keep the shared icons and three columns, with comfortable touch targets. */
.hz-detail-cart .hz-product-card__actions { grid-template-rows: 44px; }
.hz-detail-cart .hz-card-add,
.hz-detail-cart .hz-card-decrease,
.hz-detail-cart .hz-card-increase,
.hz-detail-cart .hz-card-cart-link { min-height: 44px; }
.hz-detail-cart .hz-product-card__actions { width: 100%; }
.hz-detail-cart .hz-product-card__error { margin: 6px 0 0; }
.hz-detail-commerce.is-loading .hz-card-cart-link { pointer-events: none; }
.hz-detail-commerce .sd-format-badge { left: 14px; right: auto; }
.hz-partner-photo { position: relative; margin: 0; }
.hz-partner-photo .pp-main-image { display: block; }
.hz-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 24px);
    align-items: start;
    width: 100%;
}
.hz-related-grid .hz-product-card__media { aspect-ratio: 4 / 5; }
.hz-partner-related { border-top: 1px solid var(--rule, #dfd2c0); padding-top: 28px; }
.hz-partner-related > h2 { margin: 0 0 24px; }
@media (max-width: 919px) {
    .hz-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 379px) {
    .hz-related-grid { grid-template-columns: minmax(0, 1fr); }
}

/* One smaller photo/action card; information stays in the right column. */
.hz-detail-visual { width: 100%; max-width: 387px; min-width: 0; }
.hz-detail-card {
    border: 1px solid rgba(23, 18, 15, .09);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(23, 18, 15, .055);
    overflow: hidden;
}
.hz-detail-card > .hz-detail-cart { margin: 0; border: 0; box-shadow: none; }
.hz-detail-card > .sd-media {
    position: relative;
    top: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.hz-detail-card .hz-partner-photo { aspect-ratio: 3 / 4; }
.hz-detail-card .pp-main-image { width: 100%; height: 100%; object-fit: contain; }
.pp-detail.hz-detail-commerce > section { min-width: 0; }
@media (min-width: 920px) {
    .sd-main.hz-detail-commerce,
    .pp-detail.hz-detail-commerce {
        grid-template-columns: minmax(0, 387px) minmax(0, 1fr);
        align-items: start;
    }
    .hz-detail-visual { position: sticky; top: var(--hz-sticky-top, 100px); }
}
@media (max-width: 919px) {
    .sd-main .hz-detail-visual { width: 68.64%; max-width: none; min-width: min(100%, 200px); margin-inline: auto; }
    .pp-detail.hz-detail-commerce { grid-template-columns: minmax(0, 1fr); }
    .pp-detail .hz-detail-visual { width: 88%; margin-inline: auto; }
    .hz-detail-card > .sd-media,
    .hz-detail-card .hz-partner-photo { aspect-ratio: 4 / 5; }
}

/* Compact commercial cards, matching the finder card's desktop footprint. */
.hz-detail-visual { max-width: 305px; }
.hz-detail-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 410px;
}
.hz-detail-card > .sd-media,
.hz-detail-card > .hz-partner-photo {
    flex: 1 1 0;
    min-height: 0;
    height: 0;
    aspect-ratio: auto;
    max-width: none;
    max-height: none;
}
.hz-detail-card > .hz-detail-cart { flex: 0 0 auto; }
.hz-related-grid {
    grid-template-columns: repeat(3, minmax(0, 305px));
    gap: clamp(10px, 1.5vw, 18px);
}
.hz-related-grid > .hz-product-card,
.hz-related-grid > .compose-card {
    width: 100%;
    min-width: 0;
    max-width: 305px;
    height: 410px;
}
.hz-related-grid > .hz-product-card > .hz-product-card__link {
    flex: 1 1 0;
    min-height: 0;
}
.hz-related-grid > .hz-product-card .hz-product-card__media {
    flex: 1 1 0;
    min-height: 0;
    aspect-ratio: auto;
}
@media (min-width: 920px) {
    .sd-main.hz-detail-commerce,
    .pp-detail.hz-detail-commerce {
        grid-template-columns: minmax(0, 305px) minmax(0, 1fr);
    }
}
@media (max-width: 919px) {
    .sd-main .hz-detail-visual,
    .pp-detail .hz-detail-visual { width: min(100%, 240px); max-width: 240px; min-width: 0; }
    .hz-detail-card { height: 330px; }
    .hz-related-grid > .hz-product-card,
    .hz-related-grid > .compose-card { height: auto; }
    .hz-related-grid > .hz-product-card .hz-product-card__media { aspect-ratio: 4 / 5; flex: initial; }
    .hz-detail-card > .sd-media,
    .hz-detail-card > .hz-partner-photo { max-width: none; width: 100%; height: 0; aspect-ratio: auto; }
    .hz-related-grid { grid-template-columns: repeat(2, minmax(0, 305px)); }
}
@media (max-width: 379px) {
    .hz-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
