@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --color-primary: #f7c310;
  --color-primary-hover: #e0b00e;
  --color-topbar-bg: #0a131b;
  --color-header-bg: #070e14;
  --color-navbar-bg: #ffffff;
  --color-hero-bg: #0b1118;
  --color-newsletter-bg: #0b141c;
  --color-footer-bg: #03090d;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f4f5f7;
  color: #1f2937;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #0f1117;
}
::-webkit-scrollbar-thumb {
  background: #333a4d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Parallax Canvas & Layers */
.parallax-wrap {
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}

.parallax-bg {
  transform: translate3d(0, 0, 0);
  transition: transform 0.08s ease-out;
}

/* 3D Card Hover Tilt */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, border-color 0.2s ease;
}
.tilt-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.12), 0 0 12px rgba(247, 195, 16, 0.15);
}

/* Brand Yellow matching Mockup */
.bg-brand-yellow {
  background-color: #f7c310;
}
.bg-brand-yellow:hover {
  background-color: #e0b00e;
}
.text-brand-yellow {
  color: #f7c310;
}
.border-brand-yellow {
  border-color: #f7c310;
}

/* Filter Pill Tags */
.filter-pill {
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}
.filter-pill:hover {
  border-color: #f7c310;
  color: #111;
  background-color: #fef3c7;
}
.filter-pill.active {
  background-color: #f7c310 !important;
  color: #111 !important;
  font-weight: 700 !important;
  border-color: #f7c310 !important;
  box-shadow: 0 2px 8px rgba(247, 195, 16, 0.4) !important;
}

/* EU Tyre Label Badges */
.eu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1;
}
.eu-fuel-a { background-color: #00a651; color: #fff; }
.eu-fuel-b { background-color: #50b848; color: #fff; }
.eu-fuel-c { background-color: #b5d334; color: #111; }
.eu-fuel-d { background-color: #fff100; color: #111; }
.eu-fuel-e { background-color: #f58220; color: #fff; }
.eu-wet-a { background-color: #0072bc; color: #fff; }
.eu-wet-b { background-color: #29abe2; color: #fff; }
.eu-wet-c { background-color: #00a896; color: #fff; }
.eu-noise { background-color: #4b5563; color: #fff; }

/* Dynamic Cart Drawer & Modals */
.cart-drawer-backdrop {
  background-color: rgba(12, 14, 18, 0.75);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}
.cart-drawer {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Price Unit Selector */
.unit-toggle-btn {
  transition: all 0.15s ease;
}
.unit-toggle-btn.active {
  background-color: #111827;
  color: #f7c310;
  font-weight: 700;
  border-color: #111827;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-msg {
  pointer-events: auto;
  background-color: #111827;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  border-left: 4px solid #f7c310;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) 3.5s forwards;
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
