:root {
    /* Color Palette - Better Contrast */
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    
    --text-primary: black;
    --text-secondary: #7f8c8d;
    --text-light: #95a5a6;
    
    --bg-primary: #ffffff;
    --bg-secondary: #ecf0f1;
    --bg-dark: #2c3e50;
    --bg-light: #f8f9fa;
    
    --border-color: #dfe6e9;
    --border-light: #e9ecef;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;

    --drawer-width: 320px;
    --drawer-bg: #ffffff;
    --drawer-border: #e0e0e0;
    --drawer-text: #333333;
    --drawer-text-hover: #007bff;
    --drawer-overlay: rgba(0, 0, 0, 0.5);
    --drawer-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
    --mobile-breakpoint: 768px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container Max Width */
.container {
    max-width: 100%;
    padding: 0 1rem;
    margin: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Top Bar - Improved Design */
#topBar {
    background: var(--bg-dark);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#topBar .text-welcome {
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#topBar .top-links {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#topBar .top-links a {
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#topBar .top-links a:hover {
    background: rgba(255,255,255,0.1);
}

/* Header - Clean Design */
#header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: auto !important;
}

#header.scrolled {
    box-shadow: var(--shadow-md);
}

#topNav {
    padding: 1rem 0;
}

/* Cart Badge */
.badge-corner {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 6px;
}

.quick-cart-box {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    min-width: 320px;
    max-width: 400px;
}

.quick-cart-box h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Mobile Navigation Button */
.btn-mobile {
    display: none;
    background: transparent;
    border: 2px solid var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mobile:hover {
    background: var(--text-primary);
    color: white;
}

/* Footer - Modern Design */
#footer {
    background: var(--bg-dark) !important;
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

footer ul li a:hover {
    color: white;
    transform: translateX(5px);
}

footer .social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

footer .social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* WhatsApp Button - Enhanced */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    color: white;
    text-decoration: none;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    filter: none;
}

.logo {
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.logo-img {
    filter: brightness(0) invert(1); /* This makes any logo white */
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Mobile menu overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1049;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.show {
    display: block;
    opacity: 1;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* Accessibility */
.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;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--info-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #topBar, #header, footer, .whatsapp-float {
        display: none;
    }
}

.top-links--white a,
.top-links--white a:hover,
.top-links--white a:focus {
color: #fff !important;
text-decoration: none;
}

.top-links--white .dropdown-menu {
background-color: #343a40;
border: 0;
min-width: 200px;
}
.top-links--white .dropdown-menu a {
color: #fff !important;
}
.top-links--white .dropdown-menu a:hover {
background-color: rgba(255,255,255,0.05);
}
