* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar-brand {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0d6efd !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    color: white;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.search-container input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
    border-color: #0d6efd;
}

.badge.bg-light {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.badge.bg-light:hover {
    background-color: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd;
    transform: translateY(-2px);
}

/* Category Cards */
.category-card,
.store-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover,
.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.product-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65408a 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Stats */
.stat-card h2 {
    font-size: 2.5rem;
}

/* Footer */
footer {
    background-color: #1a1a1a;
}

footer .text-muted {
    color: #9ca3af !important;
}

footer a {
    color: #9ca3af !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #0d6efd !important;
}

footer .social-links a {
    color: #fff !important;
}

footer .social-links a:hover {
    color: #0d6efd !important;
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .search-container input {
        height: 50px !important;
        font-size: 0.95rem;
    }
    
    .stat-card h2 {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.category-card,
.store-card {
    animation: fadeIn 0.5s ease;
}

/* Price Comparison Table */
.price-table {
    border-radius: 12px;
    overflow: hidden;
}

.price-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 1rem;
}

.price-table td {
    padding: 1rem;
    vertical-align: middle;
}

.price-table tbody tr {
    transition: background-color 0.3s ease;
}

.price-table tbody tr:hover {
    background-color: #f8f9fa;
}

.best-price {
    background-color: #d1f4e0;
    border-left: 4px solid #28a745;
}

/* Store Logo */
.store-logo {
    width: 80px;
    height: 40px;
    object-fit: contain;
}

/* Filter Sidebar */
.filter-section {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-section h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* Product Detail Page */
.product-image-main {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
}

.product-info-section {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.price-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: 700;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(13, 110, 253, 0.3);
    border-radius: 50%;
    border-top-color: #0d6efd;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}