/* ============ Hero / Carousel ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1f4d 0%, #0e2a63 50%, #0b1f4d 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-img {
  max-height: 420px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
}

/* ============ Clear, responsive banners ============ */
.banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.08) contrast(1.04) saturate(1.06);
  image-rendering: auto;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 22, 56, 0.76) 0%, rgba(8, 22, 56, 0.46) 46%, rgba(8, 22, 56, 0.08) 82%);
}

.hero-banner-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
}

.page-banner {
  position: relative;
  overflow: hidden;
  background: #081638;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 12, 31, 0.7) 0%, rgba(3, 12, 31, 0.38) 45%, rgba(3, 12, 31, 0.06) 82%);
}

.page-banner > .relative {
  position: relative;
  z-index: 10;
}

/* Home section backgrounds that must show the full artwork */
.home-section-full-image {
  object-fit: contain !important;
  object-position: center right !important;
  background: #081638;
  filter: brightness(1.1) contrast(1.05) saturate(1.08);
  image-rendering: auto;
}

.home-section-full-image--why {
  background: #ffffff;
}

.home-section-full-image--numbers {
  background: #081638;
}

.by-numbers-clear-overlay {
  background: linear-gradient(
    90deg,
    rgba(8, 22, 56, 0.96) 0%,
    rgba(8, 22, 56, 0.9) 30%,
    rgba(8, 22, 56, 0.48) 48%,
    rgba(8, 22, 56, 0.16) 66%,
    rgba(8, 22, 56, 0.02) 100%
  );
}

.why-choose-full-overlay {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.98) 38%,
    rgba(255, 255, 255, 0.5) 58%,
    rgba(255, 255, 255, 0.08) 100%
  ) !important;
}

@media (min-width: 768px) {
  .hero-slides {
    height: clamp(500px, 38vw, 560px) !important;
  }
}

@media (max-width: 767px) {
  :root {
    --mobile-banner-height: clamp(124px, 33.34vw, 150px);
  }

  .hero-slides {
    height: 510px !important;
  }

  .hero-banner-image,
  .page-banner-image {
    top: 0;
    height: var(--mobile-banner-height) !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #081638;
    filter: brightness(1.12) contrast(1.05) saturate(1.08);
  }

  .hero-banner-overlay {
    background: linear-gradient(
      to bottom,
      rgba(8, 22, 56, 0.04) 0,
      rgba(8, 22, 56, 0.04) var(--mobile-banner-height),
      #0b1f4d var(--mobile-banner-height),
      #0b1f4d 100%
    );
  }

  .hero-banner-content {
    box-sizing: border-box;
    padding-top: var(--mobile-banner-height);
  }

  .page-banner {
    padding-top: var(--mobile-banner-height);
  }

  .page-banner-overlay {
    bottom: auto !important;
    height: var(--mobile-banner-height);
    background: linear-gradient(to bottom, transparent 55%, rgba(8, 22, 56, 0.28) 100%);
  }

  .page-banner > .relative {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .home-section-full-image {
    object-position: top center !important;
  }
}

/* Dots */
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  width: 28px;
  background: #f5b400;
}

/* ============ Footer ============ */
.header-brand-logo {
  height: 58px;
  object-fit: contain;
}

.footer-brand-logo {
  width: auto;
  height: 56px;
  object-fit: contain;
}

.footer-brand-copy {
  line-height: 1.8;
}

.main-nav-links {
  margin-left: auto;
  margin-right: 72px;
}

.site-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
  color: #0b1f4d;
  font-size: 14px;
  font-weight: 600;
}

.site-language-switcher select {
  border: 0;
  background: transparent;
  color: #0b1f4d;
  font: inherit;
  outline: 0;
  cursor: pointer;
}

.google-translate-element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
body > .skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

@media (max-width: 1023px) {
  .site-language-switcher {
    margin-left: auto;
  }
}

@media (min-width: 768px) {
  .header-brand-logo {
    height: 64px;
  }

  .footer-brand-logo {
    height: 60px;
  }
}

/* ============ Popular Machines Carousel ============ */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============ Category Filter (Machines / Spares) ============ */
.category-btn.active {
  background-color: #0b1f4d;
  color: #ffffff;
}

.category-btn.active .count {
  color: #ffc933;
}

/* ============ Product Detail Media Carousel ============ */
.product-media-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.product-media-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.product-media-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(11, 31, 77, 0.86);
  color: #fff;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.product-media-control:hover {
  background: #f5b400;
  color: #0b1f4d;
  transform: translateY(-50%) scale(1.04);
}

.product-media-prev {
  left: 16px;
}

.product-media-next {
  right: 16px;
}

.product-media-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
  border-top: 1px solid #f3f4f6;
}

.product-media-thumb {
  flex: 0 0 72px;
  height: 58px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f8fafc;
}

.product-media-thumb.active {
  border-color: #f5b400;
}
