/* Reserve the scrollbar lane so centered content never jumps between short and long pages. */
html { scrollbar-gutter: stable; }

/* Keep translated labels and hero copy from changing the page geometry. */
.omart-managed-banners .brand-hero {
  display: none !important;
}

.omart-managed-banners .hero.banner-fallback-only {
  display: none;
  height: 0 !important;
  min-height: 0 !important;
  margin-top: 0;
}

/* Keep the first API load compact. Five large grey skeleton cards made the
   healthy page look broken and pushed the first populated row below the fold. */
.card-grid[aria-label="Loading"] {
  display: grid;
  min-height: 76px;
  place-items: center;
}

.card-grid[aria-label="Loading"] .skeleton-card {
  display: none;
}

.card-grid[aria-label="Loading"]::after {
  width: 24px;
  height: 24px;
  content: "";
  border: 3px solid #dfe8e1;
  border-top-color: #087a42;
  border-radius: 50%;
  animation: omart-loading-spin 0.7s linear infinite;
}

@keyframes omart-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .card-grid[aria-label="Loading"]::after {
    animation: none;
  }
}

@media (width > 780px) {
  .language > button {
    justify-content: flex-end;
    width: 140px;
  }

  .nav-inner .category-trigger {
    flex: 0 0 220px;
    justify-content: flex-start;
    width: 220px;
  }

  .category-trigger svg:last-child {
    margin-left: auto;
  }

  .hero,
  .brand-hero,
  .banner,
  .banner picture,
  .banner img {
    height: 360px;
    min-height: 360px;
  }

  .brand-hero {
    padding-block: 40px;
  }

  .brand-hero h1 {
    font-size: clamp(31px, 3.4vw, 48px);
    min-height: 2.24em;
  }

  .brand-hero p {
    min-height: 3.4em;
  }
}

.banner,
.banner picture {
  border-radius: 20px;
  overflow: hidden;
}

.banner img {
  height: 100%;
  object-fit: cover;
}

@media (560px < width <= 780px) {
  .hero,
  .brand-hero,
  .banner,
  .banner picture,
  .banner img {
    height: 340px;
    min-height: 340px;
  }

  .brand-hero h1 {
    min-height: 2.24em;
  }

  .brand-hero p {
    min-height: 5.1em;
  }
}

@media (width <= 560px) {
  .hero,
  .brand-hero,
  .banner,
  .banner picture,
  .banner img {
    height: 350px;
    min-height: 350px;
  }

  .brand-hero h1 {
    min-height: 2.24em;
  }

  .brand-hero p {
    min-height: 5.1em;
  }
}
