/* ==========================================================================
   AirSound — Navigation (+ full homepage CSS for inner pages)
   Exact match of hero.css nav section so header works on all pages.
   ========================================================================== */

/* ==========================================================================
   1. NAV
   ========================================================================== */
.nav-wrapper { position: fixed; top: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 100; }
.nav-shell { border-radius: 24px; background: rgba(255,255,255,0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 2px 20px rgba(0,0,0,0.06); overflow: hidden; }
.nav-bar { display: flex; align-items: center; gap: 1.75rem; padding: 0.6rem 1.75rem; white-space: nowrap; }
.nav-logo { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 1rem; letter-spacing: var(--tracking-tight); text-decoration: none; color: var(--text-primary); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: 0.82rem; font-weight: 450; color: var(--text-secondary); text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 0.3rem; transition: color 200ms; }
.nav-link:hover { color: var(--text-primary); }
.nav-chevron { width: 8px; height: 5px; transition: transform 250ms cubic-bezier(0.16,1,0.3,1); }
.nav-link[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-dates, .nav-search-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 450; background: rgba(0,0,0,0.04); color: var(--text-secondary); border: none; cursor: pointer; transition: background 200ms, color 200ms; }
.nav-dates:hover, .nav-search-btn:hover { background: rgba(0,0,0,0.07); }
.nav-dates[aria-expanded="true"], .nav-search-btn[aria-expanded="true"] { background: var(--gradient-brand); color: white; }
.nav-search-btn { padding: 0.35rem 0.55rem; }
.nav-cta { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.42rem 1rem; border-radius: var(--radius-full); background: var(--gradient-brand); color: white; font-size: 0.78rem; font-weight: 550; text-decoration: none; transition: opacity 150ms; font-family: inherit; cursor: pointer; }
.nav-cta:hover { opacity: 0.9; }
.nav-cta svg { flex-shrink: 0; }

/* Panels */
.nav-panel { display: grid; gap: 8px; padding: 0 1.5rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 300ms cubic-bezier(0.16,1,0.3,1), opacity 200ms, padding 300ms cubic-bezier(0.16,1,0.3,1); }
.nav-panel.open { opacity: 1; }
.nav-panel--grid { grid-template-columns: repeat(4, 1fr); }
.nav-panel--grid.open { max-height: 420px; padding: 4px 1.5rem 1rem; }
.nav-panel--calendar { grid-template-columns: 1fr; }
.nav-panel--calendar.open { max-height: 360px; padding: 4px 1.5rem 1rem; }
.nav-panel--search { grid-template-columns: 1fr; }
.nav-panel--search.open { max-height: 400px; padding: 4px 1.5rem 1rem; }
.nav-panel--cart { grid-template-columns: 1fr; min-width: 580px; background: rgba(255,255,255,0.55); }
.nav-panel--cart.open { max-height: 660px; padding: 6px 1.25rem 1rem; }

.nav-cta-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 0.25rem; border-radius: 9px; background: rgba(255,255,255,0.22); color: white; font-size: 0.65rem; font-weight: var(--weight-bold); line-height: 1; }
.nav-cta[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(155,48,255,0.18); }

