/*
Theme Name: Divi Child Theme
Theme URI: https://divireadythemes.com/
Description: Divi Child Theme
Author: Divi Ready Themes
Author URI: https://divireadythemes.com/
Template: Divi
Version: Updated for Divi 3+
*/

/*------------------------------------------------*/
/*-------------------[GENERAL]--------------------*/
/*------------------------------------------------*/

h2, h3, h4, h5 {
  line-height: 1.35em;
}

#page-container h1 {
  font-size: 4.2rem;
}

.pin-spacer {
  background: #0b0b0b !important;
}

.page-id-815 .et-l--header,
.page-id-815 .et-l--footer {
  display: none !important;
}


html .entry-content li {
  list-style-type: square; 
  margin-bottom:12px;
}

html .entry-content li::marker {
  color:#ed1c24;
}

.language-li {
  position:absolute;
  top: 36px;
  right: 14px;
}

.language-li .trp-language-item-name {
  font-size: 13px;
}

.trp-shortcode-anchor {
  visibility: visible;
}



/* FORM GLOBAL SETTINGS */

html .wsf-form li {
    list-style-type: none !important; 
}

.wsf-form .wsf-group-tabs {
  gap:32px;
}

.wsf-form .wsf-group-tabs .wsf-group-tab {
display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
}

.wsf-form .wsf-group-tabs .wsf-group-tab::before {
  display: flex;
  width: 42px;
  height: 42px;
  background-color: transparent;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  border: 2px solid #ed1c24;
}

.wsf-form .wsf-group-tabs .wsf-group-tab.wsf-tab-active::before {
  background-color: #ed1c24;
}

.wsf-form .wsf-group-tabs .wsf-group-tab:nth-child(1)::before {
content: '1';
}

.wsf-form .wsf-group-tabs .wsf-group-tab:nth-child(2)::before {
content: '2';
}

.wsf-form ul.wsf-group-tabs {
  border-bottom: none !important;
}

html .wsf-form .wsf-button {
  width: fit-content !important;
  border-radius: 0 !important;
  border-color: #ed1c24 !important;
} 


html .wsf-form .tobb-btn-wrapper::before {
  left: 10px;
}



/* html .wsf-form .tobb-btn:hover::after {
  height: 53px !important;
  transition-delay: .0s !important;
}

html .wsf-form .tobb-btn::after {
  right: 0 !important;
  bottom: 0;
  transition: height 0.26s ease-in-out !important;
  margin-right: 0 !important;
   transition-delay: .22s !important;
}

html .wsf-form .tobb-btn-wrapper::before {
  width: 32px;
  left: 10px;
  top: -3px;
}

html .et_pb_section .et_pb_row .et_pb_column .wsf-form .wsf-sections .wsf-fields .tobb-btn-wrapper .tobb-btn:hover::before {
   transition-delay: .22s;
}

html .et_pb_section .et_pb_row .et_pb_column .wsf-form .wsf-sections .wsf-fields .tobb-btn-wrapper .tobb-btn::before {
top: -3px !important;
right: 0px !important;
  transition-delay: .0s;
} */

/* Button style - class = tobb-btn */

/* =========================
   TOBB BUTTON - CLEAN VERSION
   ========================= */

.tobb-btn-wrapper,
.tobb-btn-wrapper .et_pb_code_inner {
  display: inline-block;
  width: auto;
  max-width: 100%;
  position: relative;
  overflow: visible;
}

.tobb-btn-wrapper {
  /* editable variables */
  --btn-line: 2.8px;
  --btn-color: #ed1c24;
  --btn-offset: 0px;   /* distance of the top line above the button */
  --btn-corner: 28px;   /* short top-left segment length */
}

.page .et_pb_section .et_pb_row .et_pb_column .tobb-btn,
.et_pb_row .et_pb_column .tobb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: visible;

  color: #ffffff !important;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 600;
  white-space: nowrap;

  padding: 12px 18px;

  border-left: var(--btn-line) solid var(--btn-color);
  border-bottom: var(--btn-line) solid var(--btn-color);
  background: transparent;
}

/* short top-left line */
.tobb-btn-wrapper::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(-1 * var(--btn-offset));
  width: var(--btn-corner);
  height: var(--btn-line);
  background: var(--btn-color);
}

/* animated top-right line */
.page .et_pb_section .et_pb_row .et_pb_column .tobb-btn::before,
.et_pb_row .et_pb_column .tobb-btn::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--btn-offset));
  left: calc(var(--btn-corner) + var(--btn-line));
  right: 0;
  height: var(--btn-line);
  background: var(--btn-color);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s ease-in-out;
  transition-delay: .0s;
}

/* animated right vertical line */
.page .et_pb_section .et_pb_row .et_pb_column .tobb-btn::after,
.et_pb_row .et_pb_column .tobb-btn::after {
  content: "";
  position: absolute;
  top: calc(-1 * var(--btn-offset));
  right: 0;
  bottom: -2px;
  width: var(--btn-line);
  background: var(--btn-color);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.3s ease-in-out .24s;
}

/* hover / focus */

.page .et_pb_section .et_pb_row .tobb-btn-wrapper .tobb-btn:hover::before,
 .cta-section  .tobb-btn-wrapper .tobb-btn:hover::before {
    transition-delay: .24s;
      transform: scaleX(1.1) !important;
}

.page .et_pb_section .et_pb_row .tobb-btn-wrapper .tobb-btn:hover::after,
.cta-section  .tobb-btn-wrapper .tobb-btn:hover::after{
    transition-delay: .0s;
      transform: scaleY(1) !important;
}

/* Image URLs and WooCommerce Grid Cards scaling on hover */ 

.grid-item {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.grid-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 2s ease;
  z-index: 0;
  pointer-events: none;
}

.grid-item:hover::before {
  transform: scale(1.1) !important;
}

.woocommerce-LoopProduct-link:hover .et_shop_image img {
  transform: scale(1.1);
  transition: transform 2s ease-in-out;  
}

.woocommerce-LoopProduct-link .et_shop_image img {
 transition: transform 2s ease-in-out;   
}

.product_cat-turgovsko-oborudvane:hover::before {
  transform: scale(1.1);
}

.product_cat-turgovsko-oborudvane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 2s ease;
  z-index: 0;
  pointer-events: none;
}

.grid-item .grid-link,
.grid-item .overlay {
  position: relative;
  z-index: 2;
}


/* GENERAL MEDIA QUERIES */

@media screen and (max-width: 490px) {
#page-container h1 {
  font-size: 2.1rem;
}

  .column-reverse {
  display: flex;
  flex-flow: column-reverse;
  } 
  
  #et-main-area {
    overflow: hidden !important;
  }
}


/* === PAGE LOADER === */


/* Prevent scrolling while the loader is visible */
body.home-loader-enabled {
    overflow: hidden;
}

/* Main loader overlay */
.home-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    background: #111111;

    transform: translate3d(0, 0, 0);
    transition:
        transform 1.1s cubic-bezier(0.77, 0, 0.175, 1),
        visibility 0s linear 1.1s;

    will-change: transform;
}

/* Slide the complete screen to the right */
.home-loader.is-leaving {
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
}

