/* ═══════════════════════════════════════════════════════
   MOLANA RESTAURANT — Online Menu Page Styles (menu.html)
   ═══════════════════════════════════════════════════════ */

/* ── Category sidebar button ── */
.cat-btn {
  display: block; width: 100%; text-align: left;
  padding: 10px 16px;
  font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
  color: rgba(246,237,216,0.5);
  border-left: 2px solid transparent;
  transition: all 0.25s; cursor: pointer; background: transparent;
}
.cat-btn:hover { color: var(--clickfood-primary, #C9A84C); border-left-color: color-mix(in srgb, var(--clickfood-primary, #C9A84C) 40%, transparent); background: color-mix(in srgb, var(--clickfood-primary, #C9A84C) 5%, transparent); }
.cat-btn.active { color: var(--clickfood-primary, #C9A84C); border-left-color: var(--clickfood-primary, #C9A84C); background: color-mix(in srgb, var(--clickfood-primary, #C9A84C) 8%, transparent); }

/* ── Menu item card ── */
.item-card {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--clickfood-primary, #C9A84C) 10%, transparent);
  transition: background 0.2s;
}
.item-card:last-child { border-bottom: none; }
.item-card:hover {
  background: color-mix(in srgb, var(--clickfood-primary, #C9A84C) 3%, transparent);
  margin: 0 -12px; padding-left: 12px; padding-right: 12px;
  border-radius: 2px;
}

.item-name  { font-family: var(--clickfood-serif, 'Playfair Display'), serif; font-size: 1rem; font-weight: 600; color: var(--clickfood-text, #F6EDD8); line-height: 1.3; }
.item-desc  { font-size: 0.72rem; font-weight: 300; color: var(--clickfood-text-muted, rgba(246,237,216,0.5)); margin-top: 4px; line-height: 1.6; letter-spacing: 0.02em; }
.item-price { font-family: var(--clickfood-serif, 'Playfair Display'), serif; font-size: 1rem; font-weight: 600; color: var(--clickfood-primary, #C9A84C); white-space: nowrap; flex-shrink: 0; }
.item-tag   { font-size: 0.55rem; letter-spacing: 0.1em; border: 1px solid color-mix(in srgb, var(--clickfood-primary, #C9A84C) 20%, transparent); color: color-mix(in srgb, var(--clickfood-primary, #C9A84C) 65%, transparent); padding: 2px 6px; text-transform: uppercase; }

/* ── Category sections ── */
.cat-section        { display: none; }
.cat-section.active { display: block; }

/* ── Category header ── */
.cat-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; margin-bottom: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--clickfood-primary, #C9A84C) 20%, transparent);
}
.cat-header h2 { font-family: var(--clickfood-serif, 'Playfair Display'), serif; font-size: 1.8rem; font-weight: 600; color: var(--clickfood-text, #F6EDD8); }

/* ── Search input ── */
.search-input {
  width: 100%;
  background: color-mix(in srgb, white 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--clickfood-primary, #C9A84C) 20%, transparent);
  color: var(--clickfood-text, #F6EDD8);
  font-family: var(--clickfood-sans, 'Montserrat'), sans-serif;
  font-size: 0.8rem; font-weight: 300;
  padding: 11px 16px 11px 40px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-input::placeholder { color: var(--clickfood-text-muted, rgba(246,237,216,0.25)); }
.search-input:focus { border-color: color-mix(in srgb, var(--clickfood-primary, #C9A84C) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--clickfood-primary, #C9A84C) 7%, transparent); }

/* ── Special lunch badge ── */
.lunch-badge {
  display: inline-block;
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: color-mix(in srgb, var(--clickfood-primary, #C9A84C) 15%, transparent); border: 1px solid color-mix(in srgb, var(--clickfood-primary, #C9A84C) 35%, transparent);
  color: var(--clickfood-primary, #C9A84C); padding: 3px 8px; margin-left: 8px; vertical-align: middle;
}

/* ── Mobile category tabs ── */
.mobile-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.mobile-tabs::-webkit-scrollbar { display: none; }
.mobile-tab {
  flex-shrink: 0; padding: 7px 14px;
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--clickfood-primary, #C9A84C) 20%, transparent);
  color: var(--clickfood-text-muted, rgba(246,237,216,0.5));
  cursor: pointer; transition: all 0.25s; background: transparent;
}
.mobile-tab.active { border-color: var(--clickfood-primary, #C9A84C); color: var(--clickfood-primary, #C9A84C); background: color-mix(in srgb, var(--clickfood-primary, #C9A84C) 7%, transparent); }

/* ── Highlight / info note badge ── */
.note-badge { font-size: 0.58rem; color: color-mix(in srgb, var(--clickfood-primary, #C9A84C) 70%, transparent); letter-spacing: 0.06em; font-style: italic; }

/* ── Theme toggle button ── */
.theme-toggle {
  width: 34px; height: 34px;
  border: 1px solid color-mix(in srgb, var(--clickfood-primary, #C9A84C) 25%, transparent);
  background: transparent; color: color-mix(in srgb, var(--clickfood-primary, #C9A84C) 70%, transparent);
  font-size: 0.85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; border-radius: 2px;
}
.theme-toggle:hover { background: var(--clickfood-primary, #C9A84C); color: var(--clickfood-bg, #1B1B1B); border-color: var(--clickfood-primary, #C9A84C); }

/* ── Cart nav button ── */
.cart-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--clickfood-primary, #C9A84C) 30%, transparent);
  color: var(--clickfood-primary, #C9A84C);
  text-decoration: none;
  transition: all 0.2s;
}
.cart-nav-btn:hover { background: color-mix(in srgb, var(--clickfood-primary, #C9A84C) 10%, transparent); }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--clickfood-primary, #C9A84C);
  color: var(--clickfood-bg, #1B1B1B);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Add to cart button ── */
.add-to-cart-btn {
  padding: 6px 12px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--clickfood-primary, #C9A84C);
  color: var(--clickfood-primary, #C9A84C);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.add-to-cart-btn:hover { background: var(--clickfood-primary, #C9A84C); color: var(--clickfood-bg, #1B1B1B); }

/* ── Cart drawer ── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 360px;
  max-width: 100vw;
  height: 100vh;
  background: var(--clickfood-bg, #1B1B1B);
  border-left: 1px solid color-mix(in srgb, var(--clickfood-primary, #C9A84C) 20%, transparent);
  z-index: 999;
  transition: right 0.3s ease;
  box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}
.cart-drawer.open { right: 0; }
.cart-drawer-inner { display: flex; flex-direction: column; height: 100%; }
.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--clickfood-primary, #C9A84C) 15%, transparent);
}
.cart-drawer-head h3 { font-family: var(--clickfood-serif); font-size: 1.2rem; color: var(--clickfood-text); }
.cart-drawer-close {
  background: none;
  border: none;
  color: var(--clickfood-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-empty-msg { color: var(--clickfood-text-muted); font-size: 0.9rem; text-align: center; padding: 24px 0; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--clickfood-primary, #C9A84C) 10%, transparent);
}
.cart-item-name { font-weight: 500; color: var(--clickfood-text); }
.cart-item-price { color: var(--clickfood-primary); font-weight: 600; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--clickfood-primary, #C9A84C) 30%, transparent);
  background: transparent;
  color: var(--clickfood-primary);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.cart-drawer-foot {
  padding: 20px;
  border-top: 1px solid color-mix(in srgb, var(--clickfood-primary, #C9A84C) 15%, transparent);
}
.cart-total { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; color: var(--clickfood-text); }
.cart-total span { color: var(--clickfood-primary); }
.cart-checkout-btn {
  display: block;
  text-align: center;
  padding: 14px;
  background: var(--clickfood-primary, #C9A84C);
  color: var(--clickfood-bg, #1B1B1B);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.cart-checkout-btn:hover { background: color-mix(in srgb, var(--clickfood-primary, #C9A84C) 85%, white); }
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* ── Floating basket (bottom corner) ── */
.floating-basket {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clickfood-primary, #C9A84C);
  color: var(--clickfood-bg, #1B1B1B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  z-index: 900;
  transition: transform 0.2s, box-shadow 0.2s;
}
.floating-basket:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(201,168,76,0.5);
}
.floating-basket-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--clickfood-bg, #1B1B1B);
  color: var(--clickfood-primary, #C9A84C);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--clickfood-primary, #C9A84C);
}

/* ── Light theme overrides ── */
body.light                         { background: #FFFCF4; color: #1B1B1B; }
body.light .nav-glass              { background: rgba(255,252,244,0.96); }
body.light .nav-link               { color: #5a5040; }
body.light .cat-btn                { color: rgba(27,27,27,0.45); }
body.light .cat-btn:hover,
body.light .cat-btn.active         { color: #a07c20; }
body.light .item-name              { color: #1B1B1B; }
body.light .item-desc              { color: rgba(27,27,27,0.5); }
body.light .item-card              { border-bottom-color: rgba(201,168,76,0.2); }
body.light .cat-header h2          { color: #1B1B1B; }
body.light .search-input           { background: rgba(0,0,0,0.04); color: #1B1B1B; border-color: rgba(201,168,76,0.3); }
body.light .search-input::placeholder { color: rgba(27,27,27,0.3); }
body.light footer                  { background: #1B1B1B !important; }
body.light .floating-basket        { background: var(--clickfood-primary); color: #1B1B1B; }
body.light .floating-basket-count  { background: #1B1B1B; color: var(--clickfood-primary); }
