/* ============================================================
   Header Styles
   Extracted from product-page/css/style.css
   ============================================================ */

/* Header Base Styles */
header {
  background-color: #fff;
  padding: 20px 50px;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #1a1a1a;
}
header *,
.category-container *,
.mobile-menu-container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
header a,
.category-container a {
  text-decoration: none;
  color: inherit;
}

/* Navigation. #792: scoped to the header's own NAVs. Unscoped, these rules also hit the
   product page's breadcrumb and tab NAVs (v13) and spread their items apart. */
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header nav .right-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Roof (Logo area) */
.roof {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 30px;
}

/* Category Navigation Dropdown */
.category-nav {
  font-size: 16px;
  font-weight: 500;
  position: relative;
  cursor: pointer;
  margin-right: 20px;
}
.category-nav::after {
  content: "";
  position: absolute;
  right: -15px;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  width: 8px;
  height: 8px;
  top: calc(50% - 1px);
  transform: translate(50%, -50%) rotate(135deg);
}
.category-nav.active::after {
  top: calc(50% + 3px);
  transform: translate(50%, -50%) rotate(-45deg);
}

/* Mobile Header */
.mobile-header {
  margin-top: 20px;
  display: none;
}

.seperated-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
  background-color: #dfdfdf;
  width: 36px;
  height: 36px;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.menu-toggle svg {
  width: 16px;
  height: 16px;
}

/* Mobile Menu Container */
.mobile-menu-container {
  background-color: #fff;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Menu Links */
.menu-links {
  display: flex;
  flex-direction: column;
  margin-bottom: 70px;
  margin-top: 30px;
}
.menu-links a {
  font-size: 28px;
  font-weight: 600;
}

/* Menu Sub Links */
.menu-sub-links {
  margin-bottom: 70px;
}
.menu-sub-links a {
  display: block;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  margin-bottom: 10px;
}
.menu-sub-links a:hover, .menu-links a:hover {
  text-decoration: underline;
}

/* Login Button */
.login-button {
  width: calc(100% - 40px);
  background-color: #b6ff64;
  color: black;
  font-size: 18px;
  font-weight: 500;
  padding: 10px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  margin-bottom: 20px;
  font-family: 'Inter', -apple-system, sans-serif;
  text-align: center;
  position: absolute;
  bottom: 30px;
}

/* ============================================================
   Category Menu Styles
   ============================================================ */

.category-container {
  display: flex;
  max-width: 100%;
  background-color: #f5f5f8;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #1a1a1a;
}

.main-category-menu {
  width: 300px;
  background-color: #f5f5f8;
  box-shadow: inset -1px 0 0 #ddd;
}

.main-category-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.main-category-item:hover,
.main-category-item.active {
  background-color: white;
  font-weight: 600;
}

.sub-categories-menu {
  flex-grow: 1;
  padding: 40px;
}

.main-category-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
}

.sub-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
}

.sub-category-item {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s;
}

.sub-category-item:hover {
  transform: translateY(-2px);
}

.sub-category-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  cursor: pointer;
}

.sub-category-title:hover {
  text-decoration: underline;
}

.level-3-categories {
  display: flex;
  flex-direction: column;
}

.level-3-categories a {
  display: block;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  margin-bottom: 6px;
}

.level-3-categories a:hover {
  text-decoration: underline;
}

.level-3-categories p {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.level-3-categories p:hover {
  text-decoration: underline;
}

.show-more {
  font-weight: bold;
  color: #1a1a1a;
}

.category-vertical-divider {
  width: 1px;
  background-color: #e0e0e0;
  margin-right: 32px;
}

/* ============================================================
   Header Responsive Styles
   ============================================================ */

@media only screen and (max-width: 992px) {
  header {
    padding: 20px;
  }
  .desktop-header {
    display: none;
  }
  .mobile-header {
    display: flex;
  }
  header nav {
    align-items: end;
  }
}

@media only screen and (max-width: 767px) {
  /* Mobile Category Menu Styles */
  .main-category-title {
    font-size: 24px;
    margin: 20px 15px 20px 30px;
  }
  .main-category-menu {
    box-shadow: none;
  }
  .main-category-item {
    background-color: #fff;
    font-weight: 700;
  }
  .main-category-item:last-child {
    margin-bottom: 100px;
    padding-bottom: 20px;
  }
  .mobile-menu-container {
    padding: 30px 20px;
    background-color: #f5f5f8;
    position: relative;
  }
  .mobile.category-container {
    width: 100%;
    box-shadow: none;
  }
  .mobile .sub-categories-menu {
    position: absolute;
    top: 0;
    left: 0;
    height: max-content;
    min-height: 100vh;
    width: 100%;
    background-color: white;
    padding: 0;
  }
  .categories-back-nav {
    display: flex;
    align-items: center;
    padding: 20px 15px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #e5e5e5;
  }
  .categories-back-nav::before {
    content: '←';
    margin-right: 10px;
  }
  .sub-category-title {
    margin: 0;
  }
  .sub-category-list {
    display: flex;
    flex-direction: column;
    margin: 0 0 20px 50px;
  }
  .sub-category-list:last-child {
    margin-bottom: 100px;
  }
}
