
.search-bar {
    background: #1e293b;
    padding: 20px 0;
    border-bottom: 1px solid #334155;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 16px;
}

.search-input::placeholder {
    color: #64748b;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background: #2563eb;
}

.main-content {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
    gap: 32px;
}

.filter-sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    background: #1e293b;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #334155;
    height: fit-content;
    position: sticky;
    top: 100px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.filter-sidebar h3 {
    color: #f1f5f9;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group h4 {
    color: #cbd5e1;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.filter-group select {
    width: 100%;
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
    box-sizing: border-box;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.filter-group input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
    appearance: textfield;
    -moz-appearance: textfield;
    box-sizing: border-box;
}

.filter-group input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.filter-group input[type="number"]::-webkit-outer-spin-button,
.filter-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-range input {
    flex: 1;
    min-width: 80px;
    padding: 10px 8px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.price-range input::-webkit-outer-spin-button,
.price-range input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-range span {
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
    margin: 0 4px;
}

.products-content {
    flex: 1;
    min-width: 0;
}

.products-section {
    background: #1e293b;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #334155;
    min-height: 400px;
}

.products-section h2 {
    color: #f1f5f9;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-section p {
    color: #94a3b8;
    margin-bottom: 32px;
    font-size: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.product-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    background: #1e293b;
    border-radius: 8px 8px 0 0;
    transition: transform 0.2s ease;
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

.product-placeholder {
    width: 100%;
    height: 200px;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
    border-bottom: 1px solid #334155;
}

.product-info {
    padding: 20px;
}

.product-info .price {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 8px;
}


.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-description {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
}

.product-category {
    background: #374151;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #e2e8f0;
}

.stock-info {
    color: #10b981;
}

.stock-info.low-stock {
    color: #f59e0b;
}

.stock-info.out-of-stock {
    color: #ef4444;
}

.add-to-cart-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
}

.add-to-cart-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.login-to-buy-btn {
    background: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
}

.login-to-buy-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.out-of-stock-btn {
    background: #6b7280;
    color: #d1d5db;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
}

.clear-filters-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.clear-filters-btn:hover {
    background: #dc2626;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #475569;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #94a3b8;
}

.no-results p {
    font-size: 14px;
}

@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        gap: 24px;
        padding: 24px 16px;
    }
    
    .filter-sidebar {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        position: static;
        padding: 20px;
        margin-bottom: 0;
    }
    
    .filter-group {
        margin-bottom: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 890px) {
    .main-content {
        flex-direction: column;
        padding: 16px 12px;
        gap: 16px;
    }
    
    .filter-sidebar {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 16px;
        position: static;
        border-radius: 8px;
    }
    
    .filter-sidebar h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .filter-group {
        margin-bottom: 16px;
    }
    
    .filter-group h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .filter-group select,
    .filter-group input[type="number"] {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .products-section {
        padding: 20px 16px;
        border-radius: 8px;
    }
    
    .products-section h2 {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .site-header .container {
        padding: 0 12px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 12px 8px;
        gap: 12px;
    }
    
    .filter-sidebar {
        padding: 12px;
        border-radius: 6px;
    }
    
    .filter-sidebar h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .filter-group {
        margin-bottom: 12px;
    }
    
    .filter-group select,
    .filter-group input[type="number"] {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .products-section {
        padding: 16px 12px;
    }
    
    .products-section h2 {
        font-size: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .price-range {
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .price-range input {
        min-width: 70px;
        padding: 6px 8px;
        font-size: 12px;
        flex: 1;
    }
    
    .price-range span {
        font-size: 11px;
        margin: 0 2px;
        order: 2;
        flex-basis: 100%;
        text-align: center;
        margin: 4px 0;
    }
    
    .clear-filters-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin-top: 12px;
        width: 100%;
    }
}

.demo-notice-banner {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid #047857;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 1400px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.demo-content {
    padding: 16px 24px;
    text-align: center;
}

.demo-content h3 {
    color: white;
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.demo-content p {
    color: #a7f3d0;
    margin: 8px 0;
    font-size: 14px;
}

.demo-content strong {
    color: white;
}

.demo-content span {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    margin: 0 4px;
}

.demo-login-btn {
    background: white;
    color: #059669;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.demo-login-btn:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .demo-notice-banner {
        margin: 12px;
    }
    
    .demo-content {
        padding: 12px 16px;
    }
    
    .demo-content h3 {
        font-size: 16px;
    }
    
    .demo-content p {
        font-size: 13px;
    }
}
