/* ==========================================================================
   Black & White Theme - CSS Custom Properties (Variables)
   ========================================================================== */

:root {
    /* Primary Colors - Apple-inspired Tones */
    --primary-color: #1d1d1f;
    --primary-dark: #000000;
    --primary-light: #424245;
    --secondary-color: #6e6e73;
    --accent-color: #0071e3;
    --accent-dark: #0077ed;
    --success-color: #30d158;
    --warning-color: #ff9f0a;
    --error-color: #ff3b30;
    --info-color: #0071e3;

    /* Neutral Colors - Apple Gray Scale */
    --white: #ffffff;
    --gray-50: #fbfbfd;
    --gray-100: #f5f5f7;
    --gray-200: #e8e8ed;
    --gray-300: #d2d2d7;
    --gray-400: #aeaeb2;
    --gray-500: #86868b;
    --gray-600: #6e6e73;
    --gray-700: #515154;
    --gray-800: #424245;
    --gray-900: #1d1d1f;

    /* Text Colors - Apple Style */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #86868b;
    --text-light: #aeaeb2;
    --text-inverse: #ffffff;

    /* Background Colors - Apple Subtle Grays */
    --bg-primary: #ffffff;
    --bg-secondary: #fbfbfd;
    --bg-tertiary: #f5f5f7;
    --bg-overlay: rgba(0, 0, 0, 0.72);

    /* Border Colors - Apple Subtle */
    --border-light: #e8e8ed;
    --border-medium: #d2d2d7;
    --border-dark: #86868b;
    
    /* Shadows - Apple Style (Softer, More Elegant) */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* Custom Shadows - Apple Elevation */
    --shadow-soft: 2px 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 2px 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-strong: 2px 4px 20px rgba(0, 0, 0, 0.16);
    
    /* Additional Theme Colors - Apple Refined */
    --text-dark: #1d1d1f;
    --text-light-alt: #6e6e73;
    --bg-light: #f5f5f7;
    --border-light-alt: #d2d2d7;

    /* Apple Blue Shades */
    --blue-light: #2997ff;
    --blue: #0071e3;
    --blue-dark: #0077ed;
    
    /* Transition Variables */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout Variables */
    --header-height: 70px;
    --top-bar-height: 40px;
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* Dark Theme Variables - Inverted Black & White */
.dark-theme {
    --text-primary: #f5f5f5;
    --text-secondary: #bdbdbd;
    --text-muted: #9e9e9e;
    --text-light: #757575;
    
    --bg-primary: #212121;
    --bg-secondary: #424242;
    --bg-tertiary: #616161;
    --bg-overlay: rgba(255, 255, 255, 0.8);
    
    --border-light: #616161;
    --border-medium: #757575;
    --border-dark: #9e9e9e;
}


/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: var(--leading-normal);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.loaded {
    opacity: 1;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-xl { max-width: var(--container-xl); }
.container-2xl { max-width: var(--container-2xl); }

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: var(--space-8) 0;
}

/* ==========================================================================
   Button Components
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: var(--leading-tight);
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    user-select: none;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-dark);
    text-decoration: none;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

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

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

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

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-xl);
}

/* Button Styles */
.btn-outline {
    background: transparent;
    border-width: 2px;
}

.btn-ghost {
    background: transparent;
    border: none;
    box-shadow: none;
}

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

/* ==========================================================================
   Card Components
   ========================================================================== */

.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.card-text {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Form Components
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-control.is-invalid {
    border-color: var(--error-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--primary-color);
}

.form-check-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 0;
}

.form-text {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}


.valid-feedback {
    display: block;
    color: var(--success-color);
    font-size: var(--text-xs);
    margin-top: var(--space-1);
}

/* ==========================================================================
   Alert Components
   ========================================================================== */

.alert {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.alert-success {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.2);
    color: var(--success-color);
}

.alert-warning {
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.2);
    color: var(--warning-color);
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--error-color);
}

.alert-info {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.2);
    color: var(--info-color);
}

.alert-icon {
    flex-shrink: 0;
    font-size: var(--text-lg);
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: var(--text-lg);
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* ==========================================================================
   Badge Components
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: var(--leading-none);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: var(--primary-color);
    color: var(--white);
}