.home-loader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.home-loader__brand {
    color: #ffffff;
    font-size: clamp(28px, 4vw, 54px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

/* Loading line */
.home-loader__progress {
    position: relative;
    width: 160px;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

.home-loader__progress span {
    position: absolute;
    inset: 0;

    background: #ffffff;
    transform: translateX(-100%);

    animation: twobbrand-loader-progress 1.4s
        cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes twobbrand-loader-progress {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .home-loader {
        transition-duration: 0.35s;
    }

    .home-loader__progress span {
        animation-duration: 2.5s;
    }
}






/*------------------------------------------------*/
/*-----------------[HEADER-&-MENU]------------------*/
/*------------------------------------------------*/

.et-db #et-boc .et-l .et_pb_section {
  background-color: unset;
}

.et-l--header {
  position: absolute;
  width: 100%;
  top: 0;
}

.et-l--header .et_pb_row_0_tb_header .et_pb_code, 
.et-l--header .et_pb_row_0_tb_header .et_pb_code_inner, 
.et-l--header .et_pb_row_0_tb_header #menu-container {
  background: transparent !important;
  box-shadow: none !important;
}

.et-l--header .et_pb_row_0_tb_header,
.et-l--header .et_pb_row_0_tb_header .et_pb_column {
  display: flex;
  justify-content: center;
}

.et-l--header .et_pb_row_0_tb_header .et_pb_column .tobb-menu {
  align-self: center;
}

/* Smart sticky header */
.smart-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: top 0.3s ease-in-out;
  background: transparent; /* no background at top */
}

/* Hidden when scrolling down */
.smart-header.is-hidden {
  top: -120px; /* adjust to your header height */
}

/* When scrolled down */
.smart-header.scrolled {
  background: rgba(11, 11, 11, 0.6) !important; /* or your preferred color */
  backdrop-filter: blur(8px); /* optional glassy look */
}

/* Hamburger menu */

#menu-container ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.scrolled #menu-container ul {
  margin-top: 120px;
}

#menu-container a,
#menu-container span {
  text-decoration: none;
  color: inherit;
  font-family: "Inter", sans-serif;
}

#menu-container {
  position: relative;
  width: 60px;
}

#menu-wrapper {
  z-index: 999;
  cursor: pointer;
  position: relative;
}

#hamburger-menu {
  width: 60px;
  height: 40px;
}

#hamburger-menu .menu-line {
  display: block;
  height: 2.5px;
  width: 85%;
  background: #ffffff;
  transition: 0.5s ease;
  position: absolute;
  border-radius: 3px;
  right: 0;
}

#hamburger-menu .menu-line:before {
  content: "";
  display: inline-block;
  height: 4px;
  width: 4px;
  background: #ed1c24;
  left: -8px;
  position: absolute;
}

#hamburger-menu .menu-text {
  font-size: 18px;
  font-weight: 300 !important;
  letter-spacing: 3.5px;
  transition: ease-in-out 0.3s;
}

#hamburger-menu:hover .menu-text {
  color: #ed1c24;
  transition: ease-in-out 0.3s;
}

#menu-container #menu-wrapper #hamburger-menu span:nth-child(1) {
  top: 0;
}
#menu-container #menu-wrapper #hamburger-menu span:nth-child(2) {
  top: 16px;
}
#menu-container #menu-wrapper #hamburger-menu span:nth-child(3) {
  position: absolute;
  top: 22px;
  font-weight: 600;
}

#hamburger-menu.open span:nth-child(1) {
  transform: translateY(21px) rotate(135deg);
}
#hamburger-menu.open span:nth-child(3) {
  opacity: 0;
  transform: translateX(-60px);
}
#hamburger-menu.open span:nth-child(2) {
  transform: translateY(-12px) rotate(-135deg);
  top: 33px !important;
}

#hamburger-menu.open {
  transform: translatex(-278px);
  transition: 0.2s ease-in-out;
}

#hamburger-menu.open .menu-line:before {
  display: none;
}

#hamburger-menu.open:hover .menu-line {
  background-color: #ed1c24;
}

/* Menu Content */

.smart-header.scrolled .menu-list {
    height: 90vh;
    padding-top:0 !important;
}

.menu-list {
  display: flex;
  flex-flow: column;
  justify-content: center;
  position: fixed;
  top: 0;
  right: -445px;
  width: 445px;
  height: 100vh;
  background: rgba(11, 11, 11, 0.6);
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 998;
  transition: right 0.3s ease;
  padding: 96px 0 20px !important;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
}

.menu-list.active {
  right: 0;
  transition: right 0.3s ease;
  opacity: 1;
}

.accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 32px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 300;
  font-size: 18px;
}

.accordion-toggle:hover a,
.accordion-toggle:hover span,
html .accordion-toggle.active-tab span {
  color: #ed1c24 !important;
}

.accordion-content {
  display: none;
  padding-left: 20px;
  background-color: inherit;
}

.accordion-content li a {
  padding: 8px 0 0 3em;
  display: inline-block;
  transition: 0.2s ease-in-out;
  font-weight: 300;
  color: #4f3d2f;
}

.accordion-content li a:hover {
  transform: translateX(8px);
  opacity: 0.6;
}

.accordion-toggle.active-tab {
  color: #ed1c24 !important;
}

.accordion-toggle.active-tab:hover {
  color: #fff;
}

.expand-icon {
  font-size: 26px;
  font-weight: 200;
  margin-left: auto;
  transition: transform 0.3s ease;
  padding-right: 25px;
}

.project-request {
  pointer-events: none;
}

.project-request .menu-link {
  color: #ffffff !important;
  border: 3px solid #ed1c24;
  width: fit-content;
  margin-top: 30%;
  padding: 8px 14px;
  transition: 0.3s ease-in-out;
  pointer-events: all;
}

.et_pb_code_inner #menu-container .project-request:hover .menu-link {
  color: #ffffff !important;
}

.project-request .menu-link:hover {
  color: #ffffff !important;
  background-color: #ed1c24;
  transition: 0.3s ease-in-out;
}

/* Language switcher alignments */

.et-l--header .smart-header.scrolled .language-li {
  top: -84px;
}

.et-l--header .smart-header .language-li .trp-current-language-item__wrapper .trp-language-item span {
  color:#FFFFFF !important;
}

ul#menu-footer-menu {
    flex-flow: column;
}

@media screen and (max-width: 490px) {

  html .et-l--header .et_pb_row_0_tb_header .et_pb_column {
  justify-content: end !important;
  padding-right: 24px !important;
   }

#hamburger-menu {
  width: 46px !important;
}

  #hamburger-menu .menu-line {
    width: 91% !important;
    right: -4px !important;
  }
  
  .et-l--header .smart-header.scrolled .language-li   {
  top: -4px;
  left: 10px;
}
  .et-l--header .smart-header .language-li {
    top: 30px;
    left: 10px;
  }
    .scrolled #menu-container ul {
    margin-top: 109px !important;
    }

    .menu-list {
      background: rgba(11, 11, 11, 0.95);
      width: 100%;
    }

    .smart-header .et_pb_column_empty { 
    display:none !important;
    }

    .smart-header .et_pb_column {
      margin-bottom:0 !important;
    }

    .smart-header #hamburger-menu .menu-text {
      font-size:13px;
    }

    .smart-header .tobb-menu {
      margin-top: 18px;
    }

    #menu-container,
    #hamburger-menu {
      width: 45px;
    }

    #hamburger-menu {
      top: 0;
      right: 0;
      width: 40px;
    }

    #hamburger-menu span:nth-child(1) {
      top: 0;
    }

    #hamburger-menu span:nth-child(2) {
      top: 14px;
    }

    #hamburger-menu span:nth-child(3) {
      top: 28px;
    }

    #hamburger-menu span {
      height: 1.8px;
    }

    #hamburger-menu.open span:nth-child(1) {
      transform: translateY(16px) rotate(135deg);
    }

    #hamburger-menu.open span:nth-child(2) {
      transform: translateY(-16px) rotate(-135deg);
    }

    #hamburger-menu.open {
      transform: translatex(0);
    }

    .project-request {
      margin-left: 0%;
    }

  /* FOOTER: disable hamburger + force normal menu */
  .et_pb_menu .et_pb_menu__menu, .et_pb_menu .et_pb_menu__menu > nav, .et_pb_menu .et_pb_menu__menu > nav > ul 
  {
    width:95%;
  }
  
.footer-menu-no-burger .et_mobile_nav_menu,
.footer-menu-no-burger .mobile_menu_bar {
  display: none !important;
}

