:root {
  --teal: #107F99;
  --teal-light: #68AEBF;
  --dark: #003C51;
  --cool-grey: #969999;
  --light: #F7F9FC;
  --white: #ffffff;
  --yellow: #F6B81A;
  --green: #009247;
  --blue: #0075BF;
  --danger: #b42318;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(0, 60, 81, 0.08);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ===== Hylab site chrome (matches main website) ===== */
.hylab-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(0, 60, 81, 0.06);
}

.hylab-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  position: relative;
}

@media (min-width: 1024px) {
  .hylab-header-inner {
    padding: 0;
    min-height: 88px;
  }
}

.hylab-logo {
  flex: 0 1 auto;
  min-width: 0;
}

.hylab-logo img {
  height: 40px;
  width: auto;
  max-width: min(42vw, 160px);
}

@media (min-width: 1024px) {
  .hylab-logo img {
    height: 50px;
    max-width: none;
  }
}

.hylab-header-actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.hylab-icon-btn,
.lang-toggle,
.hamburger {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--teal);
  padding: 0.35rem;
  line-height: 1;
}

.hylab-icon-btn {
  font-size: 0.95rem;
}

.hylab-divider {
  display: none;
  width: 1px;
  height: 1rem;
  background: #000;
  margin: 0 1.25rem;
}

@media (min-width: 480px) {
  .hylab-divider {
    display: inline-block;
  }
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  z-index: 60;
  position: relative;
}

.hamburger .line {
  width: 21px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .hamburger .line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .hamburger .line:nth-child(2) {
  opacity: 0;
}
body.nav-open .hamburger .line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

/* Mobile overlay: use transform (not top:-100% with inset:0 — that left the menu covering the page) */
.hylab-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4.5rem 1.25rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-110%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s ease, visibility 0.35s ease;
}

.hylab-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.hylab-nav-logo-mobile {
  margin-bottom: 1.5rem;
}

.hylab-nav-logo-mobile img {
  width: min(11rem, 55vw);
  height: auto;
}

.hylab-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
  max-width: 22rem;
}

.hylab-menu li {
  margin: 0 0 1.1rem;
}

.hylab-menu a {
  color: #000;
  text-decoration: none;
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
  display: inline-block;
  padding: 0.2rem 0.5rem;
}

.hylab-menu a:hover,
.hylab-menu a.is-current {
  color: var(--teal);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .hylab-nav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    background: transparent;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    overflow: visible;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }

  .hylab-nav-logo-mobile {
    display: none;
  }

  .hylab-menu {
    display: flex;
    align-items: center;
    text-align: left;
    width: auto;
    max-width: none;
  }

  .hylab-menu li {
    margin: 0 1.5rem 0 0;
  }

  .hylab-menu li:last-child {
    margin-right: 0;
  }

  .hylab-menu a {
    font-size: 0.875rem;
    padding: 0;
  }
}

.lang-picker {
  position: relative;
  margin-left: 0.65rem;
}

@media (min-width: 480px) {
  .lang-picker {
    margin-left: 1.25rem;
  }
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cool-grey);
}

.lang-toggle img {
  width: 12px;
  height: 12px;
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  width: 9rem;
  background: #fff;
  border-top: 1px solid rgba(0, 60, 81, 0.2);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  padding: 1rem;
  z-index: 60;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #000;
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
}

.lang-dropdown a:last-child {
  margin-bottom: 0;
}

.lang-dropdown a.is-active {
  color: var(--teal);
  font-weight: 700;
}

.lang-dropdown img {
  width: 12px;
  height: 12px;
}

.site-search-bar {
  background: radial-gradient(circle at top, rgba(104, 174, 191, 0.45), var(--teal) 55%);
  padding: 2rem 0;
  position: relative;
  z-index: 45;
}

.site-search-bar[hidden] {
  display: none !important;
}

.site-search-inner {
  position: relative;
}

.site-search-form {
  display: flex;
  width: min(100%, 920px);
  margin: 0 auto;
}

.site-search-form input {
  flex: 1;
  border: 0;
  border-radius: 4px 0 0 4px;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
}

.site-search-form button {
  border: 0;
  border-radius: 0 4px 4px 0;
  width: 3.5rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff;
  cursor: pointer;
}

