/* Shared product navigation; no authentication or routing behavior lives here. */
@font-face {
  font-family: 'Noto Sans Bengali';
  src: url('../assets/fonts/NotoSansBengali.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
html { scroll-padding-top: calc(var(--an-header-height) + 24px); }
.product-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--an-white);
  border-bottom: 1px solid var(--an-rule);
  font-family: var(--an-font);
  color: var(--an-ink);
}
.product-header .site-header { position: static; width: 100%; min-height: 0; margin: 0; border: 0; background: transparent; }
.product-header .nav-shell {
  width: min(calc(100% - 80px), 1328px);
  min-height: var(--an-header-height);
  margin-inline: auto;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.product-header .nav-shell::before { content: none; }
.product-header .brand, .product-footer .footer-brand {
  display: inline-flex; flex: none; align-items: center; gap: 10px;
  padding: 0; border: 0; text-decoration: none; color: var(--an-ink);
}
.product-header .brand svg, .product-footer .footer-brand svg { display: block; width: 36px; height: 36px; overflow: hidden; }
.product-header .brand-lockup strong, .product-footer .brand-lockup strong {
  display: block; color: var(--an-ink); font: 600 20px/1.2 var(--an-font);
  letter-spacing: -.035em; text-transform: none;
}
.product-header .brand-lockup strong {
  text-transform: uppercase;
  letter-spacing: .015em;
  white-space: nowrap;
}
.product-header .brand-lockup small, .product-footer .brand-lockup small {
  display: block; margin-top: 3px; color: var(--an-body);
  font-size: 12px; line-height: 1.5; letter-spacing: 0;
}
.product-header .site-nav {
  display: flex; flex: none; flex-wrap: nowrap; align-items: center;
  gap: 24px; width: auto; margin: 0 0 0 auto; order: 0;
  overflow: visible;
}
.product-header .site-nav a {
  display: flex; position: relative; align-items: center;
  min-height: var(--an-header-height); padding: 0; white-space: nowrap;
  color: var(--an-ink); font: 500 13px/1.5 var(--an-font); text-decoration: none;
}
.product-header .site-nav a::after { content: none; }
.product-header .site-nav a:is([aria-current='page'],[aria-current='location']) { color: var(--an-primary); }
.product-header .site-nav a:is([aria-current='page'],[aria-current='location'])::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 15px; height: 2px;
  background: var(--an-primary); transform: none;
}
.product-header .product-actions { display: flex; flex: none; align-items: center; gap: 20px; }
.product-header .product-auth { color: var(--an-ink); font-size: 13px; text-decoration: none; white-space: nowrap; }
.product-header .product-auth[aria-current='page'] { color: var(--an-primary); text-decoration: underline; text-underline-offset: 7px; }
.product-header .language-switch { display: inline-flex; align-items: center; flex: none; gap: 3px; margin: 0; order: 0; color: var(--an-body); white-space: nowrap; }
.product-header .language-switch button {
  min-width: 36px; min-height: 44px; padding: 8px 3px;
  border: 0; border-radius: 0; background: transparent;
  color: var(--an-body); font-size: 12px; line-height: 1.5; cursor: pointer;
}
.product-header .language-switch button[aria-pressed='true'] { color: var(--an-primary); text-decoration: underline; text-underline-offset: 5px; }
.product-header .language-switch button:lang(bn) { font-family: 'Noto Sans Bengali', sans-serif; }
.product-header .nav-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  flex: none; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--an-primary); border-radius: 3px;
  color: var(--an-white); background: var(--an-primary);
  font: 500 13px/1.5 var(--an-font); text-decoration: none; box-shadow: none; white-space: nowrap;
}
.product-header .nav-action span { color: inherit; }
.product-header .menu-toggle {
  display: none; flex: none; width: 44px; height: 44px;
  margin: 0 -8px 0 0; padding: 10px; border: 0; background: transparent;
  color: var(--an-ink); cursor: pointer;
}
.product-header .menu-toggle span { display: block; height: 2px; width: 24px; margin-block: 6px; background: currentColor; }
.product-header .mobile-nav { display: none; }
.product-header :is(a,button):focus-visible { outline: 2px solid var(--an-focus); outline-offset: 4px; }
.product-header [hidden] { display: none !important; }
.product-header :is(a,button) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.product-footer { background: var(--an-white); border-top: 1px solid var(--an-rule); color: var(--an-ink); }
.product-footer .footer-inner {
  width: min(calc(100% - 80px), 1328px); margin-inline: auto; padding-block: 32px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center;
}
.product-footer .footer-inner p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--an-body); }
.product-footer .footer-links { display: grid; gap: 12px; justify-items: end; text-align: right; }
.product-footer .footer-links nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; max-width: 560px; }
.product-footer .footer-links a, .product-footer .footer-links > span { font-size: 13px; line-height: 1.5; color: var(--an-body); text-decoration: none; }
.product-footer .footer-links a { min-height: 32px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) {
  .product-header a:hover, .product-footer a:hover { color: var(--an-primary); }
  .product-header .nav-action:hover { color: var(--an-white); background: var(--an-primary-hover); border-color: var(--an-primary-hover); }
  .product-header .language-switch button:hover { color: var(--an-primary-hover); }
}
.product-header .nav-action:active { color: var(--an-white); background: var(--an-primary-hover); }
@media (min-width: 1101px) and (max-width: 1200px) {
  .product-header .site-nav { gap: 16px; }
}
@media (max-width: 1100px) {
  :root { --an-header-height: 76px; }
  .product-header .site-nav, .product-header .product-actions > .product-auth,
  .product-header .product-actions > .language-switch { display: none; }
  .product-header .menu-toggle:not([hidden]) { display: block; }
  .product-header .product-actions { margin-left: auto; gap: 20px; }
  .product-header .mobile-nav:not([hidden]) {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 24px;
    width: min(calc(100% - 80px), 1328px); margin-inline: auto; padding: 12px 0 24px;
    background: var(--an-white); font-size: 15px;
  }
  .product-header .mobile-nav a { display: flex; align-items: center; min-width: 0; min-height: 44px; padding-block: 8px; text-decoration: none; overflow-wrap: anywhere; }
  .product-header .mobile-nav a:is([aria-current='page'],[aria-current='location']) { color: var(--an-primary); text-decoration: underline; text-underline-offset: 5px; }
  .product-header .mobile-nav .language-switch { justify-self: start; }
  .product-header .mobile-nav .nav-action { grid-column: 1/-1; justify-self: start; margin-top: 8px; }
  .product-header-ready .product-header .mobile-nav {
    position: absolute; inset: 100% 0 auto; width: 100%;
    padding: 12px 40px 24px; border-bottom: 1px solid var(--an-rule);
    max-height: calc(100dvh - var(--an-header-height)); overflow-y: auto;
  }
  html:not(.product-header-ready) { scroll-padding-top: 380px; }
}
@media (max-width: 760px) {
  .product-header .nav-shell, .product-footer .footer-inner { width: calc(100% - 40px); }
  .product-header .nav-shell { gap: 16px; }
  .product-header .mobile-nav:not([hidden]) { width: calc(100% - 40px); }
  .product-header-ready .product-header .mobile-nav { width: 100%; padding-inline: 20px; }
  .product-footer .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .product-footer .footer-links { justify-items: start; text-align: left; }
  .product-footer .footer-links nav { justify-content: flex-start; }
  .product-footer .footer-links a { min-height: 44px; }
}
@media (max-width: 540px) {
  .product-header .product-actions > .nav-action { display: none; }
  .product-header .brand-lockup strong { font-size: 19px; }
}
@media (max-width: 360px) {
  .product-header .mobile-nav > a:is([data-i18n='nav.comparative'],[data-i18n='nav.probiotic']) { grid-column: 1/-1; }
}
.product-header:lang(bn) :is(.site-nav a,.product-auth,.nav-action,.brand-lockup small),
.product-header:lang(bn) .mobile-nav > a { font-family: 'Noto Sans Bengali', sans-serif; }
