/**
 * Soukara — Header chrome.
 *
 * Layout for the announcement bar, sticky navbar, and the mobile-nav drawer.
 * Visual tokens (colours, radii, fonts) come from tokens.css; interactive
 * states and the .sx-* utility classes live in storefront.css. This file only
 * carries the header-specific structural layout ported from the design handoff
 * (Soukara Store.dc.html, lines 70–129) so the markup stays free of large
 * inline style attributes.
 *
 * Depends on: soukara-tokens, soukara-storefront.
 */

/* ==========================================================
   Page shell
   ========================================================== */

/* Outer wrapper opened in header.php, closed in footer.php. Background, font,
   colour, and smoothing are inherited from <body> (storefront.css). */
.soukara-page { min-height: 100vh; }

/* ==========================================================
   Announcement bar
   ========================================================== */

.soukara-announce {
  background: var(--slate-900);
  color: var(--sand-100);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
  font-weight: 600;
}

/* ==========================================================
   Sticky navbar
   ========================================================== */

.soukara-header {
  background: rgba(251, 248, 243, .9);
  border-bottom: 1px solid var(--color-border);
}

/* Sticky variant — toggled by the Customizer "sticky header" control. */
.soukara-header.is-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  /* Blur radius is injected inline from the Customizer (soukara_header_blur). */
}

.soukara-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  height: 74px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(330px, 1fr);
  align-items: center;
  gap: 34px;
}

/* Hamburger (visible < 980px via .sx-show in storefront.css). */
.soukara-navtoggle {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--slate-800);
  margin-left: -6px;
}

.soukara-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-self: start;
  flex: 0 0 auto;
}

.soukara-logo img,
.soukara-logo .custom-logo {
  height: 30px;
  width: auto;
  display: block;
}

.soukara-navwrap {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
}

/* Primary nav (hidden < 980px via .sx-hide on .soukara-navwrap). */
.soukara-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--warm-700);
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.soukara-nav--categories {
  gap: 15px;
  padding-left: 22px;
  border-left: 1px solid var(--color-border);
}

.soukara-nav li { margin: 0; }

.soukara-nav .sx-nav {
  color: var(--warm-700);
}

/* Highlight a "Sale" item if one is present in the menu. */
.soukara-nav .soukara-nav--sale > .sx-nav { color: var(--clay-600); }

.soukara-header__spacer { display: none; }

.soukara-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-self: end;
  margin-left: 8px;
}

/* Home maison-card logo override lives here so it can ship with the smaller
   global stylesheet and outrank the base home.css card sizing. */
.sx-maisons .sx-maison__logo {
  height: 58px;
  margin-bottom: 18px;
}

.sx-maisons .sx-maison__logoimg {
  height: 54px;
  max-width: 220px;
}

/* Search form — shared base (searchform.php via get_search_form()). */
.soukara-search {
  position: relative;
  display: flex;
  align-items: center;
}

.soukara-search__icon {
  position: absolute;
  left: 13px;
  pointer-events: none;
}

.soukara-search__input {
  border: 1px solid var(--color-border-strong);
  background: var(--white);
  border-radius: 999px;
  height: 40px;
  padding: 0 16px 0 37px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-strong);
}

/* Desktop pill — 206px width inside the navbar actions wrapper. */
.soukara-nav__search .soukara-search__input { width: 206px; }

/* Icon buttons (account / wishlist / cart). */
.soukara-iconbtn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--slate-800);
}

.soukara-badge {
  position: absolute;
  top: 4px;
  right: 3px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--font-mono);
}

.soukara-badge--wishlist { background: var(--clay-500); }
.soukara-badge--cart { background: var(--slate-800); right: 2px; }

/* ==========================================================
   Mobile-nav drawer
   ========================================================== */

.soukara-mobilenav { display: none; }
.soukara-mobilenav.is-open { display: block; }

.soukara-mobilenav__scrim {
  position: fixed;
  inset: 0;
  background: rgba(27, 31, 48, .42);
  backdrop-filter: blur(2px);
  z-index: 62;
}

.soukara-mobilenav__panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 86vw;
  background: var(--cream);
  z-index: 63;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.soukara-mobilenav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--color-border);
}

.soukara-mobilenav__top img { height: 26px; }

.soukara-mobilenav__close {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-700);
}

.soukara-mobilenav__search {
  padding: 18px 22px;
  border-bottom: 1px solid var(--color-border);
}

/* Mobile search — get_search_form() renders .soukara-search directly inside the wrapper. */
.soukara-mobilenav__search .soukara-search { position: relative; display: flex; align-items: center; }
.soukara-mobilenav__search .soukara-search__icon { left: 14px; }

.soukara-mobilenav__search .soukara-search__input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 40px;
  font-size: 14px;
}

.soukara-mobilenav__menu {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  gap: 2px;
  list-style: none;
  margin: 0;
}

.soukara-mobilenav__menu li { margin: 0; }

.soukara-mobilenav__menu a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 8px;
  display: block;
}

/* First item ("Shop all") reads slightly stronger, per handoff. */
.soukara-mobilenav__menu li:first-child a {
  color: var(--text-strong);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 14px;
}

.soukara-mobilenav__foot {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.soukara-mobilenav__foot a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 8px;
  display: block;
}
