@font-face {
  font-family: 'Tajawal';
  src: url('/hotspot/assets/fonts/tajawal-arabic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/hotspot/assets/fonts/tajawal-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/hotspot/assets/fonts/tajawal-arabic-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/hotspot/assets/fonts/tajawal-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/hotspot/assets/fonts/tajawal-arabic-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/hotspot/assets/fonts/tajawal-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/hotspot/assets/fonts/tajawal-arabic-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/hotspot/assets/fonts/tajawal-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-2: #F3F1EC;
  --surface-glass: rgba(250, 249, 246, 0.82);
  --ink: #161618;
  --ink-2: #5A5A62;
  --ink-3: #8A8A94;
  --line: rgba(22, 22, 24, 0.085);
  --line-strong: rgba(22, 22, 24, 0.14);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-sheet: 0 24px 64px rgba(15, 23, 42, 0.22);

  --brand: #D9531E;
  --brand-ink: #FFFFFF;
  --brand-soft: color-mix(in srgb, var(--brand) 11%, transparent);
  --brand-ring: color-mix(in srgb, var(--brand) 28%, transparent);
  --wa: #16A34A;
  --wa-ink: #FFFFFF;
  --ok: #10B981;
  --gold: #F59E0B;
  --danger: #DC2626;
  --hero-bg: #161822;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Tajawal', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0B0C0F;
  --surface: #14161B;
  --surface-2: #1C1F27;
  --surface-glass: rgba(15, 17, 22, 0.80);
  --ink: #F5F5F7;
  --ink-2: #A6A8B3;
  --ink-3: #767985;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.42);
  --shadow-sheet: 0 28px 72px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: clip;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.hp-num { font-variant-numeric: tabular-nums; }

.hp-wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

/* 1. Sticky Glass Navbar */
.hp-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.hp-nav-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hp-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hp-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--brand-ink);
  overflow: hidden;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 28%, transparent);
}

.hp-logo.has-img {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.hp-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-logo svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-brand-txt {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.hp-brand-txt b {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-brand-txt small {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-nav-utils {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.hp-icon-btn,
.hp-lang-btn {
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms var(--ease-spring), opacity 160ms var(--ease-spring);
}

.hp-icon-btn { width: 38px; padding: 0; }
.hp-lang-btn { padding: 0 14px; }

.hp-icon-btn svg,
.hp-lang-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-icon-btn:active,
.hp-lang-btn:active {
  transform: scale(0.94);
}

html[data-theme="dark"] .hp-ic-moon { display: none; }
html:not([data-theme="dark"]) .hp-ic-sun { display: none; }

/* 2. Editorial Full-Bleed Hero */
.hp-hero {
  position: relative;
  min-height: clamp(248px, 32vw, 368px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(28px, 4.5vw, 52px);
  color: #FFFFFF;
  background-color: var(--hero-bg);
  background-image:
    radial-gradient(920px 420px at 14% 16%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 64%),
    radial-gradient(760px 380px at 88% 84%, rgba(255, 255, 255, 0.12), transparent 68%),
    linear-gradient(155deg, color-mix(in srgb, var(--hero-bg) 92%, #000) 0%, #0E1016 100%);
  overflow: hidden;
}

.hp-app[data-has-bg="image"] .hp-hero {
  background-image: var(--hero-bg-img);
  background-size: cover;
  background-position: center;
}

.hp-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 15, 0.34) 0%,
    rgba(11, 12, 15, 0.56) 52%,
    rgba(11, 12, 15, 0.86) 100%
  );
}

.hp-hero-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 28px;
}

.hp-hero-copy {
  max-width: 680px;
  display: grid;
  gap: 10px;
}

.hp-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.hp-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34D399;
  animation: hpPulse 2.4s ease-in-out infinite;
}

.hp-badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes hpPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.38; }
}

.hp-hero h1 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}

.hp-hero p {
  margin: 0;
  font-size: clamp(14.5px, 1.4vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  max-width: 58ch;
}

.hp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp-hero-pill {
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 160ms var(--ease-spring), opacity 160ms var(--ease-spring);
}

.hp-hero-pill.is-wa {
  background: var(--wa);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.hp-hero-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-hero-pill:active { transform: scale(0.96); }

/* 3. Promo Banner */
.hp-promo-wrap {
  padding-top: 20px;
}

.hp-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--brand-ring);
  box-shadow: var(--shadow-sm);
}

