/* ═══════════════════════════════════════════════════════════════
   inr500 — STOREFRONT CHROME
   Header category strip, icon buttons, wishlist (heart + drawer),
   Smart Bundles and footer extras. Linked from components/header.html,
   so every page that renders the header gets it. Base header rules
   live in base.css; this file only adds to or overrides them.
   ═══════════════════════════════════════════════════════════════ */

/* ── HEADER ── */
.nav-links {
  gap: 20px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { white-space: nowrap; }

@media (min-width: 1100px) {
  .nav-links { gap: 28px; overflow: visible; }
}

/* Shop-by-category strip under the main bar, desktop only. Phones get the same links in the menu panel. */
.nav-cats,
.nav-cats:not(:has(a)) { display: none; }

@media (min-width: 768px) {
  .nav-cats {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-cats::-webkit-scrollbar { display: none; }
  .nav-cats a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--paper);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    transition: border-color .2s, color .2s;
  }
  .nav-cats a:hover,
  .nav-cats a:focus-visible { border-color: var(--tagz); color: var(--tagz); }
}

/* 44px tap targets for every header control, including the small-phone rules in base.css. */
.icon-btn,
.acct-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--paper);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover,
.icon-btn:focus-visible { border-color: var(--tagz); color: var(--tagz); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-ctas .acct-icon-btn { width: 44px !important; height: 44px; }
.nav-ctas .menu-toggle { width: 44px; height: 44px; }

.nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--tagz);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
.nav-badge[hidden] { display: none; }

/* Mobile panel now holds categories and links, so let it scroll instead of clipping. */
.mobile-nav-panel.open {
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

/* ── WISHLIST: heart on product cards ── */
.wish-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink-2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .2s, transform .2s;
}
.wish-toggle:active { transform: scale(.92); }
.wish-toggle:focus-visible { outline: 2px solid var(--tagz); outline-offset: 2px; }
.wish-toggle svg { width: 20px; height: 20px; }
.wish-toggle.is-saved { color: var(--tagz); }
.wish-toggle.is-saved path { fill: currentColor; }

/* ── WISHLIST: drawer ── */
.wish-drawer { position: fixed; inset: 0; z-index: 900; display: none; }
.wish-drawer.open { display: block; }
.wish-overlay { position: absolute; inset: 0; background: rgba(26, 23, 20, .45); }
.wish-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 380px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: -12px 0 32px rgba(0, 0, 0, .18);
}
.wish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 20px;
  border-bottom: 1px solid var(--paper);
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 700;
}
.wish-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.wish-body { flex: 1; overflow-y: auto; padding: 4px 20px 24px; }
.wish-list { list-style: none; }
.wish-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--paper);
}
.wish-list a {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--ink);
}
.wish-remove {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.wish-empty { padding: 24px 0; color: var(--ink-2); line-height: 1.5; }

/* ── SMART BUNDLES (homepage, rendered only when sites/<domain>.json lists bundles) ── */
.bundle-grid {
  list-style: none;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bundle-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--paper);
  border-radius: 16px;
}
.bundle-card h3 {
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.bundle-card > p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.bundle-items { list-style: none; display: grid; gap: 4px; }
.bundle-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.bundle-items a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bundle-sums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--paper);
}
.bundle-sums dt { font-size: 12px; color: var(--ink-3); }
.bundle-sums dd {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.bundle-sums .save dd { color: var(--teal); }
.bundle-card .btn { align-self: flex-start; }

/* ── FOOTER extras ── */
.footer-tagline { margin-top: 8px; }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 12px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: inherit;
  opacity: .85;
}
.footer-social a:hover { opacity: 1; text-decoration: underline; }
