/*
Theme Name: Hello Child Nini Hair Header
Template: hello-elementor
Version: 1.5.0
*/

:root {
  --nn-primary: #F9A8BB;
  --nn-secondary: #F5F1E6;
  --nn-text: #111318;
  --nn-muted: #6b7280;
  --nn-surface: rgba(255,255,255,.86);
  --nn-border: rgba(17,19,24,.08);
  --nn-shadow: 0 10px 28px rgba(17,19,24,.06);
  --nn-shadow-strong: 0 18px 42px rgba(17,19,24,.10);
}

html, body { overflow-x: hidden; }
body.nn-hdr-drawer-open,
body.nn-hdr-search-open { overflow: hidden; }

body {
  --nn-hdr-space: 96px;
}

.nn-hdr,
.nn-hdr * { box-sizing: border-box; }

.nn-hdr {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 9998;
  pointer-events: none;
}

.nn-hdr__bar {
  pointer-events: auto;
  position: relative;
  width: min(1460px, 100%);
  margin: 0 auto;
  background: var(--nn-surface);
  backdrop-filter: blur(22px);
  border: 1px solid var(--nn-border);
  border-radius: 18px;
  box-shadow: var(--nn-shadow);
  overflow: visible;
  transform: translate3d(0,0,0);
  transition: transform 1.05s cubic-bezier(.22,.86,.2,1), opacity .85s ease, filter .85s ease, box-shadow .35s ease;
  will-change: transform, opacity, filter;
}

.nn-hdr.is-floating .nn-hdr__bar {
  box-shadow: var(--nn-shadow-strong);
}

.nn-hdr.is-hidden .nn-hdr__bar {
  transform: translate3d(0,-122%,0);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
}

.nn-hdr__grid {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px 14px;
}

.nn-hdr__brand,
.nn-hdr__menu,
.nn-hdr__actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nn-hdr__brand { justify-content: flex-start; }
.nn-hdr__brand-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--nn-text); min-width: 0; }
.nn-hdr__brand-logo .custom-logo { display: block; max-height: 40px; width: auto; }

.nn-hdr__menu {
  justify-content: center;
  overflow: visible;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.nn-hdr__menu a { color: var(--nn-text); text-decoration: none; }
.nn-hdr__menu :where(ul), .nn-hdr__menu :where(li) { list-style: none; margin: 0; padding: 0; }
.nn-hdr__menu :where(.sub-menu) { z-index: 10005; }

.nn-hdr__actions { justify-content: flex-end; gap: 10px; }

.nn-hdr__icon-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(17,19,24,.08);
  background: rgba(255,255,255,.98);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(17,19,24,.05);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  flex: 0 0 auto;
  line-height: 0;
}

.nn-hdr__icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(249,168,187,.28);
  box-shadow: 0 14px 28px rgba(17,19,24,.08);
}

.nn-hdr__icon-btn svg {
  width: 29px;
  height: 29px;
  display: block;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nn-hdr__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nn-primary), #ffd3df);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 10px 18px rgba(249,168,187,.35);
}

.nn-hdr__search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 14px;
  right: 14px;
  opacity: 0;
  transform: translateY(-10px);
  max-height: 0;
  overflow: hidden;
  transition: opacity .28s ease, transform .28s ease, max-height .38s ease;
  pointer-events: none;
}

.nn-hdr.is-search-open .nn-hdr__search-panel {
  opacity: 1;
  transform: translateY(0);
  max-height: 96px;
  pointer-events: auto;
}

.nn-hdr__search-form {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(17,19,24,.06);
  box-shadow: 0 18px 38px rgba(17,19,24,.10);
}

.nn-hdr__search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(17,19,24,.08);
  background: #fff;
  font: inherit;
  padding: 0 16px;
  outline: none;
  color: var(--nn-text);
}

.nn-hdr__search-form button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--nn-primary), #f7bfd0);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(249,168,187,.28);
}

.nn-hdr-spacer { height: var(--nn-hdr-space, 96px); }

.nn-hdr__overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,19,24,.22);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
  z-index: 9996;
}

body.nn-hdr-drawer-open .nn-hdr__overlay,
body.nn-hdr-search-open .nn-hdr__overlay {
  opacity: 1;
  pointer-events: auto;
}

.nn-hdr__drawer {
  position: fixed;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: min(454px, calc(100vw - 20px));
  z-index: 9999;
  pointer-events: none;
}

.nn-hdr__drawer-panel {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.985);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(17,19,24,.08);
  border-radius: 26px;
  box-shadow: 0 36px 80px rgba(17,19,24,.18);
  transform: translate3d(110%,0,0);
  transition: transform .78s cubic-bezier(.2,.9,.2,1);
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr);
  overflow: hidden;
  pointer-events: auto;
}

