/* Modern Style CSS integrado con Material UI - TrailCR4x4 */

/* Variables CSS para la marca */
:root {
    --primary-color: #b70000;
    --primary-variant: #d32f2f;
    --secondary-color: #ff5722;
    --surface-color: #ffffff;
    --background-color: #fafafa;
    --error-color: #b00020;
    --on-primary: #ffffff;
    --on-secondary: #ffffff;
    --on-surface: rgba(0, 0, 0, 0.87);
    --on-background: rgba(0, 0, 0, 0.87);
    --on-error: #ffffff;
    
    /* Sombras Material Design */
    --mdc-elevation-1: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
    --mdc-elevation-2: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
    --mdc-elevation-3: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
    
    /* Legacy variables for compatibility */
    --primary-hover: #8b0000;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.25);
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s ease;
    --border-radius: 8px;
    --header-height: 80px;
}

/* Modern Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: block !important; /* Force body to always be visible */
    visibility: visible !important; /* Ensure body is never hidden */
    opacity: 1 !important; /* Ensure body is never transparent */
}

/* Emergency override for any display:none on body */
body[style*="display: none"],
body[style*="display:none"] {
    display: block !important;
}

/* Loading state protection - don't hide body completely */
body.loading {
    opacity: 1 !important;
    display: block !important;
}

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

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Modern Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

/* =============================================================================
   MODERN HEADER SECTION
   ============================================================================= */

.modern-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-smooth);
    box-shadow: 0 2px 20px var(--shadow-light);
    padding: 0;
}

.modern-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px var(--shadow-medium);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: var(--header-height);
}

/* Modern Logo */
.modern-logo {
    transition: all var(--transition-smooth);
}

.modern-logo img {
    height: 50px;
    width: auto;
    transition: all var(--transition-smooth);
}

.modern-header.scrolled .modern-logo img {
    height: 40px;
}

/* Modern Navigation */
.modern-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.modern-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

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

.modern-nav-link {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-dark);
    padding: 0.5rem 0;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.modern-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
}

.modern-nav-link:hover::after,
.modern-nav-link.active::after {
    width: 100%;
}

.modern-nav-link:hover {
    color: var(--primary-color);
}

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

.search-container {
    position: relative;
}

