/* DropHardware V2 - Style basé sur DDR5 V2 */

:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
}

/* Footer sticky */
.footer-sticky { width: 100%; flex-shrink: 0; }

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}
.bg-gradient-primary { background: var(--gradient-primary); }

/* Category Cards */
.category-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.category-card .card-body { padding: 1.5rem; }
.category-icon {
    width: 60px; height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

/* Product Cards */
.product-card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.product-card .card-img-top {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    height: 180px;
    object-fit: contain;
}
.product-card .card-body { padding: 1.25rem; }
.product-card .card-title a {
    color: #1e293b; text-decoration: none;
    font-weight: 600; font-size: 0.95rem; line-height: 1.4;
}
.product-card .card-title a:hover { color: var(--primary-color); }

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-2px); }

/* Navigation */
.navbar-brand { font-weight: 700; font-size: 1.5rem; }
.nav-link { font-weight: 500; }

/* Buttons */
.btn { font-weight: 500; border-radius: 8px; transition: all 0.3s ease; border: none; }
.btn-primary { background: var(--gradient-primary); }
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,70,229,0.4);
}
.btn-success { background: var(--success-color); }
.btn-success:hover { background: #059669; transform: translateY(-1px); }

/* Forms */
.form-control, .form-select {
    border-radius: 8px; border: 1px solid #d1d5db;
    padding: 0.75rem 1rem; transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* Badges */
.badge { font-weight: 500; border-radius: 6px; }
.badge.bg-primary { background: var(--primary-color) !important; }
.badge.bg-info { background: var(--info-color) !important; }
.badge.bg-success { background: var(--success-color) !important; }

/* Catalog layout */
.catalog-filters {
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    min-height: 100vh;
}
.filter-section {
    border-bottom: 1px solid #e3e6ea;
    padding: 1rem 0;
}
.filter-section:last-child { border-bottom: none; }
.filter-section .form-label { font-size: 0.875rem; color: #495057; margin-bottom: 0.5rem; }
.filter-section .form-select,
.filter-section .form-control {
    font-size: 0.875rem; border-radius: 6px;
}

/* Clickable rows */
.clickable-row { cursor: pointer; transition: background-color 0.15s ease-in-out; }
.clickable-row:hover { background-color: rgba(0,123,255,0.05) !important; }

/* Price display */
.price-best { color: var(--success-color); font-weight: 700; }
.price-old { text-decoration: line-through; color: #999; }

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
}
.pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Product page */
.product-detail-img {
    width: 220px; height: 220px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
}
.spec-table th { width: 40%; color: #64748b; font-weight: 500; }
.price-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; border: 1px solid #e2e8f0;
    border-radius: 8px; margin-bottom: 0.5rem; background: white;
}
.price-row.best { border-color: var(--success-color); background: #f0fdf4; }
.store-logo-sm { height: 24px; object-fit: contain; }

/* Responsive */
@media (max-width: 768px) {
    .hero-section .display-5 { font-size: 1.75rem; }
    .catalog-filters { min-height: auto; }
    .product-detail-img { width: 150px; height: 150px; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.4s ease forwards; }
