@font-face {
    font-family: FuturaLTPro-Book;
    src: url('../fonts/FuturaLTProBook.otf');
}

@font-face {
    font-family: FuturaLTPro-Medium;
    src: url('../fonts/FuturaLTProMedium.otf');
}

@font-face {
    font-family: FuturaLTPro-Light;
    src: url('../fonts/FuturaLTProLight.otf');
}

@font-face {
    font-family: FuturaLTPro-Heavy;
    src: url('../fonts/FuturaLTProHeavy.otf');
}

/*@font-face {*/
/*    font-family: Walbaum-Regular;*/
/*    src: url(2f111c1d6e98b7719713.woff2) format("woff2"), url(20775a0a43a963e10457.woff) format("woff");*/
/*    font-weight: normal;*/
/*    font-style: normal;*/
/*    font-display:swap*/
/*}*/
/**/

body, html {
  --primaryFontFamily: FuturaLTPro-Book, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --primaryFontColor: hsl(0, 0%, 10%);
  --secondaryFontColor: hsl(0, 0%, 50%);
  --lightBorderColor: rgb(107, 114, 128, 0.5);
  --grayBackgroundColor: rgb(243, 244, 246);
  
  margin: 0;
  padding: 0;
  font-family: var(--primaryFontFamily);
  color: var(--primaryFontColor);
}

textarea {
    font-size: 1rem;
}

h3 {
    font-weight: normal;
}

.preloadedImage {
    width:1px;
    height:1px;
    display:none;
}

.container {
  display: grid;
  height: 100vh;
  overflow: hidden;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header"
    "content";
}



.logo-container {
    width: 80%;
    padding-left: 10%;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.4rem;
}

.logo {
    max-height: 50%;
    width: 100%;
}

header {
  grid-area: header;
  background-color: #fff;
  margin: 1rem 0 1rem 0;
  /* box-shadow: 0px 2px 3px #eee; */
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  /* Force same stacking context as mobile menu */
  position: relative;
  transform: translateZ(0);
}

header a {
    text-decoration: none;
    color: var(--activeColor);
}

header a:hover {
    text-decoration: underline;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breadcrumb-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-search {
    margin-left: auto !important;
    margin-right: 0;
    display: flex !important;
    align-items: center !important;
}

.breadcrumb-search form {
    margin: 0;
}

.breadcrumb-search .search-input {
    padding: 0.3rem 0.8rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    min-width: 120px;
    max-width: 200px;
    color: var(--primaryFontColor);
}

.breadcrumb-search .search-input::placeholder {
    color: var(--secondaryFontColor);
    opacity: 1;
}

.breadcrumb-link {
    color: var(--secondaryFontColor);
    text-decoration: none;
}

.breadcrumb-link:hover {
    color: var(--primaryFontColor);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--secondaryFontColor);
}

.breadcrumb-current {
    color: var(--primaryFontColor);
    font-weight: 500;
}

nav {
  grid-area: nav;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: rgb(13, 20, 31);
  color: white;
}

nav ul {
  list-style-type: none; /* Remove bullet points */
  padding: 0 1rem 0 1rem;
}

nav ul li {
  margin: 0.2rem 0; /* Spacing between items */
}

nav ul li a {
  color: rgb(156, 163, 175);
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding: 10px;
  border-radius: 5px;
}

nav ul li a:hover {
    color: white;
    background-color: rgb(26, 36, 59);
}

nav ul li a.current {
    color: white;
    background-color: rgb(26, 36, 59);
}

main {
  grid-area: content;
  background-color: white;
  overflow-y: auto;
  overflow-x: hidden;
}

/*footer {*/
/*  grid-area: footer;*/
/*  background-color: #222;*/
/*  color: #ddd;*/
/*  padding: 1rem;*/
/*  */
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*}*/

button, .submit {
    background-color: transparent;
/*    color: white;*/
    border: none;
/*    border-radius: 10px;*/
/*    padding: 10px 20px;*/
/*    font-size: 16px;*/
    cursor: pointer;
}

