/* ========================================
   PORTCYCLES - SHARP & DYNAMIC THEME
   ======================================== */

/* CSS Variables */
:root {
  --primary: #1B8FD9;
  --primary-dark: #0B6EB5;
  --primary-deeper: #064A7A;
  --primary-light: #DBF0FF;
  --primary-lighter: #EFF8FF;
  --accent: #00D4FF;
  --white: #FFFFFF;
  --off-white: #F4F7FA;
  --light-grey: #E2E8F0;
  --grey: #94A3B8;
  --dark-grey: #334155;
  --text: #0F172A;
  --text-light: #64748B;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.1);
  --shadow: 0 4px 16px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.16), 0 8px 20px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 30px rgba(27, 143, 217, 0.25);
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-snap: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  width: 100%;
  transition: var(--transition);
  background: var(--white);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 143, 217, 0.2);
  transform: translateY(-1px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   RIPPLE EFFECT (global)
   ======================================== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.6s; }
.stagger-children .reveal:nth-child(8) { transition-delay: 0.7s; }

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.96);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}

.nav-logo i {
  font-size: 1.3rem;
  color: var(--primary);
  transition: var(--transition-bounce);
}

.nav-logo:hover i {
  transform: rotate(-10deg) scale(1.15);
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dark-grey);
  letter-spacing: 0.01em;
  position: relative;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary-dark);
}

.nav-links .nav-social {
  font-size: 1.25rem;
  color: var(--primary);
  padding: 8px 10px;
  margin-left: 4px;
}

.nav-links .nav-social::after { display: none; }

.nav-links .nav-social:hover {
  color: var(--primary-dark);
  transform: translateY(-2px) scale(1.15);
}

.nav-links .admin-link {
  background: var(--text);
  color: var(--white);
  margin-left: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  padding: 10px 18px;
}

.nav-links .admin-link::after { display: none; }

.nav-links .admin-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(27, 143, 217, 0.3);
}

.mobile-toggle {
  display: none;
  background: none;
  font-size: 1.3rem;
  color: var(--text);
  padding: 8px;
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--primary);
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
  }

  .nav-links a::after { display: none; }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--primary-light);
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: url('../images/Background.webp') center/cover no-repeat;
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 30, 58, 0.65);
}

.hero::after {
  display: none;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Animated grid lines */
.hero .hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: badgeSlide 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes badgeSlide {
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  animation: heroTitle 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes heroTitle {
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--accent), #7DD3FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 36px;
  line-height: 1.7;
  animation: heroText 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes heroText {
  to { opacity: 0.85; transform: translateY(0); }
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroButtons 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes heroButtons {
  to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.12);
  animation: heroButtons 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.82rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; }
  .hero-stat-number { font-size: 1.4rem; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(27, 143, 217, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(27, 143, 217, 0.35);
}

.btn-white {
  background: var(--white);
  color: var(--text);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(27, 143, 217, 0.3);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-3px);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background: #DC2626;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 0.9rem;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.4rem;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 14px auto;
}

/* ========================================
   BIKE CARDS
   ======================================== */
.bikes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.bike-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--light-grey);
  position: relative;
  cursor: pointer;
}

.bike-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 143, 217, 0.2);
}

.bike-card:active {
  transform: translateY(-4px) scale(0.99);
}

.bike-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--primary-lighter);
  position: relative;
}

.bike-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bike-card:hover .bike-card-image img {
  transform: scale(1.08);
}

.bike-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

.bike-card-body {
  padding: 20px;
}

.bike-card-make {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.bike-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.bike-card-specs {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 16px;
  font-weight: 500;
}

.bike-card-specs span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bike-card-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.bike-card-price .current-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
}

.bike-card-price .original-price {
  font-size: 0.95rem;
  color: var(--grey);
  text-decoration: line-through;
}

.bike-card-price .discount-pct {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--danger);
  background: #FEF2F2;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.bike-card .btn {
  width: 100%;
  justify-content: center;
}

/* ========================================
   BIKE DETAIL PAGE
   ======================================== */
.bike-detail {
  padding: 40px 0 80px;
}

.bike-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .bike-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.bike-gallery { position: relative; }

.bike-gallery-main {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--primary-lighter);
  margin-bottom: 10px;
  border: 1px solid var(--light-grey);
}

.bike-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bike-gallery-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.bike-gallery-thumbs img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
  border: 2px solid transparent;
}

.bike-gallery-thumbs img.active,
.bike-gallery-thumbs img:hover {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.05);
}