.hp-promo-ic {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}

.hp-promo-ic svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-promo-txt {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.hp-promo-txt b {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.hp-promo-txt small {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* 4. Segmented Control for Guest Room/Table Portal */
.hp-seg-bar {
  padding-top: 20px;
  display: flex;
  justify-content: center;
}

.hp-seg {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 5px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  width: min(100%, 540px);
}

.hp-seg-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: calc((100% - 10px) / var(--seg-n, 3));
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 280ms var(--ease-spring), opacity 180ms ease;
  pointer-events: none;
  z-index: 1;
}

.hp-seg button {
  position: relative;
  z-index: 2;
  height: 42px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-spring), opacity 160ms ease;
}

.hp-seg button.on {
  color: var(--ink);
}

.hp-seg button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.hp-seg button:active {
  transform: scale(0.96);
}

/* 5. Sticky Glass Category + Search Toolbar */
.hp-toolbar {
  position: sticky;
  top: 64px;
  z-index: 30;
  margin-top: 18px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hp-toolbar-in {
  padding-block: 11px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hp-cats-scroll {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 2px;
  flex: 1 1 420px;
  min-width: 0;
}

.hp-cats-scroll::-webkit-scrollbar { display: none; }

.hp-cat-indicator {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 1px;
  border-radius: 999px;
  background: var(--brand);
  transform-origin: left center;
  transition: transform 280ms var(--ease-spring), opacity 180ms ease;
  pointer-events: none;
  z-index: 0;
}

.hp-cat-chip {
  position: relative;
  z-index: 1;
  flex: none;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-spring), opacity 160ms ease;
}

.hp-cat-chip.on {
  background: var(--brand);
  border-color: transparent;
  color: var(--brand-ink);
}

.hp-cats-scroll.has-ind .hp-cat-chip.on {
  background: transparent;
}

.hp-cat-chip:active {
  transform: scale(0.95);
}

.hp-search {
  flex: 0 1 290px;
  min-width: 220px;
  height: 40px;
  padding-inline: 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.hp-search svg {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.hp-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}

.hp-search input::placeholder { color: var(--ink-3); }

@media (max-width: 720px) {
  .hp-toolbar-in {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
  .hp-cats-scroll { flex: none; }
  .hp-search { flex: none; min-width: 0; width: 100%; }
}

/* 6. Main Storefront & Portal Layout */
.hp-shell {
  padding-top: 24px;
  padding-bottom: 112px;
}

.hp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (min-width: 1024px) {
  .hp-layout.has-side {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
  .hp-shell {
    padding-bottom: 56px;
  }
}

.hp-main {
  min-width: 0;
  display: grid;
  gap: 32px;
}

/* Category Section */
.hp-cat-sec {
  display: grid;
  gap: 14px;
}

.hp-sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.hp-sec-hd h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hp-sec-cnt {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

/* Menu Grid & Editorial Dish Card */
.hp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}

.hp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 220ms var(--ease-spring);
}

.hp-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
  flex: none;
}

.hp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 420ms var(--ease-spring);
}

@media (hover: hover) {
  .hp-card:hover .hp-card-media img {
    transform: scale(1.045);
  }
}

.hp-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 22% 22%, var(--brand-soft), transparent 65%),
    var(--surface-2);
  color: var(--ink-3);
}

.hp-card-placeholder svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  opacity: 0.48;
}