.badge-secondary {
    background: var(--gray-100);
    color: var(--gray-800);
}

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

.badge-warning {
    background: var(--warning-color);
    color: var(--white);
}

.badge-error {
    background: var(--error-color);
    color: var(--white);
}

.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* ==========================================================================
   Notification System
   ========================================================================== */

.notification {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    max-width: 400px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    z-index: var(--z-toast);
    animation: slideInRight 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-warning {
    border-left: 4px solid var(--warning-color);
}

.notification-error {
    border-left: 4px solid var(--error-color);
}

.notification-info {
    border-left: 4px solid var(--info-color);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: var(--text-lg);
    line-height: 1;
    margin-left: auto;
    transition: color var(--transition-fast);
}

.notification-close:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   Loading Components
   ========================================================================== */

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-lg {
    width: 2rem;
    height: 2rem;
    border-width: 3px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

/* Flex */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.justify-start { justify-content: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }
.align-start { align-items: flex-start !important; }
.align-center { align-items: center !important; }
.align-end { align-items: flex-end !important; }
.align-stretch { align-items: stretch !important; }

/* Text */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-justify { text-align: justify !important; }

.text-xs { font-size: var(--text-xs) !important; }
.text-sm { font-size: var(--text-sm) !important; }
.text-base { font-size: var(--text-base) !important; }
.text-lg { font-size: var(--text-lg) !important; }
.text-xl { font-size: var(--text-xl) !important; }
.text-2xl { font-size: var(--text-2xl) !important; }
.text-3xl { font-size: var(--text-3xl) !important; }

.font-light { font-weight: 300 !important; }
.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-error { color: var(--error-color) !important; }
.text-black { color: #000 !important; }


/* Spacing */
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--space-1) !important; }
.m-2 { margin: var(--space-2) !important; }
.m-3 { margin: var(--space-3) !important; }
.m-4 { margin: var(--space-4) !important; }
.m-5 { margin: var(--space-5) !important; }
.m-6 { margin: var(--space-6) !important; }
.m-8 { margin: var(--space-8) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--space-1) !important; }
.p-2 { padding: var(--space-2) !important; }
.p-3 { padding: var(--space-3) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-5 { padding: var(--space-5) !important; }
.p-6 { padding: var(--space-6) !important; }
.p-8 { padding: var(--space-8) !important; }

/* Borders */
.border { border: 1px solid var(--border-light) !important; }
.border-t { border-top: 1px solid var(--border-light) !important; }
.border-b { border-bottom: 1px solid var(--border-light) !important; }
.border-l { border-left: 1px solid var(--border-light) !important; }
.border-r { border-right: 1px solid var(--border-light) !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* Shadows */
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Background */
.bg-primary { background-color: var(--bg-primary) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-tertiary { background-color: var(--bg-tertiary) !important; }

/* ==========================================================================
   Animation Classes
   ========================================================================== */

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

.spin {
    animation: spin 1s linear infinite;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 575.98px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .d-xs-none { display: none !important; }
    .d-xs-block { display: block !important; }
    .d-xs-flex { display: flex !important; }
    
    .text-xs-center { text-align: center !important; }
    .text-xs-left { text-align: left !important; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
}

@media (min-width: 1200px) {
    .d-xl-none { display: none !important; }
    .d-xl-block { display: block !important; }
    .d-xl-flex { display: flex !important; }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .no-print { display: none !important; }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        break-after: avoid;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .btn {
        border: 1px solid #000;
    }
}

/* ==========================================================================
   Accessibility Improvements
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-light: #000;
        --border-medium: #000;
        --text-muted: #000;
    }
}

/* Focus visible for better keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}


/* ==========================================================================
   Top Information Bar
   ========================================================================== */

.top-info-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    min-height: var(--top-bar-height);
    position: relative;
    overflow: hidden;
}

.top-info-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="20" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.top-info-content {
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: var(--transition-smooth);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.top-cta-button, .cta-button {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.top-cta-button:hover, .cta-button:hover {
    background: #0891b2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}


/* ==========================================================================
   Main Header
   ========================================================================== */

.main-header {
    background: white;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.main-header.scrolled {
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.98);
}

.main-navbar {
    padding: 0.75rem 0;
    min-height: var(--header-height);
}

/* ==========================================================================
   Brand/Logo
   ========================================================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.brand:hover {
    color: var(--primary-color);
}

.brand-logo {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.brand-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.brand:hover .brand-logo::before {
    opacity: 1;
    transform: rotate(45deg) translateX(100%);
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.premium-nav {
    display: flex;
   
    list-style: none;
    gap: 3rem;
    margin: 0;
    margin-left: 4rem;
    padding: 0;
}
.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* ==========================================================================
   Dropdown Menu
   ========================================================================== */

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-strong);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    min-width: 200px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
}

.dropdown-item.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-light);
}

/* ==========================================================================
   User Actions
   ========================================================================== */

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-toggle,
.cart-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    position: relative;
    font-size: 1.1rem;
}

.user-toggle:hover,
.cart-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   Mobile Toggle
   ========================================================================== */

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.mobile-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
}