button:hover, .submit:hover {
/*    background-color: var(--activeColorHover);*/
}

button:disabled, .submit:disabled {
/*    background-color: var(--activeColorDisabled);*/
}

button a {
    text-decoration: none;
    color: white;
}

.secondary {
    background-color: white;
    color: var(--activeColor);
    border: 1px solid var(--activeColor);
    border-radius: 10px; /* Adjust this value for more or less rounded corners */
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.secondary:hover {
    background-color: var(--secondaryActiveColorHover);
}

input[type="checkbox"]:checked {
    accent-color: var(--activeColor);
}

.secondaryToolbar {
    position: sticky;
    top: 0px;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: right;
    align-items: center;
    padding: 1rem 2rem 1rem 2rem;
    margin: 0 0 3px 0;
    box-shadow: 0px 2px 3px #eee;
    background-color: white;
    z-index:100; /* HACK switches are on top otherwise */
}

.opacity30 {
    filter:alpha(opacity=30);
    -moz-opacity:0.3;
    -khtml-opacity: 0.3; opacity: 0.3;
}

span.badgePositive {
    background-color: rgb(240, 253, 244);
    border: 1px solid rgb(229, 231, 235);
    border-radius: 6px;
    color: rgb(21, 128, 61);
    padding-bottom: 4px;
    padding-top: 4px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.8rem;
}

span.badgeNeutral {
    background-color: rgb(244, 244, 244);
    border: 1px solid rgb(229, 229, 229);
    border-radius: 6px;
    color: rgb(21, 21, 21);
    padding-bottom: 4px;
    padding-top: 4px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.8rem;
}

span.badgeNegative {
    background-color: rgb(252, 243, 242);
    border: 1px solid rgb(248, 222, 221);
    border-radius: 6px;
    color: rgb(177, 30, 27);
    padding-bottom: 4px;
    padding-top: 4px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.8rem;
}

.verticalStack_centered {
  display: flex;
  flex-direction: column;
  align-items: center;    
}

.gap_m {
    gap: 0.7rem;
}

.gap_l {
    gap: 1rem;
}

.gap_xl {
    gap: 1.3rem;
}

.gap_xxl {
    gap: 1.6rem;
}

.verticalStack_left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.verticalStack_right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.primaryButton {
    background: #111;
    color: #fff;
    font-family: var(--primaryFontFamily);
    font-size: 1.15rem;
    font-weight: 400;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
}
.primaryButton:hover {
    background: #333;
    color: #fff;
}

.price-before-discount {
  text-decoration: line-through;
  color: var(--secondaryFontColor);
  margin-right: 8px;
  font-size: 1.5rem;
  font-weight: bold;
}

.current-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primaryFontColor);
}

.container {
  border-top: none !important;
}

@media (max-width: 600px) {
  header .contact-info {
    font-size: 0.75rem !important;
    gap: 0.2em !important;
  }
}

/* --- CATEGORY NAVIGATION DROPDOWN --- */
.category-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  font-family: var(--primaryFontFamily);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}
.category-nav-list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.category-nav-item {
  position: relative;
}
.category-nav-link, .category-dropdown-link {
  color: var(--primaryFontColor);
  text-decoration: none;
  padding: 0.7rem 0.5rem;
  display: block;
  font-weight: 500;
  transition: none;
  background: none;
  font-size: 0.88rem;
}
.category-nav-link:hover, .category-dropdown-link:hover {
  color: var(--primaryFontColor) !important;
  background: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.category-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-radius: 0 0 8px 8px;
  z-index: 100;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
}
/* Desktop only: show dropdown on hover */
@media (min-width: 769px) {
  .category-nav-item:hover > .category-dropdown {
    display: block;
  }
}
.category-dropdown-item {
  width: 100%;
}
.category-dropdown-link {
  color: var(--primaryFontColor);
  text-decoration: none;
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}
.category-dropdown-link:hover {
  background: var(--grayBackgroundColor);
  color: var(--activeColor);
}
@media (max-width: 900px) {
  .category-nav-list {
    gap: 1.2rem;
    font-size: 0.8rem;
  }
  .category-dropdown {
    min-width: 140px;
    font-size: 0.76rem;
  }
}
/* --- END CATEGORY NAVIGATION DROPDOWN --- */

