@import 'tokens.css';

:root {
    --font-primary: 'Cairo', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    background-color: var(--dark);
    color: var(--text);
}

/* Navigation */
.nav-link {
    color: var(--text);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

/* Search Section */
.search-input {
    background: var(--background);
    border: 1px solid var(--secondary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text);
}

.filter-select {
    background: var(--background);
    border: 1px solid var(--secondary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text);
    min-width: 150px;
}

/* Product Card */
.product-card {
    background: var(--background);
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.2s;
    border: 1px solid var(--secondary);
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    aspect-ratio: 1;
    background: var(--background);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.current-price {
    color: var(--accent);
    font-weight: bold;
}

.old-price {
    color: var(--text);
    opacity: 0.6;
    text-decoration: line-through;
}

/* Compare Bar */
#compare-bar {
    background: var(--primary);
    border-top: 1px solid var(--secondary);
}

#compare-bar.active {
    transform: translateY(0);
}

.compare-btn {
    background: var(--accent);
    color: var(--background);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-section {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
}