.search-input {
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.9rem;
    width: 200px;
    transition: all var(--transition-fast);
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(183, 0, 0, 0.1);
    width: 250px;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

.cart-icon {
    position: relative;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #fff;
    font-size: 1.1rem;
    color: #333;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
    cursor: pointer;
    text-decoration: none;
}

.cart-icon:hover {
    background: #b70000;
    border-color: #b70000;
    color: #fff;
    box-shadow: 0 4px 14px rgba(183,0,0,0.3);
    transform: none;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-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;
}

/* User Menu Modern Styles */
.user-menu-modern {
    position: relative;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    /* Ensure same size as cart */
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Prevent duplication - only show one mobile menu button */
.mobile-menu-btn:nth-of-type(n+2) {
    display: none !important;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: all var(--transition-fast);
    border-radius: 2px;
}

/* Mobile-only elements */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: flex;
}

/* Mobile Search Styles - MODERN DESIGN */
.mobile-search-modern {
    padding: 1rem 0 1.25rem;
    margin-bottom: 0.5rem;
}

.mobile-search-item {
    border-bottom: 1px solid #eee !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.mobile-search-form {
    display: flex;
    flex-direction: column;
}

/* Material field */
.msf-field {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    height: 56px;
    padding: 0 4px 0 14px;
    transition: border-color .2s, box-shadow .2s;
}
.msf-field:focus-within {
    border-color: #b70000;
    box-shadow: 0 0 0 3px rgba(183,0,0,0.1);
}
.msf-icon {
    color: #bbb;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-right: 10px;
    transition: color .2s;
}
.msf-field:focus-within .msf-icon { color: #b70000; }
/* Float wrap */
.msf-float-wrap {
    position: relative;
    flex: 1;
    height: 100%;
}
.msf-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 20px 0 4px !important;
    font-size: 1.25rem !important;
    color: #111 !important;
    line-height: 1;
}
.msf-input::placeholder { color: transparent; }
/* Floating label */
.msf-label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #aaa;
    pointer-events: none;
    transition: all .18s ease;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
    font-weight: 400;
}
.msf-input:focus + .msf-label,
.msf-input:not(:placeholder-shown) + .msf-label {
    top: 7px;
    transform: translateY(0);
    font-size: 0.78rem;
    color: #b70000;
    font-weight: 600;
}
/* Submit button */
.msf-btn {
    background: #b70000;
    border: none;
    color: #fff;
    padding: 0 18px;
    height: 42px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background .2s;
    flex-shrink: 0;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.msf-btn:hover { background: #900; }

/* Modern Navigation Links with Icons */
.modern-nav-link {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: left;
    color: var(--text-dark) !important;
    text-decoration: none !important;
    transition: all var(--transition-fast);
}

.modern-nav-link i {
    width: 24px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.modern-nav-link:hover {
    color: var(--primary-color) !important;
    padding-left: 0.5rem;
}

/* Mobile Cart Fixed Position - same style as desktop .cart-icon */
.mobile-cart-fixed {
    display: none;
    position: fixed;
    top: 14px;
    right: 60px;
    z-index: 1003;
    color: #333;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #fff;
    font-size: 1.1rem;
}

/* Prevent duplication - only show one mobile cart */
.mobile-cart-fixed:nth-of-type(n+2) {
    display: none !important;
}

.mobile-cart-fixed:hover {
    background: #b70000;
    border-color: #b70000;
    color: #fff;
    box-shadow: 0 4px 14px rgba(183,0,0,0.3);
    transform: none;
    text-decoration: none;
}

.mobile-cart-btn-label {
    display: none;
}

.mobile-cart-count-fixed {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-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;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Modern User Section at Bottom */
.mobile-user-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.mobile-user-modern {
    padding: 1rem 0;
}

.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.mobile-user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: var(--text-dark);
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.admin-card .user-avatar {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.login-card .user-avatar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #dc3545 100%);
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.user-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
}

.user-arrow {
    color: var(--text-light);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.mobile-user-card:hover .user-arrow {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Mobile Cart Link Styles */
.mobile-cart-link {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark) !important;
    font-size: 1.1rem !important;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none !important;
}

.mobile-cart-link:hover {
    color: var(--primary-color) !important;
}

.mobile-cart-count {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

/* Mobile User Link Styles */
.mobile-user-link {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark) !important;
    font-size: 1.1rem !important;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none !important;
}

.mobile-user-link:hover {
    color: var(--primary-color) !important;
}

/* =============================================================================
   MODERN HERO/CAROUSEL SECTION
   ============================================================================= */

.modern-hero {
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background-color: #333;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #333;
    visibility: visible !important;
    z-index: 0;
    display: block !important;
    transform: translateX(100%);
}

.carousel-slide.active {
    opacity: 1 !important;
    z-index: 10 !important;
    transform: translateX(0) !important;
    display: block !important;
}

/* Debugging styles - temporary */
.carousel-slide:nth-child(1) { border: 3px solid red; }
.carousel-slide:nth-child(2) { border: 3px solid blue; }
.carousel-slide:nth-child(3) { border: 3px solid green; }
.carousel-slide:nth-child(4) { border: 3px solid yellow; }
.carousel-slide:nth-child(5) { border: 3px solid purple; }

/* ========================================
   CAROUSEL NAVIGATION STYLES
   ======================================== */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(183, 0, 0, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    visibility: visible !important;
    opacity: 1 !important;
}

.carousel-nav:hover {
    background: rgba(183, 0, 0, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    gap: 10px;
    z-index: 100;
    visibility: visible !important;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block !important;
    visibility: visible !important;
}

.carousel-indicator.active {
    background: rgba(183, 0, 0, 0.9);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(183, 0, 0, 0.7);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(183,0,0,0.4) 100%);
    display: flex;
    align-items: center;
}

.carousel-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.carousel-text {
    max-width: 500px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.carousel-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.carousel-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.carousel-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    animation: fadeInUp 1s ease-out 0.6s both;
    box-shadow: 0 4px 15px rgba(183, 0, 0, 0.3);
}

.carousel-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(183, 0, 0, 0.4);
    color: white;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

/* =============================================================================
   MODERN PROMO SECTION
   ============================================================================= */

.modern-promo {
    padding: 4rem 0;
    background: var(--background-light);
}

.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.promo-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: all var(--transition-fast);
    border: 1px solid #f0f0f0;
}

.promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px var(--shadow-medium);
    border-color: var(--primary-color);
}

.promo-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.promo-card:hover .promo-icon {
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

.promo-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.promo-description {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =============================================================================
   ULTRA MODERN FOOTER
   ============================================================================= */

.ultra-modern-footer {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #ffffff;
    margin-top: 4rem;
    overflow: hidden;
}

/* Modern Decorative Border instead of Wave */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        #e74c3c 25%,
        #f39c12 50%,
        #e74c3c 75%,
        var(--primary-color) 100%);
    box-shadow: 0 2px 10px rgba(183, 0, 0, 0.3);
    z-index: 3;
}

.footer-wave svg {
    display: none; /* Hide SVG, using gradient border instead */
}

/* Main Container */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

/* Footer Main Grid - Updated Layout */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Brand Section */
.footer-brand {
    padding-right: 2rem;
}

.brand-logo-container {
    margin-bottom: 1rem;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    filter: brightness(1.2);
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
    background: linear-gradient(45deg, #b70000, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 2rem;
}

/* Contact Info */
.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem;
    border-radius: 6px;
}

.contact-item:hover {
    color: #ffffff;
    background: rgba(183, 0, 0, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Special styling for WhatsApp */
.contact-item:has(.fa-whatsapp) {
    cursor: pointer;
}

.contact-item:has(.fa-whatsapp):hover {
    background: rgba(37, 211, 102, 0.1);
}

.contact-item .fa-whatsapp {
    color: #25d366;
}

/* Social Media */
.social-media {
    margin-top: 2rem;
}

.social-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.social-links-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link-modern {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, #333333, #444444);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
    overflow: hidden;
}

.social-link-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), #e74c3c);
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-link-modern:hover::before {
    transform: scale(1);
}

.social-link-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(183, 0, 0, 0.4);
    color: white;
}

.social-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.social-link-modern:hover .social-tooltip {
    opacity: 1;
}

/* Expanded Categories Section */
.footer-categories-expanded {
    padding-left: 2rem;
}

.categories-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.categories-icon {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.categories-grid-expanded {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-item {
    position: relative;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(183, 0, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-link:hover::before {
    left: 100%;
}

.category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
    color: white;
}

.category-icon-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, var(--primary-color), #e74c3c);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.category-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.category-link:hover .category-arrow {
    transform: translateX(5px);
}

/* View All Categories */
.view-all-categories {
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.view-all-btn:hover::before {
    left: 0;
}

.view-all-btn:hover {
    color: white;
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright-section {
    flex: 1;
}

.copyright-text {
    font-size: 0.95rem;
    color: #cccccc;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rights-text {
    font-size: 0.85rem;
    color: #999999;
    margin: 0.25rem 0 0 0;
}

/* Payment and Security */
.payment-security {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-label {
    font-size: 0.9rem;
    color: #cccccc;
}

.payment-icons-modern {
    display: flex;
    gap: 0.5rem;
}

.payment-card {
    font-size: 1.5rem;
    color: #cccccc;
    transition: all 0.3s ease;
}

.payment-card:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.security-badges {
    display: flex;
    gap: 1rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #cccccc;
}

.security-badge i {
    color: #4CAF50;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), #e74c3c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(183, 0, 0, 0.3);
    font-size: 1.6rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(183, 0, 0, 0.4);
}

/* Waze float button - mobile only */
.waze-float-global {
    display: none !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px; /* Above back-to-top button */
    right: 30px;
    z-index: 9997;
}

.whatsapp-link {
display: flex;
align-items: center;
justify-content: center;
width: 45px;
height: 45px;
background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
color: white;
border-radius: 50%;
text-decoration: none;
font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.whatsapp-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.whatsapp-link:hover::before {
    transform: scale(1);
}

.whatsapp-link:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); /* Neutral shadow on hover */
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 500;
}

.whatsapp-link:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

/* Removed pulse and glow animations for cleaner look */

/* =============================================================================
   ULTRA MODERN LOGIN BOX - REDESIGNED
   ============================================================================= */

/* Modern Login Box */
.modern-login-box {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modern-login-box.active {
    display: flex;
}

.modern-login-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    animation: slideInUp 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Close Button */
.modern-login-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-login-close:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Header */
.modern-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modern-login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.modern-login-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.modern-login-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #e74c3c);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Form Styling - AUTHENTIC MATERIAL UI DESIGN */
.modern-login-form {
    margin-bottom: 2rem;
}

.modern-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Material UI Outlined TextField */
.modern-form-input {
    width: 100%;
    padding: 16px 14px;
    padding-left: 48px;  /* Space for icon */
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.4375em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.87);
    background: transparent;
    box-sizing: border-box;
    transition: border-color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;
    outline: none;
}

.modern-form-input:hover {
    border-color: rgba(0, 0, 0, 0.87);
}

.modern-form-input:focus {
    border-color: var(--primary-color);
    border-width: 2px;
    padding: 15px 13px;
    padding-left: 47px;
}

.modern-form-input:focus + .modern-form-label {
    color: var(--primary-color);
}

/* Material UI Floating Label */
.modern-form-label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4375em;
    letter-spacing: 0.00938em;
    transition: color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms,
                transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms,
                top 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms,
                font-size 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;
    pointer-events: none;
    z-index: 1;
    background: #ffffff;
    padding: 0 4px;
}

.modern-form-input:focus + .modern-form-label,
.modern-form-input:not(:placeholder-shown) + .modern-form-label,
.modern-form-input.has-value + .modern-form-label {
    top: 0;
    left: 44px;
    transform: translateY(0) scale(0.75);
    font-size: 12px;
    color: var(--primary-color);
}

/* Material UI Icons */
.modern-form-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.54);
    font-size: 20px;
    transition: color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;
    pointer-events: none;
    z-index: 2;
}

.modern-form-input:focus ~ .modern-form-icon {
    color: var(--primary-color);
}

/* Password Toggle Button - Material UI Style */
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.54);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    z-index: 3;
}

.password-toggle:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.87);
}

