.btn-brochures-container {
  position: relative;
  width: 100%;
  margin: 30px 0;
  z-index: 3;
}
.btn-brochures {
  display: flex;
  gap: 10px;
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  transition: padding 0.3s ease;
  position: relative;
}
/* Swipe styles when arrows are visible */
.btn-brochures.with-arrows {
  cursor: default;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.btn-brochures.with-arrows:active {
  cursor: default;
}
/* Ensure no grab cursor when not scrollable */
.btn-brochures:not(.with-arrows) {
  cursor: default;
}
button#btn-nav-left {
  margin-left: -10px !important;
}
button#btn-nav-right {
  margin-right: -10px !important;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.btn-brochures::-webkit-scrollbar {
  display: none;
}
.btn-brochure {
  border: none;
  border-radius: 24px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333F48;
  background: #ffffff;
  background-size: 100% 200%;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid #ff000000 !important;
}
.btn-brochure:hover {
  background: #333F48;
  color: #ffffff;
  cursor: pointer;
  border: 1px solid #ffffff00 !important;
}
.btn-brochure.active {
  background: #333F48;
  color: #ffffff;
  text-shadow: .5px 0 0 currentColor;
  /* Creates bold effect without width change */
}
button#btn-spec-dropdown.active,
button#btn-sales-dropdown.active,
button#btn-install-dropdown.active {
  background: #333F48 !important;
  color: #ffffff !important;
}
button#btn-brochure1.active:hover,
button#btn-brochure2.active:hover,
button#btn-brochure3.active:hover,
button#btn-brochure4.active:hover,
button#btn-brochure5.active:hover,
button#btn-brochure6.active:hover,
button#btn-brochure7.active:hover,
button#btn-brochure8.active:hover
 {
  border: 1px solid #ff000000 !important;
}
button#btn-brochure1 {
  display: none;
}
/* Navigation arrows */
.btn-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 9999999;
  opacity: 0;
  visibility: hidden;
  border: 1px solid #ff000000 !important;
}
.btn-nav-arrow:hover {
  background: #333F48;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
  border: 1px solid #fff !important;
}
.btn-nav-arrow.visible {
  opacity: 1;
  visibility: visible;
}
.btn-nav-arrow.left {
  left: 0;
}
.btn-nav-arrow.right {
  right: 0;
}
.btn-nav-arrow svg {
  width: 16px;
  height: 16px;
  fill: #333F48;
}
.btn-nav-arrow:hover svg {
  fill: #ffffff;
}
.flipbooks {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  z-index: 1;
}
/* Responsive behavior */
@media (max-width: 768px) {
  .btn-nav-arrow {
    width: 36px;
    height: 36px;
  }
  .btn-nav-arrow svg {
    width: 18px;
    height: 18px;
  }
  .btn-brochures {
    justify-content: start;
  }
}
@media screen and (min-width: 1px) and (max-width: 375px) {
  .flipbooks iframe {
    height: 250px;
  }
}
@media screen and (min-width: 376px) and (max-width: 425px) {
  .flipbooks iframe {
    height: 300px;
  }
}
@media screen and (min-width: 426px) and (max-width: 767px) {
  .flipbooks iframe {
    height: 400px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .flipbooks iframe {
    height: 550px;
  }
}
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .flipbooks iframe {
    height: 600px;
  }
}
/* Dropdown Styles */
.dropdown-container {
  position: relative;
  display: inline-block;
  z-index: 10000;
  /* Ensure proper positioning context for absolute dropdowns */
}
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}
.dropdown-container:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
/* Ensure Install Instructions dropdown has same hover behavior */
.dropdown-container:hover #install-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-container:hover .dropdown-toggle .dropdown-arrow {
  transform: rotate(180deg);
}
.dropdown-arrow {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}
.dropdown-container:hover .dropdown-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}
.dropdown-container:hover {
  /* background: #00a7b5;
  border-radius: 24px; */
}
.dropdown-menu {
  position: fixed;
  top: 0;
  left: 0;
  background: #00a7b5;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-width: 165px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  padding: 0;
  margin-top: 0px;
  pointer-events: auto;
  white-space: nowrap;
}
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 10001;
}
.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  text-align: left;
}
.dropdown-item:hover {
  background: #333f48;
  color: #ffffff;
}
.dropdown-item:first-child {
  border-radius: 10px 10px 0 0;
}
.dropdown-item:last-child {
  border-radius: 0 0 10px 10px;
}
/* Dropdown sections styling */
.dropdown-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 0;
}
.dropdown-section:last-child {
  border-bottom: none;
}
.dropdown-section-title {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px 4px 16px;
  margin: 0;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.1);
}
.dropdown-section .dropdown-item {
  padding: 6px 16px 6px 32px;
  font-size: 13px;
}
.dropdown-section .dropdown-item:hover {
  background: #333f48;
  color: #ffffff;
}
/* Responsive dropdown */
@media (max-width: 768px) {
  .dropdown-menu {
    min-width: 120px;
  }
  .dropdown-item {
    padding: 8px 12px;
  }
  #install-dropdown {
    min-width: 210px;
  }
  .dropdown-section .dropdown-item {
    padding: 6px 12px 6px 24px;
    font-size: 12px;
  }
  .dropdown-section-title {
    padding: 6px 12px 3px 12px;
    font-size: 11px;
  }
}
@media screen and (min-width: 1441px) and (max-width: 10000px) {
  .flipbooks iframe {
    height: 700px;
  }
}
/* Install Instructions dropdown styling */
#install-dropdown {
  min-width: 210px;
  /* Ensure same positioning behavior as other dropdowns */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}
/* Two-level dropdown system */
.dropdown-category {
  position: relative;
  padding: 6px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px !important;
}
.dropdown-category:last-child {
  border-bottom: none;
}
.dropdown-category:hover {
  background-color: #ffffff2e;
}
.category-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  display: block;
}
/* Submenu styling */
.submenu {
  position: absolute;
  left: 101%;
  top: 0;
  background: #00a7b5;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  z-index: 10000;
  padding: 0;
}
.dropdown-category:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.submenu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
}
.submenu-item:hover {
  background: #333f48;
  color: #ffffff;
}
.submenu-item:first-child {
  border-radius: 11px 11px 0 0;
}
.submenu-item:last-child {
  border-radius: 0 0 11px 11px;
}
.dropdown-category:first-child {
  border-radius: 12px 12px 0 0;
}
.dropdown-category:last-child  {
  border-radius: 0 0 12px 12px;
}
/* Direct dropdown items (no submenu) styling */
#install-dropdown .dropdown-item {
  padding: 10px 16px;
  font-size: 14px;
}
#install-dropdown .dropdown-item:last-child {
  border-bottom: none;
  border-radius: 0 0 12px 12px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  #install-dropdown {
    min-width: 200px;
  }
  .submenu {
    min-width: 200px;
  }
}
/* #spec-dropdown .dropdown-item:nth-child(5) {
  border-radius: 0 0 12px 12px;
}
/* Temporary CSS - Will change when Spec Sheet is ready */