/* ═══════════════════════════════════════════════════════════════════════
   KOBAYASHI SHARED SHELL STYLES — nav, footer, logo slider
   Paired with shell.js. All tokens come from theme.css.
   ═══════════════════════════════════════════════════════════════════════ */

/* Offset body content so fixed nav (top: 24px with a preview banner above) doesn't overlap */
body { padding-top: 0; }

/* ── NAVIGATION ─────────────────────────────────────────────────────── */
.kb-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 1px 0 hsl(var(--border)), 0 8px 24px -16px hsl(0 0% 0% / 0.5);
}
html.light .kb-nav {
  box-shadow: 0 1px 0 hsl(var(--border)), 0 8px 24px -16px hsl(30 10% 14% / 0.08);
}
.kb-nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 32px;
}
.kb-nav__logo { display: flex; height: 28px; flex-shrink: 0; }
.kb-nav__logo img { height: 100%; width: auto; filter: var(--logo-filter); }

.kb-nav__toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  cursor: pointer;
}
.kb-nav__toggle svg { width: 20px; height: 20px; }

.kb-nav__links {
  display: flex;
  gap: 2px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.kb-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.kb-nav__link:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
}
.kb-nav__link.is-active {
  color: hsl(var(--foreground));
}
.kb-nav__link.is-active::after {
  content: '';
  display: block;
  position: absolute;
  margin-top: 30px;
  width: 16px;
  height: 2px;
  background: hsl(var(--primary));
  border-radius: 2px;
}
.kb-nav__caret {
  width: 12px; height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.2s;
}
.kb-nav__has-menu:hover .kb-nav__caret,
.kb-nav__has-menu.is-open .kb-nav__caret {
  transform: rotate(180deg);
}

.kb-nav__has-menu {
  position: relative;
}
.kb-nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  padding: 8px;
  background: hsl(var(--background-elev));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 10;
}
.kb-nav__has-menu:hover .kb-nav__menu,
.kb-nav__has-menu:focus-within .kb-nav__menu,
.kb-nav__has-menu.is-open .kb-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.kb-nav__menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: hsl(var(--foreground));
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.kb-nav__menu-item:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
}
.kb-nav__menu-size {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 44px;
  padding: 3px 8px;
  font-family: var(--font-condensed);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em;
  color: hsl(var(--primary));
  background: hsl(350 72% 44% / 0.1);
  border: 1px solid hsl(350 72% 44% / 0.25);
  border-radius: 6px;
}
.kb-nav__menu-divider {
  height: 1px;
  background: hsl(var(--border));
  margin: 6px 8px;
}
.kb-nav__menu-item--all {
  color: hsl(var(--primary));
  font-weight: 500;
}

.kb-nav__cta {
  background: hsl(var(--primary));
  color: hsl(var(--white));
  padding: 9px 18px;
}
.kb-nav__cta:hover {
  background: hsl(var(--primary-hover));
  color: hsl(var(--white));
}

/* Mobile actions wrapper (theme + hamburger) — desktop hides it */
.kb-nav__mobile-actions { display: none; align-items: center; gap: 4px; }
.kb-nav__theme-mobile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius, 0.5rem);
  color: hsl(var(--foreground));
  cursor: pointer;
  position: relative;
}
.kb-nav__theme-mobile:hover { border-color: hsl(var(--border)); background: hsl(var(--secondary)); }
.kb-nav__theme-mobile .kb-nav__theme-icon {
  position: absolute;
  width: 20px; height: 20px;
  color: hsl(var(--primary));
  transition: opacity 0.2s, transform 0.3s;
}
.kb-nav__theme-mobile .kb-nav__theme-icon--sun  { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.kb-nav__theme-mobile .kb-nav__theme-icon--moon { opacity: 1; transform: rotate(0) scale(1); }
html.light .kb-nav__theme-mobile .kb-nav__theme-icon--sun  { opacity: 1; transform: rotate(0) scale(1); }
html.light .kb-nav__theme-mobile .kb-nav__theme-icon--moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

/* Mobile cart icon (top bar, next to theme toggle + hamburger) */
.kb-nav__cart-mobile {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius, 0.5rem);
  color: hsl(var(--foreground));
  cursor: pointer;
}
.kb-nav__cart-mobile:hover { border-color: hsl(var(--border)); background: hsl(var(--secondary)); }
.kb-nav__cart-mobile svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