.footer-menu-no-burger .et_pb_menu__menu {
  display: flex !important; /* show desktop menu on mobile */
}

.footer-menu-no-burger .et_pb_menu__wrap {
  justify-content: center; /* optional */
}

.footer-menu-no-burger .et_pb_menu__menu > nav > ul {
  display: flex !important;
  flex-direction: column;  /* stack links vertically (mobile-friendly) */
  gap: 10px;
  align-items: start;
}
  
 .et_pb_column .et_pb_menu_0_tb_footer {
    margin-top:0px !important;
  }
  
}



/* Safari hamburger repaint fix */
@supports (-webkit-touch-callout: none) {

  #hamburger-menu {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    isolation: isolate;
  }

  #hamburger-menu .menu-line {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }

  /* Completely remove the menu text while open */
  #hamburger-menu.open .menu-text {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    -webkit-transform: none !important;
    transform: none !important;
  }

  /* Completely remove the red dots while open */
  #hamburger-menu.open .menu-line::before {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }


/* Safari hamburger repaint fix */
@supports (-webkit-touch-callout: none) {

  #hamburger-menu {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);

    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    isolation: isolate;
  }

  #hamburger-menu {
  width: 46px !important;
}

  #hamburger-menu .menu-line {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }

  /* Completely remove the menu text while open */
  #hamburger-menu.open .menu-text {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    -webkit-transform: none !important;
    transform: none !important;
  }

  /* Completely remove the red dots while open */
  #hamburger-menu.open .menu-line::before {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}



}






/*------------------------------------------------*/
/*------------------[HOMEPAGE]--------------------*/
/*------------------------------------------------*/

/*------------------[ TEMPORARY HIDDEN CATEGORIES ]--------------------*/

.js-hscroll-row .hscroll-nav {
  visibility: hidden !important;
}

/* Header video */

.page-id-30 .mejs-mediaelement {
  opacity: 0.5 !important;
}

/* Leaders Section */

.leaders-pin-wrap {
  min-height: 100vh !important;
}

.leaders-bg-row {
  position: absolute;
  top: 0;
  max-width: 100%;
  z-index: 0;
  padding: 0 !important;
  opacity: 1;
}
.leaders-bg-row .et_pb_image_wrap,
.leaders-bg-row img {
  width: 100% !important;
}

.leaders-text {
  opacity: 0;
  transform: translateY(30px); /* or set y: 30 in gsap */
}

/* 360 Section */
/* Make the text section transparent so we see the video behind it */

.tsix-concept {
  margin-top:-680px;
  padding-bottom:0 !important;
}

.tsix-space {
    background-color: transparent !important;
    z-index: 10; /* Ensure text is on top */
    position: relative;
    pointer-events: none; /* Allows clicks to pass through to the video if needed */
}

/* Ensure the video section is ready to slide under */
.fpo-section {
    z-index: 1; /* Ensure video is behind */
    position: relative;
}

/* Optional: Ensure text is centered vertically if the section pins */
.tsix-space .et_pb_row {
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Product Solutions Section */

.page .et-boc .entry-content .et-l--post .et_builder_inner_content .product-solutions {
  background-attachment: scroll; /*important if you're animating bg-size*/
}




/* Categories grid */

.categories-grid .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  margin: 40px auto;
  padding: 0 20px;
  position: relative;
}

.categories-grid .grid .grid-link {
  position: absolute;
  inset: 0;
  z-index: 6;
}


html.no-js .categories-grid .grid-item {
  opacity: 1;
  transform: none;
}

.categories-grid .grid-item {
  position: relative;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
  color: #ffffff;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  background: #333;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

/* Positioning */
.categories-grid .item-1 {
  grid-row: span 2;
  height: 100%;
}

.categories-grid .overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0) 100%);
  padding: 18px;
  padding-top: 124px;
}

.categories-grid .title {
  font-size: 2em;
  font-weight: 400;
  margin-bottom: 24px;
}

/* Button adjustments */
.page .entry-content .categories-grid .et_pb_row .et_pb_column .grid-item:hover .tobb-btn::after {
  transform: scaleY(1) !important;
  transition-delay: 0s !important;
  --btn-line: 2.7px;
}

.page .entry-content .categories-grid .et_pb_row .et_pb_column .grid-item:hover .tobb-btn::before {
    transition-delay: .24s !important;
}

.page .categories-grid .et_pb_row .et_pb_column .grid-item:hover .tobb-btn::before  {
 transform: scaleX(1.1) !important;
  --btn-line: 2.7px;
}

/* Categories slider */

/* Layout */
.categories-slider {
  position: relative;
}
.categories-slider .et_pb_row {
  align-items: stretch;
}

/* slider nav */

.js-hscroll .js-hscroll-row .js-hscroll-col-1 {
    display: flex;
    flex-direction: column;
  margin-right: 0%;
}


/* 2. Ensure the text module takes available space, pushing buttons down */
.js-hscroll .js-hscroll-col-1 .et_pb_text {
    flex-grow: 1; 
}

/* 3. Style the Button Container */
.js-hscroll .hscroll-nav {
    margin-top: auto; /* Pushes to bottom (flex-end equivalent) */
    display: flex;
    flex-direction: column; /* Stack vertical */
    gap: 18px;
    align-items: flex-end; /* Align left */
    padding-top: 20px;
}

/* 4. Style the Buttons */
.js-hscroll .hs-btn {
    background: transparent;
    color: #fff;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  border: 3px solid #ed1c24;
  border-right: 0;
}

.js-hscroll .hs-btn:hover {
    background: #ed1c24;
    color: #fff;
}

/* The right column becomes the horizontal track */

.categories-slider .cat-viewport {
  display: flex;
  gap: 12px;
  overflow: hidden; /* GSAP translates, not native scroll */
  width: 63.2%;
}

/* Cards (size is fully editable) */
.categories-slider .cat-card {
  flex: 0 0 clamp(410px, 32vw, 480px); /* width */
  height: clamp(580px, 48vh, 600px); /* height */
  will-change: transform;
  display: flex;
  align-items: flex-end;
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-right: 30px;
}

/* Optional inner padding if the module has text */
.categories-slider .cat-card .et_pb_module_inner,
.categories-slider .cat-card .et_pb_text_inner {
  padding: 16px 18px;
}

/* Button adjustments */

/*
 .page .entry-content .categories-slider .et_pb_row .et_pb_column .tobb-btn-wrapper {
  margin-top: 24px ; 

}

.page .entry-content .categories-slider .et_pb_row .et_pb_column .tobb-btn {
  padding: 9px 18px !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}

.page .entry-content .categories-slider .et_pb_row .et_pb_column .tobb-btn-wrapper::before {
  top: -7px !important; 
  height: 2.8px !important;
}

.page .entry-content .categories-slider .et_pb_row .et_pb_column .tobb-btn::before {
  top: -1.5px !important; 
  right: 0 !important; 
  height: 2.6px !important;
}

.page .entry-content .categories-slider .et_pb_row .et_pb_column .tobb-btn::after {
  bottom: -2px !important; 
  right: -1px !important; 
  margin-right:-1px !important;
}

.page .entry-content .categories-slider .et_pb_row .et_pb_column .tobb-btn:hover::after {
  height: 41px !important;
}

*/


/* Mobile fallback: disable horizontal layout */

/* MOBILE VIEWPORT */

