/* =========================
   NAVBAR BASE
========================= */
.ws-navbar {
  min-height: 85px;
  padding: 10px 0;   /* choose fixed height */
  display: flex;
  align-items: center;
  padding: 0; 
}

/* Navbar scroll effect */
.ws-navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* =========================
   LOGO ANIMATIONS
========================= */
.ws-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-brand:hover .ws-logo-img {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.2));
}

.navbar-brand {
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: translateX(3px);
}

.ws-brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.navbar-brand:hover .ws-brand-title {
  color: #2563eb;
}

.ws-brand-sub {
  font-size: 0.8rem;
  color: #64748b;
  transition: color 0.3s ease;
}

.navbar-brand:hover .ws-brand-sub {
  color: #94a3b8;
}

/* =========================
   NAV LINKS - ENHANCED ANIMATIONS
========================= */
.navbar .nav-link {
  color: #0f172a;
  position: relative;
  padding: 8px 0;
  font-size: 1.05rem;
  transition: color 0.3s ease, transform 0.3s ease;
  margin: 0 4px;
}

/* Floating animation on hover */
.navbar .nav-link:hover {
  color: #2563eb;
  transform: translateY(-2px);
}

/* Underline animation - more dynamic */
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.navbar .nav-link:hover::after {
  width: 80%;
}

.navbar .nav-link.active {
  color: #2563eb;
  font-weight: 600;
}

.navbar .nav-link.active::after {
  width: 80%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

/* Ripple effect on click */
.navbar .nav-link:active {
  transform: scale(0.95);
}

/* =========================
   SEARCH ANIMATIONS
========================= */
.ws-search {
  width: 280px;
  transition: width 0.3s ease;
}

.ws-search:focus-within {
  width: 320px;
}

.ws-search .input-group {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  border-radius: 30px;
  overflow: hidden;
}

.ws-search .input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ws-search .form-control {
  height: 42px;
  font-size: 0.95rem;
  border-left: none;
  transition: background-color 0.3s ease;
}

.ws-search .input-group-text {
  height: 42px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-right: none;
  transition: background 0.3s ease;
}

.ws-search:focus-within .input-group-text {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

/* =========================
   CART ICON ANIMATION
========================= */
.nav-link .bi-cart3 {
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: 1.2rem;
}

.nav-link:hover .bi-cart3 {
  transform: scale(1.15) rotate(-5deg);
  color: #2563eb;
}

/* Cart badge (if you want to add item count later) */
.cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.navbar {
  position: relative;
  z-index: 1000;
}


.nav-link:hover .cart-badge {
  opacity: 1;
  transform: scale(1);
}

/* =========================
   BUTTON ANIMATIONS
========================= */
.navbar .btn {
  font-size: 0.95rem;
  padding: 8px 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 30px !important;
}

/* Button shine effect */
.navbar .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

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

/* Outline button specific */
.btn-outline-primary {
  border-width: 2px;
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Primary button */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border: none;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

/* =========================
   TOGGLER ANIMATION
========================= */
.navbar-toggler {
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  padding: 8px 12px;
}

.navbar-toggler:hover {
  border-color: #2563eb;
  transform: rotate(90deg);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* =========================
   DROPDOWN ANIMATIONS (if you add dropdowns later)
========================= */
.dropdown-menu {
  animation: slideDown 0.3s ease;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

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

.dropdown-item {
  transition: all 0.3s ease;
  padding: 10px 20px;
}

.dropdown-item:hover {
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
  transform: translateX(5px);
  color: #2563eb;
}

/* =========================
   MOBILE FIXES WITH ANIMATIONS
========================= */
@media (max-width: 991px) {
  .ws-search {
    width: 100%;
    animation: slideIn 0.4s ease;
  .navbar-collapse {
    background: white;
    padding: 20px 0;
  }
}

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

  .navbar-nav {
    text-align: center;
    animation: fadeIn 0.5s ease;
  }

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

  .navbar-nav .nav-item {
    margin-bottom: 12px;
    transform: translateX(0);
    transition: transform 0.3s ease;
  }

  .navbar-nav .nav-item:hover {
    transform: translateX(5px);
  }

  .navbar .btn {
    width: 100%;
    margin: 5px 0;
  }

  /* Mobile menu collapse animation */
  .navbar-collapse {
    transition: all 0.4s ease;
  }
}

/* =========================
   ADDITIONAL MICRO-INTERACTIONS
========================= */

/* Subtle pulse effect for active elements */
@keyframes subtlePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.nav-link.active {
  animation: subtlePulse 2s infinite;
}

/* Loading animation for search (if you add search functionality) */
.ws-search.loading .input-group-text i {
  animation: spin 1s linear infinite;
}

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