/* In-menu theme toggle (mobile only) */
.kb-nav__theme-item { display: none; }
.kb-nav__theme {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: transparent;
  border: 0;
  color: hsl(var(--foreground));
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.kb-nav__theme-icon { width: 18px; height: 18px; color: hsl(var(--primary)); flex-shrink: 0; }
.kb-nav__theme-icon--sun { display: none; }
html.light .kb-nav__theme-icon--sun { display: inline-block; }
html.light .kb-nav__theme-icon--moon { display: none; }

/* Top-bar phone link (desktop) */
.kb-nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: hsl(var(--foreground));
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.kb-nav__phone:hover { color: hsl(var(--primary)); }
.kb-nav__phone-icon { width: 15px; height: 15px; color: hsl(var(--primary)); flex-shrink: 0; }

/* Cart icon in the nav */
.kb-nav__cart-item { display: flex; align-items: center; margin-right: 8px; }
.kb-nav__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 8px;
  color: hsl(var(--foreground));
  cursor: pointer;
  border-radius: var(--radius, 0.5rem);
  transition: color 0.15s var(--ease, ease), background 0.15s var(--ease, ease);
}
.kb-nav__cart:hover { color: hsl(var(--primary)); background: hsl(var(--secondary)); }
.kb-nav__cart-icon { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.kb-nav__cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary));
  color: hsl(var(--white));
  font-family: var(--font-condensed, 'Barlow Condensed', sans-serif);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: 100px;
  box-shadow: 0 0 0 2px hsl(var(--background));
}
.kb-nav__cart-badge[hidden] { display: none; }

/* Mobile bottom tab bar (compact shortcut to key pages) */
.kb-mobilebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  gap: 2px;
  z-index: 90;
  box-shadow: 0 -6px 24px hsl(0 0% 0% / 0.35);
}
.kb-mobilebar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  text-decoration: none;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.kb-mobilebar__item svg { width: 20px; height: 20px; stroke-width: 1.8; }
.kb-mobilebar__item:hover,
.kb-mobilebar__item:focus-visible {
  color: hsl(var(--foreground));
  background: hsl(var(--background-elev));
}
.kb-mobilebar__item--primary { color: hsl(var(--primary)); }
.kb-mobilebar__item--primary:hover,
.kb-mobilebar__item--primary:focus-visible {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.12);
}

/* Mobile */
@media (max-width: 900px) {
  .kb-mobilebar { display: grid; }
  /* Keep page content from being hidden behind the fixed bottom bar */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  /* On mobile, the desktop phone link in the hamburger menu keeps its icon */
  .kb-nav__phone { justify-content: flex-start; }
  /* Theme toggle lives inside the hamburger menu on mobile */
  .kb-nav__theme-item { display: block; }
  /* Hide the floating theme button on mobile — it's now in the menu */
  .kb-theme-toggle { display: none !important; }

  /* Cart icon already lives in the mobile top bar (next to the theme
     toggle + hamburger), so hide the in-menu cart row on mobile. */
  .kb-nav__cart-item { display: none; }

  /* Pull theme toggle to the TOP of the open mobile menu */
  .kb-nav__theme-item { order: -1; }

  /* Visual divider between the theme row and the link list */
  .kb-nav__theme-item {
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid hsl(var(--border));
  }
}

/* Mobile */
@media (max-width: 900px) {
  .kb-nav__inner { padding: 10px 20px; }
  .kb-nav__toggle { display: inline-flex; }
  .kb-nav__mobile-actions { display: inline-flex; }
  .kb-nav__links {
    position: absolute;
    top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: hsl(var(--background-elev));
    border-bottom: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-lg);
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s, opacity 0.2s;
  }
  .kb-nav__links.is-open {
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
  }
  .kb-nav__link { padding: 12px 14px; font-size: 0.9rem; }
  .kb-nav__menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 24px;
    min-width: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
  }
  .kb-nav__has-menu.is-open .kb-nav__menu { display: block; }
  .kb-nav__menu-item { padding: 8px 10px; font-size: 0.82rem; }
}