/* --- NAVIGATION + SEARCH ROW --- */
.nav-search-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto 0.5rem auto !important;
  padding: 0 2rem !important;
}

.category-nav {
  display: flex;
  align-items: center;
  background: none;
  font-family: var(--primaryFontFamily);
  font-size: 0.88rem;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
}

.category-nav-list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-form {
  margin-left: auto;
}

.search-input {
  font-size: 1.1rem;
  padding: 0.4rem 1rem;
  border-radius: 7px;
  border: 1px solid #ccc;
  outline: none;
  min-width: 180px;
}

.breadcrumb-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
}

/* --- MOBILE HAMBURGER MENU --- */
.category-nav-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Desktop navigation - hidden on mobile */
@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
}

/* Hamburger button */
.hamburger-menu-btn {
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}

.mobile-nav-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primaryFontColor);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondaryFontColor);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close:hover {
  color: var(--primaryFontColor);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--primaryFontColor);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.mobile-nav-link:hover {
  background-color: var(--grayBackgroundColor);
  color: var(--primaryFontColor);
}

.mobile-subnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
}

.mobile-subnav-item {
  border-bottom: 1px solid #e9ecef;
}

.mobile-subnav-link {
  display: block;
  padding: 0.75rem 2rem;
  color: var(--secondaryFontColor);
  text-decoration: none;
  font-size: 0.76rem;
  transition: background-color 0.2s;
}

.mobile-subnav-link:hover {
  background-color: #e9ecef;
  color: var(--primaryFontColor);
}

/* Mobile navigation - hide desktop nav and show hamburger */
@media (max-width: 768px) {
  .breadcrumb-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.75rem 1rem;
    gap: 0.5rem;
  }
  .category-nav {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw; /* Full width */
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 16px rgba(0,0,0,0.12);
    z-index: 9999;
    flex-direction: column;
    padding-top: 3.5rem;
    padding-left: 0;
    padding-right: 0;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    /* Force new stacking context for iOS Safari */
    transform: translateZ(0);
    will-change: transform;
    /* Additional iOS Safari fixes */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .category-nav.open {
    left: 0 !important;
    display: flex !important;
    background: #fff !important;
    z-index: 9999 !important;
  }
  .category-nav-list {
    flex-direction: column;
    gap: 0;
  }
  .category-nav-item {
    margin: 0;
  }
  .category-nav-link {
    padding: 0.75rem 1.5rem;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    color: var(--primaryFontColor);
    font-weight: 600;
    cursor: pointer;
  }
  .category-dropdown {
    position: static;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: #fff;
    display: none;
  }
  .category-nav-item.open > .category-dropdown {
    display: block;
  }
  .category-dropdown-item {
    margin: 0;
  }
  .category-dropdown-link {
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
    color: var(--primaryFontColor);
    cursor: pointer;
  }
  .breadcrumb-search {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    padding-right: 1rem;
  }
  .breadcrumb-search .search-input {
    width: 100%;
    max-width: 220px;
    box-sizing: border-box;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 769px) {
  .hamburger-menu-btn {
    display: none !important;
  }
  .category-nav {
    position: static !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    background: none !important;
  }
}


.categories-container {
  overflow: visible !important;
}

/* Mobile menu close button */
@media (max-width: 768px) {
  .mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primaryFontColor);
    padding: 0.5rem;
    z-index: 10000;
  }
  .category-nav.open {
    left: 0 !important;
    display: flex !important;
    background: #fff !important;
    z-index: 9999 !important;
  }
}

