/* Navbar container */
.navbar {
  z-index: 1000 !important;
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
}

/* Custom button styles */
.navbar .btn-custom {
  background-color: #000000;
  border: 2px solid #000000;
  color: #ffffff;
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.navbar .btn-custom:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.navbar .btn-custom:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.navbar .btn-custom:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Account icon */
.navbar .account-icon {
  color: #000000;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
}

.navbar .account-icon:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Account dropdown */
.navbar .account-dropdown {
  border: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px !important;
  padding: 0.5rem 0 !important;
  min-width: 200px !important;
  margin-top: 10px !important;
  background: #ffffff !important;
  z-index: 10002 !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
}

.navbar .account-dropdown .dropdown-item {
  padding: 0.75rem 1.25rem;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  border: none;
  background: transparent;
}

.navbar .account-dropdown .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
}

.navbar .account-dropdown .dropdown-item i {
  font-size: 16px;
  width: 20px;
}

.navbar .account-dropdown .logout-btn {
  color: #dc3545;
}

.navbar .account-dropdown .logout-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.navbar .account-dropdown .dropdown-divider {
  margin: 0.5rem 0;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Dropdown positioning */
.navbar .dropdown {
  position: relative;
  z-index: 10001 !important;
}

.navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10002 !important;
  display: none;
}

.navbar .dropdown-menu.show {
  display: block !important;
}

/* Search box */
.navbar .search-box {
  border-radius: 25px 0 0 25px;
  border: 2px solid #e9ecef;
  border-right: none;
}

.navbar .search-btn {
  background: #000000;
  border: 2px solid #000000;
  border-left: none;
  border-radius: 0 25px 25px 0;
  padding: 0.375rem 0.75rem;
  color: #ffffff;
  transition: all 0.3s;
}

.navbar .search-btn:hover {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}

.navbar .search-btn:focus {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Cart icon */
.navbar .cart-icon {
  position: relative;
  font-size: 1.2rem;
}

.navbar .cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #ffffff;
  padding: 3rem 0 1rem 0;
  margin-top: 5rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.qr-code {
  width: 60px;
  height: 60px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #111827;
  font-weight: 600;
}

.qr-code::after {
  content: "QR";
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: #ffffff;
  color: #111827;
  transform: translateY(-2px);
}

.sub-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
}

.sub-footer p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.875rem;
}

footer .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 8px;
}

footer .form-control::placeholder {
  color: #9ca3af;
}

footer .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

footer .btn-light {
  background: #ffffff;
  border-color: #ffffff;
  color: #111827;
  font-weight: 600;
  border-radius: 8px;
}

footer .btn-light:hover {
  background: #f8f9fa;
  border-color: #f8f9fa;
  color: #111827;
}

/* Responsive Footer */
@media (max-width: 768px) {
  footer {
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
  }

  .footer-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }

  .social-icons {
    justify-content: center;
    margin-top: 1rem;
  }

  .qr-code {
    width: 50px;
    height: 50px;
  }
}
/* Custom SweetAlert2 styling for consistency */
.swal2-popup {
  font-family: "Inter", sans-serif !important;
}

.swal2-title {
  color: #111827 !important;
  font-weight: 600 !important;
}

.swal2-content {
  color: #374151 !important;
}

.swal2-confirm {
  background-color: #111827 !important;
  border: none !important;
  font-weight: 500 !important;
}

.swal2-confirm:hover {
  background-color: #1f2937 !important;
}

/* Navbar Link Styling with Shaking Hover Effect */
.navbar-nav {
  gap: 2rem; /* Add gap between nav items */
}

.navbar-nav .nav-item {
  position: relative;
}

/* Navbar links with fast underline animation */
.navbar-nav .nav-link {
  color: #000000 !important;
  font-weight: 600;
  font-size: 16px;
  padding: 0.75rem 1rem !important;
  margin: 0 0.5rem;
  position: relative;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Fast underline animation */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #000000;
  transition: width 0.15s ease-in-out; /* Fast movement */
}

/* Hover effect with text shadow and fast underline */
.navbar-nav .nav-link:hover {
  color: #000000 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link:hover::after {
  width: 100%; /* Fast underline appears */
}

/* Active link styling */
.navbar-nav .nav-link.active {
  color: #000000 !important;
  background: transparent;
}

/* Navbar brand styling - no hover effects */
.navbar-brand {
  font-weight: 700 !important;
  font-size: 1.75rem !important;
  color: #000000 !important;
  letter-spacing: 1.5px;
  text-decoration: none !important;
}

