/* =================== hc-mobile-tabbar.css =================== */
/* hc-mobile-tabbar — bottom fixed nav strip shown only on mobile (≤640px).
 * 5 items: Home / Catalog / Favorites / Compare / Cart. Premium dark glass
 * with backdrop-blur. Strictly .hc-mobile-tabbar / .hc-mobile-tabbar__*. */

.hc-mobile-tabbar {
  display: none;
}

@media (max-width: 640px) {
  .hc-mobile-tabbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: var(--hc-z-header, 50);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    background: rgba(20, 17, 14, 0.92);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border: 0.5px solid rgba(212, 184, 150, 0.20);
    border-radius: 20px;
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.18),
      0 24px 50px -16px rgba(0, 0, 0, 0.42);
  }
}

.hc-mobile-tabbar__item {
  /* flex (not inline-flex) so items stretch to fill grid cell; min-width:0
   * lets them shrink below their intrinsic content width inside the grid. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 2px;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  border-radius: 14px;
  color: rgba(245, 240, 232, 0.66);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-family: var(--hc-mono, JetBrains Mono, monospace);
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.hc-mobile-tabbar__item span {
  font-size: 20px;
  line-height: 1;
  color: var(--hc-gold, #d4b896);
}

.hc-mobile-tabbar__item b {
  /* Truncate label cleanly when grid cell is narrower than label content. */
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.hc-mobile-tabbar__item:hover,
.hc-mobile-tabbar__item.is-active {
  background: rgba(212, 184, 150, 0.14);
  color: var(--hc-paper, #ffffff);
}

.hc-mobile-tabbar__item:active {
  transform: scale(0.96);
}

.hc-mobile-tabbar__cart {
  position: relative;
}

.hc-mobile-tabbar__cart::after {
  position: absolute;
  top: 6px;
  right: 18%;
}

/* Sub-360px (iPhone SE / Mini in zoomed display): tighten letter-spacing
 * and font-size so labels still fit before truncation kicks in. */
@media (max-width: 359px) {
  .hc-mobile-tabbar__item {
    font-size: 9px;
    letter-spacing: 0.02em;
    padding-inline: 2px;
  }
  .hc-mobile-tabbar__item span {
    font-size: 18px;
  }
}
