/* ===== BRAHMRAS CUSTOM HEADER ===== */

/* New Announcement Bar (vv-announce-bar) */
.vv-announce-bar {
  background: #175c3b;
  width: 100%;
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}
.vv-announce-inner {
  display: flex;
  align-items: center;
  width: max-content;
  animation: vvScroll 40s linear infinite;
}
.vv-announce-bar:hover .vv-announce-inner {
  animation-play-state: paused;
}
.vv-announce-item {
  display: inline-block;
  padding: 0 24px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.3px;
  line-height: 38px;
}
.vv-announce-item a {
  color: #fff;
  text-decoration: none;
  line-height: 38px;
}
.vv-announce-dot {
  display: inline-block;
  color: rgba(255,255,255,0.45);
  font-size: 7px;
  line-height: 38px;
}
@keyframes vvScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Old Announcement Bar (kept for reference) */
.bh-announce {
  background-color: #175c3b;
  overflow: hidden;
  padding: 0;
  height: 36px;
  display: flex;
  align-items: center;
  width: 100%;
}
.bh-announce:hover .bh-announce-track {
  animation-play-state: paused;
}
.bh-announce-track {
  display: flex;
  width: max-content;
  animation: bh-scroll 40s linear infinite;
}
.bh-announce-group {
  display: flex;
  gap: 60px;
  padding-right: 60px;
  flex-shrink: 0;
}
.bh-announce-group span {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
@keyframes bh-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Header Wrapper */
.bh-header {
  background-color: #ebe2d1;
  border-bottom: 1px solid #d9ccb8;
  position: sticky;
  top: 0;
  z-index: 9999;
  transition: box-shadow 0.3s;
}
.bh-header.scrolled {
  box-shadow: 0 2px 12px rgba(23,92,59,0.10);
}
.bh-header .bh-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 80px;
}

/* Logo */
.bh-logo a {
  display: block;
  line-height: 0;
}
.bh-logo img {
  width: 160px;
  height: auto;
}

/* Desktop Nav */
.bh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.bh-nav > li {
  list-style: none;
  position: relative;
}
.bh-nav > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #175c3b;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s;
  white-space: nowrap;
}
.bh-nav > li > a:hover,
.bh-nav > li.active > a {
  color: #9fbc00;
}
.bh-nav > li > a svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.bh-nav > li:hover > a svg {
  transform: rotate(180deg);
}

/* Dropdown */
.bh-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f7f0e1;
  border-top: 2px solid #9fbc00;
  border-radius: 0 0 6px 6px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(23,92,59,0.12);
  z-index: 100;
  padding: 8px 0;
}
.bh-nav > li:hover .bh-dropdown {
  display: block;
}
.bh-dropdown li {
  list-style: none;
}
.bh-dropdown li a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #175c3b;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.bh-dropdown li a:hover {
  color: #9fbc00;
  background-color: #ebe2d1;
}

/* Right Icons */
.bh-icons {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.bh-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #175c3b;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  position: relative;
  text-decoration: none;
}
.bh-icon-btn:hover {
  background-color: rgba(23,92,59,0.08);
  color: #9fbc00;
}
.bh-icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Cart badge */
.bh-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #175c3b;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.bh-cart-badge.hidden { display: none; }

/* Search Overlay */
.bh-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99998;
}
.bh-search-overlay.open { display: block; }
.bh-search-box {
  position: fixed;
  top: 0;
  right: 0;
  width: 330px;
  max-width: 100vw;
  height: 100vh;
  background: #f7f0e1;
  z-index: 99999;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.bh-search-box.open { transform: translateX(0); }
.bh-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #175c3b;
}
.bh-search-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #175c3b;
}
.bh-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #175c3b;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.bh-close-btn:hover { background: rgba(23,92,59,0.1); }
.bh-close-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.bh-search-body { padding: 24px 20px; flex: 1; }
.bh-search-form {
  position: relative;
}
.bh-search-form input {
  width: 100%;
  padding: 12px 50px 12px 14px;
  border: 1px solid #175c3b;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: #175c3b;
  outline: none;
}
.bh-search-form button {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48px;
  background: #175c3b;
  border: none;
  border-radius: 0 4px 4px 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.bh-search-form button:hover { background: #9fbc00; }
.bh-search-form button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.bh-search-footer {
  border-top: 1px solid #d9ccb8;
  padding: 20px 20px 32px 20px;
  flex-shrink: 0;
  background: #f7f0e1;
}
.bh-search-footer a {
  display: block;
  text-align: center;
  padding: 11px;
  background: #175c3b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.bh-search-footer a:hover { background: #9fbc00; }

/* Mobile Hamburger */
.bh-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #175c3b;
  padding: 4px;
}
.bh-hamburger svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Mobile Drawer */
.bh-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99998;
}
.bh-mobile-overlay.open { display: block; }
.bh-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 100vw;
  height: 100vh;
  background: #f7f0e1;
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.bh-mobile-drawer.open { transform: translateX(0); }
.bh-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #d9ccb8;
}
.bh-mobile-header span {
  font-size: 16px;
  font-weight: 600;
  color: #175c3b;
}
.bh-mobile-nav {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}
.bh-mobile-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #175c3b;
  text-decoration: none;
  border-bottom: 1px solid #e8dfc9;
  transition: color 0.2s;
}
.bh-mobile-nav li a:hover { color: #9fbc00; }
.bh-mobile-nav li a svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.bh-mobile-sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #ebe2d1;
}
.bh-mobile-sub.open { display: block; }
.bh-mobile-sub li a {
  padding: 10px 20px 10px 32px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #ddd4bf;
}

