/* ============================================================
   Bharathiya Tiles — shared site header
   (top navbar + side menu + category bar), matching index.html.
   Linked by every page so the header looks the same everywhere.
   ============================================================ */

.top-navbar {
  background: #0f1a26;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
  border-bottom: 2px solid #c49b3f;
  position: relative;
  z-index: 10;
  width: 100%;
}

.top-navbar .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-navbar .logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.top-navbar .logo-text h2 {
  font-size: 35px;
  color: #fff;
  margin: 0;
  background: linear-gradient(135deg, #fff, #f5d742);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-navbar .logo-text span {
  font-size: 0.7rem;
  color: #b0c4d9;
  display: block;
  border-left: 2px solid #c49b3f;
  padding-left: 8px;
}

.top-navbar .nav-center {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.top-navbar .nav-center a {
  color: #f0f4fa;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}

.top-navbar .nav-center a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #f5b81b;
  transition: width 0.25s ease;
}

.top-navbar .nav-center a:hover::after {
  width: 100%;
}

.top-navbar .phone {
  font-size: 1rem;
  background: rgba(255,215,0,0.12);
  padding: 0.4rem 1rem;
  border-radius: 40px;
  border: 1px solid #5f5f6b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ===== CATEGORY BAR ===== */
.category-bar {
  background: #14222e;
  padding: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  border-bottom: 2px solid #3f5568;
  position: relative;
  z-index: 5;
}

.category-link {
  text-decoration: none;
  color: inherit;
}

.category-bar .category,
.mobile-categories .category {
  text-align: center;
  min-width: 100px;
  color: white;
  position: relative;
}

.category-bar .category img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f0e7d6;
  box-shadow: 0 0 0 2px #b48b3a;
  margin-bottom: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.category-bar .category p {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  background: #1f3343b0;
  padding: 0.3rem 0.6rem;
  border-radius: 40px;
  color: #ffffff;
  display: inline-block;
  backdrop-filter: blur(2px);
}

/* Dropdown */
.category-bar .dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #0b1d2a;
  border: 1px solid #d4af37;
  border-radius: 14px;
  padding: 10px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.category-bar .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  transition: all 0.3s;
}

.dropdown-menu a:hover {
  background: #d4af37;
  color: #0b1d2a;
  padding-left: 25px;
}

/* ===== SIDE MENU ===== */
.side-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100%;
  background: #0f1a26;
  padding: 20px;
  transition: 0.4s;
  z-index: 999;
  overflow-y: auto;
}

/* Old pages toggle "open", index.html's script toggles "active" —
   support both so whichever inline script survives on a page still works. */
.side-menu.open,
.side-menu.active {
  left: 0;
}

.side-menu .close-btn {
  text-align: right;
  font-size: 22px;
  color: #fff;
  margin-bottom: 15px;
  cursor: pointer;
}

.mobile-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-categories .category {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: auto;
  text-align: left;
  padding: 5px 0;
}

.mobile-categories .category img {
  margin: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .top-navbar {
    flex-wrap: wrap;
    padding: 15px;
  }
  .top-navbar .nav-center {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .top-navbar .nav-center {
    display: none !important;
  }
  .top-navbar .logo-text h2 {
    font-size: 18px;
  }
  .top-navbar .logo-text span {
    font-size: 11px;
  }
  .category-bar {
    display: none !important;
  }
  .side-menu {
    width: 80%;
    background: #071c2b;
  }
  .mobile-categories {
    margin-top: 30px;
  }
}
