/*
 * BBQ WOK — Layout (header, footer, nav, flash)
 */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.3s;
}

.header-spacer { height: var(--header-height); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-logo {
  justify-self: center;
}

.header-logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.header-logo-text {
  color: var(--bbq-yellow);
  font-family: var(--font-family-heading);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.header-nav a:hover { color: #fff; }

.header-cart {
  position: relative;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.header-cart:hover { color: var(--bbq-yellow); }

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--bbq-red-bright);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bbq-black);
}

.header-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px 0;
}

.header-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-burger { display: flex; }
}

/* === MAIN === */
.main {
  min-height: calc(100vh - var(--header-height) - 200px);
}

/* === FLASH === */
.flash-messages {
  position: fixed;
  top: calc(var(--header-height) + var(--space-4));
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.flash {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.25s ease;
}

.flash-success { background: var(--color-success); color: #fff; }
.flash-error { background: var(--color-error); color: #fff; }
.flash-warning { background: var(--color-warning); color: #fff; }
.flash-info { background: var(--color-info); color: #fff; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* === MENU OVERLAY (mobile) === */
html.nav-open { overflow: hidden; }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

.nav-overlay.is-open { display: flex; }
.nav-overlay[hidden] { display: none !important; }

.nav-drawer {
  width: min(500px, 100%);
  max-height: 88vh;
  background: var(--bbq-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: drawerUp 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes drawerUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-drawer__title {
  font-family: var(--font-family-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
  color: #fff;
}

.nav-drawer__close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.25s;
}

.nav-drawer__close:hover { background: rgba(255, 255, 255, 0.1); }

.nav-drawer__body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.25s;
}

.nav-item:hover {
  background: rgba(255, 210, 0, 0.08);
  color: var(--bbq-yellow);
}

.nav-item--highlight {
  background: var(--bbq-yellow);
  color: var(--bbq-black);
}

.nav-item--highlight:hover {
  background: var(--bbq-yellow-hover);
  color: var(--bbq-black);
}

.nav-divider {
  margin: 16px 14px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.nav-drawer__footer {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.nav-drawer__brand {
  margin: 0;
  font-weight: 700;
  color: var(--bbq-yellow);
  font-family: var(--font-family-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-drawer__sub {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==============================
   FOOTER MULTI-COLONNES
   ============================== */
.landing-footer {
  background: var(--bbq-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 30px;
}

.landing-footer__inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.landing-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.landing-footer__logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.landing-footer__tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.landing-footer__col h4 {
  font-family: var(--font-family-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bbq-yellow);
  margin-bottom: 16px;
}

.landing-footer__col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.landing-footer__col a:hover { color: #fff; }

.landing-footer__bottom {
  max-width: var(--container-max-width);
  margin: 40px auto 0;
  padding: 20px var(--container-padding) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .landing-footer__inner { grid-template-columns: 1fr 1fr; }
  .landing-footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .landing-footer__inner { grid-template-columns: 1fr; }
}