.bike-info h1 {
  font-size: 2.2rem;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.bike-info .bike-make-label {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.bike-price-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
  background: var(--primary-lighter);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.bike-price-section .current-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.03em;
}

.bike-price-section .original-price {
  font-size: 1.15rem;
  color: var(--grey);
  text-decoration: line-through;
}

.bike-price-section .discount-badge {
  background: var(--danger);
  color: white;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bike-specs-table {
  width: 100%;
  margin-bottom: 24px;
}

.bike-specs-table .spec-row {
  display: flex;
  border-bottom: 1px solid var(--light-grey);
  padding: 12px 0;
  transition: var(--transition);
}

.bike-specs-table .spec-row:hover {
  background: var(--primary-lighter);
  padding-left: 8px;
}

.bike-specs-table .spec-label {
  width: 140px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.bike-specs-table .spec-value {
  color: var(--dark-grey);
}

.bike-specifications { margin-bottom: 24px; }

.bike-specifications h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.bike-specifications ul { list-style: none; }

.bike-specifications li {
  padding: 8px 0;
  color: var(--dark-grey);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.bike-specifications li:hover {
  color: var(--text);
  transform: translateX(4px);
}

.bike-specifications li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  flex-shrink: 0;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.bike-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* ========================================
   FILTERS & SEARCH
   ======================================== */
.filters-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
}

.filters-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey);
  transition: var(--transition);
}

.search-box input:focus + i,
.search-box:focus-within i {
  color: var(--primary);
}

.search-box input { padding-left: 42px; }

.filter-select { min-width: 180px; }

.filter-select select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23334155'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  cursor: pointer;
  font-weight: 600;
}

.results-count {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ========================================
   CATEGORY ICONS
   ======================================== */
.category-icons {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 36px;
}

.category-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.category-icon-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.category-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.15);
}

.category-icon-img i {
  font-size: 1.6rem;
  color: var(--grey);
  transition: var(--transition);
}

.category-icon span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition);
}

.category-icon:hover .category-icon-img {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-icon:hover span {
  color: var(--primary);
}

.category-icon.active .category-icon-img {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 143, 217, 0.2), var(--shadow);
}

.category-icon.active .category-icon-img i {
  color: var(--primary);
}

.category-icon.active span {
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .category-icons {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    justify-content: flex-start;
    gap: 16px;
    padding: 8px 24px 12px;
    margin-left: -24px;
    margin-right: -24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-icons::-webkit-scrollbar { display: none; }
  .category-icon { flex-shrink: 0; }
  .category-icon-img { width: 76px; height: 76px; }
  .category-icon span { font-size: 0.72rem; }
}

/* ========================================
   REVIEWS
   ======================================== */
.reviews-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
  position: relative;
  overflow: hidden;
}

.reviews-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.reviews-summary .avg-rating {
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.04em;
}

.reviews-summary .stars {
  color: var(--warning);
  font-size: 1.4rem;
  margin: 8px 0;
}

.reviews-summary .total-reviews {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.review-card:hover {
  border-left-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-card-header .reviewer-name {
  font-weight: 700;
  font-size: 1rem;
}

.review-card-header .review-date {
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
}

.review-card .stars {
  color: var(--warning);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.review-card .review-text {
  color: var(--dark-grey);
  line-height: 1.7;
}

.review-form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
  position: relative;
  overflow: hidden;
}

.review-form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.star-rating-input {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.star-rating-input i {
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--light-grey);
  transition: var(--transition-bounce);
}

.star-rating-input i.active,
.star-rating-input i:hover {
  color: var(--warning);
  transform: scale(1.2);
}

/* ========================================
   ENQUIRY FORM
   ======================================== */
.enquiry-section {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.form-group .required { color: var(--danger); }

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========================================
   ADMIN PANEL
   ======================================== */
.admin-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(8px);
  animation: overlayIn 0.3s ease;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.admin-login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 400px;
  max-width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.admin-login-box h2 { margin-bottom: 8px; }

.admin-login-box p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.admin-login-box .form-group { text-align: left; }

.admin-login-box .login-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 8px;
  display: none;
  font-weight: 600;
}

.admin-dashboard { display: none; }
.admin-dashboard.active { display: block; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-bikes-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
}

.admin-bikes-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-bikes-table th {
  background: var(--text);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
}

.admin-bikes-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--light-grey);
  vertical-align: middle;
  transition: var(--transition);
}

.admin-bikes-table tr:hover td {
  background: var(--primary-lighter);
}

.admin-bikes-table tr:last-child td { border-bottom: none; }

.admin-bikes-table .bike-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--primary-lighter);
}

.admin-actions { display: flex; gap: 6px; }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 600px;
  max-width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal h2 {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: var(--light-grey);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--dark-grey);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--danger);
  color: var(--white);
  transform: rotate(90deg);
}

/* Image Upload */
.image-upload-area {
  border: 2px dashed var(--light-grey);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--off-white);
}

.image-upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
  transform: scale(1.01);
}

.image-upload-area i {
  font-size: 2rem;
  color: var(--grey);
  margin-bottom: 8px;
}

