/* Cakir Iplik industry pages · scoped theme and responsive corrections · v1 */

/* Use the document scroll and let every section follow its content height. */
body.industry-page,
body.industry-page .scroll-container {
  background: #fff;
  color: #202b35;
}

body.industry-page .scroll-container {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  scroll-snap-type: none;
}

body.industry-page .scroll-container > section {
  height: auto;
  min-height: 0;
  scroll-snap-align: none;
}

body.industry-page .scroll-container > section.landing-page {
  min-height: 100vh;
}

/* Product cards: natural height, centered wrapping and bounded page width. */
body.industry-page .scroll-container > section.content {
  margin: 0;
  background: #fff;
}

body.industry-page .product-cards-container {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: clamp(20px, 2vw, 28px);
  width: min(1680px, calc(100% - 64px));
  max-width: 1680px;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) 0;
}

body.industry-page .product-cards-container .card-container {
  flex: 0 1 300px;
  width: min(100%, 300px);
  margin: 0;
  background: #fff;
  border-color: rgb(243, 241, 245);
  color: #202b35;
}

body.industry-page .product-cards-container .info h1 {
  color: #202b35;
}

body.industry-page .product-cards-container .sizes button:hover {
  background: #585858;
  color: #fff;
}

/* Contact area keeps its desktop rhythm without clipping its contents. */
body.industry-page .scroll-container > section.form-map {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

/* Footer: preserve the existing components while removing viewport-forced gaps. */
body.industry-page .scroll-container > section.footer {
  height: auto;
  min-height: 0;
}

body.industry-page .footer .brands-slider {
  box-sizing: border-box;
  height: auto;
  min-height: 132px;
  margin: 0;
  padding: 16px 0;
}

body.industry-page .footer .slider {
  width: min(960px, 100%);
}

body.industry-page .footer .footer-distributed {
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 84px);
  padding: 32px clamp(24px, 7vw, 120px) 28px;
}

body.industry-page .footer .footer-left,
body.industry-page .footer .footer-center2,
body.industry-page .footer .footer-center,
body.industry-page .footer .footer-right,
body.industry-page .footer .footer-products,
body.industry-page .footer .footer-industries,
body.industry-page .footer .footer-sustainability,
body.industry-page .footer .footer-certificates,
body.industry-page .footer .footer-career,
body.industry-page .footer .footer-contact,
body.industry-page .footer .footer-bayigirisi {
  margin-top: 0;
}

body.industry-page .footer .footerCI {
  box-sizing: border-box;
  height: auto;
  min-height: 84px;
  align-items: center;
  padding: 12px clamp(24px, 7vw, 120px);
}

body.industry-page .footer .footerCI .footerlogo {
  align-items: center;
}

body.industry-page .footer .footerlanguage {
  margin-left: clamp(24px, 4vw, 64px);
}

/* Night mode: the shared sidebar script adds .night to body and descendants. */
body.industry-page.night,
body.industry-page.night .scroll-container,
body.industry-page.night .scroll-container > section.content {
  background: #111923;
  color: #e7edf3;
}

body.industry-page.night .product-cards-container .card-container {
  background: #1a2632;
  border-color: #344657;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  color: #e7edf3;
}

body.industry-page.night .product-cards-container .info h1 {
  color: #f4f7fa;
}

body.industry-page.night .product-cards-container .info h3 {
  color: #cbd5df;
}

body.industry-page.night .product-cards-container .sizes button {
  background: #263746;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .3);
  color: #e7edf3;
}

body.industry-page.night .product-cards-container .sizes button:hover {
  background: #347f89;
  color: #fff;
}

body.industry-page.night .form-map {
  background: #131e29;
  color: #e7edf3;
}

body.industry-page.night .form-map .new-customer-form {
  background-color: #1a2632;
  border: 1px solid #344657;
}

body.industry-page.night .form-map .form-control input {
  border-bottom-color: #8295a7;
  color: #f1f5f8;
}

body.industry-page.night .form-map .form-control label,
body.industry-page.night .form-map .maps .grid-2 .info div p {
  color: #d5dee6;
}

body.industry-page.night .form-map .maps .title a {
  color: #79cbd3;
}

body.industry-page.night .form-map input[type="submit"] {
  background: #347f89;
  color: #fff;
}

body.industry-page.night .footer .brands-slider,
body.industry-page.night .footer .slider {
  background: #111923;
}

body.industry-page.night .footer .slider::before,
body.industry-page.night .footer .slider::after {
  background: linear-gradient(to right, rgba(17, 25, 35, 1) 0%, rgba(17, 25, 35, 0) 100%);
}

body.industry-page.night .footer .slide img {
  filter: none;
  opacity: 1;
}

