/* The kinds of fixture in the catalogue mega menu as icon tiles (owner, 2026-11-15). Markup: inc/calm.php,
   icons and the list: inc/kind-icons.php. Two rows of five on a computer, two in a row on a phone. */
.bm-mm__kinds.bm-kinds2 {
    display: block;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 26, 26, .1);
}
.bm-kinds2__label { margin: 0 0 14px; }
.bm-kinds2__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.bm-kinds2__grid li { margin: 0; padding: 0; }
.bm-kinds2 .bm-kind {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 10px 14px 10px 10px;
    border: 1px solid rgba(26, 26, 26, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    color: #1a1a1a;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.bm-kind__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(156, 108, 46, .1);
    color: #6e4a1c;
    transition: background-color .2s ease, color .2s ease;
}
.bm-kind__svg { display: block; width: 28px; height: 28px; }
.bm-kind__name { font-size: 14.5px; line-height: 1.3; letter-spacing: .01em; }
.bm-kinds2 .bm-kind:hover,
.bm-kinds2 .bm-kind:focus-visible { border-color: #9C6C2E; background: #fff; color: #1a1a1a; }
.bm-kinds2 .bm-kind:hover .bm-kind__icon,
.bm-kinds2 .bm-kind:focus-visible .bm-kind__icon { background: #9C6C2E; color: #fff; }
.bm-kinds2 .bm-kind:focus-visible { outline: 2px solid #9C6C2E; outline-offset: 2px; }

@media (max-width: 639px) {
    .bm-kinds2 .bm-kind { gap: 8px; padding: 8px 10px 8px 8px; }
    .bm-kind__icon { width: 36px; height: 36px; }
    .bm-kind__svg { width: 24px; height: 24px; }
    .bm-kind__name { font-size: 13.5px; }
}
@media (min-width: 640px) {
    .bm-kinds2__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .bm-kinds2__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
    .bm-kind__name { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .bm-kinds2 .bm-kind, .bm-kind__icon { transition: none; }
}

/* Brand pages' tabs with the same icons (owner, 2026-11-15): icon above the name, the current tab underlined in gold. */
.bm-brandhead__tabs.bm-brandtabs { gap: 6px; padding-bottom: 0; }
.bm-brandhead__tabs.bm-brandtabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 84px;
    padding: 8px 10px 10px;
    font-size: 14px;
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid transparent;
}
.bm-brandtabs__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(156, 108, 46, .1);
    color: #6e4a1c;
    transition: background-color .2s ease, color .2s ease;
}
.bm-brandtabs__icon .bm-kind__svg { width: 26px; height: 26px; }
.bm-brandtabs__name { line-height: 1.2; }
.bm-brandhead__tabs.bm-brandtabs a:hover .bm-brandtabs__icon,
.bm-brandhead__tabs.bm-brandtabs a:focus-visible .bm-brandtabs__icon { background: rgba(156, 108, 46, .22); }
.bm-brandhead__tabs.bm-brandtabs a.is-current { color: #1a1a1a; border-bottom-color: #9C6C2E; }
.bm-brandhead__tabs.bm-brandtabs a.is-current .bm-brandtabs__icon { background: #9C6C2E; color: #fff; }
.bm-brandhead__tabs.bm-brandtabs a:focus-visible { outline: 2px solid #9C6C2E; outline-offset: -2px; }
@media (min-width: 1024px) {
    .bm-brandhead__tabs.bm-brandtabs { gap: 14px; }
    .bm-brandhead__tabs.bm-brandtabs a { font-size: 15px; min-width: 96px; }
    .bm-brandtabs__icon { width: 50px; height: 50px; }
    .bm-brandtabs__icon .bm-kind__svg { width: 28px; height: 28px; }
}

/* Round 2 (owner, 2026-11-15): the brand tabs in one line on a computer, no sideways scrolling: every tab shares
   the width and the icons are a little smaller; on a phone the tabs wrap into rows instead of scrolling. */
.bm-brandhead__tabs.bm-brandtabs { overflow: visible; white-space: normal; }
.bm-brandhead__tabs.bm-brandtabs a { flex: 1 1 0; min-width: 0; text-align: center; padding: 6px 4px 8px; }
.bm-brandtabs__name { overflow-wrap: anywhere; }
@media (max-width: 1023px) {
    .bm-brandhead__tabs.bm-brandtabs { flex-wrap: wrap; gap: 4px 2px; border-bottom: 0; }
    .bm-brandhead__tabs.bm-brandtabs a { flex: 0 0 calc(25% - 2px); font-size: 12.5px; border-bottom-width: 2px; }
    .bm-brandtabs__icon { width: 38px; height: 38px; }
    .bm-brandtabs__icon .bm-kind__svg { width: 22px; height: 22px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .bm-brandhead__tabs.bm-brandtabs a { flex-basis: calc(16.66% - 2px); }
}
@media (min-width: 1024px) {
    .bm-brandhead__tabs.bm-brandtabs { gap: 4px; }
    .bm-brandhead__tabs.bm-brandtabs a { font-size: 14px; min-width: 0; }
    .bm-brandtabs__icon { width: 42px; height: 42px; }
    .bm-brandtabs__icon .bm-kind__svg { width: 24px; height: 24px; }
}

/* Round 3 (owner, 2026-11-15): the kinds tiles on a soft cream ground so the icons stand out from the white menu. */
.bm-kinds2 .bm-kind { background: #f3ede3; border-color: rgba(156, 108, 46, .18); }
.bm-kinds2 .bm-kind .bm-kind__icon { background: #fff; color: #6e4a1c; box-shadow: 0 1px 2px rgba(110, 74, 28, .12); }
.bm-kinds2 .bm-kind:hover,
.bm-kinds2 .bm-kind:focus-visible { background: #ebe2d4; border-color: #9C6C2E; }

/* The catalogue and category pages use the same icon row (owner, 2026-11-15: one look across the site). */
.bm-brandhead__tabs.bm-cattabs { margin: 0 0 10px; }

/* Round 4 (owner, 2026-11-15): the new, clearer drawings a little larger inside their circles. */
.bm-kinds2 .bm-kind__svg { width: 32px !important; height: 32px !important; }
.bm-brandtabs__icon .bm-kind__svg { width: 28px !important; height: 28px !important; }
@media (max-width: 1023px) { .bm-brandtabs__icon .bm-kind__svg { width: 25px !important; height: 25px !important; } }
@media (max-width: 639px) { .bm-kinds2 .bm-kind__svg { width: 27px !important; height: 27px !important; } }

/* Catalogue menu (owner, 2026-11-15): the brand's name is already in its tile's logo, so the name under the tile is
   hidden from sight; it stays for screen readers and as the link's words. */
.bm-mm__brand .bm-mm__brand-name {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Catalogue menu, round 5 (owner, 2026-11-15): no dividing line and no "סוגי תאורה" heading (kept for screen
   readers); the kinds a little closer to the brands and a little lower, so the open menu is shorter. */
.bm-mm__kinds.bm-kinds2 { border-top: 0 !important; margin-top: 16px !important; padding-top: 0 !important; }
.bm-kinds2 .bm-kinds2__label {
    position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
    margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
@media (min-width: 1024px) {
    .bm-kinds2 .bm-kind { padding-top: 7px !important; padding-bottom: 7px !important; }
    .bm-kinds2 .bm-kind__icon { width: 42px; height: 42px; }
    .bm-kinds2__grid { gap: 10px !important; }
}
