/* Barre d'onglets flottante (mobile) du site, partagée par la boutique (shop/layout.php) et le conseiller « Accords & Saveurs » (F-0071).
   Composant : app/views/shop/partials/mobile_tabbar.php. */
.of-tabbar {
  display: none;
}

@media (max-width: 1023px) {
  .of-tabbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2px;
    padding: 4px;
    background: var(--of-text, #26301a);
    border-radius: 26px;
    box-shadow: 0 12px 30px rgba(38, 48, 26, 0.35);
  }

  .of-tab {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    border-radius: 22px;
    color: #c9cfb8;
    font-size: 0.6875rem;
    font-weight: 600;
    text-decoration: none;
  }

  .of-tab.is-active {
    background: var(--of-olive, #4f5d2f);
    color: #fff;
  }

  .of-tab-icon {
    position: relative;
    display: flex;
  }

  .of-tab-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--of-ocre, #e2a54a);
    color: var(--of-text, #26301a);
    font-size: 0.625rem;
    font-weight: 700;
  }

}


/* F-0071 : onglet fixe « Accords » sur le bord droit (remplace le lien du menu). Petit panneau olive, texte vertical sur ordinateur, icône seule sur mobile. */
.of-pairing-tab {
  position: fixed;
  right: 0;
  top: 58%;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 9px;
  background: var(--of-olive, #4f5d2f);
  color: #fff;
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 6px 18px rgba(38, 48, 26, 0.22);
  text-decoration: none;
  font: 600 0.8125rem/1 'Figtree', system-ui, sans-serif;
  letter-spacing: 0.02em;
  transform: translateY(-50%);
  transition: padding-right 0.15s ease;
}

.of-pairing-tab span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.of-pairing-tab:hover,
.of-pairing-tab:focus-visible {
  padding-right: 13px;
  color: #fff;
}

@media (max-width: 1023px) {
  .of-pairing-tab {
    top: auto;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    padding: 10px 8px 10px 10px;
    transform: none;
  }

  .of-pairing-tab span {
    display: none;
  }
}

@media print {
  .of-pairing-tab {
    display: none;
  }
}
