/* =================================================================
   custom-header.css — Styles du header personnalisé
   À placer dans : wp-content/themes/woodmart-child/custom-header.css
   ================================================================= */

/* ── Reset de base ─────────────────────────────────────────────── */
.custom-site-header *,
.custom-site-header *::before,
.custom-site-header *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Wrapper global ────────────────────────────────────────────── */
.custom-site-header {
  background: #ffffff;
  border-bottom: 1px solid #e8e4da;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  width: 100%;
}

/* ── TOP ROW ───────────────────────────────────────────────────── */
.custom-header-main {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 40px;
  background: #ffffff;
}

/* ── LOGO ──────────────────────────────────────────────────────── */
.custom-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.custom-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
.custom-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

/* ── SEARCH ────────────────────────────────────────────────────── */
.custom-search-wrap {
  flex: 1;
}
/* Surcharge du formulaire wp_search_form */
.custom-search-wrap .search-form,
.custom-search-wrap form {
  display: flex;
  align-items: center;
  background: #f5f3ee;
  border: 1.5px solid #e5e1d8;
  border-radius: 40px;
  overflow: hidden;
  transition: border-color 0.2s;
  width: 100%;
}
.custom-search-wrap .search-form:focus-within,
.custom-search-wrap form:focus-within {
  border-color: #f07c2e;
}
.custom-search-wrap input[type="search"],
.custom-search-wrap input[type="text"] {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  color: #444 !important;
  box-shadow: none !important;
}
.custom-search-wrap input::placeholder { color: #bbb; }
.custom-search-wrap button[type="submit"],
.custom-search-wrap input[type="submit"] {
  background: #f07c2e !important;
  border: none !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  margin: 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background 0.2s, transform 0.15s !important;
  color: white !important;
  font-size: 16px !important;
}
.custom-search-wrap button[type="submit"]:hover {
  background: #d96a1c !important;
  transform: scale(1.05) !important;
}

/* ── ACTIONS ───────────────────────────────────────────────────── */
.custom-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.custom-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.custom-action-btn svg {
  width: 22px;
  height: 22px;
  stroke: #333;
  transition: stroke 0.15s;
}
.custom-action-btn:hover svg { stroke: #f07c2e; }
.custom-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  font-size: 11px;
  font-weight: 700;
  color: #f07c2e;
  min-width: 14px;
  text-align: center;
  line-height: 1;
}
.custom-label {
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  transition: color 0.15s;
}
.custom-action-btn:hover .custom-label { color: #f07c2e; }

/* ── NAVIGATION ────────────────────────────────────────────────── */
.custom-header-nav {
  background: #faf9f5;
  border-top: 1px solid #ede9df;
  padding: 0 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.custom-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.custom-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 13px 15px;
  font-size: 12px;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.custom-nav-item:hover {
  color: #f07c2e;
  border-bottom-color: #f07c2e;
}

/* ── RESPONSIVE (mobile) ───────────────────────────────────────── */
@media (max-width: 768px) {
  .custom-header-main {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 12px;
  }
  .custom-search-wrap { order: 3; flex: 0 0 100%; }
  .custom-header-actions { gap: 16px; }
  .custom-label { display: none; }
  .custom-header-nav { padding: 0 16px; overflow-x: auto; }
  .custom-nav-item { padding: 10px 10px; font-size: 11px; }
}
