/* ==========================================================================
   MyAayurveda Exact Custom Header Styles (Pixel-Perfect Reference Match)
   ========================================================================== */

.myaayurveda-custom-header {
  width: 100%;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2937;
  line-height: 1.4;
  box-sizing: border-box;
}

.myaayurveda-custom-header *,
.myaayurveda-custom-header *::before,
.myaayurveda-custom-header *::after {
  box-sizing: border-box;
}

/* Common Container Width - Aligns Left and Right Edges Across All 3 Rows */
.mya-header-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. TOP ANNOUNCEMENT BAR
   ========================================================================== */
.mya-top-bar {
  background-color: #0b2e1e;
  color: #e5e7eb;
  font-size: 12px;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 3px 0;
}

.mya-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.mya-top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mya-trustpilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #00b67a;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.mya-tp-star {
  font-size: 11px;
  line-height: 1;
}

.mya-tp-rating {
  color: #ffffff;
  font-weight: 500;
  font-size: 12px;
}

.mya-dot-sep {
  color: #3b6b54;
  font-size: 13px;
  margin: 0 4px;
}

.mya-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f59e0b;
  font-size: 12px;
}

.mya-icon-check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.mya-free-delivery {
  color: #f3f4f6;
  font-size: 12px;
}

.mya-top-bar-right {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

/* ==========================================================================
   2. MAIN HEADER (Logo, Search Bar, Action Items)
   ========================================================================== */
.mya-main-header {
  background: #ffffff;
  padding: 12px 0;
}

.mya-main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

/* Logo Area */
.mya-logo-area {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.mya-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mya-header-logo {
  height: 68px;
  max-height: 72px;
  width: auto;
  max-width: 253px;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

/* Pill Search Bar */
.mya-search-area {
  flex: 1 1 540px;
  max-width: 580px;
  margin: 0 16px;
}

.mya-search-form {
  display: flex;
  align-items: center;
  background: #f4f5f6;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 3px 4px 3px 16px;
  height: 44px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.mya-search-form:focus-within {
  background: #ffffff;
  border-color: #0b2e1e;
  box-shadow: 0 0 0 3px rgba(11, 46, 30, 0.08);
}

.mya-search-icon {
  display: flex;
  align-items: center;
  color: #9ca3af;
  margin-right: 10px;
  flex-shrink: 0;
}

.mya-search-icon svg {
  width: 17px;
  height: 17px;
}

.mya-search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 14px;
  color: #1f2937;
  padding: 0 !important;
  margin: 0 !important;
  font-family: inherit;
  height: 100%;
}

.mya-search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.mya-search-button {
  background: #173d2b;
  color: #ffffff !important;
  border: none;
  outline: none;
  border-radius: 9999px;
  padding: 0 22px;
  height: 36px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mya-search-button:hover,
.mya-search-button:focus {
  background: #0d281a;
  color: #ffffff;
}

/* Actions: User, Wishlist, Cart */
.mya-actions-area {
  display: flex !important;
  align-items: center !important;
  gap: 36px !important;
  flex: 0 0 auto !important;
  margin-left: 20px !important;
}

.mya-action-item {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  color: inherit !important;
  gap: 12px !important;
  transition: opacity 0.2s ease !important;
  position: relative !important;
}

.mya-action-item:hover {
  opacity: 0.85;
}

.mya-wishlist-item {
  padding: 4px 6px !important;
}

.mya-action-icon {
  display: flex !important;
  align-items: center !important;
  color: #374151 !important;
}

.mya-action-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.mya-action-icon-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #374151 !important;
}

.mya-action-icon-wrap svg {
  width: 23px;
  height: 23px;
  display: block;
}

.mya-action-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}

.mya-label {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.2;
  text-transform: capitalize;
  font-weight: 400;
}

.mya-value {
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
  white-space: nowrap;
}

/* Badges */
.mya-badge {
  position: absolute;
  width: 17px;
  height: 17px;
  padding: 0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #ffffff;
  box-sizing: content-box;
}

/* Wishlist badge sits on top-right of the heart */
.mya-badge-green {
  top: -6px;
  right: -7px;
  background-color: #173d2b;
}

/* Cart badge sits on top-left of the shopping bag (matching reference image) */
.mya-badge-amber {
  top: -6px;
  left: -8px;
  background-color: #d97706;
}

.mya-cart-total {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

/* ==========================================================================
   3. BOTTOM NAVIGATION BAR
   ========================================================================== */
.mya-bottom-nav {
  background: #ffffff;
  border-top: 1px solid #edf0f2;
  border-bottom: 1px solid #edf0f2;
}

.mya-bottom-nav-inner {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mya-bottom-nav-inner::-webkit-scrollbar {
  display: none;
}

.mya-bottom-nav .mya-nav-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  white-space: nowrap !important;
  width: 100% !important;
}

.mya-nav-menu li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.mya-nav-menu li a {
  color: #374151 !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  transition: color 0.15s ease !important;
  display: block !important;
  padding: 12px 0 !important;
}

.mya-nav-menu li a:hover {
  color: #173d2b !important;
}

/* Highlighted Menu Items */
.mya-nav-menu li.menu-item-shop-all a {
  color: #173d2b !important;
  font-weight: 700 !important;
}

.mya-nav-menu li.menu-item-offers a {
  color: #c86518 !important;
  font-weight: 700 !important;
}

.mya-nav-menu li.current-menu-item a {
  color: #173d2b !important;
  font-weight: 600 !important;
}

/* Mobile Toggle - Hidden on Desktop */
.mya-mobile-toggle {
  display: none;
}

.mya-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
}

.mya-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 86%;
  max-width: 330px;
  background: #ffffff;
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

body.mya-drawer-open {
  overflow: hidden;
}

body.mya-drawer-open .mya-drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

body.mya-drawer-open .mya-mobile-drawer {
  transform: translateX(0);
}

/* Drawer Inner Styling */
.mya-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #edf0f2;
}

.mya-drawer-logo {
  height: 48px;
  max-height: 52px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
}

.mya-drawer-close {
  background: #f3f4f6 !important;
  border: none !important;
  cursor: pointer !important;
  color: #111827 !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.mya-drawer-close:hover {
  background: #e5e7eb !important;
  color: #000000 !important;
}

.mya-drawer-close svg,
.mya-drawer-close svg line {
  stroke: #111827 !important;
  color: #111827 !important;
  display: block !important;
}

.mya-drawer-search {
  padding: 14px 18px;
  border-bottom: 1px solid #edf0f2;
}

.mya-drawer-search-form {
  display: flex;
  align-items: center;
  background: #f4f5f6;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 3px 4px 3px 14px;
  height: 42px;
}

.mya-drawer-search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 13.5px;
  color: #1f2937;
  padding: 0 !important;
  margin: 0 !important;
}