.site-search-close {
  position: absolute;
  top: -1.25rem;
  right: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Buttons (shared) */
.btn {
  border: 0;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: white;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.btn-small {
  padding: 0.35rem 0.7rem;
  font-size: 0.875rem;
}

.btn-secondary {
  background: var(--dark);
}

.btn-danger {
  background: var(--danger);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid rgba(0, 60, 81, 0.25);
}

.site-main {
  flex: 1;
}

/* Pre-footer contact banner */
.hylab-contact-banner {
  margin-top: auto;
  background:
    radial-gradient(circle at 20% 30%, rgba(104, 174, 191, 0.55), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(41, 170, 225, 0.25), transparent 40%),
    linear-gradient(135deg, #0d6f86 0%, #107F99 45%, #0b6480 100%);
  color: #fff;
}

.hylab-contact-banner-inner {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .hylab-contact-banner-inner {
    flex-direction: row;
  }
}

.hylab-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.35rem 1.25rem;
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.25s ease;
}

@media (min-width: 1024px) {
  .hylab-contact-item {
    width: 33.333%;
    padding: 3rem 1.25rem;
  }
}

.hylab-contact-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hylab-contact-item span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

@media (min-width: 1024px) {
  .hylab-contact-item span {
    font-size: 1.25rem;
  }
}

@media (min-width: 1280px) {
  .hylab-contact-item span {
    font-size: 1.45rem;
  }
}

/* Footer */
.hylab-footer {
  background: #fff;
  padding-top: 2rem;
  border-top: 0;
  color: var(--dark);
}

@media (min-width: 768px) {
  .hylab-footer {
    padding-top: 3.5rem;
  }
}

.hylab-footer a {
  color: var(--dark);
  text-decoration: none;
}

.hylab-footer a:hover {
  text-decoration: underline;
  color: var(--teal);
}

.hylab-footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hylab-footer-top {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

@media (max-width: 639px) {
  .hylab-footer-menu ul {
    columns: 1;
  }

  .hylab-footer-contact address,
  .hylab-footer-contact p {
    font-size: 0.92rem;
  }
}

.hylab-footer-brand {
  display: none;
}

@media (min-width: 1024px) {
  .hylab-footer-brand {
    display: block;
  }
}

.hylab-footer-logo img {
  height: 50px;
  width: auto;
}

.hylab-footer-logo-mobile {
  display: inline-block;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .hylab-footer-logo-mobile {
    display: none;
  }
}

.hylab-footer-contact {
  font-size: 0.875rem;
  line-height: 1.45;
}

.hylab-footer-contact address {
  font-style: normal;
  margin-bottom: 1rem;
}

.hylab-footer-menu {
  font-size: 0.875rem;
  line-height: 1.45;
}

.hylab-footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hylab-footer-menu li {
  margin-bottom: 0.35rem;
}

@media (max-width: 767px) {
  .hylab-footer-menu-products {
    display: none;
  }
}

.hylab-footer-social {
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .hylab-footer-social {
    justify-content: flex-end;
  }
}

.hylab-footer-social a {
  color: #000;
}

.hylab-footer-social a:hover {
  color: var(--teal);
  text-decoration: none;
}

.hylab-footer-accreds {
  margin-bottom: 1rem;
}

.hylab-footer-accreds img {
  height: 40px;
  width: auto;
}

.hylab-footer-copy {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: rgba(0, 60, 81, 0.85);
}

body.nav-open {
  overflow: hidden;
}

/* Hero */
.page-hero {
  background:
    radial-gradient(circle at 15% 40%, rgba(104, 174, 191, 0.45), transparent 50%),
    linear-gradient(135deg, #0d6f86 0%, var(--teal) 50%, #0b6480 100%);
  padding: 0.9rem 0 1rem;
  border-bottom: 0;
  color: #fff;
  animation: hero-in 0.6s ease both;
}

@media (min-width: 800px) {
  .page-hero {
    padding: 1rem 0 1.1rem;
  }
}

.page-hero h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.25rem, 5vw, 2rem);
  letter-spacing: -0.02em;
  color: #fff;
  word-break: break-word;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

@media (min-width: 800px) {
  .page-hero p {
    font-size: 0.98rem;
  }
}

.page-nav {
  background: #fff;
  border-bottom: 1px solid rgba(0, 60, 81, 0.08);
  padding: 0.65rem 0;
}

.breadcrumbs {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cool-grey);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (min-width: 800px) {
  .breadcrumbs {
    font-size: 0.95rem;
  }
}

.breadcrumbs a {
  color: var(--teal);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .studio-badge-inline {
  font-weight: 700;
}

.section {
  padding: 2rem 0 3rem;
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
  }
}

.card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 60, 81, 0.08);
  border: 1px solid rgba(0, 60, 81, 0.06);
  color: var(--dark);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -35%;
  width: 140%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:nth-child(1) { animation-delay: 0.03s; }
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.13s; }
.card:nth-child(4) { animation-delay: 0.18s; }
.card:nth-child(5) { animation-delay: 0.23s; }
.card:nth-child(6) { animation-delay: 0.28s; }
.card:nth-child(7) { animation-delay: 0.33s; }
.card:nth-child(8) { animation-delay: 0.38s; }
.card:nth-child(9) { animation-delay: 0.43s; }
.card:nth-child(10) { animation-delay: 0.48s; }
.card:nth-child(11) { animation-delay: 0.53s; }
.card:nth-child(12) { animation-delay: 0.58s; }
.card:nth-child(n+13) { animation-delay: 0.63s; }

@keyframes card-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.card:hover,
.card:focus-visible {
  background: linear-gradient(160deg, #1294b0 0%, #0b6f86 100%);
  color: #fff;
  text-decoration: none;
  border-color: transparent;
  transform: translate3d(0, -14px, 0) scale(1.045);
  box-shadow:
    0 22px 44px rgba(16, 127, 153, 0.32),
    0 8px 16px rgba(0, 60, 81, 0.14);
  outline: none;
  z-index: 2;
}

.card:hover::before,
.card:focus-visible::before,
.card:hover::after,
.card:focus-visible::after {
  opacity: 1;
}

.card:active {
  transform: translate3d(0, -4px, 0) scale(1.01);
}

.card-image-wrap {
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f4f8fa;
  transition:
    background 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.card:hover .card-image-wrap,
.card:focus-visible .card-image-wrap {
  background: #fff;
  transform: translate3d(0, -6px, 0) scale(1.04);
  box-shadow: 0 12px 24px rgba(0, 60, 81, 0.12);
}

.card-image {
  width: 180px;
  height: 180px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  filter: drop-shadow(0 6px 12px rgba(0, 60, 81, 0.1));
}

.card:hover .card-image,
.card:focus-visible .card-image {
  transform: scale(1.12);
  filter: drop-shadow(0 10px 18px rgba(0, 60, 81, 0.18));
}

.card-title {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  transition: transform 0.35s ease;
}

.card:hover .card-title,
.card:focus-visible .card-title {
  transform: translateY(2px);
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-gallery {
  animation: card-in 0.5s ease backwards;
}

.product-hero-img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-gallery:hover .product-hero-img {
  transform: scale(1.03);
}

.thumb-row img {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.thumb-row img:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 60, 81, 0.12);
}

.accordion-item {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.accordion-item:hover {
  box-shadow: 0 6px 16px rgba(0, 60, 81, 0.08);
}

.jump-nav a {
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.jump-nav a:hover {
  transform: translateY(-1px);
}

.doc-list a {
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.doc-list a:hover {
  padding-left: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .page-hero,
  .product-gallery,
  .card-image,
  .card-image-wrap,
  .product-hero-img,
  .thumb-row img,
  .jump-nav a,
  .doc-list a {
    animation: none !important;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
  }

  .card:hover,
  .card:focus-visible {
    transform: none;
  }

  .card:hover .card-image,
  .card:focus-visible .card-image,
  .card:hover .card-image-wrap,
  .card:focus-visible .card-image-wrap {
    transform: none;
  }
}

.empty-state {
  background: var(--light);
  border: 1px dashed rgba(0, 60, 81, 0.2);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: rgba(0, 60, 81, 0.75);
}

.empty-state a {
  font-weight: 600;
}

.product-lang-bar {
  padding: 0.85rem 0 0;
}

.product-lang-bar .jump-nav {
  margin-bottom: 0;
}

.doc-lang-fallback {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--cool-grey);
}

/* Product detail */
.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1rem 0 2.5rem;
}

@media (min-width: 800px) {
  .product-layout {
    grid-template-columns: minmax(360px, 560px) 1fr;
    align-items: start;
    gap: 2.5rem;
    padding: 2rem 0 3rem;
  }
}

.product-gallery {
  background: var(--light);
  border-radius: var(--radius);
  padding: 0.85rem;
}

@media (min-width: 800px) {
  .product-gallery {
    padding: 1.25rem;
  }
}

.gallery-zoom-btn,
.gallery-thumb-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.gallery-main-btn {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  background: rgba(0, 60, 81, 0.82);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

.gallery-main-btn:hover .gallery-zoom-hint,
.gallery-main-btn:focus-visible .gallery-zoom-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.product-hero-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: white;
  border-radius: var(--radius);
  display: block;
  transition: transform 0.35s ease;
}

.gallery-main-btn:hover .product-hero-img,
.gallery-main-btn:focus-visible .product-hero-img {
  transform: scale(1.04);
}

.thumb-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

@media (min-width: 800px) {
  .thumb-row {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }
}

.gallery-thumb-btn {
  border-radius: 6px;
  border: 2px solid transparent;
  overflow: hidden;
  background: white;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb-btn img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  background: white;
}

.gallery-thumb-btn:hover,
.gallery-thumb-btn:focus-visible {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--teal);
  outline: none;
}

.gallery-thumb-btn.is-active {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(16, 127, 153, 0.2);
}

/* Lightbox */
body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 40, 0.82);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: lightbox-in 0.28s ease;
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.lightbox-close:hover {
  background: var(--teal);
  color: #fff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.lightbox-prev { left: 0.25rem; }
.lightbox-next { right: 0.25rem; }

.lightbox-nav:hover {
  background: var(--teal);
  color: #fff;
}

@media (max-width: 700px) {
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
  .gallery-zoom-hint { opacity: 1; }
}

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.jump-nav a {
  background: var(--light);
  color: var(--dark);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.jump-nav a:hover {
  background: var(--teal);
  color: white;
  text-decoration: none;
}

.accordion-item {
  border: 1px solid rgba(0, 60, 81, 0.12);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-toggle {
  width: 100%;
  text-align: left;
  background: white;
  border: 0;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-toggle::after {
  content: "+";
  color: var(--teal);
  font-size: 1.25rem;
}

.accordion-item.is-open .accordion-toggle::after {
  content: "–";
}

.accordion-panel {
  display: none;
  padding: 0 1rem 1rem;
  background: #fbfcfe;
}

.accordion-item.is-open .accordion-panel {
  display: block;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-list li {
  margin: 0.4rem 0;
  min-width: 0;
}

.doc-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: baseline;
  font-weight: 600;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.doc-size {
  color: var(--cool-grey);
  font-weight: 400;
  font-size: 0.875rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Admin */
.admin-body {
  background: #eef3f6;
}

.admin-header {
  background: var(--dark);
  color: white;
}

.admin-header a {
  color: white;
}

.admin-header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  font-size: 0.95rem;
}

.admin-user {
  opacity: 0.7;
}

.admin-main {
  padding: 1.5rem 0 3rem;
}

.admin-main h1 {
  margin-top: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  color: var(--teal);
}

.table-wrap {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table.data {
  width: 100%;
  border-collapse: collapse;
}

table.data th,
table.data td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(0, 60, 81, 0.08);
  text-align: left;
  vertical-align: middle;
}

table.data th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cool-grey);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-yes {
  background: #e5f6ed;
  color: var(--green);
}

.badge-no {
  background: #fdecea;
  color: var(--danger);
}

.form-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  max-width: 720px;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-row input[type="text"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(0, 60, 81, 0.2);
  border-radius: var(--radius);
  font: inherit;
}

.form-row textarea {
  min-height: 110px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.flash-success {
  background: #e5f6ed;
  color: #0d5c2e;
}

.flash-error {
  background: #fdecea;
  color: #7a1c14;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(16, 127, 153, 0.2), transparent 50%),
    var(--light);
  padding: 1rem;
}

.login-card {
  width: min(100%, 400px);
  background: white;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin-top: 0;
  font-size: 1.4rem;
}

.media-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.media-admin-item {
  background: var(--light);
  border-radius: var(--radius);
  padding: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
}

.media-admin-item img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  background: white;
  margin-bottom: 0.4rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.inline-form {
  display: inline;
}

/* Admin studio (visual edit mode) */
body.admin-studio {
  padding-top: 0;
}

.studio-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  color: #fff;
  border-bottom: 3px solid var(--teal);
}

.studio-bar a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.9rem;
}

.studio-bar a:hover {
  color: var(--teal-light) !important;
}

.studio-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.studio-bar-left,
.studio-bar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.studio-pill {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.studio-user {
  opacity: 0.85;
  font-size: 0.9rem;
}

.studio-back {
  font-weight: 600;
}

.studio-flash {
  margin-top: 1rem;
}

.studio-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.studio-toolbar-section {
  padding-top: 1.25rem;
}

.studio-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.studio-panel {
  background: #fff;
  border: 1px solid rgba(0, 60, 81, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem 1.25rem;
  margin-bottom: 1.5rem;
}

.studio-panel-compact {
  margin-top: 1rem;
  box-shadow: none;
}

.studio-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--dark);
}

.studio-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.studio-panel-head h3 {
  margin: 0;
}

.studio-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem 1rem;
}

@media (min-width: 720px) {
  .studio-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .studio-form-span {
    grid-column: 1 / -1;
  }
}

.studio-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(0, 60, 81, 0.2);
  border-radius: var(--radius);
  font: inherit;
  resize: vertical;
}

.studio-current-media {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--cool-grey);
}

.studio-current-media img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--light);
  border-radius: 4px;
}

