/* =======================================================================
   Fancy Bin: Premium Storefront UI (Production Level)
   - Brand Unified: Fancy Bin Orange (#FF6F00) & Slate (#2A3B4D)
   - Features: Glassmorphism, Physics-based Hovers, Fast-UX Feedback
   ======================================================================= */

:root {
  /* Fancy Bin Premium Brand Palette */
  --brand-primary: #FF6F00;       /* Fancy Bin Orange */
  --brand-primary-dark: #e56300;
  --brand-secondary: #2A3B4D;     /* Premium Slate */
  --brand-secondary-light: #3b5068;
  --brand-accent: #FFC107;

  /* Surfaces & Backgrounds */
  --background-light: #f8fafc;
  --surface-card: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.9);

  /* Typography Colors */
  --text-primary: #0f172a;        /* High-contrast deep slate */
  --text-secondary: #64748b;      /* Muted modern gray */
  --border-divider: #e2e8f0;

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Elevation & Geometry */
  --shadow-sm: 0 4px 10px rgba(42, 59, 77, 0.04);
  --shadow-md: 0 10px 30px rgba(42, 59, 77, 0.06);
  --shadow-hover: 0 20px 40px rgba(255, 111, 0, 0.12);
  --radius-md: 20px;
  --radius-sm: 12px;
}

body {
  background-color: var(--background-light) !important;
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Fast-Reload Visual System (Storefront Edition)
   ========================================================= */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 0; height: 3px;
  background: var(--brand-primary);
  z-index: 99999;
  animation: fbLoadSim 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fbLoadSim {
  0% { width: 0; opacity: 1; }
  80% { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

/* =========================================================
   Typography & Links
   ========================================================= */
a {
  color: var(--brand-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 600;
}

a:hover {
  color: var(--brand-primary);
}

/* =========================================================
   Navbar (Glassmorphic & Premium)
   ========================================================= */
.navbar {
  background-color: var(--brand-secondary) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.navbar a, .navbar-brand {
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar a:hover {
  color: var(--brand-primary) !important;
}

.navbar-toggler-icon {
  filter: invert(1); /* Ensures toggler is white on dark background */
}

/* =========================================================
   Premium Product Cards & Hovers
   ========================================================= */
.card, .card-surface {
  background-color: var(--surface-card) !important;
  border: 1px solid var(--border-divider) !important;
  box-shadow: var(--shadow-sm) !important;
  border-radius: var(--radius-md) !important;
  padding: 20px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.card:hover, .card-surface:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover) !important;
  border-color: rgba(255, 111, 0, 0.3) !important;
}

.product-card-img {
  border-radius: var(--radius-sm);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .product-card-img {
  transform: scale(1.08); /* Smooth zoom on hover */
}

.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border-divider);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.1rem;
}

.card-body {
  color: var(--text-secondary);
}

.card-footer {
  background-color: transparent !important;
  border-top: 1px solid var(--border-divider);
  text-align: center;
}

/* =========================================================
   High-Conversion Buttons
   ========================================================= */
.btn {
  font-weight: 800;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy hover */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary, .bg-primary {
  background-color: var(--brand-primary) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(255, 111, 0, 0.2);
}

.btn-primary:hover {
  background-color: var(--brand-primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 111, 0, 0.35);
}

.btn-secondary {
  background-color: var(--brand-secondary) !important;
  border: none !important;
  color: #ffffff !important;
}

.btn-secondary:hover {
  background-color: var(--brand-secondary-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 59, 77, 0.2);
}

.btn-outline-primary {
  color: var(--brand-primary) !important;
  border: 2px solid var(--brand-primary) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background-color: var(--brand-primary) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 111, 0, 0.25);
}

/* =========================================================
   Forms & Search Inputs (Glowing Focus)
   ========================================================= */
input[type="text"], input[type="email"], input[type="password"], select, textarea, .form-control {
  background-color: #f8fafc !important;
  border: 2px solid var(--border-divider) !important;
  padding: 0.75rem 1rem !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus, .form-control:focus, .search-group .form-control:focus {
  background-color: #ffffff !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.15) !important;
  outline: none;
}

/* =========================================================
   Tables & Alerts
   ========================================================= */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background-color: var(--brand-secondary);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.table td {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-divider);
  font-weight: 500;
  padding: 15px 12px;
}

.alert-success {
  background-color: var(--success);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.alert-error {
  background-color: var(--error);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

/* =========================================================
   Badges, Hero, & Footer (Storefront Overrides)
   ========================================================= */
.bg-surface { background: var(--background-light) !important; }

.hero { 
  background: linear-gradient(180deg, rgba(255, 111, 0, 0.08), rgba(255, 111, 0, 0)); 
  border-bottom: 1px solid var(--border-divider);
}

.badge-soft {
  background: rgba(255, 111, 0, 0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(255, 111, 0, 0.2);
  font-weight: 700;
  border-radius: 50px;
}

.badge.text-bg-dark { 
  background: var(--brand-secondary) !important; 
  color: #ffffff;
}

.footer {
  background-color: var(--brand-secondary);
  color: #ffffff;
  padding: 40px 0;
  text-align: center;
  border-top: 4px solid var(--brand-primary); /* Bold brand accent at bottom */
}