/* ================================================================
   AANRA HEADER — Clean Implementation
   ================================================================ */

/* Announcement Banner */
.aanra-announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--brand-ivory);
  color: var(--brand-dark);
  text-align: center;
  padding: 7px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid rgba(var(--brand-gold-rgb), 0.3);
  box-shadow: none;
  margin: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1;
}

.aanra-header {
  position: fixed;
  top: var(--announcement-height);
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--brand-ivory);
  border-bottom: 1px solid rgba(var(--brand-gold-rgb), 0.25);
}

.aanra-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 12px;
  max-width: var(--max-content-width);
  margin: 0 auto;
}

/* Left Column */
.aanra-header__col-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: auto;
}

/* Center Column */
.aanra-header__col-center {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  padding: 0 12px;
  gap: 16px;
}

/* Right Column */
.aanra-header__col-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  min-width: 120px;
  justify-content: flex-end;
}

/* Logo Styles */
.aanra-logo {
  display: block;
  text-decoration: none;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brand-dark);
  line-height: 1;
}

.aanra-logo--desktop {
  font-size: 24px;
  display: none;
}

.aanra-logo--mobile {
  font-size: 34px;
  display: block;
}

.aanra-logo__img {
  display: block;
}

.aanra-logo__text {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brand-dark);
}

/* Hamburger Button */
.aanra-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  color: var(--brand-dark);
  width: 48px;
  height: 48px;
  padding: 8px;
}

.aanra-hamburger svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.aanra-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  color: var(--brand-dark);
  padding: 0;
  position: relative;
  width: 20px;
  height: 20px;
  -webkit-appearance: none;
  appearance: none;
}

/* Navigation */
.aanra-nav {
  display: none;
}

.aanra-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.aanra-nav a {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-dark);
  text-decoration: none;
  transition: opacity 0.2s;
}

.aanra-nav a:hover {
  opacity: 0.7;
}

/* Search Bar - Mobile Only */
.aanra-search-bar {
  position: fixed;
  top: calc(var(--announcement-height) + var(--header-height-mobile));
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--brand-ivory);
  border-bottom: 1px solid rgba(var(--brand-gold-rgb), 0.2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.aanra-search-bar.is-open {
  max-height: 56px;
}

.aanra-search-bar__form {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(var(--brand-gold-rgb), 0.3);
  border-radius: 0;
  margin: 0 20px;
  padding: 0 4px;
  height: 48px;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.aanra-search-bar__form:focus-within {
  border-color: var(--brand-gold);
}

.aanra-search-bar__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.3px;
  outline: none;
  color: var(--brand-dark);
}

.aanra-search-bar__input::placeholder {
  color: rgba(var(--brand-gold-rgb), 0.5);
  font-style: italic;
}

/* Search Icon */
.aanra-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  width: 20px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.aanra-search-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Header Icons */
.aanra-header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  text-decoration: none;
  position: relative;
  width: 20px;
  height: 20px;
}

.aanra-header__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.aanra-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--brand-gold);
  color: var(--brand-dark);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

/* Desktop Search */
.aanra-search-dropdown {
  display: flex;
  align-items: center;
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  flex-shrink: 0;
}

.aanra-search-dropdown.is-open {
  width: 240px;
  opacity: 1;
}

.aanra-search-dropdown__form {
  display: flex;
  align-items: center;
  width: 240px;
  flex-shrink: 0;
  background: var(--brand-white);
  border: 1px solid rgba(var(--brand-gold-rgb), 0.35);
  border-radius: 6px;
  padding: 0 12px;
  height: 36px;
  gap: 8px;
  transition: border-color 0.2s ease;
}

.aanra-search-dropdown__form:focus-within {
  border-color: rgba(var(--brand-gold-rgb), 0.7);
}

.aanra-search-dropdown__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.5px;
  outline: none;
  color: var(--brand-dark);
}

.aanra-search-dropdown__input::placeholder {
  color: rgba(var(--brand-gold-rgb), 0.45);
}

/* Mobile Drawer */
.aanra-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--brand-ivory);
  border-right: 1px solid var(--brand-gold-border);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}

.aanra-nav-drawer.is-open {
  transform: translateX(0);
}

.aanra-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--brand-dark);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}

.aanra-drawer-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--brand-dark);
  stroke-width: 1.5;
}

.aanra-nav-drawer nav {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
}

.aanra-nav-drawer nav a,
.aanra-nav-drawer nav a:visited,
.aanra-nav-drawer nav a:hover,
.aanra-nav-drawer nav a:active,
.aanra-nav-drawer nav a:focus,
.aanra-nav-drawer nav a.current-page {
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-dark) !important;
  padding: 16px 24px;
  border-bottom: 1px solid var(--brand-gold-border);
  text-decoration: none !important;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  min-height: 48px;
  background: none !important;
  box-shadow: none !important;
}

.aanra-nav-drawer nav a:hover {
  opacity: 0.7;
}

.aanra-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: none;
}

.aanra-drawer-overlay.is-open {
  display: block;
}

body.aanra-drawer-active {
  overflow: hidden;
}

/* Desktop Overrides */
@media (min-width: 768px) {
  .aanra-header {
    top: var(--announcement-height);
  }
  .aanra-header__inner {
    height: 64px;
    padding: 0 40px;
  }
  .aanra-logo--desktop { display: block; }
  .aanra-logo--mobile { display: none; }
  .aanra-nav { display: flex !important; gap: 32px; align-items: center; }
  .aanra-hamburger { display: none; }
  .aanra-header__col-right { gap: 20px; min-width: auto; }
  .aanra-header__col-left { min-width: auto; }
  .aanra-search-bar { display: none !important; }
  .aanra-search-dropdown { display: flex; }
  .aanra-search-icon {
    display: flex;
    cursor: pointer;
  }
  .aanra-wishlist--desktop { display: flex; }
  .aanra-wishlist--mobile { display: none; }
}

@media (max-width: 767px) {
  /* Announcement: shrink so full coupon line fits on one row */
  .aanra-announcement {
    font-size: 9px;
    letter-spacing: 0.3px;
    padding: 7px 8px;
  }
  .aanra-search-icon {
    display: flex !important;
  }
  .aanra-search-dropdown {
    display: none !important;
  }
  .aanra-search-bar {
    display: block;
  }
  .aanra-wishlist--mobile { display: flex; }
  .aanra-wishlist--desktop { display: none; }
  .aanra-header__icon { width: 18px; height: 18px; }
  .aanra-header__icon svg { width: 18px; height: 18px; }

  /* Mobile header: 3 columns — hamburger | logo | [search wishlist cart] */
  .aanra-header__inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
  }
  .aanra-header__col-left {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    min-width: 0 !important;
  }
  .aanra-header__col-left .aanra-hamburger {
    margin-left: -4px;
  }
  .aanra-header__col-center {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0 !important;
  }
  .aanra-header__col-right {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0 !important;
  }
  /* Force all three right-side icons visible on mobile */
  .aanra-header__col-right .aanra-search-icon,
  .aanra-header__col-right .aanra-wishlist--mobile,
  .aanra-header__col-right .aanra-cart-btn {
    display: flex !important;
  }
}