/* Cart panel */
.nav-cart { display: flex; flex-direction: column; gap: 0.85rem; padding-top: 4px; }
.nav-cart-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 0.65rem; border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav-cart-title-wrap { display: flex; flex-direction: column; gap: 4px; }
.nav-cart-title { font-size: 0.95rem; font-weight: var(--weight-bold); color: #0a0a14; letter-spacing: -0.015em; display: inline-flex; align-items: center; gap: 0.5rem; }
.nav-cart-count-pill { font-size: 0.62rem; font-weight: var(--weight-semibold); padding: 2px 7px; border-radius: 999px; background: rgba(155,48,255,0.12); color: var(--color-brand); letter-spacing: 0; }
.nav-cart-free { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: var(--weight-semibold); color: #2a2a35; }
.nav-cart-free svg { color: var(--color-brand); flex-shrink: 0; }
.nav-cart-dates-btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42rem 0.7rem 0.42rem 0.6rem; border-radius: 10px; background: rgba(255,255,255,0.85); border: 1px solid rgba(0,0,0,0.1); color: #0a0a14; font-size: 0.74rem; font-weight: var(--weight-semibold); font-family: inherit; cursor: pointer; transition: background 200ms, border-color 200ms; white-space: nowrap; }
.nav-cart-dates-btn:hover { background: rgba(155,48,255,0.06); border-color: rgba(155,48,255,0.25); }
.nav-cart-dates-edit { font-size: 0.62rem; font-weight: var(--weight-semibold); color: var(--color-brand); padding-left: 0.4rem; margin-left: 0.15rem; border-left: 1px solid rgba(0,0,0,0.12); text-transform: uppercase; letter-spacing: 0.04em; }
.nav-cart-items { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; padding-right: 4px; margin-right: -4px; scrollbar-width: thin; }
.nav-cart-items::-webkit-scrollbar { width: 4px; }
.nav-cart-items::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }
.nav-cart-item { display: grid; grid-template-columns: 38px 1fr auto auto auto; align-items: center; gap: 0.7rem; padding: 0.55rem 0.7rem; border-radius: 12px; background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.06); transition: background 200ms, border-color 200ms; }
.nav-cart-item:hover { background: rgba(255,255,255,0.92); border-color: rgba(0,0,0,0.1); }
.nav-cart-item-thumb { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-cart-item-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-cart-item-name { font-size: 0.78rem; font-weight: var(--weight-semibold); color: #0a0a14; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-cart-item-meta { font-size: 0.64rem; color: #6b6b76; font-weight: var(--weight-medium); }
.nav-cart-item-qty { display: inline-flex; align-items: center; gap: 2px; }
.nav-cart-item-qty button { width: 22px; height: 22px; border: none; background: rgba(0,0,0,0.06); color: #0a0a14; cursor: pointer; border-radius: 50%; font-size: 0.95rem; line-height: 1; display: flex; align-items: center; justify-content: center; font-family: inherit; font-weight: var(--weight-semibold); transition: background 150ms, color 150ms, transform 150ms; }
.nav-cart-item-qty button:hover { background: var(--gradient-brand); color: white; transform: scale(1.08); }
.nav-cart-item-qty-val { font-size: 0.78rem; font-weight: var(--weight-bold); color: #0a0a14; min-width: 18px; text-align: center; padding: 0 2px; font-variant-numeric: tabular-nums; }
.nav-cart-item-price { font-size: 0.82rem; font-weight: var(--weight-bold); color: #0a0a14; white-space: nowrap; min-width: 68px; text-align: right; font-variant-numeric: tabular-nums; }
.nav-cart-item-remove { width: 20px; height: 20px; border: none; background: none; color: #8a8a96; cursor: pointer; font-size: 1.15rem; line-height: 1; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 150ms, color 150ms; }
.nav-cart-item-remove:hover { background: rgba(255,47,0,0.1); color: var(--color-error, #ff2f00); }
.nav-cart-footer { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.8rem; border-top: 1px solid rgba(0,0,0,0.1); }
.nav-cart-summary { display: flex; flex-direction: column; gap: 5px; }
.nav-cart-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: #2a2a35; font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.nav-cart-summary-row--muted { color: #5a5a66; font-size: 0.7rem; font-weight: var(--weight-medium); }
.nav-cart-summary-row--muted span:last-child { color: var(--color-brand); font-weight: var(--weight-bold); }
.nav-cart-summary-row--total { font-size: 0.95rem; font-weight: var(--weight-bold); color: #0a0a14; padding-top: 8px; margin-top: 3px; border-top: 1px dashed rgba(0,0,0,0.15); }
.nav-cart-actions { display: flex; gap: 0.5rem; align-items: stretch; }
.nav-cart-view { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 0.65rem 1rem; border-radius: 999px; background: rgba(255,255,255,0.85); border: 1px solid rgba(0,0,0,0.12); color: #0a0a14; font-size: 0.76rem; font-weight: var(--weight-bold); text-decoration: none; transition: background 200ms, border-color 200ms; }
.nav-cart-view:hover { background: white; border-color: rgba(0,0,0,0.2); }
.nav-cart-checkout { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.6rem 1.1rem; border-radius: 999px; background: var(--gradient-brand); color: white; font-size: 0.78rem; font-weight: var(--weight-bold); text-decoration: none; transition: transform 200ms, box-shadow 200ms, opacity 200ms; }
.nav-cart-checkout:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }

/* Mobile cart count dot */
.nav-mobile-cart { position: relative; }
.nav-mobile-cart-dot { position: absolute; top: -3px; right: -3px; min-width: 14px; height: 14px; padding: 0 4px; border-radius: 7px; background: white; color: var(--color-brand); font-size: 0.55rem; font-weight: var(--weight-bold); display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 0 0 2px var(--color-brand); }

.nav-mega-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px 10px; border-radius: 12px; text-align: center; transition: filter 200ms, transform 150ms; }
.nav-mega-item:hover { filter: brightness(1.25) saturate(1.2); transform: translateY(-1px); }
.nav-mega-item-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: white; }
.nav-mega-item-name { font-size: 0.88rem; font-weight: var(--weight-bold); color: white; line-height: 1.15; }

/* Search panel */
.nav-search-input-wrap { position: relative; margin-bottom: 8px; }
.nav-search-input { width: 100%; padding: 0.6rem 1rem 0.6rem 2.2rem; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; background: rgba(0,0,0,0.02); font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-primary); outline: none; }
.nav-search-input:focus { border-color: var(--color-brand); }
.nav-search-input-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.nav-search-hint { font-size: 0.68rem; color: var(--text-muted); text-align: center; padding: 12px 0; }

/* Calendar panel */
.nav-calendar { padding: 12px 0 4px; }
.nav-calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nav-calendar-month { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-primary); }
.nav-calendar-nav { display: flex; gap: 4px; }
.nav-calendar-nav button { width: 28px; height: 28px; border-radius: 8px; border: none; background: rgba(0,0,0,0.04); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.nav-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.nav-calendar-day { font-size: 0.65rem; font-weight: var(--weight-semibold); color: var(--text-muted); padding: 6px 0; text-transform: uppercase; }
.nav-calendar-cell { font-size: 0.75rem; padding: 8px 0; border-radius: 8px; cursor: pointer; color: var(--text-primary); transition: background 150ms; }
.nav-calendar-cell:hover { background: rgba(155,48,255,0.08); }
.nav-calendar-cell.muted { color: var(--text-muted); }
.nav-calendar-cell.active { background: var(--gradient-brand); color: white; }
.nav-calendar-cta { display: flex; justify-content: flex-end; margin-top: 8px; }
.nav-calendar-cta a { padding: 0.45rem 1.25rem; border-radius: var(--radius-full); background: var(--gradient-brand); color: white; font-size: 0.75rem; font-weight: var(--weight-semibold); text-decoration: none; }

/* Hamburger */
.nav-hamburger { display: none; align-items: center; justify-content: center; width: 28px; height: 28px; background: none; border: none; cursor: pointer; padding: 0; color: var(--text-primary); }
.nav-hamburger-svg rect { transition: transform 300ms cubic-bezier(0.16,1,0.3,1), opacity 200ms; transform-origin: 8px 6px; }
.nav-hamburger.open .ham-top { transform: translate(0, 5.25px) rotate(45deg); }
.nav-hamburger.open .ham-mid { opacity: 0; }
.nav-hamburger.open .ham-bot { transform: translate(0, -5.25px) rotate(-45deg); }

.nav-mobile-search, .nav-mobile-cart, .nav-mobile-cal { display: none; }
.nav-mobile-content { max-height: 0; opacity: 0; overflow: hidden; padding: 0 1.25rem; transition: max-height 350ms cubic-bezier(0.16,1,0.3,1), opacity 250ms, padding 350ms cubic-bezier(0.16,1,0.3,1); }
.nav-mobile-content.open { max-height: 800px; opacity: 1; padding: 8px 1.25rem 1.25rem; }
.nav-mobile-section { font-size: 0.82rem; font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-primary); padding: var(--space-4) 0 var(--space-2); }
.nav-mobile-section:first-child { padding-top: 0; }
.nav-mobile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nav-mobile-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px 4px; border-radius: 10px; text-align: center; transition: filter 200ms, transform 150ms; }
.nav-mobile-item:hover { filter: brightness(1.25) saturate(1.2); transform: translateY(-1px); }
.nav-mobile-item-icon { color: white; margin-bottom: 2px; }
.nav-mobile-item-name { font-size: 0.62rem; font-weight: var(--weight-semibold); color: white; line-height: 1.15; }
.nav-mobile-links { display: flex; flex-direction: column; border-top: 1px solid rgba(0,0,0,0.06); margin-top: var(--space-3); }
.nav-mobile-link { display: block; padding: var(--space-3) 0; font-size: 0.9rem; font-weight: var(--weight-semibold); color: var(--text-primary); text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.04); }

/* Footer */
.site-footer { padding: var(--space-16) 1.25rem var(--space-8); border-top: 1px solid rgba(0,0,0,0.06); }
.footer-inner { max-width: var(--container-max); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-10); margin-bottom: var(--space-12); }
.footer-brand-desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; margin-top: var(--space-3); max-width: 280px; }
.footer-col-title { font-size: var(--text-xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-primary); margin-bottom: var(--space-4); }
.footer-link { display: block; font-size: var(--text-sm); color: var(--text-muted); text-decoration: none; padding: var(--space-1) 0; transition: color 200ms; }
.footer-link:hover { color: var(--text-primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-6); border-top: 1px solid rgba(0,0,0,0.06); }
.footer-copy { font-size: var(--text-xs); color: var(--text-muted); }
.footer-legal { display: flex; gap: var(--space-4); }
.footer-legal a { font-size: var(--text-xs); color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--text-primary); }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 768px) {
  .nav-wrapper { left: 0; right: 0; transform: none; top: 0.75rem; padding: 0 0.75rem; }
  .nav-shell { border-radius: 18px; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-bar { padding: 0.5rem 1rem; gap: 0; justify-content: space-between; }
  .nav-mobile-search { background: rgba(0,0,0,0.04); color: var(--text-secondary); margin-left: auto; margin-right: 6px; }
  .nav-mobile-cal { background: rgba(0,0,0,0.04); color: var(--text-secondary); margin-right: 6px; }
  .nav-mobile-cart { background: var(--gradient-brand); color: white; text-decoration: none; margin-right: 12px; }
  .nav-mobile-search, .nav-mobile-cart, .nav-mobile-cal { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer; }
  .nav-panel { display: none; }
  .nav-panel--search { display: grid; }
  .nav-panel--cart { display: grid; min-width: 0; }
  .nav-panel--calendar { display: grid; }
  .nav-panel--cart.open { max-height: calc(100vh - 5rem); padding: 6px 1rem 1rem; }
  .nav-cart-top { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .nav-cart-dates-btn { align-self: stretch; justify-content: center; padding: 0.55rem 0.7rem; font-size: 0.78rem; }
  .nav-cart-item { grid-template-columns: 36px 1fr auto; grid-template-rows: auto auto; column-gap: 0.6rem; row-gap: 0.4rem; padding: 0.55rem; }
  .nav-cart-item-thumb { grid-row: 1 / 3; }
  .nav-cart-item-info { grid-column: 2; grid-row: 1; }
  .nav-cart-item-price { grid-column: 3; grid-row: 1; min-width: 0; }
  .nav-cart-item-qty { grid-column: 2; grid-row: 2; justify-self: start; }
  .nav-cart-item-remove { grid-column: 3; grid-row: 2; justify-self: end; }
  .nav-cart-items { max-height: 42vh; }
  .nav-cart-actions { flex-direction: column-reverse; }
  .nav-cart-view, .nav-cart-checkout { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
  .site-footer { padding: var(--space-12) 1.5rem var(--space-6); }
}
