@charset "UTF-8";

/* ==========================================================================
   श्री क्षीरसागर फरसाण मार्ट - Heritage Gold & Spice Design System
   Neo-Heritage / Glassmorphism + Neo-Brutalist Farsan Store
   ========================================================================== */

:root {
  --color-surface: #fff8f6;
  --color-surface-dim: #ebd5d2;
  --color-surface-bright: #fff8f6;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #fff0ee;
  --color-surface-container: #ffe9e6;
  --color-surface-container-high: #fae3e0;
  --color-surface-container-highest: #f4deda;
  --color-on-surface: #241917;
  --color-on-surface-variant: #58413e;
  --color-inverse-surface: #3b2d2b;
  --color-inverse-on-surface: #ffedea;
  --color-outline: #8b716d;
  --color-outline-variant: #dfbfba;
  
  --color-primary: #390000;
  --color-primary-container: #600000;
  --color-on-primary: #ffffff;
  --color-on-primary-container: #ee6a57;
  --color-inverse-primary: #ffb4a8;
  
  --color-secondary: #8f4e00;
  --color-secondary-container: #fe9832;
  --color-on-secondary: #ffffff;
  --color-on-secondary-container: #683700;
  
  --color-tertiary: #705d00;
  --color-tertiary-container: #c9a900;
  --color-tertiary-fixed: #ffe16d;
  --color-on-tertiary: #ffffff;
  
  --border-color: #241917;
  --shadow-color: #241917;
  --shadow-ambient-maroon: rgba(96, 0, 0, 0.08);
}

/* Material Symbols configuration */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.fill-icon {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* Base Body Styles */
body {
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  font-family: 'Work Sans', 'Hind', sans-serif;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Be Vietnam Pro', 'Hind', 'Playfair Display', sans-serif;
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(255, 248, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-panel-dark {
  background: rgba(36, 25, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Ambient Shadows */
.ambient-shadow {
  box-shadow: 0 16px 32px var(--shadow-ambient-maroon);
}

.ambient-shadow-lg {
  box-shadow: 0 24px 48px rgba(96, 0, 0, 0.14);
}

/* Neo-Brutalist Cards & Buttons */
.neo-card {
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  box-shadow: 5px 5px 0px var(--shadow-color);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.neo-card:hover {
  transform: translate(-3px, -3px) scale(1.01);
  box-shadow: 8px 8px 0px var(--shadow-color);
}

.neo-btn {
  border: 2px solid var(--border-color);
  box-shadow: 3px 3px 0px var(--shadow-color);
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.neo-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px var(--shadow-color);
}

.neo-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px var(--shadow-color);
}

.neo-btn-primary {
  background-color: var(--color-primary-container);
  color: #ffffff;
  border: 2px solid var(--border-color);
}

.neo-btn-primary:hover {
  background-color: #390000;
  color: #ffe16d;
}

.neo-btn-secondary {
  background-color: var(--color-secondary);
  color: #ffffff;
  border: 2px solid var(--border-color);
}

.neo-btn-secondary:hover {
  background-color: #683700;
}

.neo-btn-outline {
  background-color: #ffffff;
  color: var(--color-on-surface);
  border: 2px solid var(--border-color);
}

.neo-btn-outline:hover {
  background-color: var(--color-surface-container);
}

.neo-badge {
  border: 1.5px solid var(--border-color);
  box-shadow: 2px 2px 0px var(--shadow-color);
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.05em;
}

/* High Gloss Sheen Effect on Product Cards */
.high-gloss {
  position: relative;
  overflow: hidden;
}

.high-gloss::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.75s ease-in-out;
  pointer-events: none;
  z-index: 5;
}

.high-gloss:hover::after {
  transform: rotate(25deg) translateY(100%);
}

/* Category Thali Carousel Items */
.thali-item {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.thali-item.active {
  transform: translateY(-4px) scale(1.05);
}

.thali-item.active .thali-icon-box {
  background-color: var(--color-primary-container) !important;
  color: #ffe16d !important;
  border-color: #ffe16d !important;
  box-shadow: 0 0 0 4px #ffe16d, 6px 6px 0px var(--shadow-color) !important;
}

.thali-item.active .thali-label {
  color: var(--color-primary-container) !important;
  font-weight: 800 !important;
}

/* Hide Scrollbar */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Scrollbar for Drawer / Modals */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--color-surface-container-low);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-outline-variant);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--color-outline);
}

/* Broken Grid / Overlapping Badge Effect */
.broken-badge-tl {
  position: absolute;
  top: -12px;
  left: 12px;
  z-index: 10;
}

.broken-badge-tr {
  position: absolute;
  top: -12px;
  right: 12px;
  z-index: 10;
}

/* Spice Meter dots */
.spice-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid var(--border-color);
}
.spice-dot.filled {
  background-color: #ba1a1a;
}
.spice-dot.empty {
  background-color: #e8e1da;
}

/* Animations */
@keyframes floatAnim {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.animate-float-slow {
  animation: floatAnim 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  background-color: #241917;
  color: #fff8f6;
  border: 2px solid #ffe16d;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.4);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Modals and Drawers */
.modal-overlay {
  background-color: rgba(36, 25, 23, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}

.drawer-panel {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Selection / Quick Order Floating Bar */
#selection-bar {
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

/* Form input focus styling */
.neo-input {
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  box-shadow: 3px 3px 0px var(--shadow-color);
  font-family: 'Work Sans', sans-serif;
  transition: all 0.2s ease;
}

.neo-input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 4px 4px 0px var(--color-secondary);
}