/* Search box styling with smart hover */
.search-box {
  border: 2px solid #e9ecef;
  border-radius: 25px 0 0 25px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.search-box:focus {
  border-color: #000000;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.search-box:hover {
  border-color: #000000;
}

.search-btn {
  background: #000000;
  border: 2px solid #000000;
  border-radius: 0 25px 25px 0;
  color: white;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.search-btn:hover {
  background: #333333;
}

/* Cart and wishlist icons styling with shaking hover effect */
.cart-icon,
.cart-icon + a {
  font-size: 1.5rem;
  color: #000000 !important;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
}

/* Shaking animation */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(2px);
  }
}

.cart-icon:hover,
.cart-icon + a:hover {
  color: #000000 !important;
  background: rgba(0, 0, 0, 0.05);
  animation: shake 0.5s ease-in-out;
}

/* Account icon styling with smart hover */
.account-icon {
  color: #000000;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.account-icon::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: #000000;
  transition: width 0.25s ease-in-out;
  transform: translateX(-50%);
  border-radius: 2px;
}

.account-icon:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.1);
}

.account-icon:hover::after {
  width: 70%;
}

/* Login/Signup button styling with smart hover */
.btn-custom {
  background: #000000;
  border: 2px solid #000000;
  color: white;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-custom::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #ffffff;
  transition: width 0.25s ease-in-out;
}

.btn-custom:hover {
  background: #333333;
  color: white;
  border-color: #333333;
}

.btn-custom:hover::after {
  width: 100%;
}

/* Mobile Navigation Sidebar */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-nav-sidebar.show {
  left: 0;
}

.mobile-nav-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.mobile-nav-brand {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  letter-spacing: 1.5px;
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
}

.mobile-nav-menu {
  padding: 1rem 0;
}

.mobile-nav-item {
  display: block;
  padding: 1rem 1.5rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
  position: relative;
}

.mobile-nav-item:hover {
  background: #f8f9fa;
  color: #000000;
  padding-left: 2rem;
}

.mobile-nav-item i {
  width: 20px;
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.mobile-nav-item.active {
  background: #f8f9fa;
  color: #000000;
  border-left: 4px solid #000000;
}

/* User section in mobile nav */
.mobile-nav-user {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #f8f9fa;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.mobile-user-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 1rem;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-user-details h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.mobile-user-details p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.mobile-nav-logout {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.mobile-nav-logout:hover {
  background: #c82333;
  color: white;
  transform: translateY(-1px);
}

.mobile-nav-auth {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.mobile-auth-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mobile-auth-btn.login {
  background: #000000;
  color: white;
  border: 2px solid #000000;
}

.mobile-auth-btn.login:hover {
  background: #333333;
  color: white;
}

.mobile-auth-btn.signup {
  background: white;
  color: #000000;
  border: 2px solid #000000;
}

.mobile-auth-btn.signup:hover {
  background: #f8f9fa;
  color: #000000;
}

/* Mobile Navbar Styles */
@media (max-width: 991px) {
  /* Hide search bar completely on mobile */
  .navbar .d-flex.me-3 {
    display: none !important;
  }

  /* Mobile navbar layout - single row */
  .navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 0 1rem !important;
  }

  /* Left side container: Burger + Brand */
  .navbar-left-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    order: 1;
  }

  .navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 1rem !important;
    background: none !important;
    margin: 0 !important;
  }

  .navbar-toggler:focus {
    box-shadow: none !important;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  .navbar-brand {
    font-size: 1.2rem !important;
    margin: 0 !important;
    order: 2;
  }

  /* Right side: Icons container */
  .mobile-icons-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    order: 3;
  }

  /* Hide desktop navigation menu */
  .navbar-collapse {
    display: none !important;
  }

  /* Icon sizing for mobile */
  .account-icon {
    width: 35px !important;
    height: 35px !important;
    font-size: 1.4rem !important;
  }

  .cart-icon {
    font-size: 1.3rem !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Consistent icon styling */
  .cart-icon,
  .cart-icon + a {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
  }

  .cart-icon:hover,
  .cart-icon + a:hover {
    background: rgba(0, 0, 0, 0.05) !important;
  }

  /* Mobile dropdown positioning */
  .account-dropdown {
    min-width: 220px !important;
    right: 0 !important;
    left: auto !important;
  }

  /* Faster animations on mobile */
  .navbar-nav .nav-link::after,
  .account-icon::after,
  .btn-custom::after {
    transition: width 0.12s ease-in-out;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem !important;
  }

  .mobile-icons-container {
    gap: 0.5rem !important;
  }

  .account-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.3rem !important;
  }

  .cart-icon {
    font-size: 1.2rem !important;
    width: 32px !important;
    height: 32px !important;
  }

  .cart-icon,
  .cart-icon + a {
    width: 32px !important;
    height: 32px !important;
  }

  .wishlist-count,
  .cart-count {
    width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
    top: -4px !important;
    right: -4px !important;
  }

  /* Even faster animations on small screens */
  .navbar-nav .nav-link::after,
  .account-icon::after,
  .btn-custom::after {
    transition: width 0.1s ease-in-out;
  }
}

