/* ILMA responsive page switch: desktop HTML on desktop, mobile HTML on mobile */
.im-mobile-version { display: none; }
@media (max-width: 1023px) {
  .im-desktop-version { display: none !important; }
  .im-mobile-version { display: block !important; }
}
@media (min-width: 1024px) {
  .im-desktop-version { display: block !important; }
  .im-mobile-version { display: none !important; }
}

/* local modal/filter helpers */
.im-choice-backdrop{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:20px}
.im-choice-modal{width:min(560px,100%);background:hsl(var(--background,0 0% 100%));color:hsl(var(--foreground,0 0% 10%));border:1px solid hsl(var(--border,0 0% 88%));border-radius:14px;box-shadow:0 30px 90px rgba(0,0,0,.35);overflow:hidden;font-family:inherit}
.im-choice-head{padding:22px 24px 14px;border-bottom:1px solid hsl(var(--border,0 0% 88%))}
.im-choice-head h3{margin:0 0 8px;font-size:20px;line-height:1.25;font-weight:800}
.im-choice-head p{margin:0;font-size:14px;line-height:1.5;color:hsl(var(--muted-foreground,0 0% 45%))}
.im-choice-body{padding:18px 24px 22px;display:grid;gap:12px}
.im-choice-option{display:block;text-decoration:none;color:inherit;border:1px solid hsl(var(--border,0 0% 88%));border-radius:12px;padding:16px;background:hsl(var(--card,0 0% 100%));transition:140ms ease}
.im-choice-option:hover{border-color:hsl(var(--primary,359 86% 44%));background:hsl(var(--primary,359 86% 44%) / .06)}
.im-choice-option strong{display:block;font-size:15px;margin-bottom:6px}
.im-choice-option span{display:block;font-size:13px;line-height:1.45;color:hsl(var(--muted-foreground,0 0% 45%))}
.im-choice-footer{padding:0 24px 22px;display:flex;justify-content:flex-end}
.im-choice-cancel{height:38px;padding:0 15px;border-radius:9px;border:1px solid hsl(var(--border,0 0% 88%));background:hsl(var(--background,0 0% 100%));color:hsl(var(--foreground,0 0% 10%));font-size:14px;font-weight:700;cursor:pointer;font-family:inherit}

.im-list-products{display:flex!important;flex-direction:column!important;gap:12px!important}
.im-list-products>a{display:grid!important;grid-template-columns:180px minmax(0,1fr)!important;min-height:132px!important;width:100%!important;flex-direction:unset!important}
.im-list-products>a>div:first-of-type{height:132px!important;min-height:132px!important;aspect-ratio:unset!important}
.im-list-products>a>div:first-of-type img:not(.w-6){width:100%!important;height:100%!important;object-fit:cover!important}
.im-list-products>a>div:last-child{padding:16px!important;justify-content:center!important}
@media(max-width:640px){
  .im-list-products>a{grid-template-columns:125px minmax(0,1fr)!important;min-height:112px!important}
  .im-list-products>a>div:first-of-type{height:112px!important;min-height:112px!important}
}

.im-active-category{border-color:hsl(var(--primary,359 86% 44%))!important;background:hsl(var(--primary,359 86% 44%))!important;color:hsl(var(--primary-foreground,0 0% 100%))!important;box-shadow:0 10px 24px rgba(211,15,19,.22)!important}

.im-local-select-menu{position:fixed;z-index:2147483002;background:white;color:#111;border:1px solid #ddd;border-radius:10px;box-shadow:0 18px 55px rgba(0,0,0,.25);padding:6px;max-height:270px;overflow:auto}
.im-local-select-menu button{display:flex;width:100%;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:7px;font:inherit;cursor:pointer;color:#111}
.im-local-select-menu button:hover{background:#f1f1f1}
