/* Corleone shared public header — front-page visual language · v0.1.29 */
.corleone-global-header {
  --cor-header-gold: #d2ad63;
  --cor-header-red: #7e231f;
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 88px;
  padding: 0 max(24px, 5vw);
  color: #f7f1e7;
  border-bottom: 1px solid rgba(210, 173, 99, 0.3);
  background: linear-gradient(180deg, rgba(9, 10, 9, 0.97), rgba(17, 18, 16, 0.94));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
}
.corleone-global-header *,
.corleone-global-header *::before,
.corleone-global-header *::after { box-sizing: border-box; }
.corleone-global-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #177245 0 33.333%, #f4f0e7 33.333% 66.666%, #9b2924 66.666%);
  opacity: 0.78;
  pointer-events: none;
}
.corleone-global-header .corleone-global-header__brand {
  display: flex;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  height: auto;
  padding: 7px 0;
  color: #f5f0e6;
  text-decoration: none;
}
.corleone-global-header .brand-logo {
  display: block;
  width: auto;
  height: 68px;
  max-width: 92px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.53));
}
.corleone-global-header .corleone-global-header__status {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: min(100%, 420px);
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.corleone-global-header .status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8a857c;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.corleone-global-header .open-status[data-state="open"] { border-color: rgba(47, 158, 95, 0.4); background: rgba(47, 158, 95, 0.08); }
.corleone-global-header .open-status[data-state="closed"] { border-color: rgba(196, 59, 50, 0.4); background: rgba(196, 59, 50, 0.08); }
.corleone-global-header .open-status[data-state="open"] .status-dot { background: #2f9e5f; box-shadow: 0 0 0 3px rgba(47, 158, 95, 0.2); }
.corleone-global-header .open-status[data-state="closed"] .status-dot { background: #c43b32; box-shadow: 0 0 0 3px rgba(196, 59, 50, 0.2); }
.corleone-global-header .status-text {
  display: flex;
  flex-flow: row nowrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  line-height: 1.15;
  white-space: nowrap;
}
.corleone-global-header .status-label {
  color: #f5f0e6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.corleone-global-header .status-detail { color: #cfc7bb; font-size: 12px; white-space: nowrap; }
.corleone-global-header .corleone-global-header__nav {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.corleone-global-header .corleone-global-header__nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 8px;
  color: #f5f0e6;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.corleone-global-header .corleone-global-header__nav > a:hover,
.corleone-global-header .corleone-global-header__nav > a:focus-visible,
.corleone-global-header .corleone-global-header__nav > a[aria-current="page"] {
  color: #f6d98f;
  background: rgba(210, 173, 99, 0.1);
}
.corleone-global-header .corleone-global-header__nav > a:focus-visible,
.corleone-global-header .corleone-global-header__toggle:focus-visible,
.corleone-global-header .corleone-global-header__langs button:focus-visible {
  outline: 3px solid var(--cor-header-gold);
  outline-offset: 2px;
}
.corleone-global-header .corleone-global-header__langs {
  display: inline-flex;
  order: 0;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  margin: 0 2px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: visible;
}
.corleone-global-header .corleone-global-header__langs button {
  appearance: none;
  min-width: 38px;
  min-height: 38px;
  margin: 0;
  padding: 8px;
  color: #f5f0e6;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.corleone-global-header .corleone-global-header__langs button[aria-pressed="true"] {
  color: #fff5df;
  border-color: var(--cor-header-gold);
  background: var(--cor-header-red);
  box-shadow: inset 0 0 0 1px rgba(210, 173, 99, 0.44);
}
.corleone-global-header .corleone-global-header__nav > .corleone-global-header__cart {
  order: 0;
  min-height: 40px;
  padding: 9px 13px;
  color: #17130d;
  border: 0;
  background: linear-gradient(135deg, #dabb76, #bd9145);
  box-shadow: inset 0 0 0 1px rgba(255, 243, 183, 0.3), 0 6px 20px rgba(0, 0, 0, 0.13);
  font-weight: 700;
}
.corleone-global-header .corleone-global-header__nav > .corleone-global-header__cart:hover,
.corleone-global-header .corleone-global-header__nav > .corleone-global-header__cart:focus-visible,
.corleone-global-header .corleone-global-header__nav > .corleone-global-header__cart[aria-current="page"] {
  color: #17130d;
  background: linear-gradient(135deg, #e6c77f, #c99d50);
}
.corleone-global-header .corleone-global-header__cart b { font-weight: 700; }
.corleone-global-header .corleone-global-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 10px;
  color: #f5f0e6;
  border: 1px solid rgba(210, 173, 99, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.corleone-global-header .corleone-global-header__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #f6d98f;
  transition: transform 160ms ease, opacity 160ms ease;
}
.corleone-global-header .corleone-global-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.corleone-global-header .corleone-global-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.corleone-global-header .corleone-global-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1280px) and (min-width: 901px) {
  .corleone-global-header { gap: 10px; padding-inline: 24px; }
  .corleone-global-header .brand-logo { height: 58px; }
  .corleone-global-header .corleone-global-header__nav { gap: 2px; }
  .corleone-global-header .corleone-global-header__nav > a { padding-inline: 6px; font-size: 13px; }
  .corleone-global-header .corleone-global-header__status { padding-inline: 10px; }
}

@media (max-width: 900px) {
  .corleone-global-header {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 76px !important;
    height: auto !important;
    padding: 6px 16px;
  }
  .corleone-global-header .corleone-global-header__brand { flex: 0 0 auto; align-self: auto; padding: 4px 0; }
  .corleone-global-header .brand-logo { height: 56px; max-width: 76px; }
  .corleone-global-header .corleone-global-header__status {
    flex: 0 1 auto;
    justify-self: auto;
    gap: 6px;
    width: auto !important;
    max-width: none;
    margin: 0 auto 0 0;
    padding: 5px 9px;
  }
  .corleone-global-header .status-dot { width: 7px; height: 7px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08); }
  .corleone-global-header .status-text { flex-direction: column; align-items: flex-start; gap: 1px; white-space: normal; }
  .corleone-global-header .status-label { font-size: 10px; line-height: 1.05; }
  .corleone-global-header .status-detail { font-size: 9px; line-height: 1.1; }
  .corleone-global-header .corleone-global-header__toggle { display: inline-flex; }
  .corleone-global-header .corleone-global-header__nav {
    display: none;
    order: 5;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 8px 0 10px;
    gap: 4px;
    border-top: 1px solid rgba(210, 173, 99, 0.2);
  }
  .corleone-global-header .corleone-global-header__nav.is-open { display: flex; }
  .corleone-global-header .corleone-global-header__nav > a {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    font-size: 15px;
    text-align: center;
  }
  .corleone-global-header .corleone-global-header__langs { justify-content: center; margin: 5px 0; }
  .corleone-global-header .corleone-global-header__nav > .corleone-global-header__cart { margin-top: 2px; }
}

@media (max-width: 410px) {
  .corleone-global-header { gap: 6px; padding-inline: 12px; }
  .corleone-global-header .brand-logo { height: 50px; max-width: 66px; }
  .corleone-global-header .corleone-global-header__status { gap: 5px; padding: 4px 7px; }
  .corleone-global-header .status-label { font-size: 9px; }
  .corleone-global-header .status-detail { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .corleone-global-header .corleone-global-header__toggle span { transition: none; }
}