@media screen and (max-width: 490px) { 


.home .et_pb_text_15.et_pb_module {
margin-left:0 !important;
}


  .et_pb_row_0 {
    width: 88% !important;
  }
  
  .home-header-section {
    display: flex;
  }

/* Leaders row */

.leaders-bg-row .et_pb_image_wrap,
.leaders-bg-row img {
width: 1527px !important;
  height: 1109px !important;
  overflow: hidden !important;
  max-width: 1527px !important;
  left: -316px;
    top: -27px;
}

.leaders-section .et_pb_row_2 {
  width:85% !important;
}

/* pillars section */ 

.tsix-concept .et_pb_row  {
  width:85% !important;
}

    /* Categories grid */

    .et_pb_text_14 {
  width:100% !important;
}

.categories-grid h3 {
padding-bottom:0px ; 
}

.categories-grid .title {
    font-size: 1.5em;
  }
  
  
  .categories-grid .grid .item-1 {
    padding-top:94px;
  }
  
  /* Categories slider */
  .categories-grid .grid {
    display: flex !important;
    flex-flow:column !important;
  }

  .categories-grid .grid {
    padding: 0 12px !important;
    gap:12px !important;
  }

  .js-hscroll-col-1 .et_pb_code {
    display:none;
  }
  
  /* .categories-slider .tobb-btn-wrapper {
    height: 40px !important;
  } */
  
  .categories-slider .cat-card {
    height: fit-content !important;
    min-height: fit-content !important;
  }
  
}


@media (max-width: 980px) {
  .categories-slider .cat-viewport {
    display: block;
  }
  .categories-slider .cat-card {
    width: 100%;
    margin-bottom: 24px;
  }
}

/* KNUFFI section */

.knuffi-section .side-column {
  background-size: contain;
}

.knuffi-section {
  position: relative;
   min-height: 100vh;
 overflow: hidden;
}

.knuffi-section .side-left,
.knuffi-section .side-right,
.knuffi-section .text-1,
.knuffi-section .text-2,
.knuffi-section .text-3 {
  will-change: transform, opacity;
}

.knuffi-section .text-1,
.knuffi-section .text-2,
.knuffi-section .text-3 {
  position: absolute;
  top:45vh;
  width: 100%;
}

/* Mobile: don’t pin; let it stack and just fade up */
@media (max-width: 980px) {
  .knuffi-section .side-left,
  .knuffi-section .side-right,
  .knuffi-section .text-1,
  .knuffi-section .text-2,
  .knuffi-section .text-3 {
    transform: none !important;
    opacity: 1 !important;
  }
}

/*------------------------------------------------*/
/*----------------[ ОБОРУДВАНЕ ]------------------*/
/*------------------------------------------------*/


.woocommerce-ordering {
  display: none !important;
}


/* hide Woo pagination when our button is present */
.woo-mosaic .woocommerce .woocommerce-pagination,.woocommerce-result-count { 
  display:none; 
}

/* Filter buttons */
.wpfFilterContent .wpfCheckboxHier .wpfTextFilter {
  gap: 48px;
  padding-left: 0;
}

.wpfTextFilter .wpfDisplay .wpfValue {
  padding-left: 0 !important;
}

.wpfFilterWrapper label .wpfDisplay {
  padding: 8px 6px !important;
  transition: ease-in-out 0.3s;
}

.wpfFilterWrapper label .wpfDisplay:hover {
  color: #ed1c24;
  transition: ease-in-out 0.3s;
}

.wpfFilterWrapper label .selected {
  border-bottom: 2px solid #ed1c24;
}

/* CATEGORY FILTERS */

.turgovsko-oborudvane-filter-menu,.skladovo-oborudvane-filter-menu {
  transition: transform 0.25s ease, opacity 0.25s ease;
  will-change: transform, opacity;
}

.turgovsko-oborudvane-filter-menu.is-hidden,.skladovo-oborudvane-filter-menu.is-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

/* Tabs menu sticky */

/* base */
.skladovo-oborudvane-tab .et_pb_tabs_controls {
  width: 100%;
  z-index: 99999;
  background: #0b0b0bb2;
  backdrop-filter: blur(8px);
  padding-top: 32px !important;
  padding-left: 22px !important;
}

/* active fixed ins ide tab scrolling range */
.smart-header .page-template-default .skladovo-oborudvane-tab .tabs-inrange-fixed {
transform: translate(0px, 128px) !important; 
}

.page-template-default .skladovo-oborudvane-tab .tabs-inrange-fixed {
  position: fixed !important;
  left: 0;
  right: 0;
  padding-left:6% !important;
margin-top: -10px;
}

/* pinned to the bottom of the tab when you reach the end */
.tabs-at-end {
  position: absolute !important;
  left: 0;
  right: 0;
}


.skladovo-oborudvane-tab, .skladovo-oborudvane-tab {
  display: flex;
  flex-flow: column;
}


@media (max-width: 490px) {

  .page-id-345 .et_pb_tab {
    padding:0 !important;
  }

  .page-id-345 .et_pb_section_1.et_pb_section {
    padding-left: 14px !important;
    padding-right: 14px !important;
   }

  .page-template-default .skladovo-oborudvane-tab .tabs-inrange-fixed {
    margin-top: -60px !important;
  }

  .skladovo-oborudvane-section .et_pb_tabs_controls {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .skladovo-oborudvane-section .et_pb_tabs_controls::-webkit-scrollbar { display: none; }
  .skladovo-oborudvane-section .et_pb_tabs_controls li {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}


/* PRODUCT GRID */

/* === MOSAIC GRID (4-item pattern) ======================================= */

.woo-mosaic .woocommerce .products::before,.woo-mosaic .woocommerce .products::after {
  display:none !important;
}

.woo-mosaic .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr;      /* big left / small right */
  grid-auto-rows: 418px 418px 80vh !important;/* base row height; spans use multiples of this */
  grid-auto-flow: row;          /* keep source order (avoid 'dense' reordering) */
  gap: 24px;
  clear: both;
}

/* reset Woo floats so UL gets real height */
.woo-mosaic .woocommerce ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
  background: #0f0f0f;
}

/* make anchors & images fill */
.woo-mosaic .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
}

/* image wrapper should stretch; image should cover */
.woo-mosaic .woocommerce ul.products li.product .et_shop_image {
  height: 100%;
}

.woo-mosaic .woocommerce ul.products li.product .et_shop_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* title area */

.woo-mosaic ul.products li.product .woocommerce-loop-product__title { 
    color: #ffffff !important;
  font-size: 2em !important;
  line-height: 1.12 !important;
  font-weight: 400 !important;
  max-width: 78%;
  position: absolute;
  bottom: 78px;
  left: 32px;
  z-index: 2;
}

.woo-mosaic .woocommerce ul.products li.product .tobb-btn-wrapper {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 2;
}

.woo-mosaic .woocommerce ul.products li.product:hover .tobb-btn::after {
  transform: scaleY(1) !important;
  transition-delay: 0s !important;
}


.woo-mosaic .woocommerce ul.products li.product:hover .tobb-btn::before {
  transform: scaleX(1.1) !important;
  transition-delay: .24s !important;
}


/* ---- 4-item pattern (repeats every 4) ---- */
/* 1) Big left — tall (spans 2 rows) */

.woo-mosaic .woocommerce ul.products li.product .woocommerce-LoopProduct-link::before {
  content: "";
  display: block;
  width: 100%;
  height: 65%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 0) 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  transition: ease-in-out 0.75s;
}

/* -------- 4-item repeating pattern -------- */
/* 1) big left */
.woo-mosaic .woocommerce ul.products li.product:nth-child(4n+1){
  grid-column: 1;
  grid-row: span 2;                 /* <-- true two-row tile */
}

/* 2) SMALL TOP-RIGHT */
.woo-mosaic .woocommerce ul.products li.product:nth-child(4n+2){
  grid-column: 2;
}

/* 3) SMALL BOTTOM-RIGHT */
.woo-mosaic .woocommerce ul.products li.product:nth-child(4n+3){
  grid-column: 2;
}

/* 4) WIDE — full row */
.woo-mosaic .woocommerce ul.products li.product:nth-child(4n+4){
  grid-column: 1 / -1;
}

/* Remove Woo overlay if you don't want it */
.woo-mosaic .woocommerce ul.products li.product .et_overlay {
  display: none !important;
}