.mobile-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-toggle-icon {
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
}

.mobile-toggle-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.mobile-toggle-icon span:nth-child(1) { top: 0px; }
.mobile-toggle-icon span:nth-child(2) { top: 7px; }
.mobile-toggle-icon span:nth-child(3) { top: 14px; }

.mobile-toggle-icon.active span:nth-child(1) {
    top: 7px;
    transform: rotate(135deg);
}

.mobile-toggle-icon.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-toggle-icon.active span:nth-child(3) {
    top: 7px;
    transform: rotate(-135deg);
}

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */

.scroll-progress {
   position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: width 0.1s ease, opacity 0.3s ease;
    z-index: 9999;
    width: 0%;

    border-radius: 0 3px 3px 0;
}
/* Add a subtle glow effect */
.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(1px);
    opacity: 0.5;
    z-index: -1;
}



/* ==========================================================================
   Focus States & Accessibility
   ========================================================================== */

.nav-link:focus,
.social-link:focus,
.cta-button:focus,
.user-toggle:focus,
.cart-link:focus,
.dropdown-item:focus {
    outline: 0px;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

.slide-down {
    animation: slideDown 0.3s ease-out;
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */

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

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-light);
    }

    .nav-link {
        padding: 1rem;
        width: 100%;
        border-radius: 0;
        justify-content: flex-start;
    }

    .nav-link.active::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid var(--border-light);
        margin: 0;
        background: var(--bg-light);
        backdrop-filter: none;
    }

    .contact-info {
        display: none !important;
    }

    .social-links {
        justify-content: center;
    }

    .user-actions {
        justify-content: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-light);
    }
}

