/*
 * v5-grouped-shop-nav.css  (v0.1.0 — DRAFT, Cowork lane 2026-05-29)
 * Additive styles for the nav/search/cart layer (v5-grouped-shop-nav.js).
 * Self-contained: does NOT depend on the base v5-grouped-shop.css. Safe to
 * load alongside whatever base stylesheet is live. Reversible (dequeue).
 *
 * Uses neutral system tokens so it reads correctly regardless of theme state.
 */

/* ---- Control bar -------------------------------------------------- */
.nnwi-v5-nav { margin: 0 0 18px; }
.nnwi-v5-nav__searchwrap { position: relative; margin-bottom: 12px; }
.nnwi-v5-nav__search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px 10px 14px;
  font-size: 15px;
  border: 1px solid rgba(13,27,42,0.18);
  border-radius: 8px;
  background: #fff;
  color: #0d1b2a;
}
.nnwi-v5-nav__search:focus { outline: none; border-color: #185fa5; box-shadow: 0 0 0 3px rgba(24,95,165,0.15); }

.nnwi-v5-nav__lbl { font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: #5f5e5a; margin: 0 0 6px; }
.nnwi-v5-nav__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.nnwi-v5-nav__pill {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(13,27,42,0.18);
  background: transparent;
  color: #444441;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}
.nnwi-v5-nav__pill:hover { border-color: rgba(13,27,42,0.4); }
.nnwi-v5-nav__pill.is-active { background: #e6f1fb; border-color: #185fa5; color: #0c447c; }
.nnwi-v5-nav__pill-n { opacity: .6; margin-left: 2px; }
.nnwi-v5-nav__empty { font-size: 14px; color: #5f5e5a; padding: 8px 0; }

/* ---- Family sections (added by JS over the existing grid) --------- */
.nnwi-v5-nav__section { margin: 0 0 8px; }
.nnwi-v5-nav__section-title { font-size: 17px; font-weight: 500; color: #0d1b2a; margin: 18px 0 10px; }
.nnwi-v5-nav__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* ---- Cart icon + badge + tray ------------------------------------- */
.nnwi-v5-cart { margin: 0 0 16px; }
.nnwi-v5-cart__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(13,27,42,0.18);
  border-radius: 8px;
  background: #fff;
  color: #0d1b2a;
  font-size: 14px;
  cursor: pointer;
}
.nnwi-v5-cart__ico { font-size: 18px; line-height: 1; }
.nnwi-v5-cart__badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #185fa5; color: #fff;
  font-size: 11px; line-height: 20px; text-align: center; font-weight: 500;
}
.nnwi-v5-cart__tray {
  margin-top: 10px; padding: 14px;
  border: 1px solid rgba(13,27,42,0.18); border-radius: 12px;
  background: #f7f5f0;
}
.nnwi-v5-cart__lines { display: flex; flex-direction: column; gap: 6px; }
.nnwi-v5-cart__line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: #0d1b2a; }
.nnwi-v5-cart__line button { border: none; background: transparent; cursor: pointer; font-size: 16px; color: #5f5e5a; padding: 2px 6px; }
.nnwi-v5-cart__empty { font-size: 14px; color: #5f5e5a; margin: 0; }
.nnwi-v5-cart__actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.nnwi-v5-cart__checkout, .nnwi-v5-cart__quote {
  flex: 1 1 auto; text-align: center; text-decoration: none;
  padding: 9px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap;
}
.nnwi-v5-cart__checkout { background: #185fa5; color: #fff; }
.nnwi-v5-cart__quote { border: 1px solid rgba(13,27,42,0.18); color: #0d1b2a; }
.nnwi-v5-cart__note { font-size: 11px; color: #5f5e5a; margin: 10px 0 0; }

/* ---- Add-to-cart button feedback (intercepted by JS) -------------- */
.add-to-cart-btn.is-loading { opacity: .6; pointer-events: none; }
.add-to-cart-btn.is-added { background: #e1f5ee !important; border-color: #0f6e56 !important; color: #0f6e56 !important; }

@media (max-width: 600px) {
  .nnwi-v5-nav__row { grid-template-columns: 1fr; }
}
