/* F7: MMS home product integration. Existing design tokens/theme remain authoritative. */
.idm-f7-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.idm-f7-product-card{border:1px solid rgba(120,130,145,.22);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;background:var(--idm-surface,#fff);min-width:0;transition:transform .15s ease,box-shadow .15s ease}
.idm-f7-product-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(18,28,43,.09)}
.idm-f7-media{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;overflow:hidden;background:color-mix(in srgb,var(--idm-surface,#fff) 82%,var(--blue,#2460b7) 18%)}
.idm-f7-media img{width:100%;height:100%;object-fit:cover}
.idm-f7-placeholder{font-weight:800;font-size:3rem;color:var(--blue,#2460b7);letter-spacing:.07em}
.idm-f7-content{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1}
.idm-f7-content h3{margin:0;font-size:1.26rem;line-height:1.28}
.idm-f7-content h3 a{text-decoration:none;color:inherit}
.idm-f7-content p{margin:0;line-height:1.55}
.idm-f7-content>p:not(.idm-f7-price){flex:1}
.idm-f7-offer{display:inline-block;align-self:flex-start;border-radius:7px;padding:5px 9px;background:#e8f5ed;color:#176c41;font-size:.8rem;font-weight:700}
.idm-f7-price{font-weight:800}
.idm-f7-price s{opacity:.65;font-weight:400;font-size:.87em;margin-left:5px}
.idm-f7-link{font-weight:700;text-decoration:none;color:var(--blue,#2460b7)}
.idm-f7-empty{grid-column:1/-1;padding:20px;border:1px dashed rgba(120,130,145,.35);border-radius:15px}
@media(max-width:1000px){.idm-f7-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.idm-f7-product-grid{grid-template-columns:1fr}.idm-f7-content{padding:18px}}
@media(prefers-reduced-motion:reduce){.idm-f7-product-card{transition:none}.idm-f7-product-card:hover{transform:none}}

/* IDM ERP F8.9.4 — Responsive, admin-configurable hero CTAs */
.hero-actions.idm-public-cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-actions.idm-public-cta-row > .btn {
    width: auto;
    max-width: 100%;
    text-align: center;
}
/* A wide desktop has room for three compact, accessible hero actions. */
@media (min-width: 1200px) {
    .hero-actions.idm-public-cta-row:has(> .btn:nth-child(3)):not(:has(> .btn:nth-child(4))) {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .hero-actions.idm-public-cta-row:has(> .btn:nth-child(3)):not(:has(> .btn:nth-child(4))) > .btn {
        box-sizing: border-box;
        flex: 0 1 auto;
        min-width: 0;
        padding: 12px 9px;
        font-size: 12px;
        line-height: 1.25;
        white-space: nowrap;
    }
}
@media (max-width: 600px) {
    .hero-actions.idm-public-cta-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .hero-actions.idm-public-cta-row > .btn {
        white-space: normal;
    }
}