/* СКЛАДОВО ОБОРУДВАНЕ TAB SPECIFIC STYLES */

.et_pb_tabs_controls {
  display: flex;
  gap: 48px;
}

.et_pb_tabs,ul.et_pb_tabs_controls::after,.et_pb_tabs_controls li {
  border: none;
}

ul.et_pb_tabs_controls,.et_pb_tabs_controls li.et_pb_tab_active,.et_pb_all_tabs {
  background: transparent;
}
.et_pb_tab  {
  padding: 8px; 
}

.et_pb_tabs_controls li a {
  color:#ffffff !important;
  padding: 4px 8px !important;
  font-weight: 400;
}

.et_pb_tabs_controls li a::before {
  display: block;
  position: absolute;
  content: "";
  width: 6px;
  height: 6px;
  background: #ed1c24;
  top: 17px;
  left: -14px;
}

.et_pb_tabs_controls li a:hover {
  color:#ed1c24 !important;
}

.et_pb_tabs_controls .et_pb_tab_active a {
  color:#ed1c24 !important;
  padding: 4px 8px !important;
  border-bottom: 2px solid #ed1c24 !important;
  font-weight: 400;
}


/* =========================================
   KASOVI MODULI TAB — STACKED FULL WIDTH
   MAGAZINSKI AKSESOARI TAB — STACKED FULL WIDTH
   ========================================= */

#kasovi-moduli-tab ul.products,
#kasovi-moduli-tab .woocommerce ul.products,
#magazinski-aksesoari-tab ul.products,
#magazinski-aksesoari-tab .woocommerce ul.products
 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* reset all product items */
#kasovi-moduli-tab ul.products > li.product,
#kasovi-moduli-tab .woocommerce ul.products > li.product,
#magazinski-aksesoari-tab ul.products > li.product,
#magazinski-aksesoari-tab .woocommerce ul.products > li.product {
  grid-column: 1 !important;
  grid-row: auto !important;
  grid-area: auto !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;

  float: none !important;
  clear: none !important;
  display: block !important;
  position: relative !important;
  min-height: 0 !important;
}

/* kill the global repeating mosaic pattern */
#kasovi-moduli-tab ul.products > li.product:nth-child(4n+1),
#kasovi-moduli-tab ul.products > li.product:nth-child(4n+2),
#kasovi-moduli-tab ul.products > li.product:nth-child(4n+3),
#kasovi-moduli-tab ul.products > li.product:nth-child(4n+4),
#kasovi-moduli-tab .woocommerce ul.products > li.product:nth-child(4n+1),
#kasovi-moduli-tab .woocommerce ul.products > li.product:nth-child(4n+2),
#kasovi-moduli-tab .woocommerce ul.products > li.product:nth-child(4n+3),
#kasovi-moduli-tab .woocommerce ul.products > li.product:nth-child(4n+4),
#magazinski-aksesoari-tab  ul.products > li.product:nth-child(4n+1),
#magazinski-aksesoari-tab  ul.products > li.product:nth-child(4n+2),
#magazinski-aksesoari-tab  ul.products > li.product:nth-child(4n+3),
#magazinski-aksesoari-tab  ul.products > li.product:nth-child(4n+4),
#magazinski-aksesoari-tab  .woocommerce ul.products > li.product:nth-child(4n+1),
#magazinski-aksesoari-tab  .woocommerce ul.products > li.product:nth-child(4n+2),
#magazinski-aksesoari-tab  .woocommerce ul.products > li.product:nth-child(4n+3),
#magazinski-aksesoari-tab  .woocommerce ul.products > li.product:nth-child(4n+4) {
  grid-column: 1 !important;
  grid-row: auto !important;
  grid-area: auto !important;
  min-height: 0 !important;
}

/* clickable card */
#kasovi-moduli-tab ul.products > li.product > a.woocommerce-LoopProduct-link,
#kasovi-moduli-tab .woocommerce ul.products > li.product > a.woocommerce-LoopProduct-link,
#magazinski-aksesoari-tab  ul.products > li.product > a.woocommerce-LoopProduct-link,
#magazinski-aksesoari-tab  .woocommerce ul.products > li.product > a.woocommerce-LoopProduct-link {
  display: block !important;
  width: 100% !important;
  height: 80vh !important;
  position: relative !important;
}

/* image full width */
#kasovi-moduli-tab ul.products > li.product img,
#kasovi-moduli-tab .woocommerce ul.products > li.product img,
#magazinski-aksesoari-tab ul.products > li.product img,
#magazinski-aksesoari-tab .woocommerce ul.products > li.product img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

/* FIRST TABS */
.entry-content .et-l--post .et_pb_section #kasovi-moduli-tab ul.products li.post-1258 img {
position: absolute;
  top: -144px;
}

.entry-content .et-l--post .et_pb_section #magazinski-aksesoari-tab ul.products li.post-1320 img {
  position: absolute;
  top: -200px;
}

/* SECOND TABS */
.entry-content .et-l--post .et_pb_section #kasovi-moduli-tab ul.products li.post-1311 img {
  position: absolute !important;
}

.entry-content .et-l--post .et_pb_section #magazinski-aksesoari-tab ul.products li.post-1322 img {
  position: absolute !important;
  top: -162px !important;
}

@media (max-width:490px) { 
  
html .page .entry-content  .et_pb_tab .et_pb_tab_content #kasovi-moduli-tab ul.products li.product img,
 html .page .entry-content  .et_pb_tab .et_pb_tab_content #magazinski-aksesoari-tab ul.products li.product img {
position: absolute;
top: 0 !important;
width: 260% !important;
height:400px !important;
}

  
  html .page .entry-content .woo-mosaic .woocommerce ul.products li.post-1311,
  html .page .entry-content .woo-mosaic .woocommerce ul.products li.post-1322 {
    height: 368px !important;
  }

  html .page .entry-content .woo-mosaic .woocommerce ul.products li.product.type-product {
    aspect-ratio: 2 / 3 !important;
  }
  
}


/* === RESPONSIVE ========================================================= */

@media (max-width:490px) {
.woo-mosaic ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.5em !important;
    font-weight: 600;
}

.page .et_pb_section .et_pb_row .et_pb_column .tobb-btn, .et_pb_row .et_pb_column .tobb-btn {
  font-size:16px !important;
  font-weight: 400;
}

  /* Category Filters */
  .turgovsko-oborudvane-filter-menu,.skladovo-oborudvane-filter-menu {
    left:0 !important;
    width:100% !important;
  }
  
  .wpfFilterContent .wpfCheckboxHier .wpfTextFilter {
  gap: 16px;
  padding-left: 0;
  flex-flow: row;
  }
  
  #wpfBlock_1 .wpfTextFilter.wpfFilterLayoutHor > li, #wpfBlock_2 .wpfTextFilter.wpfFilterLayoutHor > li  {
  width: auto !important;      /* override plugin width/flex-basis */
  flex: 0 0 auto !important;   /* if the UL is display:flex */
}
  
  #wpfBlock_1 .wpfFilterTaxNameWrapper,  #wpfBlock_2 .wpfFilterTaxNameWrapper {
  display: inline-block;
  white-space: nowrap;
  word-break: keep-all;
}
  
  #wpfBlock_1 .wpfTextFilter.wpfFilterLayoutHor,   #wpfBlock_2 .wpfTextFilter.wpfFilterLayoutHor {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;  /* adjust spacing between items */
}

  /* Product Columns */

#kasovi-moduli-tab ul.products > li.product > a.woocommerce-LoopProduct-link, #kasovi-moduli-tab .woocommerce ul.products > li.product > a.woocommerce-LoopProduct-link, #magazinski-aksesoari-tab ul.products > li.product > a.woocommerce-LoopProduct-link, #magazinski-aksesoari-tab .woocommerce ul.products > li.product > a.woocommerce-LoopProduct-link{
  height: 100% !important;
}

