* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text: #f5f7ff;
  --muted: #b3b9d1;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #04050a;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(130, 0, 0, 0.35), transparent 45%),
    linear-gradient(180deg, #04050a 0%, #09020a 40%, #05060c 100%);
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
}

.container {
  width: min(1180px, 94%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 6, 12, 0.9);
  border-bottom: 1px solid rgba(255, 71, 71, 0.12);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #d9d9d9);
  display: grid;
  place-items: center;
  color: #111;
  font-size: 22px;
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text h1 {
  font-size: 28px;
  color: #ff5959;
}

.brand-text p {
  font-size: 13px;
  color: var(--muted);
}

.hero {
  margin-top: 18px;
}

.hero-animated-banner {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 71, 71, 0.18);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at center, rgba(255, 90, 90, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(122, 0, 0, 0.92), rgba(81, 0, 0, 0.74));
}

.hero-animated-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,190,190,0.18) 2px, transparent 2px);
  background-size: 70px 70px, 120px 120px;
  opacity: 0.35;
  animation: sparkMove 12s linear infinite;
}

.food {
  position: absolute;
  z-index: 2;
  font-size: 34px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35));
}

.food-1  { top: 28px; left: 6%;  animation: float1 7s ease-in-out infinite; }
.food-2  { top: 34px; left: 18%; animation: float2 8s ease-in-out infinite; }
.food-3  { top: 92px; left: 12%; animation: float3 6.5s ease-in-out infinite; }
.food-4  { top: 52px; left: 30%; animation: float4 7.8s ease-in-out infinite; }
.food-5  { top: 96px; left: 40%; animation: float5 7.2s ease-in-out infinite; }
.food-6  { top: 42px; left: 50%; animation: pulseFire 3s ease-in-out infinite; }
.food-7  { top: 98px; left: 58%; animation: float6 7.1s ease-in-out infinite; }
.food-8  { top: 38px; left: 66%; animation: float7 8.4s ease-in-out infinite; }
.food-9  { top: 94px; left: 74%; animation: float8 6.7s ease-in-out infinite; }
.food-10 { top: 30px; left: 82%; animation: float9 7.6s ease-in-out infinite; }
.food-11 { top: 92px; left: 88%; animation: float10 7.3s ease-in-out infinite; }
.food-12 { top: 56px; left: 92%; animation: float11 8.1s ease-in-out infinite; }

.menu-section {
  margin-top: 16px;
  padding-bottom: 50px;
}

.category-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.category-btn {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--line);
  padding: 11px 18px;
  border-radius: 999px;
}

.category-btn.active {
  background: linear-gradient(180deg, #ff5f5f, #ff3939);
  border-color: transparent;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.product-card {
  background: rgba(5, 12, 26, 0.92);
  border: 1px solid rgba(255, 71, 71, 0.09);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-image-wrap {
  position: relative;
  height: 210px;
  background: #0b1222;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.badge.promo {
  background: rgba(255, 71, 71, 0.92);
}

.badge.popular {
  background: rgba(255, 200, 0, 0.9);
  color: #111;
}

.product-content {
  padding: 16px;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.product-title-row h3 {
  font-size: 20px;
}

.product-category {
  color: #ff8c8c;
  font-size: 13px;
  margin-top: 4px;
}

.product-description {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 14px;
  min-height: 42px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.current-price {
  font-size: 22px;
  font-weight: 800;
}

.old-price {
  font-size: 14px;
  color: #ff8f8f;
  text-decoration: line-through;
}

.size-select {
  width: 100%;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--line);
  padding: 12px 14px;
}

.add-btn {
  width: 100%;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #ff5e5e, #ff3131);
  color: #fff;
  font-weight: 700;
}

.add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-text {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  background: rgba(7, 14, 28, 0.9);
  border-radius: 18px;
  border: 1px solid var(--line);
}

.floating-cart-btn {
  position: fixed;
  right: 18px;
  top: 92px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff5b5b, #ff3030);
  color: #fff;
  box-shadow: 0 16px 30px rgba(255, 48, 48, 0.35);
  z-index: 90;
  display: grid;
  place-items: center;
}

.cart-icon {
  font-size: 24px;
}

.floating-cart-count {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  color: #ff2f2f;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 6px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 95;
}

.hidden {
  display: none !important;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(420px, 100%);
  height: 100vh;
  background: rgba(8, 10, 18, 0.98);
  border-left: 1px solid rgba(255, 71, 71, 0.12);
  z-index: 100;
  transition: right 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.34);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-size: 24px;
}

.close-cart-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cart-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.cart-item-top {
  display: flex;
  gap: 12px;
}

.cart-item-image {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 16px;
  background: #0c1220;
}

.cart-item-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cart-item-sub {
  color: var(--muted);
  font-size: 13px;
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 10px;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.remove-btn {
  background: rgba(255, 71, 71, 0.14);
  color: #ff7a7a;
  border-radius: 999px;
  padding: 10px 14px;
}

.cart-summary {
  border-top: 1px solid var(--line);
  padding: 16px;
  background: rgba(10, 14, 24, 0.98);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 18px;
}

.checkout-btn,
.submit-order-btn {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  font-weight: 700;
  background: linear-gradient(180deg, #ff5e5e, #ff3232);
  color: #fff;
}

.order-form-wrapper {
  margin-top: 14px;
}

.order-form-wrapper h4 {
  margin-bottom: 12px;
}

.order-form {
  display: grid;
  gap: 10px;
}

.order-form input,
.order-form textarea,
.order-form select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 13px 14px;
}

.order-form textarea {
  min-height: 90px;
  resize: vertical;
}

@keyframes sparkMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-40px);
  }
}

@keyframes float1 {
  0%,100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(14px) rotate(6deg); }
}
@keyframes float2 {
  0%,100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-12px) rotate(-8deg); }
}
@keyframes float3 {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(7deg); }
}
@keyframes float4 {
  0%,100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(16px) rotate(-6deg); }
}
@keyframes float5 {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}
@keyframes float6 {
  0%,100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(12px) rotate(-6deg); }
}
@keyframes float7 {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-13px) rotate(7deg); }
}
@keyframes float8 {
  0%,100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(14px) rotate(-5deg); }
}
@keyframes float9 {
  0%,100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}
@keyframes float10 {
  0%,100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(15px) rotate(-7deg); }
}
@keyframes float11 {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-11px) rotate(6deg); }
}
@keyframes pulseFire {
  0%,100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}

@media (max-width: 900px) {
  .hero-animated-banner {
    height: 160px;
  }

  .food {
    font-size: 28px;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    min-height: 70px;
  }

  .brand-text h1 {
    font-size: 22px;
  }

  .hero-animated-banner {
    height: 120px;
    border-radius: 22px;
  }

  .food {
    font-size: 22px;
  }

  .food-1  { top: 18px; left: 6%; }
  .food-2  { top: 20px; left: 18%; }
  .food-3  { top: 70px; left: 10%; }
  .food-4  { top: 24px; left: 31%; }
  .food-5  { top: 68px; left: 42%; }
  .food-6  { top: 18px; left: 52%; }
  .food-7  { top: 70px; left: 60%; }
  .food-8  { top: 20px; left: 68%; }
  .food-9  { top: 68px; left: 76%; }
  .food-10 { top: 18px; left: 84%; }
  .food-11 { top: 66px; left: 89%; }
  .food-12 { top: 34px; left: 93%; }

  .floating-cart-btn {
    width: 56px;
    height: 56px;
    right: 14px;
    top: 82px;
  }
}