:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #f4f4f4;
    --text-color: #333;
    --card-background: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.cc-app {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.cc-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.cc-header h1 {
    margin: 0;
    font-size: 28px;
}

.cc-main {
    display: flex;
    flex-direction: column;
    background-color: var(--card-background);
}

.cc-sidebar {
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.cc-content {
    padding: 20px;
}

.cc-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cc-filters h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    width: 100%;
}

.cc-filter-item {
    flex: 1;
    margin-right: 20px;
    margin-bottom: 20px;
}

.cc-filter-item:last-child {
    margin-right: 0;
}

.cc-filter-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.cc-filter-item input[type="range"],
.cc-filter-item select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.cc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cc-card {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative;
}

.cc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cc-card-header {
    padding: 20px;
    color: var(--text-color);
}

.cc-card-header h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
}

.cc-card-header p {
    margin: 0;
    font-style: italic;
}

.cc-card-body {
    padding: 20px;
}

.cc-card-body p {
    margin: 8px 0;
}

.cc-card-body ul {
    padding-left: 20px;
    margin-top: 10px;
}

.cc-card .compare-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.cc-card .compare-btn:hover {
    background-color: #27ae60;
}

.cc-card .compare-btn.selected {
    background-color: #e74c3c;
}

.cc-card .compare-btn.selected:hover {
    background-color: #c0392b;
}

.comparison-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.comparison-card {
    flex: 1;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.comparison-card h3 {
    font-size: 20px;
    margin-top: 0;
    color: var(--primary-color);
}

.comparison-card p {
    margin: 8px 0;
}

.comparison-card ul {
    padding-left: 20px;
}

@media (max-width: 768px) {
    .cc-filters {
        flex-direction: column;
    }

    .cc-filter-item {
        width: 100%;
        margin-right: 0;
    }

    .comparison-container {
        flex-direction: column;
    }
}