@media (min-width: 769px) {
  .mobile-menu-close {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .category-dropdown {
    background: #fff;
  }
  .category-dropdown-link,
  .category-nav-link {
    background: #fff !important;
  }
  .category-dropdown-link:hover,
  .category-nav-link:hover {
    background: #fff !important;
    color: var(--primaryFontColor) !important;
  }
}

@media (max-width: 768px) {
  body, .categories-container {
    overflow-x: hidden !important;
  }
  .categories-container,
  .categories-grid {
    width: 100% !important;
  }
  .breadcrumb-search {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    padding-right: 1rem !important;
  }
  
  /* iOS Safari fix: ensure mobile menu appears above everything */
  .category-nav.open {
    transform: translateZ(0);
  }
  
  /* Mobile menu styling - solid white background */
  .category-nav.open {
    background: #fff !important;
    border: none !important;
  }
  
  /* Header styling - normal appearance */
  header {
    background: #fff !important;
    border: none !important;
    z-index: 1 !important;
  }
  
  /* Force mobile menu to be above everything */
  .category-nav.open {
    z-index: 2147483647 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    /* iOS Safari specific fixes */
    -webkit-transform: translate3d(0, 0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-perspective: 1000 !important;
    perspective: 1000 !important;
  }
  
  /* When mobile menu is direct child of body, ensure it's above everything */
  body > .category-nav.open {
    z-index: 2147483647 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
  }
}

@media (max-width: 768px) {
  /* Categories page: add right padding to search bar */
  .categories-container .breadcrumb-search {
    padding-right: 1.5rem !important;
  }
  /* Product clusters list page: hamburger left, search right */
  .breadcrumb-row {
    justify-content: space-between !important;
    gap: 0.5rem !important;
  }
  .breadcrumb-row .hamburger-menu-btn {
    margin-left: 0 !important;
  }
  .breadcrumb-row .breadcrumb-search {
    margin-right: 0 !important;
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .categories-container,
  .categories-grid {
    width: 100% !important;
  }
  .categories-container .breadcrumb-search,
  .breadcrumb-row .breadcrumb-search {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 1.5rem !important;
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
  }
  .breadcrumb-row {
    justify-content: space-between !important;
    gap: 0.5rem !important;
  }
  .breadcrumb-row .hamburger-menu-btn {
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  .breadcrumb {
    padding-right: 1.5rem !important;
    padding-left: 1rem !important;
  }
}

@media (max-width: 768px) {
  .breadcrumb-search .search-input {
    padding-right: 1.5rem !important;
    padding-left: 1rem !important;
  }
}

/* Bottom Links Styles */
.bottom-links {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--lightBorderColor);
  display: flex;
  justify-content: center;
  align-items: center;
}

.bottom-links-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 600px;
}

.bottom-link {
  color: var(--secondaryFontColor);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.bottom-link:hover {
  color: var(--primaryFontColor);
  text-decoration: underline;
}

.bottom-copyright {
  color: var(--secondaryFontColor);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .bottom-links {
    padding: 1.5rem 1rem;
    margin-top: 2rem;
  }
  
  .bottom-links-content {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  width: 600px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--lightBorderColor);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primaryFontColor);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--secondaryFontColor);
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background-color: var(--grayBackgroundColor);
  color: var(--primaryFontColor);
}

.modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-body .terms-section {
  margin-bottom: 2rem;
}

.modal-body .terms-section h3 {
  color: var(--primaryFontColor);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--lightBorderColor);
  padding-bottom: 0.5rem;
}

.modal-body .terms-section p {
  color: var(--secondaryFontColor);
  line-height: 1.6;
  font-size: 0.9rem;
  text-align: justify;
  margin: 0;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--lightBorderColor);
  text-align: center;
}

.modal-footer button {
  min-width: 100px;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95%;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-header h2 {
    font-size: 1.25rem;
  }
  
  .modal-body {
    padding: 1.5rem;
    max-height: 50vh;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem;
  }
}