.woo-mosaic .woocommerce ul.products {
  grid-auto-rows: 348px 228px 54vh !important;
}

.skladovo-oborudvane-section .woocommerce  ul.products {
  grid-auto-rows: 348px 231px 58vh !important;
}

  .woo-mosaic .woocommerce ul.products li.product:nth-child(4n+1) {
    height: 360px;
  }
  
  .woo-mosaic .woocommerce ul.products li.product:nth-child(4n+2) {
    height: 240px;
  }
  
  .woo-mosaic .woocommerce ul.products li.product:nth-child(4n+3) {
    height:420px;
  }
  
}

@media (max-width:980px) {
  .woo-mosaic .woocommerce ul.products {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }
  .woo-mosaic .woocommerce ul.products li.product {
    grid-column:auto!important;
    grid-row:auto!important;
    aspect-ratio:auto;
  }

}

@media (max-width:640px){
  .woo-mosaic .woocommerce ul.products {
    grid-template-columns:1fr;
  }
}


/*------------------------------------------------*/
/*--------------[Продуктова страница]-------------*/
/*------------------------------------------------*/


/* hero row */

 .single-product .product-header-section .et_pb_row {
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
}

/* under-the hero row */

.single-product .et_pb_row_2_tb_body {
  width: 74.5% !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .zoomImg {
  background-color: #0b0b0b;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
  display: none !important;
}

.product-header-section .sticky-btn {
  position: fixed !important;
  bottom: 64px !important;
  right: 64px !important;
}

.product-template-default .pin-passed {
  transform:translate(0) !important;
}

.product-template-default .pin-passed .perk-box {
  opacity:1 !important;
}

/* LIGHTBOX CODE */

/* disable default lightbox */

.et_pb_gallery_image a {
  pointer-events:none !Important;
}

.et_pb_gallery_image:hover .et_overlay,.et_pb_gallery_image .et_overlay {
  background: rgba(0,0,0,0.4) !important;
  border:none !important;
}

.et_pb_gallery_image:hover .et_overlay::before,.et_pb_gallery_image .et_overlay::before {
  opacity:0 !important;
  color:rgba(0,0,0,0) !important;
}


/* --- Fix: Allow clicks to pass through Divi's hover overlay --- */
.wc-gallery-hscroll .et_overlay {
    pointer-events: none !important;
}

/* Ensure the cursor looks clickable */
.wc-gallery-hscroll .et_pb_gallery_item {
    cursor: pointer;
}


/* --- Lightbox Styles --- */
/* --- 1. Force Horizontal Scroll Layout --- */
/* This transforms the Grid into a Scrollable Strip */
.wc-gallery-hscroll .et_pb_gallery_items {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 20px; /* Space between images */
    scrollbar-width: none; /* Firefox: hide scrollbar */
    scroll-behavior: smooth;
    padding-bottom: 20px; /* Room for shadow */
}

/* Hide scrollbar for Chrome/Safari */
.wc-gallery-hscroll .et_pb_gallery_items::-webkit-scrollbar {
    display: none;
}

/* Fix individual items to not stack */
.wc-gallery-hscroll .et_pb_gallery_item {
    flex: 0 0 auto !important; /* Don't shrink, don't grow */
    width: 530px !important; /* Adjust this width as needed */
    margin: 0 !important;
    clear: none !important; /* Override Divi's grid clearing */
    display: block !important;
}

.wc-gallery-hscroll .et_pb_gallery_item img {
  height:84vh !important;
}


.product-gallery-grid 

.et_pb_gutters3.et-db #et-boc .et-l .et_pb_column_1_4 {
  width: 8%;
}

/* --- 2. Lightbox UI Styles --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    z-index: 100000;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

@keyframes fadeIn { to { opacity: 1; } }

/* --- Lightbox Close Button Styling --- */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    /* Use a high z-index to ensure it's clickable over the image and arrows */
    z-index: 100001; 
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white;
    font-size: 24px;
    line-height: 24px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%; /* Circle shape */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lightbox-close:hover,.lightbox-next:hover,.lightbox-prev:hover  {
   color:#ed1c24;
}


/* ------------------------------------------
  CLOSER LOOK MAIN SECTION 
------------------------------------------- */

/* Hide dots on desktop */
.tab-progress-dots {
    display: none;
}

.et-db #page-container #et-boc .et-l .closer-look-main-section {
  padding-top:0 !important;
  z-index: 0;
}

.et-db #page-container #et-boc .et-l .closer-look-main-section .et_pb_text_2_tb_body {
margin-left: 45px !important;
}

.tab-layout-container-v3 {
    display: flex;
    max-width: 1400px;
    height: 600px;
    margin: 50px auto;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center center;
    gap:24px;
}

/* Background fade layer (only BG fades, not content) */

.closer-look-main-section .et_pb_row .et_pb_module .closer-look-section-v3 .tab-layout-container-v3::after { 
    content: "";
    position: absolute;
    inset: 0;
    background-size: 75% !important;
    background-repeat: no-repeat;
    background-position: center right;
    opacity: var(--bg-opacity, 1); 
    z-index: -1;
    transition: none;
}


/* ===== IMPORTANT == */ /* == IMPORTANT == */ /* == IMPORTANT ===== */
/* ==                                                             == */
/* == EACH PRODUCT'S TAB IMAGE ARE CHANGED INSIDE THE CODE MODULE == */
/* ==                                                             == */
/* ===== IMPORTANT == */ /* == IMPORTANT == */ /* == IMPORTANT ===== */

.closer-look-section-v3 
.tab-layout-container-v3[data-active-tab="colors"]::after {
    background-image: url('https://2b-brand.com/wp-content/uploads/2025/09/2bbrand-placeholder-img-1.png');
}

.closer-look-section-v3 
.tab-layout-container-v3[data-active-tab="unibody"]::after {
    background-image: url('https://2b-brand.com/wp-content/uploads/2025/09/2bbrand-product-solutions.jpg');
}

.closer-look-section-v3 
.tab-layout-container-v3[data-active-tab="vapor"]::after {
    background-image: url('https://2b-brand.com/wp-content/uploads/2025/09/2bbrand-placeholder-img-1.png');
}

.closer-look-section-v3 
.tab-layout-container-v3[data-active-tab="shield"]::after {
    background-image: url('https://2b-brand.com/wp-content/uploads/2025/09/2bbrand-product-solutions.jpg');
}

/* ------------------------------------------
   LEFT COLUMN: VERTICAL TABS NAV
------------------------------------------- */

.tabs-vertical-navigation-v3 {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: transparent;
}


/* ------------------------------------------
   TAB BUTTONS
------------------------------------------- */


.tab-v3-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 310px;
    background-color: rgba(24, 24, 24, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: left;
    border: none;
    padding: 15px 20px 15px 45px; /* icon offset */
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #fff;
    transition: background-color 0.3s, transform 0.3s, width 0.3s;
}

.tab-v3-button:hover {
    background-color: rgba(36, 36, 36, 0.85);
    transition: background-color 0.3s;
}

.tab-v3-button.active {
    transform: none;
    width:420px;
}


/* ------------------------------------------
   TAB TEXT & DESCRIPTION
------------------------------------------- */

.tab-text-wrapper {
    display: block;
    flex-grow: 1;
}

.tab-title-v3 {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    transition: margin-bottom 0.3s ease;
}

/* Collapsed by default */
.tab-description-v3 {
    height: 0;              /* we animate height via JS */
    opacity: 0;
    overflow: hidden;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    transition: height 0.3s ease-out, opacity 0.3s ease-in;
}

/* When active-content-visible is added, fade in text */
.tab-v3-button.active-content-visible .tab-description-v3 {
    opacity: 1;
  height: fit-content !important;
  padding-bottom: 6px;
}


/* ------------------------------------------
   ICON (LEFT OF TAB)
------------------------------------------- */

