/* Global Styles */
html {
  font-size: 14px;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

/* Flexbox layout for sticky footer */
.min-vh-100 {
  min-height: 100vh;
}

.flex-grow-1 {
  flex-grow: 1;
}

/* Header Styles */
header {
  z-index: 1000;
}

.navbar {
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 700;
  transition: transform 0.2s;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  border-radius: 5px;
  margin: 0 0.25rem;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff;
}

/* Cart Badge */
#cartCount {
  font-size: 0.7rem;
  padding: 0.25em 0.5em;
  min-width: 20px;
}

/* Footer Styles */
.footer-custom {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  margin-top: auto;
}

.footer-links a {
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #fff !important;
  transform: translateX(5px);
  text-decoration: underline !important;
}

/* Social Icons */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.1);
  color: #fff;
}

.social-icon i {
  transition: transform 0.3s ease;
}

.social-icon:hover i {
  transform: scale(1.2);
}

/* Button Focus Styles */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Primary Color Override */
.bg-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Card Styles */
.card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 320px;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  overflow: hidden;
  transform: translateX(450px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  position: relative;
}

.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 20px;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.toast-error .toast-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}

.toast-info .toast-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
}

.toast-message {
  flex: 1;
  font-weight: 500;
  color: #333;
  font-size: 15px;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 5px;
  margin-left: 10px;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  background: #f0f0f0;
  color: #333;
}

.toast-progress {
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  width: 0%;
  transition: width 0.1s linear;
}

.toast-success .toast-progress {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.toast-error .toast-progress {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.toast-info .toast-progress {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .footer-custom .container {
    padding: 2rem 1rem;
  }
  
  .toast-notification {
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }
}