/* Solid white navbar background */
.navbar {
  background-color: #ffffff !important;
  opacity: 1 !important;
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 1050 !important;
}

/* Custom SweetAlert2 Styling for Logout */
.logout-swal-popup {
  border-radius: 16px !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.logout-swal-title {
  color: #111827 !important;
  font-weight: 600 !important;
  font-size: 1.5rem !important;
}

.logout-swal-content {
  color: #6b7280 !important;
  font-size: 1rem !important;
}

.logout-swal-confirm {
  background-color: #dc3545 !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
}

.logout-swal-confirm:hover {
  background-color: #c82333 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
}

.logout-swal-cancel {
  background-color: #6c757d !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
}

.logout-swal-cancel:hover {
  background-color: #5a6268 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4) !important;
}

/* SweetAlert2 Loading Animation */
.swal2-loading .swal2-styled.swal2-confirm {
  background-color: #17a2b8 !important;
}

/* Custom animation for SweetAlert2 */
.swal2-popup.swal2-show {
  animation: swal2-show 0.3s ease-out !important;
}

@keyframes swal2-show {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  45% {
    transform: scale(1.05);
    opacity: 1;
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* User Information Header Styling */
.user-info-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px 12px 0 0;
  margin: 0;
  padding: 0 !important;
}

.user-info-header .d-flex {
  padding: 1rem !important;
}

.user-avatar {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid #ffffff;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  font-size: 16px;
  color: #2c3e50;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 13px;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}

/* Dropdown functionality */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0;
  font-size: 0.875rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.dropdown-menu.show {
  display: block !important;
}

/* Adjust dropdown menu styling for user info */
.account-dropdown {
  min-width: 280px !important;
  padding: 0 !important;
}

.account-dropdown .dropdown-divider {
  margin: 0.5rem 1rem;
  border-color: rgba(0, 0, 0, 0.1);
}

.account-dropdown .dropdown-item {
  padding: 0.75rem 1.25rem;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  border: none;
  background: transparent;
  margin: 0 0.5rem;
  border-radius: 6px;
}

.account-dropdown .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
}

.account-dropdown .dropdown-item i {
  font-size: 16px;
  width: 20px;
}

.account-dropdown .logout-btn {
  color: #dc3545;
}

.account-dropdown .logout-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Cart and Wishlist Icons */
.cart-icon {
  position: relative;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cart-icon:hover {
  color: #000000 !important;
  text-decoration: none;
}

.wishlist-count,
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 20px;
  z-index: 1000;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cart-count {
  background: #000000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .account-dropdown {
    min-width: 250px !important;
  }

  .user-name {
    font-size: 15px;
  }

  .user-email {
    font-size: 12px;
  }

  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .cart-icon {
    font-size: 1.3rem;
  }

  .wishlist-count,
  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 11px;
    top: -6px;
    right: -6px;
    border: 1px solid white;
  }
}


/* DROPDOWN FUNCTIONALITY PRESERVATION AND OVERFLOW FIXES */
.dropdown {
  position: relative !important;
}

.dropdown-menu {
  position: absolute !important;
  z-index: 1050 !important;
  max-width: calc(100vw - 20px) !important;
  box-sizing: border-box !important;
}

.dropdown-menu.show {
  display: block !important;
}

/* Account dropdown overflow prevention */
.account-dropdown {
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  max-width: calc(100vw - 20px) !important;
  box-sizing: border-box !important;
}

/* Mobile dropdown positioning */
@media (max-width: 991px) {
  .mobile-icons-container .dropdown {
    position: static !important;
  }
  
  .mobile-icons-container .dropdown-menu {
    position: fixed !important;
    top: 60px !important;
    right: 10px !important;
    left: auto !important;
    max-width: calc(100vw - 20px) !important;
  }
}

@media (max-width: 768px) {
  .account-dropdown {
    min-width: 250px !important;
    max-width: calc(100vw - 20px) !important;
    right: 10px !important;
  }
  
  .mobile-icons-container .dropdown-menu {
    right: 5px !important;
    max-width: calc(100vw - 10px) !important;
  }
}

@media (max-width: 480px) {
  .account-dropdown {
    min-width: 200px !important;
    max-width: calc(100vw - 10px) !important;
    right: 5px !important;
  }
  
  .mobile-icons-container .dropdown-menu {
    right: 2px !important;
    max-width: calc(100vw - 4px) !important;
  }
}

/* Ensure dropdown doesn't cause horizontal scroll */
.navbar .dropdown {
  overflow: visible !important;
}

.navbar .dropdown-menu {
  overflow: hidden !important;
  word-wrap: break-word !important;
}

.dropdown-item {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
