:root {
  --af-blue: #1769aa;
  --af-blue-dark: #0b4f83;
  --af-red: #d9363e;
  --af-green: #2f8f55;
  --af-surface: #f5f8fb;
  --af-text: #17324d;
  --af-muted: #6b7f8f;
  --af-white: #ffffff;
  --af-radius: 18px;
}

body {
  background: radial-gradient(circle at 8% 5%, rgba(23, 105, 170, .12), transparent 26%), radial-gradient(circle at 92% 18%, rgba(217, 54, 62, .08), transparent 24%), linear-gradient(180deg, #f9fcff 0%, #f4f8fb 48%, #fffaf2 100%) !important;
  color: var(--af-text);
}

a { color: var(--af-blue); }

button, .btn, .save, .confirm, .primary, .add {
  background: linear-gradient(135deg, var(--af-blue), #2588cf) !important;
  color: #fff !important;
  border-color: var(--af-blue) !important;
  box-shadow: 0 5px 14px rgba(23, 105, 170, .18);
}

button:hover, .btn:hover, .save:hover, .confirm:hover, .primary:hover, .add:hover {
  background: linear-gradient(135deg, var(--af-blue-dark), var(--af-blue)) !important;
}

.active, .selected { border-color: var(--af-blue) !important; }

input:focus, select:focus, textarea:focus {
  border-color: var(--af-blue) !important;
  outline: 3px solid rgba(23, 105, 170, .12);
}

.error, .danger { border-color: #ffd0ce; }
.success, .available { border-color: #b9e2bc; }
.brand, .logo { color: var(--af-blue-dark); }
#rating, #storeRating { color: #a66b00 !important; }
.af-brand-red { background: var(--af-red) !important; color: #fff !important; }
.af-brand-green { background: var(--af-green) !important; color: #fff !important; }
.af-brand-card { background: var(--af-white); border: 1px solid #dbeaf7; border-radius: var(--af-radius); box-shadow: 0 8px 24px rgba(21, 101, 192, .09); }

/* Customer menu visual system */
body:has(#cats) .wrap { max-width: 760px; padding: 14px; }

body:has(#cats) .header {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 18px;
  border: 1px solid #d8eaf7;
  border-radius: 26px;
  background: radial-gradient(circle at 88% 0%, rgba(255,255,255,.95), transparent 30%), radial-gradient(circle at 8% 100%, rgba(255,255,255,.78), transparent 34%), linear-gradient(135deg, #eaf7ff 0%, #ffffff 58%, #fff7ef 100%);
  box-shadow: 0 14px 36px rgba(20, 77, 112, .12);
}

body:has(#cats) .header::after {
  content: '';
  position: absolute;
  left: -35px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(217, 54, 62, .07);
  pointer-events: none;
}

body:has(#cats) .logo {
  position: relative;
  z-index: 1;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 62px;
  background: url('favicon.svg') right center / 52px 52px no-repeat;
  font-size: 26px;
  letter-spacing: -.5px;
}

body:has(#cats) .hello { position: relative; z-index: 1; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--af-muted); }
body:has(#cats) .points { position: relative; z-index: 1; background: linear-gradient(135deg, #fff8df, #fffdf4); border: 1px solid #efd98d; box-shadow: 0 5px 14px rgba(170, 120, 0, .08); }
body:has(#cats) .info { position: relative; z-index: 1; margin-top: 13px; }
body:has(#cats) .info span { background: rgba(255,255,255,.82); border: 1px solid rgba(211, 229, 241, .9); color: #35566f; box-shadow: 0 3px 10px rgba(20, 77, 112, .05); }
body:has(#cats) .free { position: relative; z-index: 1; background: linear-gradient(135deg, #fff1df, #fff9f1); border: 1px solid #ffd6b2; color: #b94e00; }

body:has(#cats) .title {
  margin: 24px 3px 12px;
  color: var(--af-blue-dark);
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body:has(#cats) .title::before {
  content: '';
  width: 5px;
  height: 22px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--af-red), var(--af-blue));
}

body:has(#cats) .cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  overflow: visible;
  padding: 2px 0 4px;
}

body:has(#cats) .cat {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  white-space: normal;
  line-height: 1.35;
  text-align: center;
  color: var(--af-text) !important;
  background: rgba(255,255,255,.94) !important;
  border: 1px solid #d8e6f0 !important;
  border-radius: 15px;
  box-shadow: 0 4px 13px rgba(20, 77, 112, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body:has(#cats) .cat:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(20, 77, 112, .1); }
body:has(#cats) .cat.active { color: #fff !important; background: linear-gradient(135deg, var(--af-blue-dark), var(--af-blue)) !important; border-color: var(--af-blue-dark) !important; box-shadow: 0 7px 18px rgba(23, 105, 170, .2); }
body:has(#cats) .products { gap: 13px; }
body:has(#cats) .product { padding: 10px; border: 1px solid #dce9f2; border-radius: 19px; background: rgba(255,255,255,.97); box-shadow: 0 8px 22px rgba(20, 77, 112, .08); transition: transform .18s ease, box-shadow .18s ease; }
body:has(#cats) .product:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 77, 112, .13); }
body:has(#cats) .pic { height: 150px; border-radius: 15px; background: radial-gradient(circle at 30% 20%, #fff, transparent 34%), linear-gradient(145deg, #eaf7ff, #fff5e8); border: 1px solid #e4eef5; }
body:has(#cats) .name { color: #17324d; font-size: 15px; line-height: 1.4; }
body:has(#cats) .desc { color: #718594; line-height: 1.45; }
body:has(#cats) .price { color: var(--af-blue-dark); font-size: 15px; }
body:has(#cats) .add { width: 40px; height: 40px; border-radius: 13px; font-weight: 900; }
body:has(#cats) .bar { background: linear-gradient(135deg, #123f66, #1769aa); box-shadow: 0 10px 30px rgba(12, 63, 101, .3); }
body:has(#cats) .nav { height: 76px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid #dce8f0; box-shadow: 0 -6px 20px rgba(20, 77, 112, .06); }
body:has(#cats) .nav a { color: #7890a0; }
body:has(#cats) .nav a.active { color: var(--af-blue-dark); }
body:has(#cats) .cart { border: 1px solid #dbeaf5; box-shadow: 0 12px 30px rgba(20, 77, 112, .09); }

@media (max-width: 480px) {
  body:has(#cats) .wrap { padding: 10px; }
  body:has(#cats) .logo { font-size: 22px; background-size: 46px 46px; padding-right: 54px; }
  body:has(#cats) .cats { grid-template-columns: 1fr 1fr; gap: 7px; }
  body:has(#cats) .cat { min-height: 52px; font-size: 13px; padding: 9px 7px; }
  body:has(#cats) .pic { height: 125px; }
}
