:root {
    /* Light theme (default) */
    --primary-color: #4a6da7;
    --secondary-color: #5a81c5;
    --accent-color: #f8b400;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --card-bg: #fff;
    --light-gray: #f4f4f4;
    --medium-gray: #ddd;
    --dark-gray: #888;
    --white: #fff;
    --footer-bg: #333;
    --footer-text: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --hero-overlay: rgba(0, 0, 0, 0.5);
    --newsletter-bg: #4a6da7;
}

/* Dark theme */
.dark-theme {
    --primary-color: #5d84c2;
    --secondary-color: #7095d9;
    --accent-color: #ffb700;
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --light-gray: #2a2a2a;
    --medium-gray: #3d3d3d;
    --dark-gray: #999;
    --white: #2d2d2d;
    --footer-bg: #121212;
    --footer-text: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.5);
    --hero-overlay: rgba(0, 0, 0, 0.7);
    --newsletter-bg: #1e2b46;
}

/* Blue Theme Variables */
.blue-theme {
    --primary-color: #1e88e5;
    --secondary-color: #42a5f5;
    --accent-color: #ff9800;
    --text-color: #e0e0e0;
    --bg-color: #0d2a4e;
    --card-bg: #103560;
    --light-gray: #164070;
    --medium-gray: #285e9e;
    --dark-gray: #9ab7d7;
    --white: #103560;
    --footer-bg: #051a30;
    --footer-text: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.4);
    --hero-overlay: rgba(0, 0, 35, 0.6);
    --newsletter-bg: #1a4f8c;
}

/* Boys Theme */
.vibrant-theme {
    /* Boy-friendly color scheme */
    --primary-color: #1565c0;    /* Strong blue */
    --secondary-color: #0d47a1;  /* Darker blue */
    --accent-color: #f57c00;     /* Orange accent */
    --text-color: #333333;
    --bg-color: #e3f2fd;        /* Light blue background */
    --card-bg: #fff;
    --light-gray: #eceff1;
    --medium-gray: #b0bec5;
    --dark-gray: #546e7a;
    --white: #fff;
    --footer-bg: #0d47a1;
    --footer-text: #fff;
    --shadow: 0 4px 15px rgba(21, 101, 192, 0.15);
    --hero-overlay: rgba(13, 71, 161, 0.6);
    --newsletter-bg: linear-gradient(135deg, #1565c0, #0d47a1);
}

/* Apply theme variables */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Theme toggle styles */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    margin-right: 20px;
    background-color: var(--card-bg);
    padding: 6px 15px;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.theme-label {
    margin-right: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.theme-options {
    display: flex;
    gap: 8px;
}

.theme-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.theme-btn:hover {
    transform: scale(1.15);
}

.theme-btn.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
}

.theme-btn-dark {
    background-color: #333333;
    background-image: linear-gradient(145deg, #444444, #222222);
}

.theme-btn-blue {
    background-color: #1e88e5;
    background-image: linear-gradient(135deg, #1e88e5, #42a5f5);
}

/* Boys theme button */
.theme-btn-vibrant {
    background-image: linear-gradient(135deg, #1565c0, #0d47a1);
}

/* Card design enhancements */
.vibrant-theme .product-card {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(21, 101, 192, 0.1);
    border-bottom: 3px solid #1565c0;
    transition: all 0.3s ease;
}

.vibrant-theme .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(21, 101, 192, 0.2);
}

/* Button styling */
.vibrant-theme .btn {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    border-radius: 30px;
    padding: 10px 25px;
    box-shadow: 0 4px 10px rgba(21, 101, 192, 0.3);
}

.vibrant-theme .btn:hover {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(21, 101, 192, 0.4);
}

/* Blue theme specific adjustments */
.blue-theme .btn {
    background-color: var(--primary-color);
}

.blue-theme .btn:hover {
    background-color: var(--secondary-color);
}

.blue-theme .faq-question::after {
    color: #42a5f5;
}

.blue-theme .get-directions .btn {
    background-color: #1976d2;
}

.blue-theme .get-directions .btn:hover {
    background-color: #1565c0;
}

.blue-theme .hero {
    background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('../assets/images/blue-hero.jpg');
}

/* Fix for footer text visibility */
.dark-theme footer,
.dark-theme .footer-content,
.dark-theme .footer-section,
.dark-theme .footer-column h3,
.dark-theme .footer-column p,
.dark-theme .footer-column a,
.dark-theme .footer-bottom p,
.dark-theme .footer-column .contact-info {
    color: #ffffff !important;
}

.blue-theme footer,
.blue-theme .footer-content,
.blue-theme .footer-section,
.blue-theme .footer-column h3,
.blue-theme .footer-column p,
.blue-theme .footer-column a,
.blue-theme .footer-bottom p,
.blue-theme .footer-column .contact-info {
    color: #ffffff !important;
}

/* Enhance contrast for specific elements that might need it */
.dark-theme .footer-column .social-links a,
.blue-theme .footer-column .social-links a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Make contact information more visible */
.dark-theme .contact-info i,
.blue-theme .contact-info i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Ensure copyright text is visible */
.dark-theme .footer-bottom,
.blue-theme .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9) !important;
}