.tab-v3-button::before {
    content: '+';
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 300;
    width: 16px;
    height: 16px;
    line-height: 16px;
    color: #fff;
    text-align: center;
    border: 1px solid #fff;
    border-radius: 50%;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        border-width 0.3s ease;
}

.tab-v3-button.active::before {
    content: '';
    opacity: 0;
    border-width: 0;
    transform: translateY(-50%) rotate(45deg);
}


/* ------------------------------------------
   RIGHT CONTENT AREA (IMAGE SIDE)
------------------------------------------- */

.content-display-area-v3 {
    flex-grow: 1;
}

/* PERKS SECTION */

.et-boc .et-l .perks-section {
    height: 102vh;
    background-size: 180%; 
    background-position: 0% -50%; 
    background-repeat: no-repeat;
    
}

.et-boc .et-l .perks-section .number {
  display:none;
}


.et-boc .et-l .perks-section::after {
  content: '';
  display: block;
  position: absolute;
  background-color: rgba(0,0,0,0.6);
  height: 100%;
  top: 0;
  left: 0;
  width: 100%;
}

.perks-section .perks-row {
  display:flex;
  height: 100%;
}

.perks-section .perks-row .et_pb_column {
  display: flex;
  flex-flow: column;
  justify-content: space-evenly;
}

.perk-box {
  opacity: 0; /* Ensures they are hidden before the animation starts */
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 8px;
}

.perks-section .perks-row .perk-box .et_pb_text_inner {
  display: flex;
  gap: 16px;
}

.perks-section .perks-row .perk-box .et_pb_text_inner .number h3 {
  font-size: 32px !important;
  font-weight: 400 !important;
}

.perks-section .perks-row .perk-box .et_pb_text_inner .number h4 {
  font-size: 16px !important;
}

/* Header Fixes */
html .single-product #page-container .et-l--header .menu-list .accordion-toggle .menu-link {
  color:#ffffff !important;
}

html .single-product #page-container .et-l--header .menu-list .accordion-toggle:hover .menu-link {
 color: #ed1c24 !important;
}

html .single-product #page-container .et-l--header #menu-container .menu-list .project-request:hover .menu-link {
 color: #ffffff !important;
}

/* GALLERY SECTION */ 

/* 4. Style the Buttons */
.product-gallery-grid .hs-btn {
    background: transparent;
    color: #fff;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 3px solid #ed1c24;
    border-right: 0;
}

.product-gallery-grid .hs-btn:hover {
    background: #ed1c24;
    color: #fff;
}

.et-db #et-boc .et-l .et_pb_gallery_grid .et_pb_gallery_item {
  display: block !important;
}

.wc-gallery-hscroll .gallery-column {
  overflow: hidden;
  width:90% !important;
}

.wc-gallery-hscroll {
  position: relative;
}

/* Horizontal gallery container */
.wc-gallery-hscroll .et_pb_gallery_items {
  display: flex;
  gap: 3rem;
}

/* Each slide */
.wc-gallery-hscroll .et_pb_gallery_item {
  flex: 0 0 min(55vw, 620px);
}


.wc-gallery-hscroll .et_pb_gallery_item {
    flex: 0 0 min(55vw, 620px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.wc-gallery-hscroll .et_pb_gallery_image,
.wc-gallery-hscroll .et_pb_gallery_image a {
    display: block;
    width: 100%;
    height: 100%;
}

.wc-gallery-hscroll .et_pb_gallery_item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* Arrow buttons */

.wc-gallery-hscroll .btn-col {
  margin-right: 0 !important;
}

.wc-gallery-hscroll .gallery-nav {
    margin-top: auto; /* Pushes to bottom (flex-end equivalent) */
    display: flex;
    flex-direction: column; /* Stack vertical */
    gap: 18px;
    align-items: flex-end; /* Align left */
    padding-top: 20px;
}

.wc-gallery-hscroll .gallery-nav .prev-btn,
.wc-gallery-hscroll .gallery-nav .next-btn {
    background: transparent;
    color: #fff;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 3px solid #ed1c24;
    border-right: 0;
}

.closer-look-section-v3.is-preintro .tab-v3-button{
  opacity: 0;
  will-change: opacity;
}


.product-gallery-grid  .wc-gallery-hscroll .btn-col {
  width: 10% !important;
  height: 85vh;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.product-gallery-grid .wc-gallery-hscroll .btn-col .et_pb_code {
  padding-top:0 !important;
}

/* GRID VIEW 

.et-db #et-boc .et-l .et_pb_gallery .et_pb_gallery_pagination {
  border-top:0;
}

.et-db #et-boc .et-l .et_pb_gallery_items::after {
  display: none !important;
}

.et-db #et-boc .et-l .et_pb_gutters3.et_pb_row .et_pb_column_4_4 .et_pb_grid_item, .et-db #et-boc .et-l .et_pb_gutters3.et_pb_row .et_pb_column_4_4 .et_pb_shop_grid .woocommerce ul.products li.product, .et-db #et-boc .et-l .et_pb_gutters3.et_pb_row .et_pb_column_4_4 .et_pb_widget, .et_pb_gutters3.et-db #et-boc .et-l .et_pb_column_4_4 .et_pb_grid_item, .et_pb_gutters3.et-db #et-boc .et-l .et_pb_column_4_4 .et_pb_shop_grid .woocommerce ul.products li.product, .et_pb_gutters3.et-db #et-boc .et-l .et_pb_column_4_4 .et_pb_widget
{
  width:100% !important;
}

.et_pb_wc_gallery .et_pb_gallery_item {
  position: relative;
  overflow: hidden;
}

.et_pb_wc_gallery .et_pb_gallery_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.et_pb_wc_gallery .et_pb_gallery_item:hover img {
  transform: scale(1.05);
}

/* Responsive grid adjustments
@media (max-width: 1024px) {
  .et_pb_wc_gallery .et_pb_gallery_items {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 200px !important;
  }
}

@media (max-width: 600px) {
  .et_pb_wc_gallery .et_pb_gallery_items {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 250px !important;
  }
}

*/

/* Mobile media query */

@media (max-width:490px){ 

  /* hero section */
.product-header-section {
  height:100vh;
}

.et-db #et-boc .et-l .product-header-section .et_pb_row {
margin-top:0 !important;
}

.et-db #et-boc .et-l .product-header-section .et_pb_divider_0_tb_body {
  min-height: 50vh !important;
}

.product-header-section .et_pb_row .et_pb_text {
  margin-top: 0 !important;
}


  /* Tabs section */
  /*background image */
  
.et-l--body .closer-look-main-section .et_pb_row .et_pb_module .closer-look-section-v3 .tab-layout-container-v3::after {
    background-size: 100% !important;
    background-position: center center !important;
}

  .tab-layout-container-v3 {
    height: 1080px;
  }
  
  .tab-v3-button.active {
   width: 258px !important;
    flex: 0 0 250px;
  }
  
  .tab-layout-container-v3 {
        flex-direction: column-reverse; /* Navigation moves to bottom */
        height: 800px; /* Adjust height for mobile */
    }

    .tabs-vertical-navigation-v3 {
        flex-direction: row !important; /* Force horizontal */
        flex: 0 0 auto;
        overflow-x: auto; /* Enable scrolling */
        height: 600px;
        white-space: wrap;
        padding: 20px;
        gap: 15px;
        justify-content: flex-start;
        width: 100%;
        /* Smooth scrolling for touch */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        /* Hide scrollbars */
        scrollbar-width: none; 
        -ms-overflow-style: none;
      align-items: flex-end;
    }

    .tabs-vertical-navigation-v3::-webkit-scrollbar {
        display: none;
    }
  
  .tabs-vertical-navigation-v3 .tab-v3-button:nth-child(1) {
    padding-bottom: 12px;
  }

    .tab-v3-button {
        flex: 0 0 280px; /* Fixed width for horizontal items */
        margin-bottom: 12px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        display: inline-flex; /* Keep content inline */
        height: fit-content !important;
    }

    .tab-v3-button.active {
        width: 310px !important; /* Controlled growth on mobile */
        flex: 0 0 310px;
        padding-left: 20px !important;
      padding-bottom: 20px !important;
    }
  
  .tab-v3-button.active::before {
    display:none;
  } 

    /* Adjust the '+' icon position on mobile */
    .tab-v3-button::before {
        top: 25px;
        transform: none;
    }
  
  /* PROGRESS DOTS */ 

.tab-progress-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 10px 0 20px 0; /* Adjust spacing below the tabs */
        position: relative;
        z-index: 15;
  padding: 12px 16px;
  align-self: center;
    border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  margin-bottom: 16px;
    }

    .progress-dot {
        width: 8px;
        height: 8px;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .progress-dot.active {
        background-color: #fff;
        transform: scale(1.3);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    }
  
  
  
  /* PERKS section */ 
  
.perks-section-mobile .et_pb_row .et_pb_column .perk-box .number {
  display: none !important;
}

  .perks-section .perks-row .et_pb_column {
    justify-content: flex-start;
  }
  
    .perks-section .perks-row {
   flex-flow: column;
  }
  
  .perks-section-mobile .perk-box {
    opacity: 1;
  }
  
 .perks-section-mobile .perk-box .et_pb_text_inner {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}
  
  /* PRODUCT GALLERY */

  .product-gallery-grid {
    display: flex;
    height: 420px;
  }  

   html .et-db #et-boc .product-gallery-grid .wc-gallery-hscroll {
  flex-flow: row;
  display: flex;
  padding-top: 0 !important;
  }

  .wc-gallery-hscroll .et_pb_gallery_item {
    width: 250px !important;
  }

  html .et-db #et-boc .product-gallery-grid .wc-gallery-hscroll .et_pb_column_1_4 {
      width: 15% !important;
   }

  html .et-db #et-boc .product-gallery-grid .wc-gallery-hscroll .et_pb_column_3_4 {
      width: 85% !important;
   }