.password-toggle:active {
    background-color: rgba(0, 0, 0, 0.12);
}

/* Error State - Material UI */
.modern-form-group.error .modern-form-input {
    border-color: #d32f2f;
}

.modern-form-group.error .modern-form-input:focus {
    border-color: #d32f2f;
}

.modern-form-group.error .modern-form-label {
    color: #d32f2f;
}

.modern-form-group.error .modern-form-icon {
    color: #d32f2f;
}

/* Success State - Material UI */
.modern-form-group.success .modern-form-input {
    border-color: #2e7d32;
}

.modern-form-group.success .modern-form-input:focus {
    border-color: #2e7d32;
}

.modern-form-group.success .modern-form-label {
    color: #2e7d32;
}

.modern-form-group.success .modern-form-icon {
    color: #2e7d32;
}

/* Helper Text - Material UI */
.modern-form-helper {
    margin: 3px 14px 0;
    font-size: 0.75rem;
    line-height: 1.66;
    letter-spacing: 0.03333em;
    font-weight: 400;
    min-height: 1rem;
}

.modern-form-helper.error {
    color: #d32f2f;
}

.modern-form-helper.success {
    color: #2e7d32;
}

/* Disabled State - Material UI */
.modern-form-input:disabled {
    color: rgba(0, 0, 0, 0.38);
    border-color: rgba(0, 0, 0, 0.26);
    background-color: transparent;
}

