/* ============================================================
   NORDICMOW NORGE - MODERN SCANDINAVIAN LUXURY THEME
   Tailored for Automated Robot Lawn Mowers in Norway
   ============================================================ */

:root {
  --primary: #0F382A;
  --primary-light: #18523D;
  --primary-dark: #09241B;
  --accent: #10B981;
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --accent-subtle: #E6F7F0;
  
  --bg-main: #F8FAF9;
  --bg-card: #FFFFFF;
  --bg-dark: #0B1914;
  --bg-dark-card: #132720;
  --bg-dark-subtle: #19332A;

  --text-main: #111827;
  --text-muted: #4B5563;
  --text-light: #9CA3AF;
  --text-white: #FFFFFF;

  --border: #E5E7EB;
  --border-dark: #1E3A2F;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 35px var(--accent-glow);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.glass-card-dark {
  background: rgba(19, 39, 32, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
}

/* Hero Section Gradients */
.hero-gradient {
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.18) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(24, 82, 61, 0.35) 0%, transparent 60%),
              #0B1914;
}

/* Nordic Trust Banner */
.trust-bar {
  background: #081410;
  color: #A7F3D0;
  font-size: 0.825rem;
  letter-spacing: 0.02em;
}

/* Badge styles */
.badge-eco {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.1);
  color: #B91C1C;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Product Card animations */
.product-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(15, 56, 42, 0.12), 0 0 0 1px rgba(16, 185, 129, 0.4);
}

.group\/photo img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.group\/photo:hover img,
.product-card:hover .group\/photo img {
  transform: scale(1.06);
}

/* Custom interactive buttons */
.btn-primary {
  background: #0F382A;
  color: #FFFFFF;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #18523D;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 56, 42, 0.25);
}

.btn-accent {
  background: var(--accent);
  color: #042F24;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-accent:hover {
  background: #34D399;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

/* Cart slide-over drawer */
.cart-drawer-overlay {
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

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

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F3;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Pulse Glow for Live Status */
@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.pulse-dot {
  animation: pulse-dot 2s infinite ease-in-out;
}

/* Tooltip animation */
.tooltip-box {
  animation: fadeIn 0.2s ease forwards;
}

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

/* Modal animation */
.modal-enter {
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