.image-upload-area p {
  color: var(--text-light);
  font-size: 0.88rem;
}

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.image-preview-item {
  position: relative;
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.image-preview-item:hover { transform: scale(1.08); }

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item .remove-img {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
}

.image-preview-item:hover .remove-img { opacity: 1; }

/* Specs Input */
.specs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  animation: specSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes specSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.spec-input-row input { flex: 1; }

.spec-input-row .remove-spec {
  background: var(--danger);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.spec-input-row .remove-spec:hover { transform: scale(1.1); }

.add-spec-btn {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 8px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.add-spec-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

/* Discount toggle */
.discount-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--grey);
  border-radius: 26px;
  transition: var(--transition);
}

.toggle-slider:before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--success);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* ========================================
   CONTACT / MAP
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
  padding: 4px 0;
}

.contact-item:hover {
  transform: translateX(6px);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-item-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}

.contact-item-text h4 {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.contact-item-text p {
  color: var(--text-light);
  font-size: 0.92rem;
}

.contact-item-text a { color: var(--primary); }

.contact-item-text a:hover {
  color: var(--primary-dark);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-grey);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

/* ========================================
   FEATURES / WHY US
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.3rem;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 24px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-about p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.88rem;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateX(4px);
  display: inline-block;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-contact i {
  color: var(--accent);
  width: 16px;
  text-align: center;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
  letter-spacing: 0.02em;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
  background: url('../images/Background.webp') center/cover no-repeat;
  color: var(--white);
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 30, 58, 0.65);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
  position: relative;
  animation: pageHeaderIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.page-header p {
  opacity: 0.8;
  font-size: 1rem;
  position: relative;
  animation: pageHeaderIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 24px;
  color: var(--text-light);
  font-weight: 500;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

.breadcrumb a:hover { text-decoration: underline; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state i {
  font-size: 3rem;
  color: var(--grey);
  margin-bottom: 16px;
}

.empty-state h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--text);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* Back to top — repositioned to avoid chatbot */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* Spinner */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--light-grey);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Table responsive */
.table-responsive { overflow-x: auto; }

/* Page transition */
.page-transition {
  animation: pageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Counter animation placeholder */
.count-up {
  display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 1.8rem; }
  .filters-row { flex-direction: column; }
  .search-box { min-width: 100%; }
  .filter-select { min-width: 100%; }
  .bike-detail-actions { flex-direction: column; }
  .bike-detail-actions .btn { width: 100%; justify-content: center; }
}

/* ========================================
   PART CARDS
   ======================================== */
.part-card .bike-card-image {
  background: #F3E8FF;
}

.part-type-badge-card {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #7C3AED;
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.part-type-badge {
  display: inline-block;
  background: #EDE9FE;
  color: #5B21B6;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.part-condition-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  background: var(--light-grey);
  color: var(--dark-grey);
}

.part-condition-badge.cond-new,
.part-condition-badge.condition-new {
  background: #DCFCE7;
  color: #166534;
}

.part-condition-badge.cond-like-new,
.part-condition-badge.condition-like-new {
  background: #D1FAE5;
  color: #065F46;
}

.part-condition-badge.cond-used---excellent,
.part-condition-badge.condition-used---excellent {
  background: #FEF9C3;
  color: #854D0E;
}

.part-condition-badge.cond-used---good,
.part-condition-badge.condition-used---good {
  background: #FEF3C7;
  color: #92400E;
}

.part-condition-badge.cond-used,
.part-condition-badge.condition-used {
  background: #FEE2E2;
  color: #991B1B;
}

/* Parts category icon accent */
.parts-icon-img {
  background: #EDE9FE !important;
  border-color: #C4B5FD !important;
}

.parts-icon-img i {
  color: #7C3AED !important;
}

.category-icon.active .parts-icon-img {
  border-color: #7C3AED !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2), var(--shadow) !important;
}

/* ========================================
   SOLD OVERLAY & BADGE
   ======================================== */
.bike-card-sold {
  opacity: 0.88;
}

.sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.sold-overlay span {
  background: rgba(255,255,255,0.92);
  color: var(--dark-grey);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  text-transform: uppercase;
}

.sold-badge-admin {
  display: inline-block;
  background: var(--success);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

/* ========================================
   BIKE CARD COLOURS
   ======================================== */
.bike-card-colours {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.bike-colour-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.12);
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition: var(--transition);
}

.bike-colour-dot:hover {
  transform: scale(1.25);
}

/* ========================================
   COLOUR FILTER BAR (bikes page)
   ======================================== */
.colour-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
}

.colour-filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  white-space: nowrap;
}

.colour-filter-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.colour-swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  cursor: pointer;
  transition: var(--transition);
}

.colour-swatch-btn:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
}

.colour-swatch-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.colour-swatch {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.12);
  box-shadow: var(--shadow-sm);
}