.studio-danger {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 60, 81, 0.1);
}

.studio-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.studio-card .card {
  height: 100%;
}

.studio-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
}

.studio-badge {
  display: inline-block;
  background: #f3e6c5;
  color: #7a5a00;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.studio-badge-inline {
  margin-left: 0.4rem;
  vertical-align: middle;
}

.studio-thumb {
  position: relative;
}

.studio-thumb-delete {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1.4rem;
  height: 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.studio-doc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  justify-content: space-between;
}

/* Product YouTube videos */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0.25rem 0 0.5rem;
}

@media (min-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  margin: 0;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card figcaption {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

/* ===== Reseller (unbranded) portal chrome ===== */
.reseller-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(0, 60, 81, 0.08);
}

.reseller-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.reseller-home {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.reseller-home:hover {
  color: var(--teal);
  text-decoration: none;
}

.reseller-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reseller-footer {
  margin-top: auto;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0, 60, 81, 0.08);
  background: var(--light);
}

.reseller-footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cool-grey);
  text-align: center;
}

.studio-public-links {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--light);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.studio-public-links code {
  word-break: break-all;
  font-size: 0.85rem;
}

.studio-doc-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.studio-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.studio-doc-replace {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

/* Document language picker on product pages */
.doc-lang-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--light);
  border-radius: var(--radius);
}

