/* UniMach SEO: brand logo picker at the top of the e-shop. */
.um-shop-brands { margin-top: 28px; }
.um-shop-brands-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.um-shop-brands-all { color: #6fd3dc; font-size: 14px; text-decoration: none; }
.um-shop-brands-all:hover { text-decoration: underline; }

.um-shop-brands-row {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}

.um-shop-brand {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  padding: 10px 10px 8px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 6px;
  color: var(--paper-text, #161819);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.um-shop-brand:hover { border-color: #6fd3dc; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.um-shop-brand.is-on { border-color: var(--accent, #087f8c); box-shadow: 0 0 0 2px #6fd3dc; }

.um-shop-brand-logo { display: flex; align-items: center; justify-content: center; height: 38px; }
.um-shop-brand-logo img { max-width: 100%; max-height: 38px; width: auto; height: auto; object-fit: contain; }
.um-shop-brand-logo b { font-size: 15px; font-weight: 800; text-align: center; line-height: 1.1; }
.um-shop-brand-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--paper-muted, #5e6b70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1200px) {
  .um-shop-brands-row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .um-shop-brands-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Phone: one swipeable row */
@media (max-width: 760px) {
  .um-shop-brands-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-right: calc(-1 * var(--gutter, 16px));
    padding-right: var(--gutter, 16px);
    scrollbar-width: none;
  }
  .um-shop-brands-row::-webkit-scrollbar { display: none; }
  .um-shop-brand { flex: 0 0 96px; scroll-snap-align: start; }
  .um-shop-brand-logo { height: 38px; }
  .um-shop-brand-logo img { max-height: 38px; }
}

/* Direction tabs */
.um-dir-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-strong, rgba(255,255,255,.2)); border-radius: 8px; }
.um-dir-tab {
  appearance: none; border: 0; cursor: pointer;
  padding: 10px 18px; border-radius: 5px;
  background: transparent; color: var(--text, #fffaf2);
  font: inherit; font-size: 15px; font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.um-dir-tab:hover { background: rgba(255, 255, 255, 0.1); }
.um-dir-tab.is-on { background: #fff; color: var(--paper-text, #161819); }
.um-dir-panel[hidden] { display: none; }

/* A–Z list */
.um-az { margin-top: 12px; color: var(--text, #fffaf2); }
.um-az summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #6fd3dc; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.um-az summary::-webkit-details-marker { display: none; }
.um-az summary::before { content: '+'; font-size: 18px; line-height: 1; }
.um-az[open] summary::before { content: '−'; }
.um-az-list {
  margin-top: 12px; padding: 16px; max-height: 320px; overflow-y: auto;
  columns: 6 150px; column-gap: 18px;
  background: rgba(10, 24, 29, 0.85); border: 1px solid var(--line-strong, rgba(255,255,255,.2)); border-radius: 6px;
}
.um-az-list a { display: block; padding: 4px 0; color: var(--text, #fffaf2); text-decoration: none; font-size: 14px; break-inside: avoid; }
.um-az-list a:hover, .um-az-list a.is-on { color: #6fd3dc; text-decoration: underline; }

@media (max-width: 760px) {
  .um-shop-brands-head { flex-direction: column; align-items: stretch; }
  .um-dir-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .um-dir-tab { padding: 10px 8px; font-size: 13px; line-height: 1.25; }
  .um-az-list { columns: 2; max-height: 280px; }
}