/* ── LOGO SLIDER ────────────────────────────────────────────────────── */
.kb-logos {
  padding: 56px 32px;
  background: hsl(var(--background-elev));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  overflow: hidden;
}
.kb-logos__label {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground-2));
  margin-bottom: 36px;
}
.kb-logos__track-wrap {
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.kb-logos__track {
  display: flex;
  align-items: center;
  gap: 88px;
  width: max-content;
  animation: kb-logo-scroll 120s linear infinite;
}
.kb-logos__track:hover { animation-play-state: paused; }
.kb-logos__track img {
  height: 84px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s, filter 0.3s;
}
.kb-logos__track img:hover { opacity: 1; transform: scale(1.06); }

/* DARK MODE — per-tone treatment so every logo reads on a #121212 surface:
   - Default (assumed "dark" = black/colored ink on transparent): invert to white
   - data-tone="light"  → already white/light, leave alone (just opacity)       */
.kb-logos__track img                       { filter: brightness(0) invert(1); }
.kb-logos__track img[data-tone="light"]    { filter: none; }
.kb-logos__track img[data-tone="dark"]     { filter: brightness(0) invert(1); }

/* LIGHT MODE — native colors, slight grayscale + dim, full color on hover.
   Inverts undone since the page background is now light. */
html.light .kb-logos__track img,
body.light .kb-logos__track img {
  filter: grayscale(100%);
  opacity: 0.55;
}
html.light .kb-logos__track img:hover,
body.light .kb-logos__track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes kb-logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 700px) {
  .kb-logos { padding: 40px 20px; }
  .kb-logos__track { gap: 36px; animation-duration: 80s; }
  .kb-logos__track img { height: 56px; max-width: 170px; padding: 10px 16px; }
}

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.kb-footer {
  background: hsl(var(--sidebar-bg));
  border-top: 1px solid hsl(var(--border));
  padding: 60px 32px 28px;
}
.kb-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.kb-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 40px 24px;
  margin-bottom: 40px;
}
@media (max-width: 1100px) {
  .kb-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .kb-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .kb-footer__grid { grid-template-columns: 1fr 1fr; }
}
.kb-footer__brand img {
  height: 28px;
  width: auto;
  margin-bottom: 14px;
  filter: var(--logo-filter);
}
.kb-footer__tagline {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground-2));
  line-height: 1.65;
  max-width: 300px;
}
.kb-footer__col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  margin-bottom: 14px;
}
.kb-footer__link {
  display: block;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground-2));
  padding: 4px 0;
  transition: color 0.15s;
  text-decoration: none;
}
.kb-footer__link:hover,
.kb-footer__link.is-active {
  color: hsl(var(--primary));
}
.kb-footer__madein {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 10px;
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
}
.kb-footer__madein svg {
  width: 14px; height: 14px;
}
.kb-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid hsl(var(--border));
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground-2));
}
@media (max-width: 600px) {
  .kb-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ════════════════════════════════════════════════════════════════════════
   HP-* SHARED COMPONENTS (Client Installations gallery, labels, buttons)
   Originally defined inline on the homepage; moved here so every PDP can
   render the same "Trusted by Bars and Hotels Worldwide" block.
   ══════════════════════════════════════════════════════════════════════ */
.hp-label {
  display: inline-flex; align-items: center;
  font-family: var(--font-condensed, 'Barlow Condensed', sans-serif);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 16px;
}
.hp-h2 {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-weight: 400;
  color: hsl(var(--foreground));
  margin-bottom: 22px;
}
.hp-h2 em { color: hsl(var(--primary)); font-style: normal; }

.hp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.hp-btn--ghost {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.hp-btn--ghost:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}
.hp-btn svg { width: 14px; height: 14px; }

.hp-gallery {
  padding: 100px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.hp-gallery__inner { max-width: 1280px; margin: 0 auto; }
.hp-gallery__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hp-gallery__header-text { max-width: 640px; }
.hp-gallery__header .hp-h2 { margin-bottom: 0; }
.hp-gallery__header-sub {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 14px 0 0;
}
.hp-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) { .hp-gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .hp-gallery__grid { grid-template-columns: repeat(2, 1fr); } }

.hp-gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  text-decoration: none;
  display: block;
  background: hsl(var(--background-elev));
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.hp-gallery__item:hover {
  transform: translateY(-4px);
  border-color: hsl(350 72% 44% / 0.5);
}
.hp-gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.hp-gallery__item:hover img { transform: scale(1.08); }
.hp-gallery__item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(to top,
    hsl(0 0% 0% / 0.85) 0%,
    hsl(0 0% 0% / 0.3) 55%,
    transparent 100%);
}
.hp-gallery__item-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(0 0% 100%);
  line-height: 1.2;
}
.hp-gallery__item-loc {
  font-size: 0.78rem;
  color: hsl(0 0% 80%);
  margin-top: 4px;
}
