/**
 * Premium restaurant header — compact 72–76px
 * Accent: #FF7A00 | Font: Inter
 * Scope: .ws-header / .sticky-header-wrap / .header-wrapper
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ws-header-h: 88px;
  --ws-header-accent: #ff7a00;
  --ws-header-accent-soft: #fff4eb;
  --ws-header-accent-hover: #ffe8d4;
  --ws-header-text: #1f2937;
  --ws-header-muted: #6b7280;
  --ws-header-icon: 52px;
  --ws-header-logo: 58px;
  --ws-header-radius: 999px;
  --ws-header-shadow: 0 1px 0 rgba(17, 24, 39, 0.06), 0 4px 16px rgba(17, 24, 39, 0.06);
  --ws-side-gutter: 24px;
  --ws-content-max: 1320px;
}

/* —— Shell —— */
.sticky-header-wrap.ws-header,
.sticky-header-wrap.desktop-view.ws-header,
.sticky-header-wrap.mobile-view.ws-header {
  font-family: "Inter", system-ui, -apple-system, sans-serif !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06) !important;
  box-shadow: var(--ws-header-shadow) !important;
  min-height: var(--ws-header-h) !important;
  height: var(--ws-header-h);
  max-height: var(--ws-header-h);
  padding: 0 !important;
  display: block;
  box-sizing: border-box;
}

/* Equal left/right space — same rail as body */
.sticky-header-wrap.ws-header > .container {
  min-height: var(--ws-header-h) !important;
  height: 100%;
  display: flex;
  align-items: center;
  width: 100% !important;
  max-width: var(--ws-content-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--ws-side-gutter) !important;
  padding-right: var(--ws-side-gutter) !important;
  box-sizing: border-box;
}

/* —— Desktop bar: logo | nav left | actions — all vertically centered —— */
.ws-header__bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: var(--ws-header-h);
  min-height: var(--ws-header-h);
  gap: 24px;
}

.ws-header__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: center;
  flex: 0 0 auto;
  height: var(--ws-header-h);
  min-width: 0;
  padding: 0 !important;
  margin: 0 !important;
}

.ws-header__logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 0;
}

.ws-header__logo img {
  max-height: var(--ws-header-logo) !important;
  width: auto !important;
  height: auto !important;
  max-width: 180px;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}

/* —— Nav left-aligned (Home, Cart next to logo) —— */
.ws-header__nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-self: center;
  flex: 1 1 auto;
  height: var(--ws-header-h);
  min-width: 0;
}