body.nn-hdr-drawer-open .nn-hdr__drawer-panel {
  transform: translate3d(0,0,0);
}

.nn-hdr__drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(17,19,24,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
}

.nn-hdr__drawer-title small {
  display: block;
  color: var(--nn-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.nn-hdr__drawer-title h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -.5px;
}

.nn-hdr__busy {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 0;
  color: var(--nn-muted);
  font-size: 12px;
  font-weight: 700;
}

.nn-hdr.is-busy .nn-hdr__busy { display: flex; }

.nn-hdr__spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(17,19,24,.12);
  border-top-color: var(--nn-primary);
  display: inline-block;
  animation: nnspin .75s linear infinite;
}

@keyframes nnspin { to { transform: rotate(360deg); } }

.nn-hdr__loading-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 6;
}

.nn-hdr.is-busy .nn-hdr__loading-mask {
  opacity: 1;
  pointer-events: auto;
}

.nn-hdr__loading-card {
  min-width: 170px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(17,19,24,.08);
  box-shadow: 0 18px 42px rgba(17,19,24,.12);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.nn-hdr__loading-card strong {
  font-size: 13px;
  font-weight: 800;
}

.nn-hdr__drawer-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
  padding: 12px;
  overflow: hidden;
}

.nn-hdr__reco-wrap,
.nn-hdr__summary,
.nn-hdr__drawer-body { min-width: 0; }

.nn-hdr__reco-wrap { flex: 0 0 auto; }

.nn-hdr__reco-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.nn-hdr__reco-kicker {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--nn-muted);
  margin-bottom: 3px;
}

.nn-hdr__reco-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.15px;
}

