/* ========================================================
   FROST IN FIRE - Core Brand Theme (Ice & Fire Aesthetic)
   ======================================================== */
:root {
  --fif-fire-primary: #E63946;
  --fif-fire-warm: #FF5722;
  --fif-ice-deep: #003459;
  --fif-ice-blue: #00A8E8;
  --fif-ice-bg: #F8F9FA;
  --fif-charcoal: #212529;
  --fif-success-green: #2E7D32;
  --fif-card-shadow: 0 10px 25px rgba(0, 52, 89, 0.08);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--fif-ice-bg);
  color: var(--fif-charcoal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* BRAND NAVBAR */
.navbar-brand-frost {
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--fif-fire-primary) !important;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
}
.navbar-brand-frost span {
  color: var(--fif-ice-deep);
}

.top-nav {
  background: #ffffff;
  border-bottom: 2px solid rgba(0, 168, 232, 0.2);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* HEADER CART BUTTON */
.nav-cart-btn {
  background: linear-gradient(135deg, var(--fif-fire-primary), var(--fif-fire-warm));
  color: #ffffff !important;
  border-radius: 50px;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border: none;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
  transition: transform 0.15s ease-in-out;
}
.nav-cart-btn:hover {
  transform: scale(1.04);
  color: #ffffff;
}

/* INDIAN FOOD SYMBOLS (Veg & Non-Veg) */
.food-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  vertical-align: middle;
}
.food-badge.veg {
  border: 2px solid #28a745;
}
.food-badge.veg .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #28a745;
}
.food-badge.non-veg {
  border: 2px solid #b02a37;
}
.food-badge.non-veg .badge-dot {
  width: 0; 
  height: 0; 
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid #b02a37;
}

/* PRODUCT CARDS */
.product-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--fif-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 52, 89, 0.12);
}
.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 66%; /* 3:2 aspect ratio */
  background: #e9ecef;
  overflow: hidden;
}
.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.discount-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #2E7D32;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  letter-spacing: 0.5px;
}
.price-current {
  color: var(--fif-fire-primary);
  font-weight: 800;
  font-size: 1.3rem;
}
.price-mrp {
  color: #8d99ae;
  text-decoration: line-through;
  font-size: 0.95rem;
  margin-left: 6px;
}

.btn-frost-fire {
  background: linear-gradient(135deg, var(--fif-fire-primary), var(--fif-fire-warm));
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  transition: all 0.2s;
}
.btn-frost-fire:hover {
  background: linear-gradient(135deg, var(--fif-fire-warm), var(--fif-fire-primary));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.btn-outline-ice {
  color: var(--fif-ice-deep);
  border: 1.5px solid var(--fif-ice-blue);
  border-radius: 50px;
  font-weight: 600;
}
.btn-outline-ice.active, .btn-outline-ice:hover {
  background: var(--fif-ice-deep);
  color: #ffffff;
  border-color: var(--fif-ice-deep);
}

/* SAVINGS CELEBRATION BANNER */
.savings-banner {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 1px dashed #2E7D32;
  border-radius: 12px;
  padding: 12px 16px;
  color: #1b5e20;
  font-weight: 700;
}

/* STATUS BADGES */
.badge-status-NEW { background-color: #00A8E8; color: #fff; }
.badge-status-CONFIRMED { background-color: #003459; color: #fff; }
.badge-status-PACKED { background-color: #ff9800; color: #fff; }
.badge-status-DELIVERED { background-color: #2E7D32; color: #fff; }
.badge-status-CANCELLED { background-color: #d32f2f; color: #fff; }

/* TOAST / ALERTS */
#fif-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}