.modern-form-input:disabled + .modern-form-label {
    color: rgba(0, 0, 0, 0.38);
}

.modern-form-input:disabled ~ .modern-form-icon {
    color: rgba(0, 0, 0, 0.38);
}

/* Focus ring for accessibility */
.modern-form-input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive Design - Material UI Authentic */
@media (max-width: 768px) {
    .modern-login-container {
        padding: 2rem 1.5rem;
        width: 95%;
        border-radius: 12px;
    }
    
    .modern-form-group {
        margin-bottom: 1.25rem;
    }
    
    .modern-form-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .modern-login-title {
        font-size: 1.8rem;
    }
    
    .modern-login-subtitle {
        font-size: 1rem;
    }
    
    .modern-login-logo {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .modern-login-container {
        padding: 1.5rem 1rem;
        border-radius: 8px;
        width: 100%;
        max-width: 400px;
    }
    
    .modern-form-group {
        margin-bottom: 1rem;
    }
    
    .modern-form-input {
        padding: 14px 12px;
        padding-left: 44px;
        font-size: 16px;
    }
    
    .modern-form-input:focus {
        padding: 13px 11px;
        padding-left: 43px;
    }
    
    .modern-form-label {
        left: 44px;
        font-size: 14px;
    }
    
    .modern-form-input:focus + .modern-form-label,
    .modern-form-input:not(:placeholder-shown) + .modern-form-label,
    .modern-form-input.has-value + .modern-form-label {
        left: 40px;
        font-size: 11px;
    }
    
    .modern-form-icon {
        left: 12px;
        font-size: 18px;
    }
    
    .password-toggle {
        right: 12px;
        font-size: 18px;
        padding: 6px;
    }
    
    .modern-login-submit {
        padding: 12px 24px;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.08929em;
    }
}

/* Ripple Effect on Focus - Material UI Style - NON-INTERFERING */
.modern-form-group::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 3rem;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 0, 0, 0.08) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: translateY(-50%);
    z-index: 0;  /* Behind everything to not interfere */
    pointer-events: none;
}

.modern-form-input:focus ~ .modern-form-group::after {
    width: 80px;
    height: 80px;
}