.hp-card-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.hp-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.hp-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.hp-mod-tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.hp-card-descr {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-card-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hp-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hp-price small {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

/* Tactile Qty Pill Stepper */
.hp-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.hp-qty button {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms var(--ease-spring), opacity 150ms ease;
}

.hp-qty button[data-q-act="add"] {
  background: var(--brand);
  color: var(--brand-ink);
}

.hp-qty button[data-q-act="sub"] {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.hp-qty span[data-q-val] {
  min-width: 22px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hp-qty[data-count="0"] button[data-q-act="sub"],
.hp-qty[data-count="0"] span[data-q-val] {
  display: none;
}

.hp-qty[data-count="0"] {
  padding: 0;
  border: 0;
  background: transparent;
}

.hp-qty[data-count="0"] button[data-q-act="add"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  white-space: nowrap;
}

.hp-qty:not([data-count="0"]) .hp-q-addlbl {
  display: none;
}

.hp-qty button:active { transform: scale(0.92); }

/* Mobile Horizontal Dish Cards (< 640px) */
@media (max-width: 639px) {
  .hp-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hp-card {
    flex-direction: row-reverse;
    align-items: stretch;
    padding: 12px;
    gap: 12px;
    border-radius: 18px;
  }
  .hp-card-media {
    width: 98px;
    height: 98px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    align-self: center;
  }
  .hp-card-body {
    padding: 0;
    gap: 5px;
  }
}

.hp-empty-state {
  padding: 40px 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  text-align: center;
  color: var(--ink-2);
  display: grid;
  justify-items: center;
  gap: 8px;
}

.hp-empty-state svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  color: var(--ink-3);
}

/* 7. Sticky Desktop Cart & Live Tracker Sidebar */
.hp-side {
  display: none;
}

@media (min-width: 1024px) {
  .hp-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 140px;
  }
}

.hp-side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 14px;
}

.hp-side-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hp-side-hd-t {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}

.hp-side-hd-t svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-side-cnt {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.hp-side-list {
  display: grid;
  gap: 10px;
  max-height: 310px;
  overflow-y: auto;
}

.hp-side-empty {
  padding: 26px 10px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-2);
}

.hp-side-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hp-side-row:last-child { border-bottom: 0; padding-bottom: 0; }

.hp-side-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.hp-side-info b {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.hp-side-info small {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.hp-side-tot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Buttons */
.hp-btn {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 14.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 160ms var(--ease-spring), opacity 160ms ease;
}

.hp-btn.is-wa {
  background: var(--wa);
  color: var(--wa-ink);
}

.hp-btn.is-ghost {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.hp-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.hp-btn:not(:disabled):active { transform: scale(0.97); }

.hp-btn .hp-spin {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
  border-top-color: currentColor;
  animation: hpSpin 0.7s linear infinite;
}

.hp-btn.busy .hp-spin { display: block; }
.hp-btn.busy .hp-lbl { display: none; }

@keyframes hpSpin { to { transform: rotate(360deg); } }

/* 8. Mobile Opaque High-Contrast Floating Cart Dock */
.hp-dock {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 45;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sheet);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 120%, 0);
  transition: transform 280ms var(--ease-spring), opacity 200ms ease;
}

.hp-dock.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

@media (min-width: 1024px) {
  .hp-dock { display: none !important; }
}

.hp-dock-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hp-dock-cnt {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--brand-ink);
  font-size: 13.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.hp-dock-txt {
  display: grid;
  line-height: 1.25;
}

.hp-dock-txt b {
  font-size: 14.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hp-dock-txt small {
  font-size: 12px;
  opacity: 0.9;
}

.hp-dock-cta {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0;
  background: #FFFFFF;
  color: #161618;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: none;
  transition: transform 150ms var(--ease-spring);
}

.hp-dock-cta:active { transform: scale(0.95); }

/* 9. Portal Panes: Wi-Fi Onboarding, Service Concierge, Rating Gate & Order Tracker */
.hp-wifi-wrap {
  max-width: 600px;
  margin-inline: auto;
  display: grid;
  gap: 16px;
}

.hp-portal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}

.hp-portal-card-hd {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hp-ic-well {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}

.hp-ic-well.is-ok {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
}

.hp-ic-well.is-gold {
  background: color-mix(in srgb, var(--gold) 15%, transparent);
  color: var(--gold);
}

.hp-ic-well svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-portal-card-hd b {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.3;
}

.hp-portal-card-hd small {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.hp-step-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.hp-step-pill.is-ok {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
}

.hp-err-box {
  padding: 11px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

/* Service Cards Grid */
.hp-srv-wrap {
  max-width: 880px;
  margin-inline: auto;
  display: grid;
  gap: 20px;
}

.hp-srv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .hp-srv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hp-srv-btn {
  text-align: start;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: transform 180ms var(--ease-spring);
}

.hp-srv-btn:active { transform: scale(0.97); }

.hp-srv-btn b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.hp-srv-btn small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Star Rating Card */
.hp-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hp-star {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 170ms var(--ease-spring), opacity 160ms ease;
}

.hp-star svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hp-star.on {
  background: color-mix(in srgb, var(--gold) 15%, transparent);
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  color: var(--gold);
}

.hp-star.on svg {
  fill: currentColor;
}

.hp-star:active { transform: scale(0.9); }

/* Live Order / Service Tracker Boxes */
.hp-tracker {
  display: grid;
  gap: 10px;
}

.hp-track-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 10px;
}

.hp-track-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
}

.hp-pill-st {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 800;
}

.hp-pill-st.is-ok {
  background: color-mix(in srgb, var(--ok) 15%, transparent);
  color: var(--ok);
}

.hp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.hp-steps span {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-2);
}

.hp-steps span.on { background: var(--brand); }
.hp-steps span.done { background: var(--ok); }

/* 10. Draggable Apple Bottom Sheets (Mobile) & Centered Modals (Desktop) */
.hp-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 12, 18, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-spring);
}