.colour-swatch-all {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--light-grey);
  color: var(--grey);
  font-size: 0.7rem;
}

.colour-swatch-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.colour-swatch-btn.active .colour-swatch-label {
  color: var(--primary-dark);
}

/* ========================================
   ADMIN COLOUR PICKER (bike form)
   ======================================== */
.colour-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.colour-preset-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--off-white);
  border: 2px solid var(--light-grey);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.colour-preset-btn:hover {
  border-color: var(--primary);
  background: var(--primary-lighter);
}

.colour-preset-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.colour-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.colour-preset-label {
  color: var(--text);
}

.colour-check {
  font-size: 0.65rem;
  color: var(--primary);
  margin-left: 2px;
}

.colour-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 32px;
}

.colour-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.colour-tag button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: var(--transition);
}

.colour-tag button:hover {
  color: var(--danger);
  transform: scale(1.2);
}

.colour-dot-sm {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}

.colour-custom-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.colour-custom-row input[type="text"] {
  flex: 1;
  min-width: 140px;
}

/* ========================================
   ADMIN CATEGORY MANAGEMENT
   ======================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.category-admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
  transition: var(--transition);
}

.category-admin-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.category-admin-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  margin: 0 auto 12px;
  transition: var(--transition);
}

.category-admin-card:hover .category-admin-img {
  border-color: var(--primary);
}

.category-admin-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-admin-img i {
  font-size: 1.6rem;
  color: var(--grey);
}

.category-admin-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text);
}

.category-admin-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
}

/* ========================================
   ENQUIRY SUCCESS POPUP (bottom-left)
   ======================================== */
.enquiry-success-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 48px 20px 20px;
  z-index: 4000;
  max-width: 400px;
  border-left: 4px solid var(--success);
  transform: translateY(120%) scale(0.9);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.enquiry-success-popup.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.esp-icon {
  width: 42px;
  height: 42px;
  background: #ECFDF5;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.esp-icon i {
  font-size: 1.3rem;
  color: var(--success);
}

.esp-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 3px;
}

.esp-text {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.esp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--grey);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.esp-close:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.esp-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--success);
  border-radius: 0 0 0 var(--radius);
  animation: espProgress 6s linear forwards;
}

@keyframes espProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ========================================
   CHATBOT WIDGET
   ======================================== */
#pcChatbot {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 5000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Toggle Button */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(27, 143, 217, 0.35);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5001;
  overflow: visible;
}

.chat-toggle:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 30px rgba(27, 143, 217, 0.45);
}

.chat-toggle:active {
  transform: scale(0.95);
}

.chat-toggle.active {
  border-radius: 50%;
  background: var(--text);
  transform: rotate(0deg);
}

.chat-toggle-icon {
  width: 36px;
  height: 36px;
  transition: var(--transition);
}

.chat-toggle.active .chat-toggle-icon {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

.chat-toggle.active::after {
  content: '\f00d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: white;
  font-size: 1.2rem;
  position: absolute;
}

/* Pulse */
.chat-toggle-pulse {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  animation: chatPulse 2.5s ease-in-out infinite;
}

.chat-toggle.active .chat-toggle-pulse { display: none; }

@keyframes chatPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.12); opacity: 0; }
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 92px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--light-grey);
  transform: translateY(20px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5000;
}

.chat-window.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* Chat Header */
.chat-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-header-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.chat-header-status {
  font-size: 0.72rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #34D399;
  border-radius: 50%;
  display: inline-block;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chat-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.chat-close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--off-white);
}

.chat-msg {
  display: flex;
  gap: 8px;
  animation: msgIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 88%;
}

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

.chat-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-bot {
  align-self: flex-start;
}

.chat-bot-avatar {
  width: 30px;
  height: 30px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 0.8rem;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: var(--radius) var(--radius) var(--radius) 2px;
  font-size: 0.87rem;
  line-height: 1.55;
  word-break: break-word;
}

.chat-msg-bot .chat-bubble {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--light-grey);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.chat-msg-bot .chat-bubble a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-msg-bot .chat-bubble a:hover {
  color: var(--primary-dark);
}

.chat-msg-user .chat-bubble {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 2px var(--radius);
}

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 18px;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  background: var(--grey);
  border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Suggestions */
.chat-suggestions {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 4px;
  background: var(--off-white);
  border-top: 1px solid var(--light-grey);
}

.chat-suggestion-btn {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.chat-suggestion-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Chat Input */
.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--light-grey);
  background: var(--white);
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  background: var(--off-white);
}

.chat-input-area input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: none;
  transform: none;
}

.chat-send {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 0.85rem;
}

.chat-send:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.chat-send:active {
  transform: scale(0.92);
}

/* Mobile chatbot */
@media (max-width: 480px) {
  .chat-window {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .chat-window.open {
    border-radius: 0;
  }
}
