/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

/* Navigation Styles */
.navbar {
    background-color: #34495e;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #2c3e50;
}

/* Main Container */
.main-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 20px;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.sidebar-menu {
    list-style: none;
    margin-bottom: 30px;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    color: #555;
    text-decoration: none;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease;
}

.sidebar-menu a:hover {
    color: #3498db;
    padding-left: 10px;
}

/* Interactive Color Picker */
.color-picker-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.color-picker-section h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.color-options {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.color-btn.active {
    border-color: #2c3e50;
    transform: scale(1.15);
}

#color-display {
    font-weight: bold;
    color: #2c3e50;
    margin-top: 10px;
}

/* Main Content */
.content {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.hero-section > p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    margin-bottom: 15px;
}

.placeholder-img {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 60px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
}

.product-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.product-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e74c3c;
}

/* Footer Styles */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Color Theme Classes */
.theme-classic {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
}

.theme-elegant {
    --primary-color: #8b4513;
    --secondary-color: #daa520;
}

.theme-modern {
    --primary-color: #4a90e2;
    --secondary-color: #50c8ff;
}

.theme-luxury {
    --primary-color: #d4af37;
    --secondary-color: #ffd700;
}
