/* ==================== GLOBAL FONT FAMILY ==================== */
/* Ensure Montserrat is applied to ALL elements */
*, *::before, *::after {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

html {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override Bootstrap default fonts */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

p, span, a, button, input, textarea, select, label, li, td, th {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.btn, .form-control, .form-select {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ==================== GLOBAL ANIMATIONS & TRANSITIONS ==================== */

/* Page Transition Animation */
.page-content {
    animation: pageSlideIn 0.4s ease-out;
}

@keyframes pageSlideIn {
 from {
        opacity: 0;
    transform: translateY(20px);
  }
    to {
        opacity: 1;
   transform: translateY(0);
    }
}

/* Fade In Animation */
.fade-in {
 animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide Up Animation */
.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
 opacity: 0;
      transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== GLOBAL STYLES ==================== */
:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success-color: #28a745;
--error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Body transition for page loads */
body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.loading {
opacity: 0;
}

/* Remove default container padding for full-width pages */
.container-fluid.no-padding {
    padding: 0;
}

/* Links with smooth transitions */
a {
    transition: color var(--transition-normal) ease, 
   background-color var(--transition-normal) ease,
  border-color var(--transition-normal) ease,
  opacity var(--transition-normal) ease;
}

/* Buttons with smooth transitions */
button, .btn {
    transition: all var(--transition-normal) ease;
}

/* Images with smooth loading */
img {
 transition: opacity var(--transition-normal) ease;
}

img.lazy-loaded {
    animation: fadeIn 0.5s ease;
}

/* ==================== MODERN TOASTER NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-notification {
    min-width: 300px;
    max-width: 400px;
    background: var(--primary-white);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
 align-items: stretch;
    overflow: hidden;
  animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
}

.toast-notification.hiding {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastSlideIn {
    from {
  opacity: 0;
     transform: translateX(100%);
    }
    to {
 opacity: 1;
   transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
 opacity: 1;
    transform: translateX(0);
    }
    to {
        opacity: 0;
 transform: translateX(100%);
    }
}

.toast-icon {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  font-size: 20px;
    color: var(--primary-white);
}

.toast-notification.success .toast-icon {
    background: var(--success-color);
}

.toast-notification.error .toast-icon {
    background: var(--error-color);
}

.toast-notification.warning .toast-icon {
    background: var(--warning-color);
}

.toast-notification.info .toast-icon {
background: var(--info-color);
}

.toast-content {
    flex: 1;
 padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.toast-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toast-message {
    font-size: 12px;
  color: var(--gray-600);
    line-height: 1.4;
}

.toast-close {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
  border: none;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 18px;
    transition: all var(--transition-normal) ease;
}

.toast-close:hover {
 color: var(--gray-900);
    background: var(--gray-100);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
  background: var(--gray-300);
    animation: toastProgress 4s linear forwards;
}

.toast-notification.success .toast-progress {
  background: var(--success-color);
}

.toast-notification.error .toast-progress {
    background: var(--error-color);
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Legacy notification support */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 15px 25px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 1px;
    z-index: 10001;
    animation: toastSlideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes slideOutNotification {
    from {
        opacity: 1;
   transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ==================== PAGE LOADER ==================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
 width: 100%;
    height: 100%;
    background: var(--primary-white);
  z-index: 99999;
display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
opacity: 0;
  visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
border-top-color: var(--primary-black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
   transform: rotate(360deg);
    }
}

/* ==================== SCROLL PROGRESS BAR ==================== */
.scroll-progress {
 position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-black), var(--gray-600));
    z-index: 100000;
    width: 0%;
    transition: width 0.05s linear;
}

/* ==================== MODERN FORM STYLES ==================== */
.modern-input {
    padding: 14px 16px;
  border: 1px solid var(--gray-300);
    font-size: 13px;
    transition: all var(--transition-normal) ease;
    background: var(--primary-white);
    width: 100%;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-black);
}

.modern-input::placeholder {
    color: var(--gray-400);
}

.modern-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 8px;
    display: block;
}

/* ==================== MODERN BUTTONS ==================== */
.btn-modern {
    padding: 14px 28px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-modern.primary {
    background: var(--primary-black);
 color: var(--primary-white);
}

.btn-modern.primary:hover {
    background: var(--gray-800);
    color: var(--primary-white);
}

.btn-modern.secondary {
    background: transparent;
    border: 1px solid var(--primary-black);
    color: var(--primary-black);
}

.btn-modern.secondary:hover {
    background: var(--primary-black);
    color: var(--primary-white);
}

.btn-modern.danger {
    background: var(--error-color);
    color: var(--primary-white);
}

.btn-modern.danger:hover {
    background: #c82333;
}

/* ==================== MODERN CARDS ==================== */
.modern-card {
    background: var(--primary-white);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal) ease;
}

.modern-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==================== STATUS BADGES ==================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
 text-transform: uppercase;
    border-radius: 3px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.processing {
    background: #cce5ff;
color: #004085;
}

.status-badge.shipped {
    background: #d4edda;
    color: #155724;
}

.status-badge.delivered {
    background: #28a745;
    color: #fff;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* ==================== PROFESSIONAL FOOTER ==================== */
.astro-footer {
    background: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-brand {
    flex: 1;
    max-width: 300px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

.footer-logo:hover {
    color: #fff;
    opacity: 0.8;
}

.footer-tagline {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    gap: 80px;
}

.footer-column {
    min-width: 120px;
}

.footer-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-link {
 display: block;
    font-size: 12px;
  color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.footer-link:hover {
    color: #fff;
}

.footer-text {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.footer-payment i {
    font-size: 18px;
}

/* Footer Responsive */
@media (max-width: 991px) {
    .footer-container {
 flex-wrap: wrap;
    }
  
 .footer-brand {
 flex: 100%;
    max-width: 100%;
        margin-bottom: 30px;
    }
  
    .footer-links {
        flex: 100%;
     justify-content: flex-start;
   gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-container {
    padding: 0 20px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-column {
        min-width: 45%;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
      gap: 15px;
        text-align: center;
    }
}

/* ==================== RESPONSIVE UTILITIES ==================== */
@media (max-width: 576px) {
    .toast-container {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .toast-notification {
     min-width: auto;
      width: 100%;
    }
}
