 /* ------------------------------------------------------------------
   styles.css — updated 2025-12-28
   Improvements:
   - fixed selector typos (.sidebar, .tag align-items, repeated rules)
   - improved marquee animation behavior
   - added modern card styles, badges/notations, subtle motions
   - added glass/gradient panels, improved color contrasts
   - added prefers-reduced-motion support
-------------------------------------------------------------------*/

/* ------------------------------------------------------------
   ROOT VARIABLES
-------------------------------------------------------------*/
:root {
  --accent: #b94b83;
  --bg: #22D3EE;
  --panel: #3A8C94; /* panel background */
  --panel-2: rgba(255,255,255,0.06);
  --text: #ffffff;
  --muted: #d7b4dd;

  --container: 1100px;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(0,0,0,0.22);
  --soft-shadow: 0 8px 24px rgba(0,0,0,0.18);
  --glass: rgba(255,255,255,0.04);
  --card-gradient: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(0,0,0,0.06));
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  --glass-border: rgba(255,255,255,0.06);
  --success: #25D366;
  --danger: #ff6b6b;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

h4 {
  color: #c9a24d;
  font-weight: 600;

  padding: 10px 14px;
  border-bottom: 2px solid rgba(201, 162, 77, 0.6);
  background: transparent;
}


/* ------------------------------------------------------------
   GLOBAL
-------------------------------------------------------------*/
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  margin: 0;
  background: linear-gradient(180deg, var(--bg), #111827 60%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  -webkit-font-feature-settings: "liga" on;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem;
}

/* small utility */
.muted { color: var(--muted); }

/* ------------------------------------------------------------
   MARQUEE (fixed + smoother)
-------------------------------------------------------------*/
.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 8px;
  padding: 8px 0;
}

