html body #product-film { filter: none !important; }
html body:has(.showroom.is-showcase-open) header.topbar {
  position: fixed !important;
  z-index: 10030 !important;
  inset: 0 0 auto !important;
}
html body .showroom.is-showcase-open .showcase-layer.is-open {
  position: fixed !important;
  inset: calc(var(--site-header-bottom, 184px) + 8px) 64px 68px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  gap: 10px !important;
}
html body .showcase-layer.is-open > * {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
html body .showcase-layer.is-open .showcase-header {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
}
html body .showcase-layer.is-open .showcase-pagination {
  justify-content: flex-start !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin;
}
html body .showcase-layer.is-open .showcase-page { flex: 0 0 28px; }
@media (min-width: 641px) {
  html body header.topbar {
    display: grid !important;
    grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr) !important;
    align-items: start !important;
    padding: 18px 28px 14px !important;
    gap: 16px !important;
    min-height: 128px !important;
  }
  html body header.topbar .topbar-right {
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "nav language" "certs certs" !important;
    gap: 8px !important;
    align-items: start !important;
  }
  html body header.topbar .top-actions {
    grid-area: nav !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 4px !important;
  }
  html body header.topbar .language-control { grid-area: language !important; }
  html body header.topbar .certification-strip {
    grid-area: certs !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 6px !important;
    margin: 0 !important;
  }
  html body header.topbar .certification-card {
    min-width: 0 !important;
    width: auto !important;
    min-height: 36px !important;
    padding: 4px !important;
  }
  html body header.topbar .nav-command,
  html body header.topbar .language-toggle {
    min-height: 38px !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    gap: 5px !important;
  }
  html body header.topbar .company-name { white-space: normal !important; }
  html body header.topbar .company-name strong { font-size: 28px !important; line-height: 1.1 !important; }
  html body header.topbar .company-trust-row { white-space: normal !important; flex-wrap: wrap !important; }
}
@media (min-width: 641px) {
  html body .showroom.is-showcase-open .showcase-layer.is-open { grid-template-rows: 69px minmax(0, 1fr) 38px !important; }
  html body .showcase-layer.is-open .showcase-pagination { height: 38px !important; min-height: 38px !important; }
  html body .showcase-layer.is-open .showcase-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 641px) and (max-width: 980px) {
  html body header.topbar {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
    padding: 12px 16px 14px !important;
    gap: 10px !important;
  }
}
@media (max-width: 640px) {
  html body .showroom.is-showcase-open .showcase-layer.is-open {
    inset: calc(var(--site-header-bottom, 184px) + 8px) 12px 20px !important;
  }
  html body .showcase-layer.is-open .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(6, calc((100vw - 38px) / 2)) !important;
    overflow-y: auto !important;
  }
}

@media (min-width: 641px) {
  html body:has(.showroom.is-showcase-open) > button#open-kiki-float {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 3px !important;
    border-radius: 50% !important;
    right: 18px !important;
    bottom: 10px !important;
    gap: 0 !important;
  }
  html body:has(.showroom.is-showcase-open) > button#open-kiki-float img { width: 48px !important; height: 48px !important; }
  html body:has(.showroom.is-showcase-open) > button#open-kiki-float span,
  html body:has(.showroom.is-showcase-open) > button#open-kiki-float::after { display: none !important; }
}

/* 2026-09-05 v80: the layout override loads after styles.css, so keep desktop cards square here too. */
@media (min-width: 641px) {
  html body .showcase-layer.is-open .showcase-grid {
    --desktop-card-size: min(calc((100vw - 130px) / 4), calc((100vh - 357px) / 3));
    grid-template-columns: repeat(4, var(--desktop-card-size)) !important;
    grid-template-rows: repeat(3, var(--desktop-card-size)) !important;
    grid-auto-rows: var(--desktop-card-size) !important;
    align-content: center !important;
    justify-content: center !important;
    align-items: start !important;
    justify-items: start !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  html body .showcase-layer.is-open .product-card,
  html body .showcase-layer.is-open .empty-showcase-cell {
    width: var(--desktop-card-size) !important;
    height: var(--desktop-card-size) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: var(--desktop-card-size) !important;
    max-height: var(--desktop-card-size) !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
  }

  html body .showcase-layer.is-open .product-card {
    display: block !important;
  }

  html body .showcase-layer.is-open .product-card img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  html body .showcase-layer.is-open .product-card-copy {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    height: auto !important;
    min-height: 42px !important;
    max-height: 58px !important;
    padding: 18px 9px 8px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, transparent, rgba(3, 5, 8, .96) 42%) !important;
  }
}