.doc-lang-label {
  font-weight: 600;
  color: var(--dark);
}

.doc-lang-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.doc-lang-option {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(0, 60, 81, 0.15);
  border-radius: var(--radius);
  background: #fff;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.doc-lang-option:hover {
  border-color: var(--teal);
  color: var(--teal);
  text-decoration: none;
}

.doc-lang-option.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.doc-lang-option.is-active:hover {
  color: #fff;
}

.jump-nav-reseller {
  align-items: center;
  gap: 0.65rem 0.75rem;
}

.jump-nav-reseller > span {
  font-weight: 600;
  color: var(--dark);
  flex: 0 0 auto;
}

.jump-nav .doc-lang-flags {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0;
  flex-wrap: wrap;
}

.jump-nav a.doc-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0.15rem;
  border-radius: 999px;
  background: transparent;
  border: 2px solid transparent;
  line-height: 0;
}

.jump-nav a.doc-lang-flag img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
}

.jump-nav a.doc-lang-flag:hover {
  background: transparent;
  border-color: rgba(16, 127, 153, 0.35);
  color: inherit;
  text-decoration: none;
}

.jump-nav a.doc-lang-flag.is-active {
  border-color: var(--teal);
  background: #fff;
}

.jump-nav a.doc-lang-flag.is-active:hover {
  background: #fff;
  color: inherit;
}


/* Admin product QR codes */
.studio-qr-panel {
  margin-top: 1rem;
}

.studio-qr-intro {
  margin: 0 0 1rem;
  color: var(--cool-grey);
  font-size: 0.95rem;
}

.studio-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.studio-qr-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem;
  background: var(--light);
  border-radius: var(--radius);
}

.studio-qr-card h4 {
  margin: 0;
  color: var(--dark);
}

.studio-qr-canvas {
  width: 280px;
  max-width: 100%;
  min-height: 280px;
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.studio-qr-canvas canvas,
.studio-qr-canvas img {
  width: 280px !important;
  max-width: 100%;
  height: auto !important;
}

.studio-qr-url {
  margin: 0;
  width: 100%;
}

.studio-qr-url code {
  display: block;
  word-break: break-all;
  font-size: 0.8rem;
}

.studio-doc-qr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.studio-qr-canvas-sm {
  width: 140px;
  min-height: 140px;
}

.studio-qr-canvas-sm canvas,
.studio-qr-canvas-sm img {
  width: 140px !important;
  max-width: 100%;
  height: auto !important;
}
