body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  padding-top: 80px;
}

.app-flash-message {
  position: relative;
  z-index: 1100;
  margin: 0;
  padding: 14px 20px;
  text-align: center;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.app-flash-success {
  background: #e6f4ea;
  color: #1f7d3e;
}

.app-flash-error {
  background: #fde8e8;
  color: #7a1d1d;
}

.app-flash-warning {
  background: #fff4e5;
  color: #8a5500;
}

.app-flash-info {
  background: #e8f4fd;
  color: #0d4a87;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 20px 50px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header-icons a{
  text-decoration: none;
  color: #333;
}

.logo-nav-group {
  display: flex;
  align-items: center;
  gap: 50px;
}

.logo img {
  height: 30px;
}

.logo-text {
  display: flex;
  align-items: center;
  margin-left: 50px;
}

.nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav ul li {
  margin: 0 15px;
}

.nav ul li a {
  text-decoration: none;
  color: black;
  font-weight: 400;
  font-size: 0.9em;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-container {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 8px 15px;
  margin-right: 15px;
  min-width: 250px;
}

.search-container input {
  border: none;
  background: transparent;
  outline: none;
  padding: 5px;
  width: 100%;
  font-size: 14px;
}

.search-container i {
  color: #666;
  margin-right: 10px;
}

.header-icons i {
  font-size: 18px;
  margin-left: 15px;
  cursor: pointer;
}

/* Header Button Styles */
.header-btn {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.6px solid #333;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 0.9em;
  font-weight: 500;
}

.header-btn:hover {
  background: #333;
  color: white;
}

.header-btn i {
  margin: 0;
  font-size: 16px;
}

.btn-text {
  display: inline;
}

.mobile-menu-icon {
  display: none;
}

.search-icon-mobile {
  display: none;
}

.header-icons .search-icon-mobile {
  display: none; /* Hidden by default (desktop) */
}

/* Mobile Search Container */
.mobile-search-container {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  padding: 0 5%;
  background: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 999;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.mobile-search-container.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-search-wrapper {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 12px 20px;
  margin: 15px 0;
}

.mobile-search-wrapper i {
  color: #666;
  font-size: 16px;
}

.mobile-search-wrapper .fa-search {
  margin-right: 12px;
}

.mobile-search-wrapper .fa-times {
  margin-left: 12px;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.mobile-search-wrapper .fa-times:hover {
  color: #333;
}

.mobile-search-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  padding: 0;
}

.mobile-menu {
  display: none;
  background: #f9f9f9;
  padding: 10px;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu ul li {
  padding: 10px 0;
}

/* Tablet styles */
@media (max-width: 1024px) {
  .header {
    padding: 20px 30px;
  }
  
  .search-container {
    width: 150px;
  }
  
  .search-container input {
    width: 120px;
  }
  
  .nav ul li {
    margin: 0 10px;
  }

  nav {
    display: none;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  body {
    padding-top: 50px;
  }
  
  .header {
    padding: 20px 30px;
    flex-wrap: wrap;
  }
  
  .desktop-menu {
    display: none;
  }
  
  .mobile-menu-icon {
    display: block;
  }
  
  .search-container {
    display: none;
  }

  /* Tighten spacing between header and the mobile search input */
  .mobile-search-container {
    top: 68px;
  }

  
  .search-icon-mobile {
    display: block !important;
  }
  
  .header-icons {
    gap: 20px;
  }
  
  .header-icons i {
    font-size: 20px;
    margin-left: 10px;
  }
  
  /* Remove border and text on mobile */
  .header-btn {
    border: none;
    padding: 0;
    gap: 0;
  }
  
  .btn-text {
    display: none;
  }
  
  .header-btn:hover {
    background: transparent;
    color: #333;
  }
  
  .mobile-menu {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #adadad;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .mobile-menu.active {
    display: block;
  }
  
  .mobile-menu ul {
    flex-direction: column;
  }
  
  .mobile-menu ul li {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .mobile-menu ul li:last-child {
    border-bottom: none;
  }
  
  .mobile-menu ul li a {
    color: #333;
    font-weight: 900;
  }
}

/* Side Navigation Styles */
.side-nav {
  position: fixed;
  top: 0;
  right: -350px;
  width: 320px;
  height: 100vh;
  background: #ffffff !important;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  z-index: 2000;
  transition: right 0.3s ease;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.side-nav::-webkit-scrollbar {
  width: 8px;
}

.side-nav::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.side-nav::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.side-nav::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.side-nav * {
  color: inherit;
  background: inherit;
}

.side-nav.active {
  right: 0;
}

.side-nav-header {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #f0f0f0;
  background: #ffffff !important;
  position: sticky;
  top: 0;
  z-index: 10;
}

.side-nav-header img {
  height: 28px;
  display: block !important;
}

.close-side-nav {
  font-size: 24px;
  cursor: pointer;
  color: #333 !important;
  transition: color 0.3s ease;
  display: block !important;
}

.close-side-nav:hover {
  color: #f97316 !important;
}

.side-nav-content {
  padding: 0;
  background: #ffffff !important;
  display: block !important;
  padding-bottom: 100px;
}

.side-nav-content nav {
  display: block !important;
}

.side-nav-content ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  background: transparent !important;
}

.side-nav-content > ul > li {
  border-bottom: 1px solid #f0f0f0 !important;
  background: transparent !important;
  display: block !important;
  margin: 0 !important;
}

.side-nav-content > ul > li > a {
  display: flex !important;
  align-items: center;
  gap: 15px;
  padding: 18px 20px !important;
  text-decoration: none !important;
  color: #333 !important;
  font-weight: 500 !important;
  font-size: 0.95em !important;
  transition: all 0.3s ease;
}

.side-nav-content > ul > li > a:hover {
  background: #333 !important;
  color: white !important;
}

.side-nav-content > ul > li > a i {
  width: 20px;
  text-align: center;
  font-size: 1.1em !important;
  color: #333 !important;
  display: inline-block !important;
}

.side-nav-content > ul > li > a:hover i {
  color: white !important;
}

.catalog-section {
  background: #f9f9f9 !important;
  display: block !important;
}

.catalog-header {
  padding: 18px 20px !important;
  font-weight: 700 !important;
  color: #333 !important;
  font-size: 0.95em !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #333;
  background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%) !important;
  display: block !important;
}

.catalog-list {
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  background: #f9f9f9 !important;
  list-style: none !important;
}

.catalog-list .catalog-item {
  border-bottom: 1px solid #e0e0e0 !important;
  display: block !important;
  margin: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

.catalog-list .catalog-item:last-child {
  border-bottom: none !important;
}

.catalog-parent {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px 15px 40px !important;
  text-decoration: none !important;
  color: #555 !important;
  font-size: 0.9em !important;
  font-weight: 500 !important;
  transition: all 0.3s ease;
  position: relative;
  border-left: 5px solid #333;
  cursor: pointer;
}

.dropdown-icon {
  font-size: 0.8em !important;
  transition: transform 0.3s ease;
  color: #555 !important;
}

/* Individual category colors matching product-catalog page */
.catalog-list .catalog-item:nth-child(1) .catalog-parent {
  border-left-color: #262626;
}

.catalog-list .catalog-item:nth-child(2) .catalog-parent {
  border-left-color: #d8d8d8;
}

.catalog-list .catalog-item:nth-child(3) .catalog-parent {
  border-left-color: #4FB7F2;
}

.catalog-list .catalog-item:nth-child(4) .catalog-parent {
  border-left-color: #FFB75E;
}

.catalog-list .catalog-item:nth-child(5) .catalog-parent {
  border-left-color: #1E3C72;
}

.catalog-list .catalog-item:nth-child(6) .catalog-parent {
  border-left-color: #2193B0;
}

.catalog-list .catalog-item:nth-child(7) .catalog-parent {
  border-left-color: #141E30;
}

.catalog-list .catalog-item:nth-child(8) .catalog-parent {
  border-left-color: #ffd96f;
}

.catalog-list .catalog-item:nth-child(9) .catalog-parent {
  border-left-color: #136a8a;
}

.catalog-parent:before {
  content: "•";
  position: absolute;
  left: 25px;
  color: #333 !important;
  font-weight: bold;
  display: inline-block !important;
}

.catalog-parent:hover {
  background: #fff5f0 !important;
  color: #333 !important;
  padding-left: 42px !important;
  border-left-color: #f97316;
}

.catalog-parent:hover:before {
  color: #f97316 !important;
}

/* Dropdown submenu styles */
.catalog-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #ffffff !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.catalog-dropdown li {
  border-bottom: 1px solid #f0f0f0 !important;
  display: block !important;
  margin: 0 !important;
  list-style: none !important;
}

.catalog-dropdown li:last-child {
  border-bottom: none !important;
}

.catalog-dropdown li a {
  display: block !important;
  padding: 12px 20px 12px 60px !important;
  text-decoration: none !important;
  color: #666 !important;
  font-size: 0.85em !important;
  font-weight: 400 !important;
  transition: all 0.3s ease;
  border-left: none !important;
  position: relative;
}

.catalog-dropdown li a:before {
  content: "›" !important;
  position: absolute;
  left: 45px;
  color: #999 !important;
  font-weight: normal !important;
  font-size: 1.2em !important;
}

.catalog-dropdown li a:hover {
  background: #f5f5f5 !important;
  color: #f97316 !important;
  padding-left: 65px !important;
  border-left: none !important;
}

.catalog-dropdown li a:hover:before {
  color: #f97316 !important;
}
  /* padding: 14px 20px 14px 40px;
  text-decoration: none;
  color: #555;
  font-size: 0.9em;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
} */

.catalog-list li a:before {
  content: "•";
  position: absolute;
  left: 25px;
  color: #f97316;
  font-weight: bold;
}

.catalog-list li a:hover {
  background: #f97316;
  color: white;
  padding-left: 45px;
}

.catalog-list li a:hover:before {
  color: white;
}

.side-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(5px);
}

.side-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hide side nav on desktop */
@media (min-width: 769px) {
  .side-nav,
  .side-nav-overlay {
    display: none;
  }

  /* Force-hide mobile menu icon on desktop */
  .mobile-menu-icon {
    display: none !important;
  }
}

/* Small mobile styles */
@media (max-width: 480px) {
  body {
    padding-top: 60px;
  }
  
  .header {
    padding: 20px 30px;
  }
  
  .logo img {
    height: 25px;
  }
  
  .header-icons {
    gap: 20px;
  }
  
  .header-icons i {
    font-size: 18px;
    margin-left: 5px;
  }
  
}