.product-gallery-grid .wc-gallery-hscroll .btn-col {
  height: 40vh;
}

 .et-db #et-boc .product-gallery-grid .wc-gallery-hscroll .btn-col {
   padding-left: 14px;
   align-content: center; 
  }
}


/*------------------------------------------------*/
/*-------------------[ЗА НАС]---------------------*/
/*------------------------------------------------*/

.cta-row::before {
  content: '';
  height:2px;
  width:10%;
  background:#ffffff;
  display: block;
  position: absolute;
  top: 0;
  left: 0; 
}

.page-id-647 .perks-section.pin-passed .perk-box, .page-id-647 .et-waypoint:not(.et_pb_counters){
  opacity: 1 !important;
}



/*------------------------------------------------*/
/*----------------[ЗАЯВИ ПРОЕКТ]------------------*/
/*------------------------------------------------*/

.zayavi-proekt-header .et_pb_row {
  display: flex;
  align-items: center;
}


@media (max-width:490px){
  .page-id-715 .wsf-group-tabs .wsf-group-tab {
  width:45%;  
  }
  .page-id-715 .wsf-group-tabs .wsf-group-tab a {
    text-wrap: auto;
  }
  
}

.et_pb_scroll_top.et-pb-icon {
  background: #282828!important;
  bottom: 16px!important;
}

.product-header-section {
    position: relative;
    overflow: hidden;
}

.product-header-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
    /* 2) Допълнително затъмняване горе и долу */
  linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.02) 70%, rgb(11, 11, 11) 100%)
}

.et-db #et-boc .et-l .et_pb_text_0_tb_body h1 {
  font-weight: 600!important;
}


/*------------------------------------------------*/
/*------------------[Контакти]--------------------*/
/*------------------------------------------------*/


/* Expandable WS Form section */
fieldset.ws-expandable-section {
  width: 100%;
  min-width: 0;
  margin-top: 24px !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Hide everything except the title while closed */
fieldset.ws-expandable-section.ws-expandable-ready:not(.is-open)
  > :not(legend) {
  display: none !important;
}

fieldset.ws-expandable-section
  .ws-expandable-legend {
  display: block;
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.ws-expandable-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 8px 0px;
  color: #fff;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 20px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.ws-expandable-toggle .ws-expandable-title {
  font-weight: 600;
}

.ws-expandable-icon {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;

  border: 2px solid #ed1c24;

  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.ws-expandable-icon::before,
.ws-expandable-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;

  width: 14px;
  height: 2px;

  background: #fff;
  transform: translate(-50%, -50%);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.ws-expandable-icon::after {
  transform:
    translate(-50%, -50%)
    rotate(90deg);
}

/* Plus becomes minus */
.ws-expandable-section.is-open
  .ws-expandable-icon,.ws-expandable-toggle:hover  .ws-expandable-icon {
  background: #ed1c24;
}

.ws-expandable-section.is-open
  .ws-expandable-icon::after {
  opacity: 0;
  transform:
    translate(-50%, -50%)
    rotate(0deg);
}

/* Spacing above the revealed fields */

.ws-expandable-toggle:focus-visible {
  outline: 2px solid #ed1c24;
  outline-offset: 4px;
}

#wsf-1-section-10 {
  margin-top:0 !important;
  padding: 0px 12px !important;
}

.ws-expandable-section  .wsf-grid, .ws-expandable-section .wsf-grid {
  transition:.4s all ease-in-out;
}

/*------------------------------------------------*/
/*-------------------[Footer]---------------------*/
/*------------------------------------------------*/


/* =========================================================
   MOBILE TABS HANDOFF
   Set on <html> by oborudvane-gsap.js while vertical scrolling
   is driving the horizontal category rail. The script cancels the
   scroll itself; this only stops the browser from chaining or
   rubber-banding the gesture on to the page behind it.
   The class had no styles at all until now.
   ========================================================= */

html.mobile-tabs-handoff,
html.mobile-tabs-handoff body {
    overscroll-behavior: none;
}


/* =========================================================
   STRATEGY SECTION INITIAL STATE (За нас)
   za-nas-gsap.js animates .strategy-text in from opacity 0, but
   nothing declared that start state, so the copy painted at full
   opacity and then snapped away once the footer script ran.
   Scoped to .gsap-ready, which za-nas-gsap.js only sets once GSAP
   has actually loaded - if the CDN fails the text stays visible.
   ========================================================= */

html.gsap-ready .strategy-section .strategy-text {
    opacity: 0;
}

/* =========================================================
   DRAGGABLE PRODUCT GALLERY
   The strip scrolls natively on touch; these states are for
   mouse and pen, where products-gsap.js takes the drag over.
   ========================================================= */

.wc-gallery-hscroll .et_pb_gallery_items.is-draggable,
.wc-gallery-hscroll .et_pb_gallery_items.is-draggable .et_pb_gallery_item {
    cursor: grab;
}

.wc-gallery-hscroll .et_pb_gallery_items.is-dragging,
.wc-gallery-hscroll .et_pb_gallery_items.is-dragging .et_pb_gallery_item {
    cursor: grabbing;
}

/* Stop the drag turning into a text/image selection. */
.wc-gallery-hscroll .et_pb_gallery_items.is-dragging,
.wc-gallery-hscroll .et_pb_gallery_items.is-dragging * {
    user-select: none;
    -webkit-user-select: none;
}

.wc-gallery-hscroll .et_pb_gallery_items img {
    -webkit-user-drag: none;
    user-drag: none;
}

/* Vertical panning stays with the page; horizontal is ours. */
.wc-gallery-hscroll .et_pb_gallery_items {
    touch-action: pan-y;
    overscroll-behavior-x: contain;
}

.lightbox-overlay img {
    cursor: grab;
    -webkit-user-drag: none;
    user-drag: none;
}

