:root {
  --vg-navy: #0f172a;
  --vg-navy-2: #1e293b;
  --vg-gold: #d4af37;
  --vg-lime: #c8f169;
  --vg-bg: #f8fafc;
  --vg-card: #ffffff;
  --vg-studio: #f4f5f7;
  --vg-border: #e2e8f0;
  --vg-muted: #64748b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--vg-bg);
  color: var(--vg-navy);
  margin: 0;
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

.font-display {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.03em;
}

.safe-bottom {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* Tactile feedback */
.btn-touch,
.card-touch {
  transition: transform 0.14s ease, box-shadow 0.2s ease, opacity 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-touch:active,
.card-touch:active {
  transform: scale(0.97);
}

.card-product {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
}

.card-product:hover {
  box-shadow: 0 14px 30px -6px rgba(15, 23, 42, 0.10), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

/* Hide scrollbars on horizontal filter chips */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Bottom Sheet & Modals */
.vg-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.vg-sheet-backdrop.open {
  display: flex;
}

@media (min-width: 768px) {
  .vg-sheet-backdrop {
    align-items: center;
    padding: 1.5rem;
  }
}

.vg-sheet-panel {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: vgSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.22);
}

@media (min-width: 768px) {
  .vg-sheet-panel {
    border-radius: 24px;
    max-height: 86vh;
    animation: vgFadeScale 0.2s ease-out;
  }
}

@keyframes vgSlideUp {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes vgFadeScale {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.vg-handle {
  width: 42px;
  height: 5px;
  border-radius: 9999px;
  background: #cbd5e1;
  margin: 10px auto 4px;
}

/* Bot Chat Bubbles */
.bot-chat-bg {
  background-color: #efeae2;
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
}

.bot-bubble-in {
  background: #ffffff;
  color: #0f172a;
  border-radius: 0 16px 16px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  animation: vgBubbleIn 0.2s ease-out;
}

.bot-bubble-out {
  background: #dcf8c6;
  color: #0f172a;
  border-radius: 16px 0 16px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  animation: vgBubbleIn 0.18s ease-out;
}

@keyframes vgBubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating Bot Button */
.vg-fab {
  position: fixed;
  right: 16px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 45;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.38);
}

@media (min-width: 768px) {
  .vg-fab {
    right: 24px;
    bottom: 24px;
  }
}
