/* =========================================================
   TOP BAR
========================================================= */
.top-bar {
  background: #f8f9fa;
  font-size: 14px;
  padding: 6px 0;
}

.top-bar .contact-info i {
  color: #0d6efd;
  margin-right: 5px;
}

.top-bar .contact-info a {
  color: #333;
  margin-right: 15px;
}

.top-bar .social-links a {
  color: #333;
  margin-left: 12px;
  transition: 0.3s;
}

.top-bar .social-links a:hover {
  color: #0d6efd;
}

/* =========================================================
   HEADER NAV
========================================================= */
.header-nav {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 1000;
}

/* =========================================================
   MAIN HEADER
========================================================= */
.main-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: #0d6efd;
}

/* =========================================================
   NAV MENU BASE
========================================================= */
.navmenu {
  background: #fff;
}

.navmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 25px;
}

.navmenu > ul > li {
  position: relative;
}

.navmenu a {
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: 0.3s;
}

.navmenu a:hover,
.navmenu .active {
  color: #0d6efd;
}

/* =========================================================
   DROPDOWN MENU
========================================================= */
.navmenu .dropdown ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  padding: 10px 0;
  border-radius: 6px;
  border: 1px solid #eee;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 999;
}

.navmenu .dropdown:hover > ul {
  display: block;
}

.navmenu .dropdown ul li a {
  padding: 10px 15px;
  font-size: 14px;
  display: block;
}

/* =========================================================
   MOBILE NAV TOGGLE
========================================================= */
.mobile-nav-toggle {
  font-size: 28px;
  cursor: pointer;
  display: none;
}

@media (max-width: 1200px) {
  .mobile-nav-toggle {
    display: block;
  }
}

/* =========================================================
   MOBILE NAV MENU
========================================================= */
@media (max-width: 1200px) {
  .navmenu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: #fff;
    padding: 20px;
    transition: 0.4s;
    z-index: 9999;
  }

  .navmenu.active {
    left: 0;
  }

  .navmenu ul {
    display: block;
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    padding-left: 15px;
    box-shadow: none;
    border: none;
  }

  .navmenu .dropdown ul.show {
    display: block;
  }
}

/* =========================================================
   MEGAMENU BASE
========================================================= */
.products-megamenu-1 {
  position: relative;
}

.desktop-megamenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 999;
}

.products-megamenu-1 .desktop-megamenu {
  width: 900px;
  padding: 25px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}

.products-megamenu-1:hover .desktop-megamenu {
  display: block;
}

/* =========================================================
   PRODUCT GRID
========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.products-megamenu-1 .product-grid {
  gap: 18px;
}

.product-card {
  border: 1px solid #eee;
  padding: 15px;
  text-align: center;
  transition: 0.3s;
}

.product-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.product-card h5 {
  margin-top: 8px;
  font-size: 15px;
}

.price {
  font-weight: 600;
  color: #0d6efd;
}

/* =========================================================
   CATEGORY GRID
========================================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* =========================================================
   MOBILE MEGAMENU
========================================================= */
.mobile-megamenu {
  display: none;
}

@media (max-width: 991px) {
  .desktop-megamenu {
    display: none !important;
  }

  .mobile-megamenu {
    display: block;
    padding-left: 15px;
  }

  .mobile-megamenu ul {
    display: none;
  }

  .mobile-megamenu li.dropdown.open > ul {
    display: block;
  }
}

/* =========================================================
   SEARCH FORM
========================================================= */
.search-form .input-group {
  max-width: 450px;
  width: 100%;
}

.search-form input {
  border-radius: 50px 0 0 50px !important;
  padding: 10px 15px;
}

.search-form button {
  border-radius: 0 50px 50px 0 !important;
  background: #0d6efd;
  color: #fff;
  padding: 0 20px;
  border: none;
}

.search-form button:hover {
  background: #0b5ed7;
}

/* MOBILE SEARCH */
#mobileSearch {
  display: none;
}

#mobileSearch.show {
  display: block;
}

@media (max-width: 1200px) {
  .desktop-search-form {
    display: none !important;
  }

  #mobileSearch {
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
  }

  #mobileSearch input {
    width: 100%;
    border-radius: 50px;
    padding: 10px;
  }
}

/* =========================================================
   HEADER ACTION BUTTONS
========================================================= */
.header-actions {
  gap: 15px;
}

.header-action-btn {
  position: relative;
  font-size: 22px;
  color: #333;
  cursor: pointer;
  transition: 0.3s;
}

.header-action-btn:hover {
  color: #0d6efd;
}

.header-action-btn .badge {
  position: absolute;
  top: -4px;
  right: -6px;
  padding: 2px 6px;
  background: #dc3545;
  color: #fff;
  border-radius: 50px;
  font-size: 11px;
}

/* =========================================================
   ACCOUNT DROPDOWN
========================================================= */
.account-dropdown .dropdown-menu {
  width: 250px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.account-dropdown .dropdown-item {
  padding: 8px 10px;
  border-radius: 5px;
}

.account-dropdown .dropdown-item:hover {
  background: #f0f0f0;
}

/* =========================================================
   SHOP MEGAMENU DROPDOWN
========================================================= */
.products-megamenu-1 .dropdown-menu {
  width: 100%;
  padding: 0;
  border: none;
}

.megamenu-content {
  padding: 20px;
}

.megamenu-row {
  display: flex;
  gap: 30px;
}

.megamenu-col h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.image-card img {
  width: 100%;
  border-radius: 6px;
}