/* Validation States - Material UI Style */
.modern-form-group.success .modern-form-input {
    border-color: #4caf50;  /* Material UI success color */
    background: linear-gradient(135deg, #f8fff8 0%, #ffffff 100%);
    box-shadow: 
        0 0 0 3px rgba(76, 175, 80, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.modern-form-group.success .modern-form-icon,
.modern-form-group.success .modern-form-label {
    color: #4caf50;
}

.modern-form-group.error .modern-form-input {
    border-color: #f44336;  /* Material UI error color */
    background: linear-gradient(135deg, #fff8f8 0%, #ffffff 100%);
    animation: shake 0.4s ease-in-out;
    box-shadow: 
        0 0 0 3px rgba(244, 67, 54, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.modern-form-group.error .modern-form-icon,
.modern-form-group.error .modern-form-label {
    color: #f44336;
}

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

/* Mobile Responsive for Modern Form - Material UI Heights */
@media (max-width: 768px) {
    .modern-login-container {
        padding: 2.5rem 1.5rem;  /* More padding for better touch targets */
        width: 95%;
        border-radius: 12px;
    }
    
    .modern-form-group {
        margin-bottom: 2.2rem;
        height: 56px;  /* Maintain Material UI height */
    }
    
    .modern-form-input {
        padding: 1.6rem 0.8rem 0.6rem 3.2rem;
        border-radius: 8px;
        font-size: 1rem;
        min-height: 56px;
    }
    
    .modern-form-label {
        left: 3.2rem;
        font-size: 1rem;
    }
    
    .modern-form-input:focus + .modern-form-label,
    .modern-form-input:not(:placeholder-shown) + .modern-form-label {
        top: 12px;
        left: 3rem;
        transform: translateY(0) scale(0.75);
    }
    
    .modern-form-icon {
        left: 1rem;
        font-size: 1.25rem;
        width: 24px;
        height: 24px;
    }
    
    .modern-login-submit {
        min-height: 48px;
        padding: 1.1rem 2rem;
        font-size: 1rem;
    }
    
    .modern-login-title {
        font-size: 1.8rem;
    }
    
    .modern-login-subtitle {
        font-size: 1rem;
    }
    
    .modern-login-logo {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .modern-login-container {
        padding: 2rem 1.2rem;
        border-radius: 8px;
    }
    
    .modern-form-group {
        margin-bottom: 2rem;
        height: 56px;  /* Maintain Material UI height even on small screens */
    }
    
    .modern-form-input {
        padding: 1.5rem 0.8rem 0.6rem 3rem;
        font-size: 0.95rem;
        min-height: 56px;
    }
    
    .modern-form-label {
        left: 3rem;
        font-size: 0.95rem;
    }
    
    .modern-form-input:focus + .modern-form-label,
    .modern-form-input:not(:placeholder-shown) + .modern-form-label {
        top: 12px;
        left: 2.8rem;
        transform: translateY(0) scale(0.75);
    }
    
    .modern-form-icon {
        left: 0.9rem;
        font-size: 1.2rem;
        width: 22px;
        height: 22px;
    }
    
    .modern-login-submit {
        min-height: 44px;
        padding: 1rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* Submit Button - Material UI Authentic */
.modern-login-submit {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08929em;
    cursor: pointer;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),
                0px 2px 2px 0px rgba(0, 0, 0, 0.14),
                0px 1px 5px 0px rgba(0, 0, 0, 0.12);
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}

.modern-login-submit:hover {
    background: #d32f2f;
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
                0px 4px 5px 0px rgba(0, 0, 0, 0.14),
                0px 1px 10px 0px rgba(0, 0, 0, 0.12);
}

.modern-login-submit:active {
    box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
                0px 8px 10px 1px rgba(0, 0, 0, 0.14),
                0px 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.modern-login-submit:disabled {
    color: rgba(0, 0, 0, 0.26);
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.12);
    cursor: not-allowed;
}

.modern-login-submit i {
    margin-right: 8px;
    font-size: 16px;
}

/* Error Message */
.modern-login-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
    border-left: 4px solid #e74c3c;
}

.modern-login-error.show {
    display: block;
}

/* Links - ULTRA MODERNIZED */
.modern-login-links {
    text-align: center;
    margin-top: 1.5rem;
}

/* Main action links (password reset & signup) */
.modern-login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.8rem;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(183, 0, 0, 0.05), rgba(183, 0, 0, 0.1));
    border: 1px solid rgba(183, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.modern-login-link:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), #d32f2f);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(183, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    border-color: var(--primary-color);
}

.modern-login-link:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 6px rgba(183, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Vendor login link (special styling) */
.modern-login-link.vendor-link {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(52, 152, 219, 0.1));
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: #3498db;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

.modern-login-link.vendor-link:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #3498db;
}

/* Divider styling */
.modern-login-divider {
    margin: 0 1rem;
    color: #bdc3c7;
    font-weight: 300;
    font-size: 0.9rem;
}

/* Links container sections */
.main-links {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.vendor-section {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

/* Icon styling within links */
.modern-login-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.modern-login-link:hover i {
    transform: scale(1.1);
}

/* Ripple effect for links */
.modern-login-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.modern-login-link:hover::before {
    width: 100px;
    height: 100px;
}

.modern-login-link span {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .main-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .modern-login-link {
        margin: 0;
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .modern-login-divider {
        display: none;
    }
    
    .modern-login-link.vendor-link {
        max-width: 100%;
    }
}

/* Mobile Login Section */
.mobile-login-section {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    margin: 1rem 0;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =============================================================================
   RESPONSIVE DESIGN FOR ULTRA MODERN FOOTER
   ============================================================================= */

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-categories-expanded {
        padding-left: 0;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .categories-grid-expanded {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        padding-right: 0;
    }
    
    .categories-grid-expanded {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .payment-security {
        align-items: center;
    }
    
    .social-links-modern {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-float {
        bottom: 75px; /* Adjust for smaller back-to-top */
        right: 20px;
    }

    .whatsapp-link {
        width: 45px;  /* Same as back-to-top */
        height: 45px; /* Same as back-to-top */
        font-size: 1.3rem; /* Adjusted proportionally */
    }

    .whatsapp-tooltip {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        right: 55px; /* Adjusted for smaller button */
    }

    .waze-float-global {
        display: block !important;
        bottom: 130px;
        right: 20px;
    }
    .waze-float-global-link {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 3rem 1rem 2rem;
    }
    
    .categories-grid-expanded {
        grid-template-columns: 1fr;
    }
    
    .category-link {
        padding: 1rem;
    }
    
    .brand-title {
        font-size: 1.75rem;
    }
    
    .footer-wave {
        height: 3px;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .whatsapp-float {
        bottom: 70px;
        right: 15px;
    }
    
    .whatsapp-link {
        width: 45px;  /* Same as back-to-top */
        height: 45px; /* Same as back-to-top */
        font-size: 1.3rem;
    }
    
    .whatsapp-tooltip {
        display: none; /* Hide tooltip on very small screens */
    }

    .waze-float-global {
        display: block !important;
        bottom: 125px;
        right: 15px;
    }
    .waze-float-global-link {
        width: 45px;
        height: 45px;
    }
}

/* Additional Footer Animations */
.category-icon-bg {
    transition: all 0.3s ease !important;
}

.social-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-social 0.6s linear;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

@keyframes ripple-social {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* =============================================================================
   LEGACY INTEGRATION IMPROVEMENTS
   ============================================================================= */

/* Improve existing product containers */
.product_container {
    background: var(--background-light);
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Modernize existing buttons */
.readmore, .add-toCart, .add-Orden {
    background: var(--primary-color) !important;
    color: white !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: var(--border-radius) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all var(--transition-fast) !important;
    box-shadow: 0 2px 10px rgba(183, 0, 0, 0.2) !important;
}

.readmore:hover, .add-toCart:hover, .add-Orden:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 20px rgba(183, 0, 0, 0.3) !important;
}

/* Modernize existing cards */
.single-product,
.single-promo {
    border-radius: var(--border-radius) !important;
    transition: all var(--transition-fast) !important;
    border: 1px solid #f0f0f0 !important;
}

.single-product:hover,
.single-promo:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px var(--shadow-medium) !important;
}

/* Modernize section titles */
.section-title,
.product-wid-title {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    margin-bottom: 2rem !important;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

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

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

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

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

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Ripple effect styles */
.carousel-cta, .add-toCart, .add-Orden, .readmore {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .carousel-content {
        padding: 0 1.5rem;
    }
    
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Start transitioning some elements to mobile-friendly */
    .desktop-only {
        display: flex;
    }

    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header-container {
        padding: 0 1rem;
    }

    .modern-nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 1.5rem;
        gap: 0;
        transition: left var(--transition-smooth);
        box-shadow: 0 4px 30px var(--shadow-medium);
        overflow-y: auto;
        z-index: 1000;
    }

    .modern-nav-menu.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
        order: 3;
        z-index: 1002;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hide desktop user actions in mobile */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile-only elements */
    .mobile-only {
        display: block !important;
    }

    /* Show mobile cart fixed */
    .mobile-cart-fixed {
        display: flex !important;
        top: 14px;
        right: 60px;
    }

    /* Hide mobile cart count when empty */
    .mobile-cart-count-fixed {
        display: flex !important;
    }

    .mobile-cart-count-fixed:empty {
        display: none !important;
    }

    .carousel-container {
        height: 60vh;
        min-height: 400px;
    }

    .carousel-title {
        font-size: 2rem;
    }

    .carousel-description {
        font-size: 1rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 1rem;
    }

    .carousel-next {
        right: 1rem;
    }

    .promo-container {
        padding: 0 1rem;
    }

    .promo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

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

    /* Mobile menu items styling */
    .modern-nav-menu .modern-nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .modern-nav-menu .modern-nav-item:last-child {
        border-bottom: none;
    }

    /* Force body not to scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 50vh;
        min-height: 350px;
    }

    .carousel-title {
        font-size: 1.75rem;
    }

    .carousel-description {
        font-size: 0.95rem;
    }

    .carousel-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .promo-card {
        padding: 2rem 1rem;
    }

    .promo-icon {
        font-size: 2.5rem;
    }

    .modern-promo {
        padding: 3rem 0;
    }

    .modern-footer {
        padding: 3rem 0 1.5rem;
    }
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

/* Loading States - Updated to be less aggressive */
.loading {
    position: relative;
}

/* ::before and ::after on .loading intentionally removed – the site intro overlay handles loading UX */
.loading::before {
    content: none !important;
    display: none !important;
}

.loading::after {
    content: none !important;
    display: none !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--primary-color);
}

/* Focus Styles for Accessibility */
.modern-nav-link:focus,
.search-input:focus,
.carousel-cta:focus,
.social-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .modern-header,
    .modern-footer,
    .carousel-nav,
    .carousel-indicators {
        display: none;
    }
    
    .modern-hero {
        margin-top: 0;
    }
}

/* =============================================================================
   COMPATIBILITY WITH EXISTING ELEMENTS
   ============================================================================= */

/* Ensure legacy elements work with new design */
body.menu-open {
    overflow: hidden;
}

.login-box {
    z-index: 10001 !important;
}

/* Update existing form styles to match modern design */
.form--login input[type="text"],
.form--login input[type="password"],
.form--login input[type="email"] {
    border-radius: var(--border-radius) !important;
    border: 1px solid #e0e0e0 !important;
    transition: all var(--transition-fast) !important;
}

.form--login input[type="text"]:focus,
.form--login input[type="password"]:focus,
.form--login input[type="email"]:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(183, 0, 0, 0.1) !important;
}

.form--login input[type="submit"],
.form--login input[type="button"] {
    background: var(--primary-color) !important;
    border-radius: var(--border-radius) !important;
    transition: all var(--transition-fast) !important;
}

.form--login input[type="submit"]:hover,
.form--login input[type="button"]:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px) !important;
}

/* Ensure product sections integrate well */
.product_container h1 {
    color: var(--text-dark) !important;
    font-weight: 600 !important;
}

/* Modernize existing sliders and carousels */
.owl-carousel .owl-nav [class*=owl-] {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    transition: all var(--transition-fast) !important;
}

.owl-carousel .owl-nav [class*=owl-]:hover {
    background: var(--primary-hover) !important;
    transform: scale(1.1) !important;
}

/* =============================================================================
   HIDE SLIDE INDICATORS AND DEBUG TEXT
   ============================================================================= */

/* Hide any slide indicators or debug text */
.slide-indicator,
.slide-debug,
[class*="slide-indicator"],
[class*="slide-debug"],
*[data-slide-info],
*[data-slide-counter] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure no pseudo-elements display slide information */
*::before[content*="Slide"],
*::after[content*="Slide"],
*::before[content*="ACTIVE"],
*::after[content*="ACTIVE"] {
    display: none !important;
    visibility: hidden !important;
}

/* Emergency override for any unwanted slide indicators */
.slide-info,
.slide-counter,
.slide-status,
.active-indicator,
[aria-label*="Slide"],
[title*="Slide"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Hide any text content that might show slide numbers */
*:contains("Slide"),
*[data-content*="Slide"],
*[data-text*="Slide"] {
    color: transparent !important;
    font-size: 0 !important;
}

/* Override any position: fixed elements that might be indicators */
*[style*="position: fixed"][class*="slide"],
*[style*="position: absolute"][class*="slide"]:not(.gallery-slide):not(.carousel-slide):not(.profender-slide) {
    display: none !important;
}

/* =============================================================================
   MATERIAL UI INTEGRATION - AUTHENTIC COMPONENTS
   ============================================================================= */

/* Material UI overrides para la marca TrailCR4x4 */
.mdc-text-field--filled {
    background-color: rgba(0, 0, 0, 0.04) !important;
    border-radius: 4px 4px 0 0 !important;
}

.mdc-text-field--filled:not(.mdc-text-field--disabled):hover {
    background-color: rgba(0, 0, 0, 0.06) !important;
}

.mdc-text-field--filled.mdc-text-field--focused {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

.mdc-text-field--focused .mdc-floating-label {
    color: var(--primary-color) !important;
}

.mdc-text-field--focused .mdc-line-ripple::before,
.mdc-text-field--focused .mdc-line-ripple::after {
    border-bottom-color: var(--primary-color) !important;
}

.mdc-text-field--focused .mdc-text-field__input {
    caret-color: var(--primary-color) !important;
}

.mdc-text-field--focused .mdc-text-field__icon--leading {
    color: var(--primary-color) !important;
}

.mdc-button--unelevated {
    background-color: var(--primary-color) !important;
    color: var(--on-primary) !important;
    width: 100%;
    height: 48px;
    margin-top: 16px;
    font-family: 'Roboto', 'Inter', sans-serif !important;
    border-radius: 4px !important;
}

.mdc-button--unelevated:hover {
    background-color: var(--primary-variant) !important;
    box-shadow: var(--mdc-elevation-2);
}

.mdc-button--unelevated:focus {
    background-color: var(--primary-variant) !important;
    box-shadow: var(--mdc-elevation-3);
}

.mdc-button--unelevated:active {
    background-color: var(--primary-variant) !important;
    box-shadow: var(--mdc-elevation-1);
}

/* Material UI Icon buttons */
.mdc-icon-button {
    color: rgba(0, 0, 0, 0.6) !important;
    width: 48px !important;
    height: 48px !important;
    padding: 12px !important;
}

.mdc-icon-button:hover {
    color: var(--primary-color) !important;
    background-color: rgba(183, 0, 0, 0.04) !important;
}

.mdc-icon-button:focus {
    background-color: rgba(183, 0, 0, 0.12) !important;
}

/* Text field icons */
.mdc-text-field__icon--leading {
    color: rgba(0, 0, 0, 0.6) !important;
}

.mdc-text-field--focused .mdc-text-field__icon--leading {
    color: var(--primary-color) !important;
}

/* Error states Material UI */
.mdc-text-field--invalid .mdc-floating-label {
    color: var(--error-color) !important;
}

.mdc-text-field--invalid .mdc-line-ripple::before,
.mdc-text-field--invalid .mdc-line-ripple::after {
    border-bottom-color: var(--error-color) !important;
}

.mdc-text-field--invalid .mdc-text-field__icon--leading {
    color: var(--error-color) !important;
}

.mdc-text-field-helper-text--validation-msg {
    color: var(--error-color) !important;
    font-size: 12px;
    margin-top: 4px;
    font-family: 'Roboto', 'Inter', sans-serif !important;
}

/* Material UI Floating labels */
.mdc-floating-label {
    font-family: 'Roboto', 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 0.00938em !important;
}

.mdc-text-field--focused .mdc-floating-label,
.mdc-text-field--label-floating .mdc-floating-label {
    font-size: 12px !important;
    font-weight: 400 !important;
}

/* Input text styles */
.mdc-text-field__input {
    font-family: 'Roboto', 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 0.00938em !important;
    color: rgba(0, 0, 0, 0.87) !important;
}

.mdc-text-field__input::placeholder {
    color: transparent !important;
}

/* Material Card para login */
.mdc-card.login-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--mdc-elevation-2);
    max-width: 400px;
    width: 90%;
    position: relative;
}

/* =============================================================================
   MODERN LOGIN BOX CON MATERIAL UI
   ============================================================================= */

.modern-login-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-login-box.active {
    opacity: 1;
    visibility: visible;
}

.modern-login-box .mdc-card {
    transform: translateY(-32px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modern-login-box.active .mdc-card {
    transform: translateY(0);
}

/* Close button Material UI style */
.modern-login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.54);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.modern-login-close:hover {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.87);
}

.modern-login-close:active {
    background: rgba(0, 0, 0, 0.12);
}

/* Material Login Form Container */
.material-login-form {
    padding: 32px;
    font-family: 'Roboto', 'Inter', sans-serif;
}

/* Material Login Header */
.material-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.material-login-title {
    color: rgba(0, 0, 0, 0.87);
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 0px;
    margin: 0 0 8px 0;
}

.material-login-subtitle {
    color: rgba(0, 0, 0, 0.6);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.0178571429em;
    margin: 0;
}

.material-login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px auto;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

/* Material Field Groups */
.material-field-group {
    margin-bottom: 24px;
    position: relative;
}

/* Password field container */
.password-field-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field-container .mdc-text-field {
    flex: 1;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    z-index: 10;
}

/* Error message Material UI */
.material-error-message {
    background-color: #ffebee;
    border: 1px solid #f8bbd9;
    color: #c62828;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
    display: none;
    font-family: 'Roboto', 'Inter', sans-serif;
}

.material-error-message.show {
    display: block;
}

/* Links section Material UI */
.material-links-section {
    margin-top: 24px;
    text-align: center;
}

.material-text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.0178571429em;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Roboto', 'Inter', sans-serif;
}

.material-text-link:hover {
    color: var(--primary-variant);
    text-decoration: underline;
}

.material-links-divider {
    margin: 16px 0;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.12);
}

.material-vendor-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.material-vendor-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Roboto', 'Inter', sans-serif;
}

.material-vendor-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* Responsive Material UI */
@media (max-width: 480px) {
    .modern-login-box .mdc-card {
        width: 95%;
        margin: 16px;
    }
    
    .material-login-form {
        padding: 24px !important;
    }
    
    .material-field-group {
        margin-bottom: 20px !important;
    }
    
    .mdc-text-field__input {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
}

/* Animation classes Material UI */
@keyframes materialFadeIn {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.material-fade-in {
    animation: materialFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state Material UI */
.mdc-button--loading {
    position: relative;
    pointer-events: none;
}

.mdc-button--loading .mdc-button__label {
    opacity: 0;
}

.mdc-button--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: materialSpinner 1s linear infinite;
}

@keyframes materialSpinner {
    to {
        transform: rotate(360deg);
    }
}