/* Lychee Shop — header (search-first) & footer. */

.ly-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(17,17,17,.03);
}
.ly-header__inner { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1.5rem; align-items: center; padding-block: .8rem; }
.ly-logo__text { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.ly-logo__dot { color: var(--lychee-red); }
.ly-menu { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.ly-menu a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.ly-menu a:hover { color: var(--lychee-red); }

/* Search-first: the pill is the header's visual anchor. */
.ly-search {
  display: flex; align-items: center;
  border: 1px solid var(--hairline-strong); border-radius: 999px;
  overflow: hidden; max-width: 380px; width: 100%;
  background: var(--base);
  transition: border-color .15s, box-shadow .15s;
}
.ly-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,.08); }
.ly-search__input { border: 0; padding: .55rem .5rem .55rem 1.1rem; flex: 1; min-width: 0; font: inherit; font-size: .92rem; background: transparent; }
.ly-search__input:focus { outline: none; }
.ly-search__btn {
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  padding: 0 1rem; font-size: 1.05rem; align-self: stretch;
  border-left: 1px solid transparent;
}
.ly-search__btn:hover { color: var(--lychee-red); }

.ly-cart-link { text-decoration: none; font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; }
.ly-cart-link__count { background: var(--lychee-red); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; min-width: 1.4rem; text-align: center; }
.ly-header__search-mobile { display: none; }
.ly-nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .25rem; }
.ly-nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

@media ( max-width: 767px ) {
    .ly-header__inner { grid-template-columns: auto 1fr auto; gap: .75rem; }
    .ly-nav-toggle { display: block; order: 1; }
    .ly-logo { order: 2; text-align: center; }
    .ly-cart-link { order: 3; font-size: .92rem; }
    .ly-header__search { display: none; }
    .ly-header__search-mobile { display: block; padding: .625rem var(--gutter) .8rem; background: var(--surface); border-bottom: 1px solid var(--hairline); }
    .ly-header__search-mobile .ly-search { max-width: none; }
    .ly-nav { position: fixed; inset: 0 auto 0 0; width: min(80vw, 320px); background: var(--surface); border-right: 1px solid var(--hairline); transform: translateX(-100%); transition: transform .2s; padding: 5rem 1.5rem 2rem; z-index: 60; }
    .ly-nav.is-open { transform: translateX(0); }
    .ly-menu { flex-direction: column; gap: 1.1rem; }
    .ly-menu a { font-size: 1.05rem; }
}

/* === Footer === */
.ly-footer { border-top: 1px solid var(--hairline); background: var(--surface); margin-top: 4rem; }
.ly-footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding-block: 2.25rem; }
.ly-footer__brand .ly-logo__text { font-size: 1.25rem; }
.ly-footer__tagline { color: var(--muted); font-size: .88rem; margin: .35rem 0 0; }
.ly-footer__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.ly-footer__nav a { text-decoration: none; font-size: .92rem; color: var(--muted); }
.ly-footer__nav a:hover { color: var(--lychee-red); }
.ly-footer__credit { color: var(--muted); font-size: .85rem; width: 100%; }