.hp-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.hp-sheet {
  width: 100%;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: 26px 26px 0 0;
  border-top: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sheet);
  padding: 10px 20px max(22px, env(safe-area-inset-bottom));
  display: grid;
  gap: 14px;
  transform: translate3d(0, 100%, 0);
  transition: transform 320ms var(--ease-spring), opacity 220ms var(--ease-spring);
}

.hp-scrim.open .hp-sheet {
  transform: translate3d(0, 0, 0);
}

.hp-sheet-head {
  touch-action: none;
  padding-bottom: 4px;
  display: grid;
  gap: 10px;
  cursor: grab;
}

.hp-grab {
  width: 40px;
  height: 5px;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--line-strong);
}

.hp-sheet h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .hp-scrim {
    align-items: center;
    padding: 24px;
  }
  .hp-sheet {
    max-width: 480px;
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    padding: 22px 24px 24px;
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.96);
  }
  .hp-scrim.open .hp-sheet {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  .hp-grab { display: none; }
  .hp-sheet-head { cursor: default; touch-action: auto; }
}

.hp-sheet-seg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.hp-sheet-seg button {
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms var(--ease-spring);
}

.hp-sheet-seg button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.hp-sheet-seg button:active { transform: scale(0.96); }

.hp-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp-chip-btn {
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms var(--ease-spring);
}

.hp-chip-btn.on {
  background: var(--brand);
  border-color: transparent;
  color: var(--brand-ink);
}

.hp-chip-btn:active { transform: scale(0.95); }

.hp-in,
.hp-ta {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  outline: 0;
}

.hp-in:focus,
.hp-ta:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.hp-sheet-foot {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

.hp-sheet-foot .hp-btn.is-ghost { flex: 1; }
.hp-sheet-foot .hp-btn:not(.is-ghost) { flex: 2; }

/* 11. Floating Toast */
.hp-toast {
  position: fixed;
  left: 50%;
  bottom: max(26px, env(safe-area-inset-bottom));
  z-index: 100;
  max-width: min(90vw, 400px);
  padding: 12px 18px;
  border-radius: 999px;
  background: #161618;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-sheet);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 16px, 0) scale(0.95);
  transition: transform 240ms var(--ease-spring), opacity 200ms ease;
}

html[data-theme="dark"] .hp-toast {
  background: #F5F5F7;
  color: #161618;
}

.hp-toast.on {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}

/* 12. Footer */
.hp-footer {
  padding-block: 24px 34px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}

/* 13. Reduced Motion, Reduced Transparency & High Contrast */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hp-badge-dot,
  .hp-btn .hp-spin { animation: none !important; }
  .hp-icon-btn,
  .hp-lang-btn,
  .hp-hero-pill,
  .hp-seg-thumb,
  .hp-seg button,
  .hp-cat-indicator,
  .hp-cat-chip,
  .hp-card,
  .hp-card-media img,
  .hp-qty button,
  .hp-dock,
  .hp-dock-cta,
  .hp-btn,
  .hp-srv-btn,
  .hp-star,
  .hp-scrim,
  .hp-sheet,
  .hp-sheet-seg button,
  .hp-chip-btn,
  .hp-toast {
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hp-nav,
  .hp-toolbar {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hp-scrim {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root, html[data-theme="dark"] {
    --line: rgba(128, 128, 140, 0.35);
    --line-strong: rgba(128, 128, 140, 0.55);
  }
}
