/* Requested fixes only. Keep the full desktop navigation visible at page top. */
@media (min-width: 1025px) {
  .site-header:not(.is-scrolled) .main-nav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: background-color .3s, border-color .3s, box-shadow .3s !important;
  }
}

/* Compact navigation language menu: closed by default, vertical when opened. */
.site-header.is-scrolled .header-actions {
  flex-direction: row-reverse;
}

.home-page .hero-copy::before {
  display: none !important;
}

.products-page > .products-showcase > h1 {
  display: none !important;
}

.category-card .category-button .f-btn-r,
.category-card .category-button:hover .f-btn-r,
.category-card .category-button:focus-visible .f-btn-r {
  background: var(--yellow) !important;
}

.home-page .client-logo.client-logo-empty {
  min-height: calc(clamp(110px, 8vw, 160px) + 20px);
  pointer-events: none;
}

@media (max-width: 600px) {
  .home-page .client-logo.client-logo-empty {
    min-height: 112px;
  }
}

.compact-menu-panel > .compact-language-group {
  border-top: 1px solid #ffffff1a;
  display: block !important;
  width: 100%;
  margin-top: 8px;
  padding-top: 10px;
}

.compact-language-trigger {
  color: #f4f4f4;
  cursor: pointer;
  background: #ffffff17;
  border: 0;
  border-radius: 10px;
  box-shadow: inset 2px 0 0 var(--yellow);
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 40px;
  padding: 0 11px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  display: flex;
}

.compact-language-trigger .language-flag {
  flex: 0 0 22px;
  width: 22px;
  height: auto;
  margin: 0 !important;
}

.compact-language-chevron {
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-left: auto;
  transition: transform .2s ease;
  transform: rotate(45deg) translateY(-2px);
}

.compact-language-group.is-open .compact-language-chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.compact-language-options {
  display: none !important;
  width: 100%;
  margin-top: 5px;
  gap: 3px;
}

.compact-language-group.is-open .compact-language-options {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
}

.compact-language-options > .compact-language-link {
  color: #f4f4f4;
  border-radius: 10px;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 36px;
  padding: 0 11px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  display: flex !important;
}

.compact-language-options > .compact-language-link .language-flag {
  flex: 0 0 22px;
  width: 22px;
  height: auto;
  margin: 0 !important;
}

.compact-language-options > .compact-language-link:hover {
  color: var(--yellow);
  background: #ffffff13;
}

.site[dir="rtl"] .compact-language-trigger {
  box-shadow: inset -2px 0 0 var(--yellow);
}

.site[dir="rtl"] .compact-language-chevron {
  margin-right: auto;
  margin-left: 0;
}

/* Do not repeat the currently selected language inside the mobile list. */
html[lang^="en"] .main-nav .language-options a[lang="en"],
html[lang^="tr"] .main-nav .language-options a[lang="tr"],
html[lang^="de"] .main-nav .language-options a[lang="de"],
html[lang^="ru"] .main-nav .language-options a[lang="ru"],
html[lang^="pl"] .main-nav .language-options a[lang="pl"],
html[lang^="fr"] .main-nav .language-options a[lang="fr"],
html[lang^="es"] .main-nav .language-options a[lang="es"],
html[lang^="ar"] .main-nav .language-options a[lang="ar"] {
  display: none !important;
}

.compact-header.is-open:has(.compact-language-group.is-open) .compact-menu-panel {
  height: min(700px, calc(100vh - 24px));
  overflow-y: auto;
}

/* Multi-image galleries always use equal cards; the first item is not featured. */
.product-detail .detail-gallery:has(> .detail-gallery-button:nth-child(2)) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
}