.marquee__inner {
  display: inline-block;
  will-change: transform;
  animation: marquee 14s linear infinite;
  font-size: 18px;
  color: gold;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ------------------------------------------------------------
   PROFILE AVATAR (TOP RIGHT)
-------------------------------------------------------------*/
.profile-avatar {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  z-index: 9999;
  background: var(--glass);
}

.profile-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

/* ------------------------------------------------------------
   HEADER
-------------------------------------------------------------*/
.site-header {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.brand-link {
  color: var(--accent);
  text-decoration: none;
}

.brand h1 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.2px;
}

.tag {
  align-items: center; /* fixed from align-item */
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  display: inline-flex;
  gap: 6px;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  color: var(--text); /* make visible on panel */
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 180ms ease, transform 160ms ease, color 160ms ease;
}

.nav-link:hover {
  background: rgba(255,255,255,0.03);
  transform: translateY(-3px);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-link {
  color: var(--accent);
  font-size: 1.2rem;
  text-decoration: none;
}

.social-link:hover { opacity: 0.9; transform: translateY(-2px); }

.cart-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.cart-count {
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  font-size: 0.85rem;
  box-shadow: 0 6px 14px rgba(185,75,131,0.18);
}

/* ------------------------------------------------------------
   HERO
-------------------------------------------------------------*/
.hero {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: center;
}

.hero h2 {
  margin: 0;
  font-size: 2.2rem;
  color: #fff;
  letter-spacing: -0.2px;
}

.hero-sub { color: var(--muted); margin: 0.5rem 0 1rem; }

/* ------------------------------------------------------------
   BUTTONS
-------------------------------------------------------------*/
.btn {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0,0,0,0.28);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* ------------------------------------------------------------
   CARD STYLES (new)
   Use .card to wrap menu items or promotional blocks
-------------------------------------------------------------*/
.card {
  position: relative;
  background: var(--card-gradient);
  border-radius: 14px;
  padding: 14px;
  color: #2b0f2b;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18,10,22,0.45);
  border: 1px solid var(--glass-border);
  transition: transform 240ms cubic-bezier(.2,.9,.3,1), box-shadow 240ms ease;
  transform-origin: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card hover tilt + lift */
.card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 20px 50px rgba(12,8,18,0.55);
}

/* Card image */
.card .card-media {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: inset 0 -10px 24px rgba(0,0,0,0.12);
}

/* Card content area */
.card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card .card-title {
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}

.card .card-text {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Card footer / actions */
.card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Ribbon / badge for notations */
.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: linear-gradient(90deg, #ff8a65, #ff7043);
  color: white;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 8px 16px rgba(255,110,80,0.18);
  transform-origin: left top;
  z-index: 6;
}

/* Variant badges */
.badge-new { background: linear-gradient(90deg,#ffd54f,#ffb74d); color: #3b1a00; }
.badge-sale { background: linear-gradient(90deg,#ff6b6b,#ff3b3b); }
.badge-special { background: linear-gradient(90deg,#5ee7df,#b49bff); color: #140018; }

/* Animated pulse for attention */
.pulse {
  animation: pulse 1400ms ease-in-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.92; }
  100% { transform: scale(1); opacity: 1; }
}

/* Small motion utilities */
.float { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* Quick reveal for list items */
.reveal {
  opacity: 0;
  transform: translateY(6px);
  animation: reveal 420ms forwards ease;
  animation-delay: 120ms;
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Notation chips for price/ingredients */
.chips {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chips .chip {
  background: rgba(0,0,0,0.06);
  color: var(--text);
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.03);
}

/* ------------------------------------------------------------
   MENU CARDS (map old classes to new visuals)
-------------------------------------------------------------*/
.menu-section {
  padding: 1rem 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

/* grid uses cards now */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.menu-item {
  /* legacy support: keep minimal for older markup */
  background: transparent;
  padding: 0;
  border-radius: var(--radius);
  text-align: center;
  color: #470237;
}

/* Menu item image + price */
.menu-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.36);
}

.price {
  color: #ffb45a;
  font-weight: 700;
  margin: 0.4rem 0;
}

/* item actions follow card style */
.item-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  gap: 8px;
}

/* ------------------------------------------------------------
   ABOUT + CONTACT SECTION
-------------------------------------------------------------*/
.about-section,
.contact-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #efe3f1;
  border: 1px solid rgba(255,255,255,0.03);
}

.map-wrap iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 10px;
}

/* ------------------------------------------------------------
   FOOTER
-------------------------------------------------------------*/
.site-footer {
  padding: 1rem 0;
  text-align: center;
  color: var(--muted);
  margin-top: 1rem;
}

/* ------------------------------------------------------------
   MODAL
-------------------------------------------------------------*/
.modal {
  position: fixed;
  inset: 0;
  background: navy;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9998;
}

.modal.hidden { display: none; }

.modal-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  padding: 1rem;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  position: relative;
  color: #470237;
  box-shadow: 0 18px 40px rgba(5,3,12,0.6);
  border: 1px solid rgba(255,255,255,0.04);
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 6px;
  border: 0;
  background: rgba(212, 175, 55, 0.25) /* luxury gold (very classy) */;
  font-size: 1.6rem;
  cursor: pointer;
}

.cart-items {
  max-height: 230px;
  overflow: auto;
  margin-bottom: 1rem;
  padding-right: 0.25rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.12);
  color: #470237;
}

/* ------------------------------------------------------------
   FORM
-------------------------------------------------------------*/
.order-form { display: flex; flex-direction: column; gap: 0.6rem; }
.order-form label { color: #470237; font-size: 0.9rem; }
.order-form input,
.order-form textarea {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.02);
  color: var(--text);
}
/* Light-green cart form label text */
#cartModal label,
.modal .cart-form label,
.cart-form label {
  color: #90ee90 !important; /* light green */
}


/* ------------------------------------------------------------
   WHATSAPP FLOATING BUTTON
-------------------------------------------------------------*/
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 62px;
  height: 62px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,0.16);
  z-index: 9999;
  cursor: pointer;
  transition: transform 180ms ease;
}
.whatsapp-float:hover { transform: translateY(-6px); }
.whatsapp-icon { width: 36px; height: 36px; }

/* ------------------------------------------------------------
   RESPONSIVE
-------------------------------------------------------------*/
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 0.8rem; }
  .card { min-height: 150px; }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .map-wrap iframe { height: 220px; }
  .profile-avatar { width: 44px; height: 44px; top: 10px; right: 10px; }
}

/* ------------------------------------------------------------
   MENU ICON + SIDEBAR
-------------------------------------------------------------*/
/* Menu icon */
.menu-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 28px;
  background: #111;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1001;
}

/* Sidebar (fixed) — fixed selector typo removed */
.sidebar {
  position: fixed;
  left: -260px; /* hidden by default */
  width: 260px;
  top: 0;
  bottom: 0;
  background: #272727;
  color: #fff;
  transition: left 0.34s cubic-bezier(.2,.9,.25,1);
  padding: 20px;
  z-index: 1002;
  box-shadow: 8px 0 30px rgba(0,0,0,0.5);
}
.sidebar.active { left: 0; }

/* push content when sidebar is open */
.main-content.shift {
  margin-left: 260px;
  transition: margin-left 0.34s cubic-bezier(.2,.9,.25,1);
}