.mya-drawer-search-btn {
  background: #173d2b;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0 !important;
}

.mya-drawer-search-btn svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #ffffff !important;
  display: block !important;
}

.mya-drawer-menu-wrap {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

.mya-drawer-menu {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  white-space: normal !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.mya-drawer-menu li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #f1f3f5 !important;
}

.mya-drawer-menu li a {
  display: block !important;
  padding: 13px 22px !important;
  color: #2d3748 !important;
  text-decoration: none !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
  line-height: 1.4 !important;
  background: transparent !important;
}

.mya-drawer-menu li a:hover,
.mya-drawer-menu li.current-menu-item a {
  color: #173d2b !important;
  background-color: #f0fdf4 !important;
  padding-left: 26px !important;
}

.mya-drawer-menu li.menu-item-shop-all a {
  color: #173d2b !important;
  font-weight: 700 !important;
}

.mya-drawer-menu li.menu-item-offers a {
  color: #c86518 !important;
  font-weight: 700 !important;
}

.mya-drawer-account {
  padding: 16px 20px;
  border-top: 1px solid #edf0f2;
  background: #fafafa;
}

.mya-drawer-account-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: inherit !important;
}

.mya-drawer-account-label {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.2;
}

.mya-drawer-account-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
}

/* ==========================================================================
   MOBILE VIEWPORT (Matches User Screenshot Exactly)
   ========================================================================== */
@media (max-width: 991px) {
  /* Hide desktop search area, user block, cart text, and desktop nav bar */
  .mya-search-area {
    display: none !important;
  }
  .mya-account-item {
    display: none !important;
  }
  .mya-cart-text {
    display: none !important;
  }
  .mya-bottom-nav {
    display: none !important;
  }
  .mya-top-bar-right {
    display: none !important;
  }

  .mya-top-bar {
    min-height: 32px;
    font-size: 11px;
  }
  .mya-top-bar-left {
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    width: 100%;
  }

  .mya-header-container {
    padding: 0 16px;
  }

  .mya-main-header {
    padding: 10px 0 !important;
  }

  .mya-main-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: 100% !important;
  }

  /* Compact Logo */
  .mya-logo-area {
    flex: 0 0 auto;
  }

  .mya-header-logo {
    height: 50px;
    max-height: 53px;
    width: auto;
    max-width: 180px;
  }

  /* Right Action Area on Mobile: Wishlist + Cart + Green Hamburger */
  .mya-actions-area {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    flex: 0 0 auto !important;
    margin-left: 0 !important;
  }

  .mya-action-item {
    gap: 0 !important;
    padding: 2px !important;
  }

  .mya-action-icon svg,
  .mya-action-icon-wrap svg {
    width: 22px !important;
    height: 22px !important;
  }

  /* Green Rounded Hamburger Button matching reference */
  .mya-mobile-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    width: 38px !important;
    height: 38px !important;
    background-color: #0b2e1e !important;
    border-radius: 8px !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    transition: background-color 0.2s ease !important;
  }

  .mya-mobile-toggle:hover,
  .mya-mobile-toggle:focus {
    background-color: #061f14 !important;
  }

  .mya-hamburger-bar {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    background-color: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.2s ease !important;
  }
}