.product-detail .detail-gallery:has(> .detail-gallery-button:nth-child(2)) > .detail-gallery-button,
.product-detail .detail-gallery:has(> .detail-gallery-button:nth-child(2)) > .detail-gallery-button:first-child {
  grid-column: auto !important;
  grid-row: auto !important;
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.product-detail .detail-gallery:has(> .detail-gallery-button:nth-child(2)) > .detail-gallery-button img,
.product-detail .detail-gallery:has(> .detail-gallery-button:nth-child(2)) > .detail-gallery-button:first-child img {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

@media (max-width: 1024px) {
  .main-nav .language-options {
    padding-inline-start: 0 !important;
  }

  .product-detail .detail-gallery:has(> .detail-gallery-button:nth-child(2)) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (hover: none) {
  .product-detail .detail-gallery > .detail-gallery-button:hover,
  .product-detail .detail-gallery > .detail-gallery-button:focus-visible {
    transform: none !important;
  }
}

/* Cache-busted final requested fixes: v6. */

/* Cache-busted final requested fixes: v7. */

/* Cache-busted final requested fixes: v8. */

/* Home CTA removed in every locale. */
.home-page > .home-hero > .primary-button {
  display: none !important;
}

/* Keep the expanded contact address and the following groups comfortably spaced. */
.contact-details > aside {
  justify-content: flex-start;
  gap: 26px;
}

.contact-details > aside > div {
  gap: 10px;
}

.contact-details aside p,
.contact-details aside > div:nth-child(3) p {
  line-height: 1.6;
}

@media (min-width: 1025px) {
  .contact-page {
    height: calc(50vh + 1008.781px);
  }

  .contact-details,
  .contact-details > aside {
    height: 680px;
  }

  .contact-actions {
    top: calc(50vh + 920.781px);
  }
}

/* Hero copy: larger lead sentence, supporting copy on its own row. */
.home-page .hero-copy strong {
  display: block;
  font-size: calc(1em + 2px);
  line-height: 1.3;
}

.home-page .hero-copy span {
  display: block;
  margin: 6px 0 0;
}

@media (min-width: 1200px) {
  .home-page .hero-copy {
    width: calc(100% - 50px);
    max-width: 1320px;
  }

  .home-page .hero-copy span {
    white-space: nowrap;
    font-size: clamp(15px, calc(.95vw + 2px), 17px);
    line-height: 1.45;
  }

  html[lang^="de"] .home-page .hero-copy span,
  html[lang^="ru"] .home-page .hero-copy span,
  html[lang^="pl"] .home-page .hero-copy span {
    font-size: clamp(13px, calc(.82vw + 2px), 14.5px);
    letter-spacing: -.012em;
  }
}

@media (min-width: 1025px) {
  .home-page .magnetic-hero {
    aspect-ratio: auto;
    height: clamp(350px, 27vw, 390px);
  }

  .home-page .home-hero {
    padding-bottom: 16px;
  }

  .home-page .category-grid {
    padding-top: 14px;
  }
}

@media (max-width: 1199px) {
  .home-page .hero-copy span {
    white-space: normal;
  }
}

/* Featured news cards must grow with long localized titles and their CTA. */
.news-card.is-featured {
  height: auto;
  min-height: 360px;
}

@media (max-width: 1024px) {
  .news-card.is-featured {
    min-height: 350px;
  }
}

@media (max-width: 600px) {
  .news-card.is-featured {
    min-height: 0;
  }
}

/* Remove the artificial empty grid row between References and FAQ. */
.home-page .clients-scene .client-logos::after {
  content: none !important;
  display: none !important;
}

/* About references: use a real six-card empty row, then keep the next section close. */
.about-page .about-client-logos::after {
  content: none !important;
  display: none !important;
}

.about-page .about-client-logo-empty {
  min-height: calc(clamp(110px, 8vw, 160px) + 20px);
}

.about-page .about-why-section {
  margin-top: 46px;
}

@media (max-width: 600px) {
  .about-page .about-client-logo-empty {
    min-height: 112px;
  }

  .about-page .about-why-section {
    margin-top: 38px;
  }
}

@media (min-width: 1025px) {
  .home-page .faq-contact-scene {
    padding-top: 64px;
  }
}

/* Keep Certifications and References visually connected on the home page. */
.home-page .home-certifications {
  margin-bottom: 24px;
}

.home-page .closing-scene > .clients-scene {
  padding-top: 32px;
}

@media (max-width: 600px) {
  .home-page .home-certifications {
    margin-bottom: 18px;
  }

  .home-page .closing-scene > .clients-scene {
    padding-top: 28px;
  }
}

/* Hide only confirmed cover-image repeats inside product detail galleries. */
.product-folding-box-packaging .detail-gallery-button:has(> img[src*="Products1-21.webp"]),
.product-rigid-box-packaging .detail-gallery-button:has(> img[src*="Products1-03.webp"]),
.product-transfer-labels .detail-gallery-button:has(> img[src*="Products1-36.webp"]),
.product-sublimation-labels .detail-gallery-button:has(> img[src*="Products1-35.webp"]),
.product-printed-labels .detail-gallery-button:has(> img[src*="Products1-07.webp"]),
.product-leather-labels .detail-gallery-button:has(> img[src*="Products1-06.webp"]),
.product-corporate-events-products .detail-gallery-button:has(> img[src*="Products1-25.webp"]),
.product-custom-promotional-products .detail-gallery-button:has(> img[src*="Products1-17.webp"]),
.product-socks-with-special-box .detail-gallery-button:has(> img[src*="Products1-23.webp"]),
.product-printed-socks .detail-gallery-button:has(> img[src*="Products1-32.webp"]),
.product-cotton-socks .detail-gallery-button:has(> img[src*="Products1-26.webp"]),
.product-business-socks .detail-gallery-button:has(> img[src*="Products1-34.webp"]),
.product-baby-socks .detail-gallery-button:has(> img[src*="Products1-22.webp"]),
.product-home-living-textile .detail-gallery-button:has(> img[src*="Products1-14.webp"]) {
  display: none !important;
}

/* FireCrust now belongs to the E Flute group, not the Litho gallery. */
.product-litho-laminated-packaging .detail-gallery-button:has(> img[src*="06-firecrust-pizza-box.png"]) {
  display: none !important;
}

/* Enlarge only Paper Bags gallery assets with oversized transparent margins. */
.product-paper-bags .detail-gallery-button {
  overflow: hidden;
}

.product-paper-bags .detail-gallery-button > img[src*="Products1-13.webp"] {
  transform: scale(1.14);
  transform-origin: center;
}

.product-paper-bags .detail-gallery-button > img[src*="Free_Shopping_Bag_Mockup_1-copy-2-scaled.webp"] {
  transform: scale(1.7);
  transform-origin: center;
}

/* Fit the complete Sustainability product list without covering an item. */
@media (min-width: 1025px) {
  .sustainability-cover-links > div {
    top: 60px;
  }

  .sustainability-cover-links > div a {
    height: 40px;
  }

  .sustainability-help {
    bottom: 28px;
  }
}

.sustainability-cover-links>div a:nth-child(10)::before{content:"10"}