/* Sidebar links */
.sidebar a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px 0;
  font-size: 17px;
}
.sidebar a:hover { color: #ffc107; }

/* Panel inside sidebar */
.sidebar .panel {
  margin-top: 25px;
  background: #2f2f2f;
  padding: 12px;
  border-radius: 8px;
  color: #eee;
}

/* ------------------------------------------------------------
   MISC / HELPERS
-------------------------------------------------------------*/
.kicker {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.small { font-size: 0.85rem; color: var(--muted); }

.text-center { text-align: center; }
.hidden { display: none !important; }

.load-more-container {
  text-align: center;
  margin: 30px 0;
}

#loadMoreBtn {
  padding: 12px 30px;
  background: #4a2a66;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

#loadMoreBtn:hover {
  background: #673A94;
}
.menu-search {
  text-align: center;
  margin: 20px 0;
}

.menu-search input {
  width: 90%;
  max-width: 400px;
  padding: 12px 18px;
  border-radius: 25px;
  border: 1px solid #ccc;
  font-size: 15px;
  outline: none;
}

.menu-search input:focus {
  border-color: #4a2a66;
}


/* Stable • Fixed • ChatGPT-style — prevents iOS zoom */

#chatToggle {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 999px;

  background: linear-gradient(135deg, #673A94, #8E5AD7);
  color: #ffffff;

  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;

  cursor: pointer;
  user-select: none;

  box-shadow:
    0 10px 28px rgba(103,58,148,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.15);

  transition: box-shadow .25s ease, transform .2s ease;
  z-index: 1000;
}

#chatToggle:hover {
  box-shadow:
    0 16px 40px rgba(103,58,148,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.22);
}

#chatToggle:active {
  transform: scale(0.96);
}

/* ================= CHAT WINDOW ================= */

#chatbot {
  position: fixed;
  bottom: 90px;
  right: 22px;

  width: 360px;
  height: 520px;

  background: rgba(25, 10, 45, 0.96);
  backdrop-filter: blur(14px);

  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);

  display: flex;
  flex-direction: column;
  overflow: hidden;

  z-index: 1001;
}

.hidden {
  display: none;
}

/* ================= HEADER ================= */

.chat-header {
  background: linear-gradient(135deg, #673A94, #9C6ADE);
  color: #ffffff;

  padding: 14px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chat-header span {
  font-size: 12px;
  opacity: 0.85;
}

#closeChat {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

/* ================= BODY ================= */

#chatBody {
  flex: 1;
  padding: 14px;

  overflow-y: auto;
  overscroll-behavior: contain;

  font-size: 14px;
  line-height: 1.55;
}

.msg-bot,
.msg-user {
  margin-bottom: 12px;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  animation: fadeIn 0.25s ease;
  word-wrap: break-word;
}

.msg-bot {
  background: rgba(255,255,255,0.08);
  color: #f3eaff;
  align-self: flex-start;
  border-left: 3px solid #caa9ff;
}

.msg-user {
  background: linear-gradient(135deg, #00e5ff, #00bcd4);
  color: #002b2b;
  align-self: flex-end;
  margin-left: auto;
}

/* ================= INPUT ================= */

.chat-input {
  display: flex;
  gap: 8px;
  padding: 10px;

  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Input style */
#chatInput {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;          /* small text for typing */
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
}

/* Placeholder style */
#chatInput::placeholder {
  font-size: 12px;          /* smaller than normal typing text */
  color: #888;              /* subtle gray color */
  opacity: 1;               /* ensure visible on all browsers */
}


.chat-input {
  display: flex;
  align-items: center;
  padding: 8px;
  gap: 8px;
  border-top: 1px solid #ddd;
}

.chat-input input {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 24px;
  outline: none;
}

.chat-input input::placeholder {
  font-size: 12px;
  color: #888;
  opacity: 1;
}

/* Button style */
.chat-input button {
  min-width: 44px;
  height: 44px;
  background: #673A94;
  border: none;
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.chat-input button:hover {
  background: #8456c9;
}

/* ================= SCROLLBAR ================= */

#chatBody::-webkit-scrollbar {
  width: 6px;
}

#chatBody::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

/* ================= EFFECTS ================= */

.typing::after {
  content: "▍";
  animation: blink 1s infinite;
  margin-left: 2px;
  color: #caa9ff;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ================= MOBILE ================= */

@media (max-width: 480px) {
  #chatbot {
    width: 100%;
    height: 100dvh;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }

  #chatToggle {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}

/* Floating button */
#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0d6efd;
  color: white;
  font-size: 22px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: transform 0.2s;
}

#chat-toggle:hover {
  transform: scale(1.1);
}

/* Chatbox */
#chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

/* Header */
#chat-header {
  background: #0d6efd;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

/* Iframe */
#chat-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobile */
@media (max-width: 768px) {
  #chat-box {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
}