.nn-hdr__reco-card {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  grid-template-areas: 'thumb body btn';
  align-items: center;
  gap: 10px;
  padding: 9px;
  background: linear-gradient(180deg, #fff, #fcfcfd);
  border: 1px solid rgba(17,19,24,.06);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(17,19,24,.05);
}

.nn-hdr__reco-thumb {
  grid-area: thumb;
  width: 60px;
  height: 60px;
  display: block;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  border: 1px solid rgba(17,19,24,.07);
}

.nn-hdr__reco-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nn-hdr__reco-body {
  grid-area: body;
  min-width: 0;
}

.nn-hdr__reco-name {
  display: block;
  color: var(--nn-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nn-hdr__reco-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nn-hdr__reco-price { font-size: 13px; font-weight: 900; }
.nn-hdr__reco-rating .star-rating { font-size: 11px; margin: 0; }
.nn-hdr__reco-rating .star-rating,
.nn-hdr__reco-rating .star-rating::before,
.woocommerce .nn-hdr__reco-rating .star-rating span::before { color: #f2b84b; }

.nn-hdr__reco-btn {
  grid-area: btn;
  min-width: 112px;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nn-primary), #f7bfd0);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(249,168,187,.22);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}

.nn-hdr__reco-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(249,168,187,.3);
}

.nn-hdr__reco-btn svg {
  width: 18px;
  height: 18px;
}

.nn-hdr__drawer-body {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
  flex: 1 1 auto;
}

.nn-hdr__drawer-body::-webkit-scrollbar,
.nn-hdr__drawer-shell::-webkit-scrollbar { width: 10px; }
.nn-hdr__drawer-body::-webkit-scrollbar-thumb,
.nn-hdr__drawer-shell::-webkit-scrollbar-thumb {
  background: rgba(17,19,24,.12);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.nn-hdr__mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.nn-hdr__mini-item {
  list-style: none;
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(17,19,24,.06);
  background: linear-gradient(180deg, #fff, #fcfcfd);
  box-shadow: 0 10px 22px rgba(17,19,24,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease;
}

.nn-hdr__mini-item:hover {
  transform: translateY(-1px);
  border-color: rgba(249,168,187,.22);
  box-shadow: 0 14px 28px rgba(17,19,24,.08);
}

.nn-hdr__mini-item.is-loading,
.nn-hdr__reco-card.is-loading { opacity: .68; }

.nn-hdr__mini-thumb {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  overflow: hidden;
  display: block;
  background: #fff;
  border: 1px solid rgba(17,19,24,.07);
  flex: 0 0 auto;
}

.nn-hdr__mini-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nn-hdr__mini-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nn-hdr__mini-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.nn-hdr__mini-meta { min-width: 0; }

.nn-hdr__mini-title {
  display: inline-block;
  color: var(--nn-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 5px;
}

.nn-hdr__mini-line {
  color: var(--nn-muted);
  font-size: 11px;
  line-height: 1.45;
}

.nn-hdr__mini-price {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.nn-hdr__mini-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nn-hdr__mini-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17,19,24,.08);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  flex: 0 0 auto;
  height: 34px;
}

.nn-hdr__qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.nn-hdr__qty-input {
  width: 34px;
  height: 34px;
  border: 0;
  border-left: 1px solid rgba(17,19,24,.08);
  border-right: 1px solid rgba(17,19,24,.08);
  text-align: center;
  font: inherit;
  font-weight: 800;
  color: var(--nn-text);
  background: #fff;
  padding: 0;
  outline: none;
}

.nn-hdr__mini-remove {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(17,19,24,.08);
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
  flex: 0 0 auto;
}

.nn-hdr__mini-remove:hover {
  transform: scale(1.02);
  border-color: rgba(17,19,24,.16);
  background: #fff;
}

.nn-hdr__mini-remove svg,
.nn-hdr__qty-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nn-hdr__summary {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(17,19,24,.06);
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), #fff);
}

.nn-hdr__totals-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.nn-hdr__totals-row span {
  color: var(--nn-muted);
  font-weight: 700;
}

.nn-hdr__totals-row strong {
  font-size: 18px;
  font-weight: 900;
}

.nn-hdr__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.nn-hdr__btn {
  min-height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.nn-hdr__btn--ghost {
  border: 1px solid rgba(17,19,24,.08);
  background: #fff;
  color: var(--nn-text);
}

.nn-hdr__btn--solid {
  background: linear-gradient(135deg, var(--nn-primary), #f7bfd0);
  color: #fff;
  box-shadow: 0 14px 26px rgba(249,168,187,.24);
}

.nn-hdr__btn:hover { transform: translateY(-1px); }

.nn-hdr__empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 36px 20px;
  gap: 12px;
}

.nn-hdr__empty-icon {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: rgba(249,168,187,.12);
  color: var(--nn-primary);
  display: grid;
  place-items: center;
}

.nn-hdr__empty-icon svg { width: 28px; height: 28px; }

.nn-hdr__empty h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.nn-hdr__empty p {
  margin: 0;
  color: var(--nn-muted);
  line-height: 1.7;
  font-size: 14px;
  max-width: 280px;
}

.nn-hdr__empty-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--nn-primary), #f7bfd0);
  box-shadow: 0 14px 26px rgba(249,168,187,.24);
  font-weight: 900;
  font-size: 13px;
}

.nn-hdr__ajax-btn {
  position: relative;
}

.nn-hdr__ajax-btn.is-loading {
  pointer-events: none;
  opacity: .72;
}

.nn-hdr__ajax-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 999px;
  border: 2px solid rgba(17,19,24,.18);
  border-top-color: currentColor;
  animation: nnspin .72s linear infinite;
}

@media (max-width: 1280px) {
  .nn-hdr__drawer { width: min(420px, calc(100vw - 20px)); }
}

@media (max-width: 767px) {
  .nn-hdr { top: 8px; left: 8px; right: 8px; }

  .nn-hdr__grid {
    min-height: 68px;
    gap: 10px;
    padding: 8px 10px;
    grid-template-columns: auto minmax(0,1fr) auto;
  }

  .nn-hdr__brand-logo .custom-logo { max-height: 34px; }

  .nn-hdr__icon-btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .nn-hdr__icon-btn svg { width: 26px; height: 26px; }

  .nn-hdr__drawer {
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: min(100vw - 16px, 420px);
  }

  .nn-hdr__drawer-panel { border-radius: 22px; }
  .nn-hdr__drawer-head { padding: 16px 16px 12px; }
  .nn-hdr__drawer-title h3 { font-size: 20px; }
  .nn-hdr__drawer-shell { padding: 10px; gap: 10px; }

  .nn-hdr__reco-card {
    grid-template-columns: 54px minmax(0,1fr);
    grid-template-areas:
      'thumb body'
      'btn btn';
    align-items: start;
  }

  .nn-hdr__reco-thumb { width: 54px; height: 54px; border-radius: 14px; }
  .nn-hdr__reco-btn { width: 100%; min-width: 0; }

  .nn-hdr__mini-item {
    grid-template-columns: 58px minmax(0,1fr) auto;
    gap: 8px;
    padding: 9px;
    border-radius: 16px;
  }

  .nn-hdr__mini-thumb { width: 58px; height: 58px; }
  .nn-hdr__mini-title { font-size: 12.5px; }
  .nn-hdr__mini-price { font-size: 12.5px; }
  .nn-hdr__mini-remove { width: 40px; height: 40px; }

  .nn-hdr__summary { gap: 10px; }
  .nn-hdr__buttons { grid-template-columns: 1fr; }
  .nn-hdr__btn { min-height: 46px; }
}

@media (min-width: 768px) {
  .nini-hair-menu-toolbar { display: none !important; }
}
