/* ========================================================================
   MAIN STYLESHEET - Zebra Surgicals E-commerce
   Modern Theme with Soft Colors, Premium Typography & Smooth Animations
   ======================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES - New Color Palette
   ========================================================================== */

:root {
    /* Light Blue and White Theme Colors */
    --primary-color: #0ea5e9;
    /* Sky Blue 500 - Primary actions */
    --secondary-color: #38bdf8;
    /* Sky Blue 400 - Secondary elements */
    --accent-color: #7dd3fc;
    /* Sky Blue 300 - Accents & highlights */
    --dark-blue: #0284c7;
    /* Sky Blue 600 - Dark accents */
    --light-blue: #e0f2fe;
    /* Sky Blue 50 - Light backgrounds */
    --cyan: #06b6d4;
    /* Cyan 500 - CTAs */

    /* Background Colors */
    --bg-primary: #ffffff;
    /* Pure white */
    --bg-secondary: #f0f9ff;
    /* Sky Blue 50 - Very light blue */
    --bg-tertiary: #e0f2fe;
    /* Sky Blue 100 */

    /* Text Colors */
    --text-primary: #0c4a6e;
    /* Sky 900 - Main text */
    --text-secondary: #0369a1;
    /* Sky 700 - Secondary text */
    --text-muted: #0284c7;
    /* Sky 600 - Muted text */
    --text-light: #7dd3fc;
    /* Sky 300 - Very light text */

    /* Border Colors */
    --border-color: #bae6fd;
    /* Sky Blue 200 */
    --border-light: #e0f2fe;
    /* Sky Blue 100 */

    /* Utility Colors */
    --success-color: #10b981;
    /* Green 500 */
    --warning-color: #f59e0b;
    /* Amber 500 */
    --error-color: #ef4444;
    /* Red 500 */
    --info-color: #0ea5e9;
    /* Sky 500 */

    /* Warm White */
    --surface-color: #FFFFFF;
    /* Pure White */
    --border-color: #CBD5E1;
    /* Light Slate */

    /* Text Colors */
    --text-primary: #0F172A;
    /* Deep Navy */
    --text-secondary: #475569;
    /* Slate */
    --text-muted: #64748B;
    /* Gray Slate */

    /* Gradient Definitions - Ocean Sunset */
    --gradient-hero: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --gradient-sunset: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --gradient-ocean: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #047857 100%);

    /* Typography - Montserrat & Lora */
    --font-body: 'Lora', Georgia, 'Times New Roman', serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   ANIMATION KEYFRAMES LIBRARY
   ========================================================================== */

/* Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Interaction Animations */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-card);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-zoomIn {
    animation: zoomIn 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Delay Classes for Stagger Effect */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* ==========================================================================
   COMPONENT STYLES
   ========================================================================== */

/* Buttons */
.btn-gradient {
    background: var(--gradient-card);
    background-size: 200% 200%;
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.btn-gradient:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* Modern Card */
.card-modern {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* Product Card Hover Effect */
.product-card-hover {
    position: relative;
    overflow: hidden;
}

.product-card-hover::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(99, 102, 241, 0.1));
    transform: rotate(45deg) translateY(100%);
    transition: transform var(--transition-slow);
}

.product-card-hover:hover::after {
    transform: rotate(45deg) translateY(0);
}

/* Badge with Gradient */
.badge-gradient {
    background: var(--gradient-card);
    color: white;
    padding: 0.35em 0.75em;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Input with Floating Label */
.form-floating-modern .form-control {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: all var(--transition-base);
}

.form-floating-modern .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   SCROLL EFFECTS
   ========================================================================== */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-card);
    z-index: 9999;
    transition: width 0.2s ease-out;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */

@media (max-width: 575px) {
    :root {
        --font-size-base: 14px;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }
}

@media (min-width: 1200px) {
    :root {
        --font-size-base: 16px;
    }
}