@media (max-width: 767.98px) {
    .top-info-bar {
        text-align: center;
    }

    .top-info-content .row > div {
        margin-bottom: 0.5rem;
    }

    .top-info-content .row > div:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .top-info-bar {
        padding: 0.25rem 0;
    }

    .brand {
        font-size: 1.25rem;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .cta-button {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Dark Mode Support (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f1f5f9;
        --text-light: #94a3b8;
        --bg-light: #1e293b;
        --border-light: #334155;
    }

    .main-header {
        background: rgba(15, 23, 42, 0.95);
        color: var(--text-dark);
    }

    .main-header.scrolled {
        background: rgba(15, 23, 42, 0.98);
    }

    .dropdown-menu {
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid var(--border-light);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(37, 99, 235, 0.2);
    }

    .dropdown-item:hover {
        background: rgba(37, 99, 235, 0.2);
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .top-info-bar,
    .main-header {
        display: none;
    }
}

/* ==========================================================================
   Modern Notification System Styles
   ========================================================================== */

.notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: var(--z-toast, 1700);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.toast-notification {
    background: var(--bg-elevated, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: var(--radius-xl, 1rem);
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1));
    overflow: hidden;
    position: relative;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s var(--ease-out, cubic-bezier(0, 0, 0.2, 1));
    backdrop-filter: blur(10px);
    max-width: 100%;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.toast-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: relative;
}

.toast-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    opacity: 0.1;
}

/* Toast Type Styles */
.toast-notification.success .toast-icon {
    color: var(--color-success, #059669);
}

.toast-notification.success .toast-icon::before {
    background: var(--color-success, #059669);
}

.toast-notification.error .toast-icon {
    color: var(--color-error, #dc2626);
}

.toast-notification.error .toast-icon::before {
    background: var(--color-error, #dc2626);
}

.toast-notification.warning .toast-icon {
    color: var(--color-warning, #d97706);
}

.toast-notification.warning .toast-icon::before {
    background: var(--color-warning, #d97706);
}

.toast-notification.info .toast-icon {
    color: var(--color-info, #0284c7);
}

.toast-notification.info .toast-icon::before {
    background: var(--color-info, #0284c7);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: var(--font-semibold, 600);
    color: var(--text-primary, #1e293b);
    font-size: 0.875rem;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

.toast-message {
    color: var(--text-secondary, #64748b);
    font-size: 0.875rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.toast-close {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted, #94a3b8);
    transition: all 0.2s var(--ease-out, ease);
    font-size: 1rem;
}

.toast-close:hover {
    background: var(--bg-secondary, #f1f5f9);
    color: var(--text-primary, #1e293b);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    transform: translateX(-100%);
    transition: transform linear;
}

.toast-notification.success .toast-progress-bar {
    background: var(--color-success, #059669);
}

.toast-notification.error .toast-progress-bar {
    background: var(--color-error, #dc2626);
}

.toast-notification.warning .toast-progress-bar {
    background: var(--color-warning, #d97706);
}

.toast-notification.info .toast-progress-bar {
    background: var(--color-info, #0284c7);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes progressCountdown {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 575.98px) {
    .notification-container {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
    
    .toast-header {
        padding: 0.75rem;
    }
    
    .toast-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .toast-title,
    .toast-message {
        font-size: 0.8rem;
    }
}

/* Dark Theme Support */
.dark-theme .toast-notification {
    background: var(--bg-elevated, #1e293b);
    border-color: var(--border-subtle, #334155);
    color: var(--text-primary, #f1f5f9);
}

.dark-theme .toast-close:hover {
    background: var(--bg-secondary, #334155);
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .toast-notification {
        border-width: 2px;
        border-color: currentColor;
    }
    
    .toast-close {
        border: 1px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .toast-notification {
        transition: opacity 0.2s ease;
    }
    
    .toast-notification.show {
        transform: none;
    }
    
    .toast-notification.hide {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .notification-container {
        display: none;
    }
}

/* ==========================================================================
   Enhanced Modern Product Card Styles
   ========================================================================== */

.modern-product-card {
    position: relative;
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.modern-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
}

/* 产品图片容器 */
.product-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-product-card:hover .product-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.02) 50%,
        rgba(0, 0, 0, 0.08) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-product-card:hover .image-overlay {
    opacity: 1;
}

/* 产品徽章 */
.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-badge.featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.badge-text {
    display: none;
}

@media (min-width: 768px) {
    .badge-text {
        display: inline;
    }
}

/* 国家旗帜 */
.product-country-flag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 3;
}

.country-flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 安全特征指示器 */
.security-indicators {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.25rem;
    z-index: 3;
}

.security-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: securityPulse 2s infinite;
    cursor: pointer;
}

.security-dot:nth-child(2) { animation-delay: 0.5s; }
.security-dot:nth-child(3) { animation-delay: 1s; }
.security-dot:nth-child(4) { animation-delay: 1.5s; }

@keyframes securityPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.8; 
    }
}

/* 产品操作按钮 */


.modern-product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.95);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.action-btn:hover {
    background: #1d4ed8;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.action-btn.wishlist-btn:hover {
    background: #dc2626;
    color: white;
}

.action-btn.cart-btn:hover {
    background: #059669;
    color: white;
}

/* 产品内容 */
.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 产品分类 */
.product-category {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted, #94a3b8);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 产品标题 */
.product-title {
    margin: 0;
    line-height: 1.3;
}

.product-title-link {
    color: var(--text-primary, #1e293b);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
}

.product-title-link:hover {
    color: var(--primary-color, #2563eb);
}

/* 产品评级 */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.rating-stars i {
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.star-active {
    color: #fbbf24;
}

.star-inactive {
    color: #d1d5db;
}

.rating-count {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    font-weight: 500;
}

/* 产品特性 */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #64748b);
    background: var(--bg-secondary, #f1f5f9);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-light, #e2e8f0);
    font-weight: 500;
}

.feature-item i {
    font-size: 0.625rem;
}

.feature-item:nth-child(1) i { color: #10b981; }
.feature-item:nth-child(2) i { color: #3b82f6; }
.feature-item:nth-child(3) i { color: #f59e0b; }

/* 产品价格 */
.product-pricing {
    margin-bottom: auto;
}

.price-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
}

.price-original {
    font-size: 1rem;
    color: var(--text-muted, #94a3b8);
    text-decoration: line-through;
}

.price-discount {
    background: #dc2626;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-contact {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
}

/* 移动端操作按钮 */
.product-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.product-btn-detail,
.product-btn-buy {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-btn-detail {
    border: 2px solid var(--primary-color, #2563eb);
    color: var(--primary-color, #2563eb);
    background: transparent;
}

.product-btn-detail:hover {
    background: var(--primary-color, #2563eb);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.product-btn-buy {
    background: linear-gradient(135deg, var(--primary-color, #2563eb), #1d4ed8);
    color: white;
    border: none;
}

.product-btn-buy:hover {
    background: linear-gradient(135deg, #1d4ed8, var(--primary-color, #2563eb));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

.product-btn-buy:hover::before {
    left: 100%;
}

/* 加载状态 */
.product-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 3px solid var(--border-light, #e2e8f0);
    border-top-color: var(--primary-color, #2563eb);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 767.98px) {
    .product-content {
        padding: 1rem;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-features {
        display: none;
    }
    
    .product-actions {
        display: none;
    }
    
    .security-indicators {
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    .security-dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 575.98px) {
    .product-pricing {
        margin-bottom: 0.5rem;
    }
    
    .product-content {
        gap: 0.75rem;
    }
    
    .price-group {
        justify-content: center;
    }
}

/* 深色主题支持 */
.dark-theme .modern-product-card {
    background: var(--bg-secondary, #1e293b);
    border-color: var(--border-dark, #334155);
}

.dark-theme .image-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.dark-theme .feature-item {
    background: var(--bg-tertiary, #334155);
    border-color: var(--border-dark, #475569);
}

.dark-theme .product-loading {
    background: rgba(30, 41, 59, 0.95);
}

/* 高对比度支持 */
@media (prefers-contrast: high) {
    .modern-product-card {
        border-width: 2px;
    }
    
    .action-btn {
        border: 2px solid white;
    }
    
    .feature-item {
        border-width: 2px;
    }
}

/* 减少动画支持 */
@media (prefers-reduced-motion: reduce) {
    .modern-product-card,
    .product-image,
    .action-btn,
    .product-btn-detail,
    .product-btn-buy {
        transition: none;
    }
    
    .security-dot {
        animation: none;
    }
    
    .modern-product-card:hover {
        transform: none;
    }
    
    .modern-product-card:hover .product-image {
        transform: none;
    }
}

/* ==========================================================================
   Mobile-First Header Optimizations
   ========================================================================== */
/* ==========================================================================
   Mobile-First Header Optimizations
   ========================================================================== */

/* Desktop Search Bar */
.search-container {
    max-width: 500px;
    position: relative;
}

.search-form {
    position: relative;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-secondary, #f8fafc);
    border: 2px solid var(--border-light, #e2e8f0);
    border-radius: 50px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.search-input-group:focus-within {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1.25rem;
    font-size: 0.925rem;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted, #94a3b8);
}

.search-btn {
    border: none;
    background: var(--primary-color, #2563eb);
    color: white;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--primary-dark, #1d4ed8);
}

.search-btn i {
    font-size: 1rem;
}

/* Mobile Actions */
.mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-search-toggle,
.mobile-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.mobile-search-toggle:hover,
.mobile-cart-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color, #2563eb);
    transform: translateY(-2px);
}

.mobile-cart-link .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color, #06b6d4);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    padding: 0 4px;
}

/* Mobile Search Collapse */
.mobile-search-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 1rem 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    margin-top: 0.5rem;
}

.mobile-search-form {
    padding: 1rem;
}

.mobile-search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-secondary, #f8fafc);
    border: 2px solid var(--border-light, #e2e8f0);
    border-radius: 50px;
    overflow: hidden;
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

.mobile-search-btn {
    border: none;
    background: var(--primary-color, #2563eb);
    color: white;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

/* Enhanced Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
}

.mobile-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
}

.mobile-toggle-icon {
    width: 26px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
}

.mobile-toggle-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.mobile-toggle-icon span:nth-child(1) { top: 0px; width: 100%; }
.mobile-toggle-icon span:nth-child(2) { top: 8px; width: 80%; }
.mobile-toggle-icon span:nth-child(3) { top: 16px; width: 60%; }

.mobile-toggle-icon.active span:nth-child(1) {
    top: 8px;
    width: 100%;
    transform: rotate(135deg);
}

.mobile-toggle-icon.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-toggle-icon.active span:nth-child(3) {
    top: 8px;
    width: 100%;
    transform: rotate(-135deg);
}

/* Desktop User Actions */
.desktop-user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   Mobile Bottom Navigation
   ========================================================================== */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light, #e2e8f0);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: var(--z-fixed, 1030);
    padding: env(safe-area-inset-bottom) 0 0;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0.75rem 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted, #94a3b8);
    transition: all var(--transition-fast);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.75rem;
    min-width: 48px;
    position: relative;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary-color, #2563eb);
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.bottom-nav-item .nav-icon {
    position: relative;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.bottom-nav-item .nav-icon i {
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.bottom-nav-item.active .nav-icon i {
    transform: scale(1.1);
}

.bottom-nav-item .nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

/* Cart Badge for Bottom Nav */
.bottom-nav-item.cart-item .cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-color, #06b6d4);
    color: white;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1;
    padding: 0 3px;
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.3);
}

/* Bottom Navigation Spacer */
.mobile-bottom-spacer {
    height: 80px;
    padding-bottom: env(safe-area-inset-bottom);
}

/* ==========================================================================
   Mobile More Menu Modal
   ========================================================================== */

.mobile-more-modal .modal-dialog {
    margin: 1rem;
    max-width: 400px;
}

.mobile-more-modal .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: var(--shadow-xl);
}

.mobile-more-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color, #2563eb) 0%, var(--primary-dark, #1d4ed8) 100%);
    color: white;
    border-radius: 1rem 1rem 0 0;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.mobile-more-modal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-more-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.mobile-more-modal .modal-body {
    padding: 1.5rem;
}

.mobile-menu-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-section {
    border-bottom: 1px solid var(--border-light, #e2e8f0);
    padding-bottom: 1.25rem;
}

.menu-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.menu-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-light, #e2e8f0);
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    font-weight: 500;
}

.menu-item:hover {
    color: var(--primary-color, #2563eb);
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.menu-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--text-muted, #94a3b8);
}

.menu-item:hover i {
    color: var(--primary-color, #2563eb);
}

/* ==========================================================================
   Enhanced Footer Styles
   ========================================================================== */

.main-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="footergrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></pattern></defs><rect width="100" height="20" fill="url(%23footergrid)"/></svg>');
    opacity: 0.5;
}

.main-footer .container {
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color, #2563eb) 0%, var(--accent-color, #06b6d4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    font-weight: 400;
}

.footer-link:hover {
    color: var(--primary-color, #2563eb);
    transform: translateX(4px);
}

.footer-link::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary-color, #2563eb);
    border-radius: 50%;
    margin-right: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer-link:hover::before {
    opacity: 1;
}

/* Social Links Footer */
.social-links-footer {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link-footer:hover {
    background: var(--primary-color, #2563eb);
    color: white;
    border-color: var(--primary-color, #2563eb);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.social-link-footer i {
    font-size: 1.1rem;
}

/* Trust Indicators */
.trust-indicators {
    opacity: 0.8;
}

.trust-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.trust-item i {
    font-size: 1.1rem;
}

/* Footer Meta */
.footer-meta {
    opacity: 0.6;
}

/* ==========================================================================
   Responsive Enhancements
   ========================================================================== */

@media (max-width: 991.98px) {
    /* Hide desktop search */
    .search-container {
        display: none !important;
    }
    
    /* Hide desktop user actions */
    .desktop-user-actions {
        display: none !important;
    }
    
    /* Show mobile actions */
    .mobile-actions {
        display: flex;
    }
    
    /* Show mobile toggle */
    .mobile-toggle {
        display: block;
    }
    
    /* Mobile navigation adjustments */
    .premium-nav {
        margin-left: 0;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-light);
    }
    
    .nav-link {
        padding: 1rem;
        width: 100%;
        border-radius: 0;
        justify-content: flex-start;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid var(--border-light);
        margin: 0;
        background: var(--bg-secondary);
        backdrop-filter: none;
        display: none; /* 默认隐藏 */
        width: 100%;
        border-radius: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu.show {
        display: block !important; /* 强制显示 */
        animation: slideDown 0.3s ease-out;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.5rem;
        color: var(--text-primary);
        border: none;
        background: none;
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.2s ease;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background: rgba(37, 99, 235, 0.05);
        color: var(--primary-color);
    }
    
    /* Mobile footer adjustments */
    .main-footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
    
    .social-links-footer {
        justify-content: center;
    }
    
    .trust-indicators .row {
        text-align: center;
    }
    
    .trust-item {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    /* Mobile header adjustments */
    .main-navbar {
        padding: 0.5rem 0;
    }
    
    .brand {
        font-size: 1.25rem;
    }
    
    .brand-logo {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    /* Mobile bottom nav responsive */
    .bottom-nav-container {
        padding: 0.4rem 0.5rem 0.6rem;
    }
    
    .bottom-nav-item .nav-icon {
        width: 26px;
        height: 26px;
    }
    
    .bottom-nav-item .nav-icon i {
        font-size: 1.1rem;
    }
    
    .bottom-nav-item .nav-label {
        font-size: 0.65rem;
    }
    
    /* Mobile modal adjustments */
    .mobile-more-modal .modal-dialog {
        margin: 0.5rem;
    }
    
    .menu-items {
        grid-template-columns: 1fr;
    }
    
    /* Footer responsive */
    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .social-links-footer {
        justify-content: center;
    }
    
    .trust-indicators {
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* Ultra-mobile adjustments */
    .mobile-actions {
        gap: 0.5rem;
    }
    
    .mobile-search-toggle,
    .mobile-cart-link {
        width: 36px;
        height: 36px;
    }
    
    .mobile-bottom-spacer {
        height: 75px;
    }
    
    .bottom-nav-container {
        padding: 0.35rem 0.25rem 0.5rem;
    }
    
    .trust-indicators .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================================================
   Dark Theme Support
   ========================================================================== */

.dark-theme .mobile-bottom-nav {
    background: rgba(30, 41, 59, 0.95);
    border-top-color: var(--border-dark, #334155);
}

.dark-theme .mobile-search-collapse {
    background: var(--bg-secondary, #1e293b);
}

.dark-theme .menu-item {
    background: var(--bg-tertiary, #334155);
    border-color: var(--border-dark, #475569);
    color: var(--text-primary, #f1f5f9);
}

/* ==========================================================================
   High Contrast & Accessibility
   ========================================================================== */

@media (prefers-contrast: high) {
    .mobile-bottom-nav {
        border-top-width: 2px;
        background: rgba(255, 255, 255, 1);
    }
    
    .bottom-nav-item {
        border: 1px solid transparent;
    }
    
    .bottom-nav-item.active {
        border-color: var(--primary-color, #2563eb);
    }
}

/* Focus states for accessibility */
.bottom-nav-item:focus {
    outline: 2px solid var(--primary-color, #2563eb);
    outline-offset: 2px;
}

.menu-item:focus {
    outline: 2px solid var(--primary-color, #2563eb);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mobile-toggle-icon,
    .mobile-toggle-icon span,
    .bottom-nav-item,
    .menu-item,
    .footer-link {
        transition: none;
    }
    
    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        transform: none;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .mobile-bottom-nav,
    .mobile-more-modal,
    .mobile-search-collapse {
        display: none !important;
    }
    
    .mobile-bottom-spacer {
        display: none !important;
    }
}

/* ==========================================================================
   Additional Animation Enhancements
   ========================================================================== */

@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-bottom-nav {
    animation: slideUpFromBottom 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.mobile-more-modal .modal-content {
    animation: fadeInScale 0.3s ease-out;
}

/* Hover animations for interactive elements */
.bottom-nav-item {
    transform-origin: center bottom;
}

.bottom-nav-item:hover {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(-2px);
    }
    40% {
        transform: translateY(-4px);
    }
    80% {
        transform: translateY(-1px);
    }
}