/* =========================================================
   Dom Diego · Bottom Nav Mobile · DS v5
   5 ícones fixos · só aparece em mobile (≤900px)
   ========================================================= */

.dd-bnav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 140;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-top: 1px solid rgba(10, 10, 10, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.dd-bnav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 8px;
  background: transparent;
  border: 0;
  color: var(--dd-ink-40, #7A7873);
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.dd-bnav-item svg {
  transition: transform 180ms cubic-bezier(.2,.7,.2,1);
}
.dd-bnav-item:active svg {
  transform: scale(0.88);
}
.dd-bnav-item:hover { color: var(--dd-ink, #0A0A0A); }

.dd-bnav-item.is-active {
  color: var(--dd-accent, #7A1F2B);
}
.dd-bnav-item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--dd-accent, #7A1F2B);
  border-radius: 0 0 2px 2px;
}

.dd-bnav-item span:last-child {
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Cart badge */
.dd-bnav-cart-wrap {
  position: relative;
  display: inline-flex;
}
.dd-bnav-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--dd-accent, #7A1F2B);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid var(--dd-bg, #FAF7F2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.dd-bnav-badge[hidden] { display: none; }

/* Mostrar só em mobile */
@media (max-width: 900px) {
  .dd-bnav {
    display: flex;
  }
  body.has-bottom-nav {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }
}

/* Mobile pequeno: ajustar padding */
@media (max-width: 380px) {
  .dd-bnav-item {
    padding: 10px 2px 8px;
    font-size: 9px;
    letter-spacing: 0.04em;
  }
  .dd-bnav-item svg { width: 20px; height: 20px; }
}