.ws-header__nav .main-menu,
.ws-header__nav .menu-style1 {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.ws-header__nav .main-menu > ul,
.ws-header__nav .menu-style1 > ul {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
}

.ws-header__nav .main-menu > ul > li,
.ws-header__nav .menu-style1 > ul > li {
  margin: 0 !important;
  float: none !important;
  display: inline-flex;
}

.ws-header__nav .main-menu > ul > li > a,
.ws-header__nav .menu-style1 > ul > li > a {
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #374151 !important;
  letter-spacing: -0.01em;
  padding: 10px 20px !important;
  min-height: 44px !important;
  height: auto !important;
  max-height: none !important;
  line-height: 1.25 !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  white-space: nowrap;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: #374151 !important;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ws-header__nav .main-menu > ul > li > a:hover,
.ws-header__nav .menu-style1 > ul > li > a:hover {
  color: var(--ws-header-accent) !important;
  -webkit-text-fill-color: var(--ws-header-accent) !important;
  background: rgba(255, 122, 0, 0.1) !important;
  border-radius: 12px !important;
}

/* Active — larger soft bg + rounded corners */
.ws-header__nav .ws-nav-active > a,
.ws-header__nav li.ws-nav-active > a,
.ws-header__nav .main-menu > ul > li.ws-nav-active > a,
.ws-header__nav .menu-style1 > ul > li.ws-nav-active > a {
  color: var(--ws-header-accent) !important;
  -webkit-text-fill-color: var(--ws-header-accent) !important;
  font-weight: 600 !important;
  background: rgba(255, 122, 0, 0.18) !important;
  padding: 12px 24px !important;
  min-height: 48px !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  border: none !important;
}

.ws-header__nav .main-menu > ul > li > a::before,
.ws-header__nav .menu-style1 > ul > li > a::before {
  display: none !important;
  content: none !important;
}

.ws-header__nav .ws-nav-active > a::after,
.ws-header__nav li.ws-nav-active > a::after {
  display: none !important;
  content: none !important;
}

.ws-header__nav .ws-nav-active > a:hover,
.ws-header__nav li.ws-nav-active > a:hover {
  color: #e86e00 !important;
  -webkit-text-fill-color: #e86e00 !important;
  background: rgba(255, 122, 0, 0.24) !important;
  border-radius: 14px !important;
}

/* Hide destination badge row (already display:none in markup) */
.ws-header__nav .ws-nav-destination {
  display: none !important;
}

/* —— Right actions —— */
.ws-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: auto;
  height: var(--ws-header-h);
  min-height: var(--ws-header-icon);
}

.ws-header__actions .header-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ws-header__actions .mr-15 {
  margin-right: 0 !important;
}

/* Hide username text — keep account icon only */
.ws-header__actions .ws-header-user-name {
  display: none !important;
}

/* Support Phone contact display after phone icon */
.ws-header__actions .contact-info .media-body {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 8px !important;
  line-height: 1;
  white-space: nowrap;
}
.ws-header__actions .contact-info .media-body p {
  margin: 0 !important;
  line-height: 1 !important;
}
.ws-header__actions .contact-info .media-body a {
  font-size: 19px !important;
  font-weight: 600;
  color: var(--ws-heading, #222);
  text-decoration: none !important;
  line-height: 1;
}
.ws-header__actions .contact-info .media-body a:hover {
  color: var(--ws-primary, #fa8507);
}

.ws-header__actions .contact-info.media,
.ws-header__actions .contact-info {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ws-header__actions .contact-info .media-icon {
  width: var(--ws-header-icon) !important;
  height: var(--ws-header-icon) !important;
  min-width: var(--ws-header-icon) !important;
  min-height: var(--ws-header-icon) !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 var(--ws-header-icon) !important;
  line-height: 1 !important;
}

.ws-header__actions .header-call-icon,
.ws-header .icon-btn,
.sticky-header-wrap.ws-header .icon-btn {
  width: var(--ws-header-icon) !important;
  height: var(--ws-header-icon) !important;
  min-width: var(--ws-header-icon) !important;
  min-height: var(--ws-header-icon) !important;
  border-radius: var(--ws-header-radius) !important;
  background: var(--ws-header-accent-soft) !important;
  border: none !important;
  color: var(--ws-header-accent) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  vertical-align: middle;
  box-sizing: border-box;
}

.ws-header__actions .header-call-icon:hover,
.ws-header .icon-btn:hover,
.sticky-header-wrap.ws-header .icon-btn:hover {
  background: var(--ws-header-accent-hover) !important;
  color: #e56d00 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.18);
}

.ws-header__actions .header-call-icon img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain;
  display: block;
}

.ws-header .icon-btn i,
.sticky-header-wrap.ws-header .icon-btn i {
  font-size: 22px !important;
  line-height: 1 !important;
  margin: 0 !important;
  display: block;
}

/* Cart badge — readable, centered count */
.ws-header .cart-btn,
.sticky-header-wrap.ws-header .cart-btn {
  position: relative !important;
  overflow: visible !important;
}

.ws-header .cart-btn .number,
.ws-header .cart-btn .cart-count,
.sticky-header-wrap.ws-header .cart-btn .number,
.sticky-header-wrap.ws-header .cart-btn .cart-count {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 6px !important;
  margin: 0 !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  border-radius: 999px !important;
  background: var(--ws-header-accent) !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.18);
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  vertical-align: middle !important;
  z-index: 3;
  transform: none !important;
  -webkit-font-smoothing: antialiased;
}

.ws-header .cart-btn .cart-count.is-empty,
.ws-header .cart-btn .number.is-empty,
.sticky-header-wrap.ws-header .cart-count.is-empty,
.sticky-header-wrap.ws-header .number.is-empty {
  display: none !important;
}

/* —— Body offset for fixed header —— */
@media (min-width: 992px) {
  :root {
    --ws-header-h: 100px;
    --ws-header-icon: 62px;
    --ws-header-logo: 74px;
    --ws-side-gutter: 32px;
  }

  body {
    padding-top: var(--ws-header-h) !important;
  }

  .sticky-header-wrap.desktop-view.ws-header {
    display: flex !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .header-wrapper.header-layout2 {
    display: none !important;
  }

  .ws-header__logo img {
    max-width: 240px;
  }

  .ws-header__actions .header-call-icon img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
  }

  .ws-header .icon-btn i,
  .sticky-header-wrap.ws-header .icon-btn i {
    font-size: 26px !important;
  }

  .ws-header .cart-btn .number,
  .ws-header .cart-btn .cart-count,
  .sticky-header-wrap.ws-header .cart-btn .number,
  .sticky-header-wrap.ws-header .cart-btn .cart-count {
    min-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 7px !important;
    font-size: 13px !important;
    top: -5px !important;
    right: -5px !important;
  }
}

/* —— Mobile —— */
@media (max-width: 991px) {
  :root {
    --ws-header-h: 72px;
    --ws-header-icon: 48px;
    --ws-header-logo: 48px;
    --ws-side-gutter: 16px;
  }

  body {
    padding-top: var(--ws-header-h) !important;
  }

  .sticky-header-wrap.mobile-view.ws-header {
    display: flex !important;
    height: var(--ws-header-h);
    min-height: var(--ws-header-h) !important;
    max-height: var(--ws-header-h);
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .sticky-header-wrap.mobile-view.ws-header > .container {
    min-height: var(--ws-header-h) !important;
  }

  .sticky-header-wrap.mobile-view.ws-header > .container > .row {
    width: 100%;
    min-height: var(--ws-header-h) !important;
    height: var(--ws-header-h);
    margin: 0 !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .sticky-header-wrap.mobile-view.ws-header .header-logo {
    padding: 0 !important;
    max-width: 140px;
    height: var(--ws-header-h);
    display: flex;
    align-items: center;
  }

  .sticky-header-wrap.mobile-view.ws-header .header-logo img {
    max-height: var(--ws-header-logo) !important;
  }

  .sticky-header-wrap.mobile-view.ws-header .vs-menu-toggle {
    width: var(--ws-header-icon) !important;
    height: var(--ws-header-icon) !important;
    min-width: var(--ws-header-icon) !important;
    min-height: var(--ws-header-icon) !important;
    border-radius: var(--ws-header-radius) !important;
    border: none !important;
    background: var(--ws-header-accent-soft) !important;
    color: var(--ws-header-accent) !important;
    margin: 0 0 0 auto !important;
    box-shadow: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .sticky-header-wrap.mobile-view.ws-header .vs-menu-toggle:hover {
    background: var(--ws-header-accent-hover) !important;
    transform: translateY(-1px);
  }

  .sticky-header-wrap.mobile-view.ws-header .vs-menu-toggle i {
    font-size: 20px;
    line-height: 1;
  }

  .sticky-header-wrap.mobile-view.ws-header .col-12.col-lg-3 {
    display: none !important;
  }
}

/* Mobile drawer polish (existing menu only) */
.vs-menu-area {
  font-family: "Inter", system-ui, sans-serif;
}

.vs-mobile-menu a {
  font-family: "Inter", system-ui, sans-serif !important;
  font-weight: 500 !important;
  border-radius: 8px;
  margin: 2px 8px;
  border-bottom: none !important;
}

.vs-mobile-menu a:hover {
  background: var(--ws-header-accent-soft);
  color: var(--ws-header-accent) !important;
}