/* ===== CART SIDEBAR ===== */
.bh-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99998;
}
.bh-cart-overlay.open { display: block; }

.bh-cart-sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 330px;
  max-width: 100vw;
  background: #f7f0e1;
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.bh-cart-sidebar.open { transform: translateX(0); }

.bh-cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #175c3b;
  flex-shrink: 0;
}
.bh-cart-sidebar-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #175c3b;
}

.bh-cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Empty state */
.bh-cart-empty {
  text-align: center;
  padding: 50px 20px;
}
.bh-cart-empty p {
  font-size: 16px;
  color: #175c3b;
  margin-bottom: 20px;
  font-weight: 500;
}
.bh-cart-empty a {
  display: inline-block;
  padding: 11px 28px;
  background: #175c3b;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.bh-cart-empty a:hover { background: #9fbc00; }

/* Cart Items */
.bh-cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #ddd4bf;
}
.bh-cart-item:last-child { border-bottom: none; }
.bh-cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ebe2d1;
}
.bh-cart-item-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.bh-cart-item-info { flex: 1; min-width: 0; }
.bh-cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #175c3b;
  margin-bottom: 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bh-cart-item-price {
  font-size: 13px;
  color: #175c3b;
  font-weight: 500;
  margin-bottom: 8px;
}
.bh-cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bh-cart-item-qty span {
  font-size: 13px;
  color: #555;
}
.bh-cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  transition: color 0.2s;
}
.bh-cart-item-remove:hover { color: #e74c3c; }

/* Cart Footer */
.bh-cart-sidebar-footer {
  border-top: 1px solid #d9ccb8;
  padding: 20px;
  flex-shrink: 0;
  background: #f7f0e1;
}
.bh-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.bh-cart-subtotal span:first-child {
  font-size: 15px;
  font-weight: 600;
  color: #175c3b;
}
.bh-cart-subtotal span:last-child {
  font-size: 16px;
  font-weight: 700;
  color: #175c3b;
}
.bh-cart-view-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: #175c3b;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.bh-cart-view-btn:hover { background: #9fbc00; color: #fff !important; }

/* Responsive */
@media (max-width: 991px) {
  .bh-nav { display: none; }
  .bh-hamburger { display: flex; }
  .bh-header .bh-container { height: 64px; }
  .bh-logo img { width: 120px; }
  .bh-icons {
    gap: 0px;
  }
  .bh-icon-btn {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 575px) {
  .bh-logo img { width: 100px; }
  .bh-search-box { width: 100vw; }
}

/* Profile Dropdown styling */
.bh-profile-dropdown {
  position: relative;
  display: inline-block;
}
.bh-profile-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #f7f0e1;
  border-top: 2px solid #9fbc00;
  border-radius: 0 0 6px 6px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(23,92,59,0.12);
  z-index: 1000;
  padding: 12px 0;
}
.bh-profile-dropdown:hover .bh-profile-dropdown-content {
  display: block;
}
.bh-profile-dropdown-content a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #175c3b !important;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  text-align: left;
}
.bh-profile-dropdown-content a:hover {
  color: #9fbc00 !important;
  background-color: #ebe2d1;
}
.bh-profile-user-info {
  padding: 4px 20px 10px 20px;
  border-bottom: 1px solid #ddd4bf;
  margin-bottom: 8px;
  text-align: left;
}
.bh-profile-welcome {
  font-size: 14px;
  font-weight: 700;
  color: #175c3b;
  margin: 0;
}