body.industry-page.night .footer .backtotop {
  background-color: #223140;
}

body.industry-page.night .footer .footer-distributed,
body.industry-page.night .footer .footerCI {
  background-color: #182431;
}

body.industry-page.night .footer .footer-distributed a,
body.industry-page.night .footer .backtotop a,
body.industry-page.night .footer .footer-globe-icon-span {
  color: #e7edf3;
}

body.industry-page.night .footer .footerlanguage {
  border-color: #8da0b2;
}

@media screen and (min-width: 801px) {
  /* Keep the desktop navigation aligned with the industry night palette. */
  body.industry-page.night .navigation {
    background: #182431;
  }

  body.industry-page.night .navigation .navbar-dropdown {
    background: #1a2632;
  }
}

@media screen and (max-width: 800px) {
  /* Keep the sector hamburger panel in the viewport while the document scrolls. */
  body.industry-page .navigation .nav-mobile {
    position: fixed;
    z-index: 100;
  }

  body.industry-page .navigation .nav-list {
    position: fixed;
    top: 55px;
    right: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    max-height: calc(100vh - 55px);
    max-height: calc(100dvh - 55px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Replace the shared mobile blue with the industry light palette. */
  body.industry-page:not(.night) .navigation,
  body.industry-page:not(.night) .navigation .nav-list {
    background: #f4f7fa;
  }

  body.industry-page:not(.night) .navigation .navbar-dropdown {
    background: #e5ecf3;
  }

  body.industry-page:not(.night) .navigation .nav-list li > a,
  body.industry-page:not(.night) .navigation .nav-list li > a:visited {
    color: #182431;
  }

  body.industry-page:not(.night) .navigation .nav-list li > a:hover,
  body.industry-page:not(.night) .navigation .nav-list li > a:focus-visible,
  body.industry-page:not(.night) .navigation .nav-list li > a:active {
    background: #dce5ec;
    color: #182431;
  }

  body.industry-page:not(.night) .navigation #navbar-toggle span::before,
  body.industry-page:not(.night) .navigation #navbar-toggle span::after {
    background: #182431;
  }

  /* Replace the shared mobile blue only when an industry page is in night mode. */
  body.industry-page.night .navigation,
  body.industry-page.night .navigation .nav-list {
    background: #182431;
  }

  body.industry-page.night .navigation .navbar-dropdown {
    background: #1a2632;
  }

  body.industry-page.night .navigation .nav-list li > a,
  body.industry-page.night .navigation .nav-list li > a:visited {
    color: #e7edf3;
  }

  body.industry-page.night .navigation .nav-list li > a:hover,
  body.industry-page.night .navigation .nav-list li > a:focus-visible,
  body.industry-page.night .navigation .nav-list li > a:active {
    background: #263746;
    color: #f4f7fa;
  }

  body.industry-page.night .navigation #navbar-toggle span::before,
  body.industry-page.night .navigation #navbar-toggle span::after {
    background: #f4f7fa;
  }

  /* Touch and keyboard users need a persistent state independent of hover. */
  body.industry-page .sidebarlanguage .sidebarlanguage-first-li.is-open > ul {
    position: absolute;
    right: 35px;
    bottom: -90px;
    z-index: 106;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 150px;
    padding-top: 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .2);
  }

  body.industry-page .product-cards-container {
    width: calc(100% - 32px);
    padding: 40px 0;
  }

  body.industry-page .scroll-container > section.form-map {
    min-height: 100vh;
  }
}

@media screen and (max-width: 700px) {
  body.industry-page .footer .brands-slider {
    min-height: 92px;
    padding: 11px 0;
  }

  body.industry-page .footer .slider {
    width: 100%;
  }

  body.industry-page .footer .slider::before,
  body.industry-page .footer .slider::after {
    width: 70px;
  }

  body.industry-page .footer .footer-distributed {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    padding: 24px 18px;
  }

  body.industry-page .footer .footer-left,
  body.industry-page .footer .footer-center2,
  body.industry-page .footer .footer-center,
  body.industry-page .footer .footer-right {
    margin: 0;
  }

  body.industry-page .footer .footerCI {
    min-height: 64px;
    padding: 8px 18px;
  }

  body.industry-page .footer .footerlanguage {
    margin-left: 16px;
  }
}

@media screen and (max-width: 400px) {
  body.industry-page .product-cards-container {
    width: calc(100% - 24px);
    padding: 32px 0;
  }

  body.industry-page .footer .footer-distributed {
    gap: 14px 18px;
    padding: 20px 14px;
  }

  body.industry-page .footer .footerCI {
    padding-inline: 14px;
  }
}
